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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -