I often have to provide overrides for the default merb helpers. Seems  
like a pretty safe/common thing to do. Go ahead and create a  
delete_button method in ApplicationHelpers with something like this: 
http://gist.github.com/198623

It does kind of suck that merb doesn't allow overrides to the form  
element on delete_button. If you feel strongly about this, go ahead  
and create a merb.lighthouseapp.com ticket and we'll try to get it  
fixed for Merb 1.1

Thanks

On Sep 30, 2009, at 5:23 PM, MarkMT wrote:

>
> I ran into an issue today with the way IE6 (uuuggghhh!) treats the
> button created by merb's delete_button helper. IE adds extraneous
> spaces above and below the form element that holds the button's input
> tag (discussed here - 
> http://www.webdevelopersnotes.com/tips/html/removing_space_padding_from_form_tag.php3
> ), which produces result that is inconsistent with other browsers.
>
> It seems that the problem can be overcome fairly easily by applying a
> zero margin to the style on the form element. The problem is that the
> delete_button helper, as far as I can tell, doesn't provide any way to
> apply that attribute. Something like :style => 'margin: 0' gets
> applied to the inner submit input element, not the form as a whole,
> which is what is required.
>
> It's simple enough to create the button without the helper and apply
> the appropriate styling to the form element, though it's a bit
> annoying to have to take this route. Alternatively I could hack the
> helper, but I'm wondering if anyone has any other bright ideas.
>
> Mark.
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to