<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rails: The Panda Way</title>
	<atom:link href="http://pandawithrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pandawithrails.wordpress.com</link>
	<description>Edge Rails is like bamboo...</description>
	<lastBuildDate>Fri, 20 Nov 2009 19:24:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='pandawithrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/22d6ce87aac52ee86679de314f501a5f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Rails: The Panda Way</title>
		<link>http://pandawithrails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://pandawithrails.wordpress.com/osd.xml" title="Rails: The Panda Way" />
	<atom:link rel='hub' href='http://pandawithrails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Updating bundled gems</title>
		<link>http://pandawithrails.wordpress.com/2009/11/20/updating-bundled-gems/</link>
		<comments>http://pandawithrails.wordpress.com/2009/11/20/updating-bundled-gems/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:24:55 +0000</pubDate>
		<dc:creator>pandawithrails</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[Bundler]]></category>
		<category><![CDATA[Rails3]]></category>

		<guid isPermaLink="false">http://pandawithrails.wordpress.com/?p=41</guid>
		<description><![CDATA[Just a moment ago we have build and installed Rails3 gems (+mysql gem): ~/projects/edge[master]$ gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.pre) actionpack (3.0.pre) activemodel (3.0.pre) activerecord (3.0.pre) activeresource (3.0.pre) activesupport (3.0.pre) arel (0.2.pre) bundler (0.7.0) erubis (2.6.5) mysql (2.8.1) rack (1.0.1) rack-mount (0.2.0) rack-test (0.5.2) rails (3.0.pre) rake (0.8.7) rubygems-update (1.3.5) But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=41&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a moment ago we have build and installed Rails3 gems (+mysql gem):</p>
<pre>~/projects/edge[master]$ gem list</pre>
<pre>*** LOCAL GEMS ***</pre>
<pre>abstract (1.0.0)
actionmailer (3.0.pre)
actionpack (3.0.pre)
activemodel (3.0.pre)
activerecord (3.0.pre)
activeresource (3.0.pre)
activesupport (3.0.pre)
arel (0.2.pre)
bundler (0.7.0)
erubis (2.6.5)
mysql (2.8.1)
rack (1.0.1)
rack-mount (0.2.0)
rack-test (0.5.2)
rails (3.0.pre)
rake (0.8.7)
rubygems-update (1.3.5)</pre>
<p>But wait a minute! After just one day our edge application stopped to be that edgy:</p>
<pre>~/projects/edge[master]$ ls -1 vendor/gems/gems/
~/projects/edge[master]$ ls -1 vendor/gems/gems/
abstract-1.0.0
actionmailer-3.0.pre
actionpack-3.0.pre
activemodel-3.0.pre
activerecord-3.0.pre
activeresource-3.0.pre
activesupport-3.0.pre
arel-0.1.2
erubis-2.6.5
multimap-1.0.2
mysql-2.8.1
rack-1.0.1
rack-mount-0.0.1
rack-test-0.5.2
rails-3.0.pre
rake-0.8.7</pre>
<p>There is a quick remedy for that:</p>
<pre>~/projects/edge[master]$ gem bundle --update
Calculating dependencies...
Updating source: http://gems.rubyforge.org
Downloading rack-mount-0.0.2.gem
Installing rack-mount (0.0.2)
Deleting gem: rack-mount (0.0.1)
Deleting gem: multimap (1.0.2)
Done.</pre>
<p>And voila!</p>
<pre>~/projects/edge[master]$ ls -1 vendor/gems/gems/
abstract-1.0.0
actionmailer-3.0.pre
actionpack-3.0.pre
activemodel-3.0.pre
activerecord-3.0.pre
activeresource-3.0.pre
activesupport-3.0.pre
arel-0.2.pre
erubis-2.6.5
mysql-2.8.1
rack-1.0.1
rack-mount-0.0.2
rack-test-0.5.2
rails-3.0.pre
rake-0.8.7</pre>
<p>&nbsp;</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:929px;width:1px;height:1px;">
<pre>~/projects/rails[master]$ git pull</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pandawithrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pandawithrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pandawithrails.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=41&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pandawithrails.wordpress.com/2009/11/20/updating-bundled-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e37163409af6331f485cd2311567b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pandawithrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Rails3 gems</title>
		<link>http://pandawithrails.wordpress.com/2009/11/20/building-rails3-gems/</link>
		<comments>http://pandawithrails.wordpress.com/2009/11/20/building-rails3-gems/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:11:48 +0000</pubDate>
		<dc:creator>pandawithrails</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[Rails3]]></category>
		<category><![CDATA[RubyMine]]></category>

		<guid isPermaLink="false">http://pandawithrails.wordpress.com/?p=38</guid>
		<description><![CDATA[Although I would not need to install gems globally having them bundled with my application, the IDE I currently test (RubyMine) was rather dissatisfied until I finally did gem install. Latest Rails3 depends on arel 0.2.pre which has now separate GitHub repository. So let&#8217;s install arel first: ~/projects[]$ git clone git://github.com/brynary/arel.git ~/projects[]$ cd arel ~/projects/arel[master]$ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=38&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although I would not need to install gems globally having them <a href="http://pandawithrails.wordpress.com/2009/11/19/setting-up-a-new-rails3-application/">bundled with my application</a>, the IDE I currently test (<a href="http://www.jetbrains.com/ruby/" target="_blank">RubyMine</a>) was rather dissatisfied until I finally did <code>gem install</code>.</p>
<p>Latest Rails3 depends on <code>arel 0.2.pre</code> which has now <a href="http://github.com/brynary/arel" target="_blank">separate GitHub repository</a>. So let&#8217;s install <code>arel</code> first:</p>
<pre>~/projects[]$ git clone git://github.com/brynary/arel.git
~/projects[]$ cd arel
~/projects/arel[master]$ gem build arel.gemspec
 ~/projects/arel[master]$ gem install arel-0.2.pre.gem</pre>
<p>And now let&#8217;s build Rails3 in installable gems:</p>
<pre>~/projects/arel[master]$ cd ../rails
~/projects/rails[master]$ git pull
~/projects/rails[master]$ rake gem
(in /home/kamil/projects/rails)
(in /home/kamil/projects/rails/activesupport)
Successfully built RubyGem
Name: activesupport
Version: 3.0.pre
File: activesupport-3.0.pre.gem
mv activesupport-3.0.pre.gem pkg/activesupport-3.0.pre.gem
(in /home/kamil/projects/rails/actionpack)
WARNING:  deprecated autorequire specified
Successfully built RubyGem
Name: actionpack
Version: 3.0.pre
File: actionpack-3.0.pre.gem
mv actionpack-3.0.pre.gem pkg/actionpack-3.0.pre.gem
(in /home/kamil/projects/rails/actionmailer)
WARNING:  deprecated autorequire specified
Successfully built RubyGem
Name: actionmailer
Version: 3.0.pre
File: actionmailer-3.0.pre.gem
mv actionmailer-3.0.pre.gem pkg/actionmailer-3.0.pre.gem
(in /home/kamil/projects/rails/activeresource)
WARNING:  deprecated autorequire specified
Successfully built RubyGem
Name: activeresource
Version: 3.0.pre
File: activeresource-3.0.pre.gem
mv activeresource-3.0.pre.gem pkg/activeresource-3.0.pre.gem
(in /home/kamil/projects/rails/activerecord)
WARNING:  deprecated autorequire specified
Successfully built RubyGem
Name: activerecord
Version: 3.0.pre
File: activerecord-3.0.pre.gem
mv activerecord-3.0.pre.gem pkg/activerecord-3.0.pre.gem
(in /home/kamil/projects/rails/activemodel)
Successfully built RubyGem
Name: activemodel
Version: 3.0.pre
File: activemodel-3.0.pre.gem
mv activemodel-3.0.pre.gem pkg/activemodel-3.0.pre.gem
(in /home/kamil/projects/rails/railties)
mkdir -p pkg
WARNING:  bin/rails is missing #! line
Successfully built RubyGem
Name: rails
Version: 3.0.pre
File: rails-3.0.pre.gem
mv rails-3.0.pre.gem pkg/rails-3.0.pre.gem</pre>
<p>As you can see there were some warnings, but nothing to be worried about. Let&#8217;s test the installation (sequence is important because of dependencies):</p>
<pre>~/projects/rails[master]$ gem install activesupport/pkg/activesupport-3.0.pre.gem
~/projects/rails[master]$ gem install activemodel/pkg/activemodel-3.0.pre.gem
~/projects/rails[master]$ gem install actionpack/pkg/actionpack-3.0.pre.gem
~/projects/rails[master]$ gem install actionmailer/pkg/actionmailer-3.0.pre.gem
~/projects/rails[master]$ gem install activemodel/pkg/activemodel-3.0.pre.gem</pre>
<pre>~/projects/rails[master]$ gem install activerecord/pkg/activerecord-3.0.pre.gem
~/projects/rails[master]$ gem install activeresource/pkg/activeresource-3.0.pre.gem
~/projects/rails[master]$ gem install railties/pkg/rails-3.0.pre.gem
~/projects/rails[master]$ gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.pre)
actionpack (3.0.pre)
activemodel (3.0.pre)
activerecord (3.0.pre)
activeresource (3.0.pre)
activesupport (3.0.pre)
arel (0.2.pre)
bundler (0.7.0)
erubis (2.6.5)
rack (1.0.1)
rack-mount (0.2.0)
rack-test (0.5.2)
rails (3.0.pre)
rake (0.8.7)
rubygems-update (1.3.5)</pre>
<p>Only mysql is missing to satisfy RubyMine:</p>
<pre>~/projects/rails[master]$ gem install mysql
</pre>
<p>And we now have all the same gems we bundled yesterday with the application.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pandawithrails.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pandawithrails.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pandawithrails.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=38&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pandawithrails.wordpress.com/2009/11/20/building-rails3-gems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e37163409af6331f485cd2311567b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pandawithrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up a new Rails3 application</title>
		<link>http://pandawithrails.wordpress.com/2009/11/19/setting-up-a-new-rails3-application/</link>
		<comments>http://pandawithrails.wordpress.com/2009/11/19/setting-up-a-new-rails3-application/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 22:17:38 +0000</pubDate>
		<dc:creator>pandawithrails</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[Bundler]]></category>
		<category><![CDATA[Rails3]]></category>

		<guid isPermaLink="false">http://pandawithrails.wordpress.com/?p=26</guid>
		<description><![CDATA[After doing some initial work to get Ruby 1.9.1 working, now it is time to get the application set up. I started with Dr. Nic&#8217;s post and experimented a little. Here is how it goes: ~/projects[]$ rvm use 1.9.1 &#60;i&#62; Now using ruby 1.9.1 p243 &#60;/i&#62; Then the newest Rails: ~/projects[]$ git clone git://github.com/rails/rails.git ~/projects[]$ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=26&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After doing some <a href="http://pandawithrails.wordpress.com/2009/11/17/ruby-1-9-1-with-rvm/">initial work to get Ruby 1.9.1 working</a>, now it is time to get the application set up. I started with <a href="http://drnicwilliams.com/2009/11/03/first-look-at-rails-3-0-pre/" target="_blank">Dr. Nic&#8217;s post</a> and experimented a little. Here is how it goes:</p>
<pre>~/projects[]$ rvm use 1.9.1
&lt;i&gt; Now using ruby 1.9.1 p243 &lt;/i&gt;</pre>
<p>Then the newest Rails:</p>
<pre>~/projects[]$ git clone git://github.com/rails/rails.git
~/projects[]$ ruby rails/railties/bin/rails -v
Rails 3.0.pre</pre>
<p>To generate an application (let&#8217;s call it <code>edge</code>), the usual command is there:</p>
<pre>~/projects[]$ ruby rails/railties/bin/rails edge -d mysql</pre>
<p>Git is an awesome SCM system and now it is the right time to init version control:</p>
<pre>~/projects/edge[]$ git init
~/projects/edge[master]$ cat .gitignore
*.log
~/projects/edge[master]$ git add .
~/projects/edge[master]$ git commit -m 'Generated new app with rails edge -d mysql'
</pre>
<p>One of the first niceties that welcome you in Rails3 is bundler. Just like <code>rake gems:unpack</code> it allows for bundling all the gems with your application, so you do not need to install gems everywhere you develop/deploy your application. Only bundler is more flexible. For now just the basics:</p>
<pre>~/projects[]$ cd edge/
~/projects/edge[]$ cat Gemfile
# Edit this Gemfile to bundle your application's dependencies.

gem "rails", "3.0.pre"

## Bundle edge rails:
# gem "rails", :git =&gt; "git://github.com/rails/rails.git"

## Bundle the gems you use:
# gem "bj"
# gem "hpricot", "0.6"
# gem "sqlite3-ruby", :require_as =&gt; "sqlite3"
# gem "aws-s3", :require_as =&gt; "aws/s3"

## Bundle gems used only in certain environments:
# gem "rspec", :only =&gt; :test
# only :test do
#   gem "webrat"
# end</pre>
<p>As you can see, you can even define gems needed for separate environments!</p>
<p>For now I just use the most basic gems:</p>
<pre>~/projects/edge[]$ cat Gemfile
gem "rack",       "~&gt; 1.0.1"
gem "rack-mount",            :git =&gt; "git://github.com/rails/rack-mount.git"
gem "rack-test",             :git =&gt; "git://github.com/brynary/rack-test.git"
gem "rake",       "~&gt; 0.8.7"
gem "arel",                  :git =&gt; "git://github.com/rails/arel.git"
gem "abstract",   "~&gt; 1.0.0"
gem "erubis",     "~&gt; 2.6.5"
gem "mysql",      "~&gt; 2.8.1"
gem "rails",      "3.0.pre", :git =&gt; "git://github.com/rails/rails.git"</pre>
<p>But to use the bundler it has to be installed first:</p>
<pre>~/projects/edge[master]$ gem install bundler</pre>
<p>And before I bundle the application gems, I will follow <a href="http://github.com/wycats/bundler" target="_blank">the advice</a> and git-ignore some more directories:</p>
<pre>~/projects/edge[master]$ cat .gitignore
*.log
bin/*
vendor/gems/*
!vendor/gems/cache/</pre>
<p>Using bundler is as easy as running:</p>
<pre>~/projects/edge[master]$ gem bundle
Calculating dependencies...
Cloning git repository at: git://github.com/rails/rack-mount.git
Cloning git repository at: git://github.com/brynary/rack-test.git
Cloning git repository at: git://github.com/rails/arel.git
Cloning git repository at: git://github.com/rails/rails.git
Updating source: http://gems.rubyforge.org
Downloading abstract-1.0.0.gem
Downloading erubis-2.6.5.gem
Downloading multimap-1.0.2.gem
Downloading mysql-2.8.1.gem
Downloading rack-1.0.1.gem
Downloading rake-0.8.7.gem
Installing multimap (1.0.2)
Building native extensions.  This could take a while...
Installing rake (0.8.7)
Installing mysql (2.8.1)
Building native extensions.  This could take a while...
Installing abstract (1.0.0)
Installing erubis (2.6.5)
Installing rack (1.0.1)
Done.</pre>
<p>After:</p>
<pre>~/projects/edge[master]$ git add . &amp;&amp; git commit -m 'Bundled initial gems'</pre>
<p>we are finished for this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pandawithrails.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pandawithrails.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pandawithrails.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=26&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pandawithrails.wordpress.com/2009/11/19/setting-up-a-new-rails3-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e37163409af6331f485cd2311567b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pandawithrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby 1.9.1 with rvm</title>
		<link>http://pandawithrails.wordpress.com/2009/11/17/ruby-1-9-1-with-rvm/</link>
		<comments>http://pandawithrails.wordpress.com/2009/11/17/ruby-1-9-1-with-rvm/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 23:52:01 +0000</pubDate>
		<dc:creator>pandawithrails</dc:creator>
				<category><![CDATA[Setup]]></category>
		<category><![CDATA[Rails2]]></category>
		<category><![CDATA[Rails3]]></category>
		<category><![CDATA[Ruby 1.9]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://pandawithrails.wordpress.com/?p=12</guid>
		<description><![CDATA[Since both planned applications will be using Ruby 1.9.1 and for my everyday&#8217;s work I have 1.8.7 installed, the best solution would be to use rvm to easy switch between versions. The rvm documentation is pretty straightforward, so let&#8217;s just get started: ~/projects[]$ sudo gem install rvm Successfully installed rvm-0.0.78 1 gem installed ~/projects[]$ rvm-install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=12&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since both <a href="http://pandawithrails.wordpress.com/about/">planned applications</a> will be using Ruby 1.9.1 and for my everyday&#8217;s work I have 1.8.7 installed, the best solution would be to use <a href="http://github.com/wayneeseguin/rvm" target="_blank">rvm</a> to easy switch between versions. The <a href="http://rvm.beginrescueend.com/install/" target="_blank">rvm documentation</a> is pretty straightforward, so let&#8217;s just get started:</p>
<pre>~/projects[]$ sudo gem install rvm
Successfully installed rvm-0.0.78
1 gem installed
~/projects[]$ rvm-install
~/projects[]$ source ../.rvm/bin/rvm
~/projects[]$ rvm install 1.9.1
...
&lt;i&gt; Extracting ruby-1.9.1-p243 ... &lt;/i&gt;  
&lt;i&gt; Configuring ruby-1.9.1-p243, this may take a while depending on your cpu(s)... &lt;/i&gt;  
&lt;i&gt; Compiling ruby-1.9.1-p243, this may take a while, depending on your cpu(s)... &lt;/i&gt;  
&lt;i&gt; Installing ruby-1.9.1-p243 &lt;/i&gt;  
&lt;i&gt; Installation of ruby-1.9.1-p243 is complete. &lt;/i&gt;  
&lt;i&gt; Updating rubygems for ruby-1.9.1-p243 &lt;/i&gt;  
&lt;i&gt; Installing gems for ruby-1.9.1-p243. &lt;/i&gt;  
&lt;i&gt; Installing rake &lt;/i&gt;  
&lt;i&gt; Installation of gems for ruby-1.9.1-p243 is complete. &lt;/i&gt;</pre>
<p>The good thing about rvm is it installs the desired Ruby version from source. It also keeps separate gem repositories.</p>
<p>From now on we can do <code>rvm use</code> to switch between system version (1.8.7) and 1.9.1:</p>
<pre>~/projects[]$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
~/projects[]$ gem list

*** LOCAL GEMS ***

&lt;VERY LONG LIST HERE&gt;
~/projects[]$ rvm use 1.9.1
&lt;i&gt; Now using ruby 1.9.1 p243 &lt;/i&gt;
~/projects[]$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
~/projects[]$ gem list

*** LOCAL GEMS ***

rake (0.8.7)
rubygems-update (1.3.5)

~/projects[]$ rvm use default
no default rvm specified, defaulting to pre-rvm system.
~/projects[]$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
</pre>
<p>So, Ruby 1.9 is ready to use. It is worth to mention, that, if you use more sophisticated IDEs like <a href="http://netbeans.org" target="_blank">Netbeans</a> or <a href="http://www.jetbrains.com/ruby/" target="_blank">RubyMine</a>, it is better to start them from the same console, where you have just rvm-switched to your working Ruby version &#8211; at least at the first time, for project setup.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pandawithrails.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pandawithrails.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pandawithrails.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pandawithrails.wordpress.com&amp;blog=10549491&amp;post=12&amp;subd=pandawithrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://pandawithrails.wordpress.com/2009/11/17/ruby-1-9-1-with-rvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e37163409af6331f485cd2311567b6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pandawithrails</media:title>
		</media:content>
	</item>
	</channel>
</rss>
