<input name="submit" type="image" id="submit" src="../../../public/images/submit.jpg" value="image" mv:submit="" /></td> Becomes <%= submit_tag( ''image'', :id => "submit" ) %></td> Isn''t supposed to pass other parameters(type,src) as options to submit_tag? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070323/4c872624/attachment.html
On 3/23/07, Rajavel Lenin <rajlenin at gmail.com> wrote:> > <input name="submit" type="image" id="submit" > src="../../../public/images/submit.jpg" value="image" mv:submit="" /></td> > > > > Becomes > > > > <%= submit_tag( ''image'', :id => "submit" ) %></td> > > > > Isn''t supposed to pass other parameters(type,src) as options to > submit_tag? >Thanks Rajavel. I will take a closer look at it. I should be able to tackle this and the other bugs tomorrow. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070324/313675f3/attachment-0001.html
On 3/23/07, Rajavel Lenin <rajlenin at gmail.com> wrote:> > <input name="submit" type="image" id="submit" > src="../../../public/images/submit.jpg" value="image" mv:submit="" /></td> > > > > Becomes > > > > <%= submit_tag( ''image'', :id => "submit" ) %></td> > > > > Isn''t supposed to pass other parameters(type,src) as options to > submit_tag? >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 a button with image and some javascript do accomplish what you were wanting. 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. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/masterview-users/attachments/20070326/ffa2ae72/attachment.html