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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -