I've got this line in my routes.db file:
map.resources :things
I'm trying to create a link that will create a new thing. So far I've got
<%= link_to "add thing", things_path (:thingName => key)%>
But I'm getting this error message:
Unknown action
No action responded to index. Actions: create and new
How do I do the link_to line so that it links to the create method instead of the index method? Thanks for reading.