<br><br><div><span class="gmail_quote">On 3/23/07, <b class="gmail_sendername">Rajavel Lenin</b> <<a href="mailto:rajlenin@gmail.com">rajlenin@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"><input name="submit" type="image"
id="submit" src="../../../public/images/submit.jpg"
value="image" mv:submit="" /></td></span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Becomes</span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"><%= submit_tag( 'image', :id => "submit" )
%></td></span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Isn't supposed to pass other parameters(type,src) as
options to submit_tag?</span></font></p></div></div></blockquote><div><br><br></div></div>Actually after looking closer at what you were asking the submit tag will not pass other attributes in as parameters because from what I can tell the rails submit_tag helper doesn't support additional things like images from looking at the documentation and related source. However you could simply just use
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">a button with image and some javascript do accomplish what you were wanting. <br><br>It would be nice to have a directive to do this though, so I'll also make a note that we need to add this to the todo list of new directives.
<br><br>Jeff</span></font>