我关注演员表http://railscasts.com/episodes/314-pretty-urls-with-friendlyid?autoplay=true onfriendly_id
拥有一个带有“登录”字段的用户模型和一个属于用户的带有“user_id”的配置文件模型
我如何设置friendly_id,以便它使用来自用户模型的登录字段作为其slug并将/profiles/1获取到/profiles/username(=从用户模型登录)
我关注演员表http://railscasts.com/episodes/314-pretty-urls-with-friendlyid?autoplay=true onfriendly_id
拥有一个带有“登录”字段的用户模型和一个属于用户的带有“user_id”的配置文件模型
我如何设置friendly_id,以便它使用来自用户模型的登录字段作为其slug并将/profiles/1获取到/profiles/username(=从用户模型登录)