On Dec 4, 2:37 pm, Dave Smith <[EMAIL PROTECTED]>
wrote:
> Frederick Cheung wrote:
> As a quick secondary question, I was wondering why when I have a button
> to delete the image from the database it works perfectly in the
> edit.html.erb file, but when I move the button into the _form.html.erb
> file so that it sits next to the other image related elements the
> @article_image.id value is not passed accross... in fact I dont think it
> even is picked up in the first place.
Probably because behind the scenes the button helper creates a form
and you can't nest forms
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---