ruby - link_to get rails error: wrong number of arguments (1 for 0) -


i using simple link_to use in rails app giving error.

wrong number of arguments (1 0)

my code in view.

<%= link_to category.name store_path %> 

the path correct when running in url , in console.

2.2.3 :003 > app.store_path => "/store" 

i don't understand why picking argument on here.

you missing , <%= link_to category.name, store_path %>


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -