On Feb 2, 2012, at 9:33 AM, mauro wrote:
> Hello.
> I have this code
> = f.commit_button "Try"
> that generates this html:
In this code, the HTML for the input is being generated and returned by `f.commit_button`. If you want to change what that helper returns, you have to change the helper (or configure it differently, etc.). This isn't something haml can help you with.
Rhett
>
> <input class="btn commit create" name="commit" type="submit"
> value="Try" />
>
> I want to insert a tag between the input tags like this:
>
> <input class="btn commit create" name="commit" type="submit"
> value="Try" >
> <i class="icon-pencil"></i>
> </input>
>
> How can I achieve this?
>
> --
> You received this message because you are subscribed to the Google Groups "Haml" group.
> To post to this group, send email to ha...@googlegroups.com.
> To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/haml?hl=en.
>
It does not insert the icon inside the button but it insert outside on
the right.