Hi Dave,

Dave Smith wrote:

> 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 <snip>

> Probably because behind the scenes the button helper creates a form
> and you can't nest forms
>
> Fred

booger.... is there a potential workaround?

Several.  Al's given you one.  Here's two more..

1) Use your existing code, but separate structure from presentation.  Fix
the structure by putting the button (i.e., a form with no input fields)
outside the form tags and use CSS to position it.

2) Modify your existing code to use link_to or a variation with images
instead of text

HTH,
Bill


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to