undefined local variable or method on link_to in rails -
thats link_to
<%= link_to('dashboard', dashboard_index) %> <i class="icon-play"></i> <% end %>
thats corresponding rake routes
entry.
dashboard_index /dashboard/index(.:format) dashboard#index
what wrong? suggestion or idea?
thanks in advance best regards denym
it should be
<%= link_to(dashboard_index_path) %> dashboard <i class="icon-play"></i> <% end %>
Comments
Post a Comment