<?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/"
	>

<channel>
	<title>Think Bohemian &#187; Ruby On Rails</title>
	<atom:link href="http://www.thinkbohemian.com/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkbohemian.com</link>
	<description>Secede from Convention in Life and Code</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:13:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rails Summer of Code &#8211; Week 5</title>
		<link>http://www.thinkbohemian.com/2010/07/26/rails-summer-of-code-week-5/</link>
		<comments>http://www.thinkbohemian.com/2010/07/26/rails-summer-of-code-week-5/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 17:13:55 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[agile web development with rails]]></category>
		<category><![CDATA[rails summer of code]]></category>
		<category><![CDATA[rails3]]></category>
		<category><![CDATA[university of texas]]></category>
		<category><![CDATA[ut]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=506</guid>
		<description><![CDATA[Welcome to Rails Summer of Code.  I’m leading at University of Texas in  Austin class through the excellent Agile  Web Development with Rails (beta version for Rails 3).a

Rails Summer of Code, Week 5, July 22, 2010 from Cindy Royal on Vimeo.
Rails3 Summer of Code &#8211; Week 5
View more presentations from Richard Schneeman.

This [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Rails Summer of Code.  I’m leading at University of Texas in  Austin class through the excellent <a onclick="javascript:pageTracker._trackPageview('/outbound/article/pragprog.com');" href="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition">Agile  Web Development with Rails</a> (beta version for Rails 3).a</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="227" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13584014&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="227" src="http://vimeo.com/moogaloop.swf?clip_id=13584014&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13584014">Rails Summer of Code, Week 5, July 22, 2010</a> from <a href="http://vimeo.com/user1095510">Cindy Royal</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div id="__ss_4843072" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="Rails3 Summer of Code - Week 5" href="http://www.slideshare.net/thinkbohemian/rails3-summer-of-code-week-5">Rails3 Summer of Code &#8211; Week 5</a></strong><object id="__sse4843072" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week5-100726120242-phpapp01&amp;stripped_title=rails3-summer-of-code-week-5" /><param name="name" value="__sse4843072" /><param name="allowfullscreen" value="true" /><embed id="__sse4843072" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week5-100726120242-phpapp01&amp;stripped_title=rails3-summer-of-code-week-5" name="__sse4843072" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/thinkbohemian">Richard Schneeman</a>.</div>
<div style="padding: 5px 0 12px;"></div>
<div style="padding: 5px 0 12px;">This week I cover data flow from the view to the controller, including forms, links, buttons, routes, view_helpers, RESTful routes, paths, and a while lot of other goodies. I wind up the presentation with cryptographic hashes and their uses in user authentication, and other areas.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/07/26/rails-summer-of-code-week-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Summer of Code &#8211; Heroku Deployment Assignment</title>
		<link>http://www.thinkbohemian.com/2010/07/17/rails-summer-of-code-heroku-deployment-assignment/</link>
		<comments>http://www.thinkbohemian.com/2010/07/17/rails-summer-of-code-heroku-deployment-assignment/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 20:52:19 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[bamboo]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[rails summer of code]]></category>
		<category><![CDATA[rails3]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=479</guid>
		<description><![CDATA[Your mission is to get a website up and running online using Heroku. To prove it&#8217;s your site, you need to put your name on the site. If you don&#8217;t want to use the Depot application, you can use the Demo application, or just upload your own scaffold. I&#8217;m not looking for anything fancy, just [...]]]></description>
			<content:encoded><![CDATA[<p>Your mission is to get a website up and running online using <a href="http://heroku.com/">Heroku</a>. To prove it&#8217;s your site, you need to put your name on the site. If you don&#8217;t want to use the Depot application, you can use the Demo application, or just upload your own scaffold. I&#8217;m not looking for anything fancy, just an application that renders.</p>
<p>Right now the default heroku server doesn&#8217;t support rails3, so we will need to do some minor modifications, the direct documentation can be found here:  <a href="http://docs.heroku.com/rails3#serving-static-assets">http://docs.heroku.com/rails3#serving-static-assets</a> ,  <a href=" http://docs.heroku.com/bamboo">http://docs.heroku.com/bamboo</a> ,  and  <a href=" http://docs.heroku.com/quickstart">http://docs.heroku.com/quickstart</a></p>
<p>For a play by play of how to do it follow these directions, and post to the list if you have any questions:</p>
<p>1) Get your application working</p>
<p>2) Add this line of code to : <strong>config/environments/production.rb </strong></p>
<pre>config.serve_static_assets = true</pre>
<p>3) Then you need to install git <a href="http://github.com/guides/get-git-on-mac">On a Mac</a>, <a href="http://code.google.com/p/msysgit/">Windows</a>, or <a href="http://book.git-scm.com/2_installing_git.html">UNIX/Linux</a><br />
4) In terminal (or command prompt) navigate to your application then execute:</p>
<pre>git init
git add .
git commit -m "new app"
</pre>
<p>5) Sign up through <a href="heroku.com">heroku</a> then install the heroku gem:</p>
<pre>sudo gem install heroku
heroku keys:add
  Enter your Heroku credentials.
  Email: joe@example.com
  Password:
  Uploading ssh public key /Users/joe/.ssh/id_rsa.pub</pre>
<p>6) Deploy your app (still in terminal)</p>
<pre>heroku create --stack bamboo-ree-1.8.7 --remote trybamboo
git push trybamboo master
</pre>
<p>7) Confirm the application is still working by going to the url listed in the output of your terminal. Like:  http://glowing-wind-35.heroku.com/ you will also want to migrate the database:</p>
<pre>heroku rake db:migrate --stack bamboo-ree-1.8.7 --remote trybamboo
</pre>
<p>8) Once you have any errors ironed out, then migrate your heroku install to the main server:</p>
<pre>heroku stack:migrate bamboo-ree-1.8.7
git push heroku master
heroku rake db:migrate
</pre>
<p>9) If you got an error in (8) then you may need to force a rebuild if you didn&#8217;t make changes to your code:</p>
<pre>heroku stack:migrate bamboo-ree-1.8.7
echo &gt;&gt; Rakefile &amp;&amp; git commit -a -m "migrating to bamboo stack"
git push heroku master
</pre>
<p>10) Now when you make any changes to your application and want to re-deploy you can:</p>
<pre>git add .
git commit -m "summary of my changes here"
git push heroku master
</pre>
<p>Give that a shot, and let me or the group know if you have any problems.  I expect to see an application online per-student by Wednesday evening. That means I expect lat minute questions on the mailing-list by Tuesday. (<strong>hint</strong>: try it right now, seriously quit watching cartoons, take 10 minutes and deploy an app&#8230;its fun! )</p>
<p>Good luck and happy heroku-ing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/07/17/rails-summer-of-code-heroku-deployment-assignment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails Summer of Code &#8211; Week 3</title>
		<link>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-3/</link>
		<comments>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-3/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 20:04:43 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[rails summer of code]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=472</guid>
		<description><![CDATA[Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in  Austin class through the excellent Agile  Web Development with Rails (beta version for Rails 3).

Rails Summer of Code, Week 3, July 8, 2010 from Cindy Royal on Vimeo.
This week I cover functional testing, has_many, belongs_to, HABTM, has many :through, and [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in  Austin class through the excellent <a href="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition">Agile  Web Development with Rails</a> (beta version for Rails 3).</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="227" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13205165&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="227" src="http://vimeo.com/moogaloop.swf?clip_id=13205165&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13205165">Rails Summer of Code, Week 3, July 8, 2010</a> from <a href="http://vimeo.com/user1095510">Cindy Royal</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>This week I cover functional testing, has_many, belongs_to, HABTM, has many :through, and the association database structure. I finish up the section with some impromptu hacking to demonstrate how you can move controller logic to the model, to create re-usable code chunks.</p>
<div id="__ss_4778739" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="UT on Rails3 - Week 3" href="http://www.slideshare.net/thinkbohemian/ut-on-rails3-week-3">UT on Rails3 &#8211; Week 3</a></strong><object id="__sse4778739" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week3-100717152651-phpapp01&amp;stripped_title=ut-on-rails3-week-3" /><param name="name" value="__sse4778739" /><param name="allowfullscreen" value="true" /><embed id="__sse4778739" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week3-100717152651-phpapp01&amp;stripped_title=ut-on-rails3-week-3" name="__sse4778739" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/thinkbohemian">thinkbohemian</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Summer of Code &#8211; Week 2</title>
		<link>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-2/</link>
		<comments>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-2/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 19:59:27 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[agile web development with rails]]></category>
		<category><![CDATA[instance methods]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[rails summer of code]]></category>
		<category><![CDATA[scaffolds generators]]></category>
		<category><![CDATA[unit tests]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=468</guid>
		<description><![CDATA[Welcome to my Rails Summer of Code Series. Week 2

Rails Summer of Code, Week 2, July 1, 2010 from Cindy Royal on Vimeo.
Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in  Austin class through the excellent Agile  Web Development with Rails (beta version for Rails 3). This second  [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to my Rails Summer of Code Series. Week 2</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="227" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=13076127&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="227" src="http://vimeo.com/moogaloop.swf?clip_id=13076127&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/13076127">Rails Summer of Code, Week 2, July 1, 2010</a> from <a href="http://vimeo.com/user1095510">Cindy Royal</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in  Austin class through the excellent <a href="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition">Agile  Web Development with Rails</a> (beta version for Rails 3). This second  week I focused on ruby data structures, and the difference between class and instance methods. I then talked about migrations, scaffolding, generators, validation, and unit tests. Recommended Reading: Chapters 3, 4 &amp; 5</p>
<div style="width:425px" id="__ss_4778733"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/thinkbohemian/ut-on-rails3-week-2" title="UT on Rails3 - Week 2">UT on Rails3 &#8211; Week 2</a></strong><object id="__sse4778733" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week2-100717152538-phpapp02&#038;stripped_title=ut-on-rails3-week-2" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse4778733" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week2-100717152538-phpapp02&#038;stripped_title=ut-on-rails3-week-2" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/thinkbohemian">thinkbohemian</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Summer of Code &#8211; Week 1</title>
		<link>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-1/</link>
		<comments>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-1/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 19:07:15 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[austin on rails]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[rails 3]]></category>
		<category><![CDATA[rails summer of code]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web development with rails]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=465</guid>
		<description><![CDATA[Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in Austin class through the excellent Agile Web Development with Rails (beta version for Rails 3). This first week I introduce DRY, Convention over Configuration, MVC Architecture, ORMS, the concept of a RESTful web service, and briefly discuss ruby versus rails. Recommended Reading: [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Rails Summer of Code.  I&#8217;m leading at University of Texas in Austin class through the excellent <a href="http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition">Agile Web Development with Rails</a> (beta version for Rails 3). This first week I introduce DRY, Convention over Configuration, MVC Architecture, ORMS, the concept of a RESTful web service, and briefly discuss ruby versus rails. Recommended Reading: Chapters 1 &amp; 2</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="225" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=12865310&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="225" src="http://vimeo.com/moogaloop.swf?clip_id=12865310&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/12865310">Rails Summer of Code &#8211; Week 1, June 24, 2010</a> from <a href="http://vimeo.com/user1095510">Cindy Royal</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><a href="http://vimeo.com/12865310">Rails Summer of Code &#8211; Week 1, June 24, 2010</a> from <a href="http://vimeo.com/user1095510">Cindy Royal</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>This is a first run class, so if you have some constructive criticisms, let me know!</p>
<p>Get your your book, watch the video, and get your Rails on!</p>
<div style="width:425px" id="__ss_4778729"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/thinkbohemian/ut-on-rails3-week-1" title="UT on Rails3 - Week 1">UT on Rails3 &#8211; Week 1</a></strong><object id="__sse4778729" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week1-100717152526-phpapp01&#038;stripped_title=ut-on-rails3-week-1" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse4778729" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=week1-100717152526-phpapp01&#038;stripped_title=ut-on-rails3-week-1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/thinkbohemian">thinkbohemian</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/07/09/rails-summer-of-code-week-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Model Changes in Script/Console Without Exiting</title>
		<link>http://www.thinkbohemian.com/2010/01/25/test-model-changes-in-scriptconsole-without-exiting/</link>
		<comments>http://www.thinkbohemian.com/2010/01/25/test-model-changes-in-scriptconsole-without-exiting/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 01:10:42 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[model quit]]></category>
		<category><![CDATA[refresh]]></category>
		<category><![CDATA[reload]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[script/console]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=319</guid>
		<description><![CDATA[So if you&#8217;ve ever tested changes to a Ruby on Rails model in the script/console, it can be a pain having to completely quit and restart the application each time you make an adjustment. Instead you can use the reload! command
So this:
reload!

Acts as if you just did this:
exit
script/console

So not only does it require one less [...]]]></description>
			<content:encoded><![CDATA[<p>So if you&#8217;ve ever tested changes to a Ruby on Rails model in the <strong>script/console</strong>, it can be a pain having to completely quit and restart the application each time you make an adjustment. Instead you can use the <strong>reload!</strong> command</p>
<p>So this:</p>
<pre>reload!
</pre>
<p>Acts as if you just did this:</p>
<pre>exit
script/console
</pre>
<p>So not only does it require one less command, but you can still use all previously defined variables. Awesome!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2010/01/25/test-model-changes-in-scriptconsole-without-exiting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom jQuery UI Rails Button Form Helper</title>
		<link>http://www.thinkbohemian.com/2009/10/12/custom-jquery-ui-rails-button-form-helper/</link>
		<comments>http://www.thinkbohemian.com/2009/10/12/custom-jquery-ui-rails-button-form-helper/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 02:22:14 +0000</pubDate>
		<dc:creator>Richard Schneeman</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[form helper]]></category>
		<category><![CDATA[jquery ui]]></category>

		<guid isPermaLink="false">http://www.thinkbohemian.com/?p=97</guid>
		<description><![CDATA[Today I got a little bored with my standard rails buttons

Not bad&#8230;but could use a little pizazz. So I decided to take a crack at jQuery UI. A great javascript and style framework that promised to be easy to use and provides theme-able styles.
Once you&#8217;ve got jQuery UI integrated nicely into your rails project (note [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Today I got a little bored with my standard rails buttons</p>
<p style="text-align: center;"><img class="aligncenter" title="generate secure email button" src="../wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-8.55.48-PM.png" alt="generate secure email button" width="148" height="28" /></p>
<p style="text-align: left;">Not bad&#8230;but could use a little pizazz. So I decided to take a crack at <a href="http://jqueryui.com/">jQuery UI</a>. A great javascript and style framework that promised to be easy to use and provides theme-able styles.</p>
<p style="text-align: left;">Once you&#8217;ve got jQuery UI integrated nicely into your rails project (note i had to change my url paths in the stylesheet), you can style your submit button easily by adding some classes just like this:</p>
<pre style="text-align: left;">&lt;%= f.submit "Generate Secure Email", :class =&gt; "ui-corner-all ui-state-default " %&gt;</pre>
<p style="text-align: center;"><img class="size-full wp-image-101 alignnone" title="Untitled-3" src="http://www.thinkbohemian.com/wp-content/uploads/2009/10/Untitled-3.jpg" alt="Untitled-3" width="152" height="38" /></p>
<p style="text-align: left;">Though, this isn&#8217;t 100% what I was looking for, it&#8217;s a good start. When we hover over the button, it changes color, and when we press it, our rails form submits. Though you&#8217;ll notice that the cursor doesn&#8217;t change when you hover over the button and we haven&#8217;t put an icon in it yet. To get the correct behavior i hard coded in a button:</p>
<pre style="text-align: left;">&lt;button id="user_submit" class = "ui-corner-all  ui-state-default"  type="submit" name="commit"&gt;Generate Secure Email&lt;/button&gt;</pre>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-102" title="Screen shot 2009-10-12 at 9.06.33 PM" src="http://www.thinkbohemian.com/wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-9.06.33-PM.png" alt="Screen shot 2009-10-12 at 9.06.33 PM" width="169" height="36" /></p>
<p style="text-align: left;">This solved the button styling and behavior, but we still don&#8217;t have our icon. After browsing the inter webs i found a nice page of <a href="http://http://www.filamentgroup.com/examples/buttonFrameworkCSS/">jQuery-UI button demos</a> and I managed to modify my code to include a nice icon:</p>
<pre style="text-align: left;">&lt;button id="user_submit" class = "ui-corner-all fg-button ui-state-default fg-button-icon-left" type="submit" name="commit"&gt;&lt;span&gt;&lt;/span&gt;Generate Secure Email&lt;/button&gt;</pre>
<p style="text-align: center;"><img class="aligncenter" title="jQuery UI Button with rails" src="http://www.thinkbohemian.com/wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-8.54.35-PM.png" alt="jQuery UI Button with rails" width="185" height="38" /></p>
<p style="text-align: left;">Perfect! It works like a dream, but it&#8217;s not very rails-esq. Lets turn this into a reusable chunk of code by making a helper method to extend form builder. In app/helpers/application_helper.rb</p>
<pre style="text-align: left;">class ActionView::Helpers::FormBuilder
    def button_with_icon(text , icon)
     object_name = self.object_name
     return "&lt;button id='#{object_name}_submit' class = 'ui-corner-all fg-button ui-state-default fg-button-icon-left' type='submit' name='commit'&gt;&lt;span class='ui-icon ui-icon-#{icon}'&gt;&lt;/span&gt;#{text}&lt;/button&gt;"
    end
end</pre>
<p style="text-align: left;">Now In my View I can put:</p>
<pre style="text-align: left;">&lt;%=  f.button_with_icon("Generate Secure Email", "mail-closed") %&gt;</pre>
<p style="text-align: left;">And I get my perfectly formatted button complete with an Icon!</p>
<p style="text-align: center;"><img class="alignnone" title="jQuery UI Button with rails" src="http://www.thinkbohemian.com/wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-8.54.35-PM.png" alt="jQuery UI Button with rails" width="185" height="38" /></p>
<hr style="text-align: center;" />
<p style="text-align: left;">Note:</p>
<pre style="text-align: left;">&lt;% form_for :person, @person, :url =&gt; { :action =&gt; "create" } do |f| %&gt;
    &lt;%= f.object_name %&gt;
&lt;% end %&gt;</pre>
<p style="text-align: left;">will print out &#8220;person&#8221;, thats why in the helper we call  self.object_name on the <a href="http://caboo.se/doc/classes/ActionView/Helpers/FormBuilder.html">form_builder class.</a> Pretty cool huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkbohemian.com/2009/10/12/custom-jquery-ui-rails-button-form-helper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
