Skip to content
tanema edited this page Mar 18, 2012 · 2 revisions

submit_tag([text, url, html_options])

Creates a submit tag.

submit_tag('Submit This') 

 => 

<input type='submit' value='Submit This' />

submit_tag() 

 => 

<input type='submit' value='Submit' />

submit_tag("holla","/new/location")
 
 => 
 
<input onclick='window.location="/new/location";return false;' type='submit' value='holla' />
Clone this wiki locally