It seems that when we use
form_for @story do |f|
then Story has to be a RESTful resource and it has to be
map.resources :stories
in the routes.rb.
Can Story be not RESTful? Can it be a form for non-RESTful data?
It seems that when we use
form_for @story do |f|
then Story has to be a RESTful resource and it has to be
map.resources :stories
in the routes.rb.
Can Story be not RESTful? Can it be a form for non-RESTful data?
Check out rails documentation for form_for.
You can modify the form_for @story
and pass in some other options to suit your needs.
If that doesn't work for you, you can use form_tag instead.