Tom Mac wrote:
> Colin Law wrote:
>> 2010/1/25 Tom Mac <[email protected]>:
>>> Hi
>>> � I have
>>> <button type="submit" class="class1"><span>Create </span></button>
> 
> Not an error f.submit creates the html as
> <input class="class1" id="model_submit" name="commit" type="submit" 
> value="Create" />
> 
> But what I need is exactly
> <button type="submit" class="class1"><span>Create </span></button>
> 
>     If directly use this no problem But what I ould like to know an 
> alternative in railshelper
> 
> Tom


You also have button_tag but this won't create an html <button> tag, it 
does though create a simple form wrapped around an input which means 
your backend gets a consistent result regardless of the browser 
(<button> is a bit inconsistent depending on the users browser).
-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to