我从耙路线如下:Rails url_for找不到出现在Rake Routes中的路线?
user GET /users/:id(.:format) {:action=>"show", :controller=>"users"}
但是,当我这样做,为的电子邮件模板:
<%= link_to(@comment.user.full_name, user_url(:only_path => false), :style => 'color:#5196E3;text-decoration:underline;') %>
我得到以下错误:“::的ActionView ::模板错误(没有路由匹配{:action =>“show”,:controller =>“users”}):“
想法?谢谢
`:风格=> 'COLOR:#5196E3;文字修饰:强调;'' - 我认为这将是更好把它放在你的CSS中。 – Zaz 2013-05-17 11:51:45