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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -