Hello,
in my application, I have a new action inside of a controller. I also
have a view called new.rhtml which contains a form constructed using
the form_for method. In the controller’s new action I have an instance
variable called @story which I assign a new Story object (Story is my
model) like so:
@story = Story.new(params[:story])
I use form_for like so:
form_for :story …
If I change :story to let’s say :abc in both instanced, it still
works. However, my book says I have to call it :stories so it
“properly maps with the @story object”. Well, this obviously isn’t the
case here, as it still works.
Can someone maybe explain it to me?
chell