<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: rails code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 04:29:51 GMT</pubDate>
    <description>DZone Snippets: rails code</description>
    <item>
      <title>remote image submit tag</title>
      <link>http://snippets.dzone.com/posts/show/4368</link>
      <description>// do a remote_submit_tag but instade of simple input it makes a input type image&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;def remote_image_submit_tag(source,options)&lt;br /&gt;    options[:with] ||= 'Form.serialize(this.form)'&lt;br /&gt;    &lt;br /&gt;    options[:html] ||= {}&lt;br /&gt;    options[:html][:type] = 'image'&lt;br /&gt;    options[:html][:onclick] = "#{remote_function(options)}; return false;"&lt;br /&gt;    options[:html][:src] = image_path(source)&lt;br /&gt;    &lt;br /&gt;    tag("input", options[:html], false)&lt;br /&gt;  end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:39:55 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4368</guid>
      <author>tetsuo (guillaume belleguic)</author>
    </item>
  </channel>
</rss>
