<br><br><div><span class="gmail_quote">On 3/23/07, <b class="gmail_sendername">Rajavel Lenin</b> &lt;<a href="mailto:rajlenin@gmail.com">rajlenin@gmail.com</a>&gt; 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;">&lt;input name=&quot;submit&quot; type=&quot;image&quot;
id=&quot;submit&quot; src=&quot;../../../public/images/submit.jpg&quot;
value=&quot;image&quot; mv:submit=&quot;&quot; /&gt;&lt;/td&gt;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</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;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&lt;%= submit_tag( &#39;image&#39;, :id =&gt; &quot;submit&quot; )
%&gt;&lt;/td&gt;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</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&#39;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&#39;ll also make a note that we need to add this to the todo list of new directives.
<br><br>Jeff</span></font>