<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Walking Along the Rails</title>
	<atom:link href="http://walksalong.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://walksalong.wordpress.com</link>
	<description>One noob's journey learning Ruby on Rails along with a few random thoughts.</description>
	<lastBuildDate>Thu, 11 Sep 2008 16:10:46 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='walksalong.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d677f14e3756b86c1dad3eb0e5923443?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Walking Along the Rails</title>
		<link>http://walksalong.wordpress.com</link>
	</image>
			<item>
		<title>link_to and :popup =&gt; true</title>
		<link>http://walksalong.wordpress.com/2008/09/11/link_to-and-popup-true/</link>
		<comments>http://walksalong.wordpress.com/2008/09/11/link_to-and-popup-true/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 16:10:46 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[link_to rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=21</guid>
		<description><![CDATA[Thanks to Chetan Patil who posted help on getting :popup working with link_to. It saved a lot of time.
http://justbarebones.blogspot.com/2007/12/linkto-helper-popup-option-and-ie.html
link_to "View Image", { :action =&#62; "view" }, :popup =&#62; ['new_window_name', 'height=300,width=600']
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=21&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Thanks to <span class="post-author vcard"><span class="fn">Chetan Patil who posted help on getting :popup working with link_to. It saved a lot of time.</span></span></p>
<p>http://justbarebones.blogspot.com/2007/12/linkto-helper-popup-option-and-ie.html</p>
<p><code>link_to "View Image", { :action =&gt; "view" }, :popup =&gt; ['new_window_name', 'height=300,width=600']</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=21&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/09/11/link_to-and-popup-true/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>collection_select and ajax using remote_function and observe_field</title>
		<link>http://walksalong.wordpress.com/2008/06/19/collection_select-and-ajax-using-remote_function-and-observe_field/</link>
		<comments>http://walksalong.wordpress.com/2008/06/19/collection_select-and-ajax-using-remote_function-and-observe_field/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 16:51:36 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=20</guid>
		<description><![CDATA[
 &#60;% remote_function :url =&#62; {:action =&#62; 'show_something'} %&#62;

&#60;% collection_select(:widget, :categories_id, Category.find(:all,  rder =&#62; "name"), :id, :name, {:prompt =&#62; "-Select a category"}, :id =&#62; 'id_selected') %&#62;

&#60;%  observe_field 'id_selected', :url =&#62; {:action =&#62; 'show_something'}, :with =&#62; 'id' %&#62;

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=20&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><code><br />
 &lt;% remote_function :url =&gt; {:action =&gt; 'show_something'} %&gt;<br />
<br />
&lt;% collection_select(:widget, :categories_id, Category.find(:all, <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder =&gt; "name"), :id, :name, {:prompt =&gt; "-Select a category"}, :id =&gt; 'id_selected') %&gt;<br />
<br />
&lt;%  observe_field 'id_selected', :url =&gt; {:action =&gt; 'show_something'}, :with =&gt; 'id' %&gt;<br />
</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=20&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/06/19/collection_select-and-ajax-using-remote_function-and-observe_field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Responds to Parent</title>
		<link>http://walksalong.wordpress.com/2008/04/03/responds-to-parent/</link>
		<comments>http://walksalong.wordpress.com/2008/04/03/responds-to-parent/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 19:34:40 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[iFrame]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=19</guid>
		<description><![CDATA[I was working with an iFrame and trying to refresh the parent window when I found Responds to Parent. The first link is the plugin created by Sean Treadway and the second link is a neat tutorial by Khamsouk Souvanlasy.
http://sean.treadway.info/responds-to-parent/
http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=19&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was working with an iFrame and trying to refresh the parent window when I found Responds to Parent. The first link is the plugin created by Sean Treadway and the second link is a neat tutorial by Khamsouk Souvanlasy.<a href="http://sean.treadway.info/responds-to-parent/" title="http://sean.treadway.info/responds-to-parent/" target="_blank"></a></p>
<p><a href="http://sean.treadway.info/responds-to-parent/" title="http://sean.treadway.info/responds-to-parent/" target="_blank">http://sean.treadway.info/responds-to-parent/</a></p>
<p><a href="http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent" title="http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent" target="_blank">http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=19&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/04/03/responds-to-parent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting TinyMCE to work with Activescaffold</title>
		<link>http://walksalong.wordpress.com/2008/02/14/getting-tinymce-to-work-with-activescaffold/</link>
		<comments>http://walksalong.wordpress.com/2008/02/14/getting-tinymce-to-work-with-activescaffold/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 22:41:29 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=18</guid>
		<description><![CDATA[Special thanks goes to Bill Garr of thinkabout.com who figured this one out. Hope he doesn&#8217;t mind I share it with the rest of the Rails community.
in /vendor/plugins/active_scaffold
* /javascripts/activescaffold.js
1. in ActiveScaffold.ActionLink.Abstract.prototype definition (~ line 220)
onComplete: function(request) {
this.loading_indicator.style.visibility = 'hidden';
init_tinyMCE();
}.bind(this)
2. in /views/_update_form.rhtml
url_options,
:before =&#62; "update_from_tinyMCE(this);",
:after =&#62; "$('#{loading_indicator_id(:action =&#62; :update, :id =&#62; params[:id])}').style.visibility = 'visible'; Form.disable('#{element_form_id(:action =&#62; :update)}');",
:complete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=18&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Special thanks goes to Bill Garr of <a href="http://www.thinkabout.com/">thinkabout.com</a> who figured this one out. Hope he doesn&#8217;t mind I share it with the rest of the Rails community.</p>
<p>in /vendor/plugins/active_scaffold</p>
<p>* /javascripts/activescaffold.js</p>
<p>1. in ActiveScaffold.ActionLink.Abstract.prototype definition (~ line 220)</p>
<p><code>onComplete: function(request) {<br />
this.loading_indicator.style.visibility = 'hidden';</code></p>
<p>init_tinyMCE();<br />
}.bind(this)</p>
<p>2. in /views/_update_form.rhtml</p>
<p><code>url_options,<br />
:before =&gt; "update_from_tinyMCE(this);",<br />
:after =&gt; "$('#{loading_indicator_id(:action =&gt; :update, :id =&gt; params[:id])}').style.visibility = 'visible'; Form.disable('#{element_form_id(:action =&gt; :update)}');",<br />
:complete =&gt; "$('#{loading_indicator_id(:action =&gt; :update, :id =&gt; params[:id])}').style.visibility = 'hidden'; Form.enable('#{element_form_id(:action =&gt; :update)}');",<br />
:failure =&gt; "ActiveScaffold.report_500_response('#{active_scaffold_id}')",<br />
:html =&gt; {<br />
:href =&gt; url_for(url_options),<br />
:id =&gt; element_form_id(:action =&gt; :update),<br />
:class =&gt; 'update',<br />
:method =&gt; :put<br />
} %&gt;</code></p>
<p>3. in your application.js (or any other .js that will be loaded)</p>
<p><code>function init_tinyMCE(){<br />
if (!tinyMCE) return;<br />
tinyMCE.isLoaded = false;<br />
tinyMCE.onLoad();<br />
}</code></p>
<p>function update_from_tinyMCE(form){<br />
if (!tinyMCE || !form) return;<br />
tinyMCE.triggerSave();<br />
}</p>
<p>4. finally, you have to override the field display of every field that gets modified by tinyMCE. All you have to do is to change the default cleanup function, h(), to sanitize(), like so:</p>
<p><code><br />
def body_column(record)<br />
sanitize(record.body)<br />
end<br />
</code></p>
<p>5. Restart Rails</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=18&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/02/14/getting-tinymce-to-work-with-activescaffold/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Auto Complete and Prototype</title>
		<link>http://walksalong.wordpress.com/2008/02/08/auto-complete-only-works-with-prototype-150/</link>
		<comments>http://walksalong.wordpress.com/2008/02/08/auto-complete-only-works-with-prototype-150/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 16:26:57 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=17</guid>
		<description><![CDATA[I was getting an infinite loop with error &#8220;too much recursion&#8221; when I was using Rails auto_complete and Prototype 1.6.x.  Apparently this version isn&#8217;t compatible with the version of scriptaculus that is installed with Rails. I went back to prototype 1.5.0 and it worked with no problems.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=17&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was getting an infinite loop with error &#8220;too much recursion&#8221; when I was using Rails auto_complete and Prototype 1.6.x.  Apparently this version isn&#8217;t compatible with the version of scriptaculus that is installed with Rails. I went back to prototype 1.5.0 and it worked with no problems.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=17&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/02/08/auto-complete-only-works-with-prototype-150/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Auto Complete is now a plugin for Rails 2.0.x</title>
		<link>http://walksalong.wordpress.com/2008/02/08/auto-complete-is-now-a-plugin-for-rails-20x/</link>
		<comments>http://walksalong.wordpress.com/2008/02/08/auto-complete-is-now-a-plugin-for-rails-20x/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 15:54:12 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/?p=16</guid>
		<description><![CDATA[script/plugin install auto_complete
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=16&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>script/plugin install auto_complete</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=16&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2008/02/08/auto-complete-is-now-a-plugin-for-rails-20x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>collection_select with two columns</title>
		<link>http://walksalong.wordpress.com/2007/10/22/collection_select-with-two-columns/</link>
		<comments>http://walksalong.wordpress.com/2007/10/22/collection_select-with-two-columns/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 16:35:13 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[collection_select]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/2007/10/22/collection_select-with-two-columns/</guid>
		<description><![CDATA[To add in multiple columns to your collection_select drop-down, create a method in your Model to concatenate:
Model:

def last_name_and_fullname
"#{last_name}, #{full_name}"
end

View:
&#60;%= collection_select :record, :individual_id, Individual.find(:all,  rder =&#62; "last_name"), :id, :last_name_and_fullname, {:include_blank =&#62; true} %&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=15&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To add in multiple columns to your collection_select drop-down, create a method in your Model to concatenate:</p>
<p>Model:<br />
<code><br />
def last_name_and_fullname<br />
"#{last_name}, #{full_name}"<br />
end<br />
</code></p>
<p>View:<br />
<code>&lt;%= collection_select :record, :individual_id, Individual.find(:all, <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder =&gt; "last_name"), :id, :last_name_and_fullname, {:include_blank =&gt; true} %&gt;</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=15&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2007/10/22/collection_select-with-two-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Using type as a column name &#8211; no good</title>
		<link>http://walksalong.wordpress.com/2007/05/23/using-type-as-a-column-name-no-good/</link>
		<comments>http://walksalong.wordpress.com/2007/05/23/using-type-as-a-column-name-no-good/#comments</comments>
		<pubDate>Wed, 23 May 2007 18:54:51 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[mySQL]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/2007/05/23/using-type-as-a-column-name-no-good/</guid>
		<description><![CDATA[Was getting an odd error this morning:
   SyntaxError        in OrganizationsController#show
compile error
vendor/rails/activerecord/lib/active_record/base.rb:1359: syntax error
Object::0
Turned out one of my columns had the name &#8220;type&#8221;. Not a good thing.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=13&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Was getting an odd error this morning:</p>
<h4>   SyntaxError        in OrganizationsController#show</h4>
<pre>compile error
vendor/rails/activerecord/lib/active_record/base.rb:1359: syntax error
Object::0</pre>
<p>Turned out one of my columns had the name &#8220;type&#8221;. Not a good thing.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=13&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2007/05/23/using-type-as-a-column-name-no-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Thoughts on File Upload Fu</title>
		<link>http://walksalong.wordpress.com/2007/05/10/thoughts-on-file-upload-fu/</link>
		<comments>http://walksalong.wordpress.com/2007/05/10/thoughts-on-file-upload-fu/#comments</comments>
		<pubDate>Thu, 10 May 2007 15:09:24 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/2007/05/10/thoughts-on-file-upload-fu/</guid>
		<description><![CDATA[I tried out attachment_fu with Mike Clark&#8217;s tutorial and so far so good. This tutorial walks through the process of uploading and saving attachments i.e. images and resizing them into thumbnails. There are so many shady RoR tutorials out there so its refreshing to have Mike Clark explain in a easy going non-technical way. His [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=12&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I tried out attachment_fu with <a href="http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu" title="Mike Clark's Tutorial">Mike Clark&#8217;s tutorial</a> and so far so good. This tutorial walks through the process of uploading and saving attachments i.e. images and resizing them into thumbnails. There are so many shady RoR tutorials out there so its refreshing to have Mike Clark explain in a easy going non-technical way. His approach is let Rails do the work for you and I couldn&#8217;t agree more.</p>
<p>Mike offers three image processor choices and I tried ImageScience and Minimagick. RMagick was skipped for no particular reason other than it was bigger than what I needed. I tried Minimagick first and I couldn&#8217;t get it working at all. Finally I tried ImageScience and with some help I was able to get it working.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=12&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2007/05/10/thoughts-on-file-upload-fu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>
	</item>
		<item>
		<title>Bruce on Rails</title>
		<link>http://walksalong.wordpress.com/2007/05/08/bruce-on-rails/</link>
		<comments>http://walksalong.wordpress.com/2007/05/08/bruce-on-rails/#comments</comments>
		<pubDate>Tue, 08 May 2007 18:31:08 +0000</pubDate>
		<dc:creator>walksalong</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://walksalong.wordpress.com/2007/05/08/bruce-on-rails/</guid>
		<description><![CDATA[
Borrowed from Toronto Ruby on Rails pub night.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=8&subd=walksalong&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://walksalong.files.wordpress.com/2007/05/bruce_on_rails.jpg" alt="Bruce on Rails" /></p>
<p>Borrowed from <a href="http://unspace.ca/innovation/pubnite"><span style="font-weight:bold;">Toronto Ruby on Rails pub night</span></a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/walksalong.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/walksalong.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/walksalong.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/walksalong.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/walksalong.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/walksalong.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/walksalong.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/walksalong.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/walksalong.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/walksalong.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/walksalong.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/walksalong.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=walksalong.wordpress.com&blog=836998&post=8&subd=walksalong&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://walksalong.wordpress.com/2007/05/08/bruce-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/71bc5fc6f37ff015781a4a8b4cc20106?s=96&#38;d=identicon" medium="image">
			<media:title type="html">walksalong</media:title>
		</media:content>

		<media:content url="http://walksalong.files.wordpress.com/2007/05/bruce_on_rails.jpg" medium="image">
			<media:title type="html">Bruce on Rails</media:title>
		</media:content>
	</item>
	</channel>
</rss>