ruby on rails - undefined local variable or method `browse_path' -
i'm getting error
nameerror in browse#index undefined local variable or method `browse_path'
here's code in view error raised
<li><%= link_to "browse", browse_path %></li>
here's controller
class browsecontroller < applicationcontroller def index @tags = tag.find(:all, :order => 'created_at desc') end end
and routes
get'/browse' => 'browse#index', :as => :index
anyone know causing this?
try :as => :browse
named route.
Comments
Post a Comment