Oops, wrong github commit url. Here's the right one: http://github.com/jcnetdev/merb/commit/e47389105c1a84fa34dd30b1c25fde6958e168cd
On Nov 24, 3:04 pm, Jacques Crocker <[EMAIL PROTECTED]> wrote: > I've implemented a patch for Image Submit in Merb Helpers. > > Here's the lighthouse for > it:http://merb.lighthouseapp.com/projects/7433/tickets/1059 > > Here's the github commit for > it:http://github.com/jcnetdev/merb/commit/48b12fd5cf64ded82e4b2298c25118... > > The reason for the email is, there's sort of an interesting > integration question related to it. > > If Merb Helpers were to have an image_submit tag, the question is, > should it preprocess the src like in rails? > > In Rails: > <%= image_submit_tag "submit.png" %> > #=> <input type="image" src="#{asset_path}/submit.png" /> > #=> <input type="image" src="/images/submit.png" /> > > The way I implemented it in the patch is this: > <%= image_submit "submit.png" %> > #=> <input type="image" src="submit.png" /> > > I figure this would be more the "Merb Way", where things are of least > suprise, and more flexible. If I wanted to use merb-assets, I would > just do this: > <%= image_submit image_path("submit.png") %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
