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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -