我试图找出一个最基本的功能,创建一个命名路由,我可以将其包含在我的视图和代码中,但无法让它工作
match '/user/:username' => "profiles#show", :as => show_profile
我如何能够在我的视图中包含以下代码:
show_profile_path
并将其链接到 /user/username (登录用户的)我使用 devise 和 rails 3.2 并预先搜索了这个
我试图找出一个最基本的功能,创建一个命名路由,我可以将其包含在我的视图和代码中,但无法让它工作
match '/user/:username' => "profiles#show", :as => show_profile
我如何能够在我的视图中包含以下代码:
show_profile_path
并将其链接到 /user/username (登录用户的)我使用 devise 和 rails 3.2 并预先搜索了这个