#105
May 12, 2008

Gitting Rails 2.1 RC1

Rails 2.1 Release Candidate 1 was just released! In this episode I will show you how to install it into your Rails project.
Download (27.7 MB, 6:17)
alternative download for iPod & Apple TV (10.2 MB, 6:17)

Resources

git clone git://github.com/rails/rails.git
git pull
git checkout v2.1.0_RC1
git checkout master
rake rails:update
script/dbconsole

RSS Feed for Episode Comments 62 comments

1. Mikel Lindsaar May 12, 2008 at 00:43

Ryan, thanks for the great episode on GIT! I was hoping you would do one like this and I wasn't disappointed.

Also, thanks to all the sponsors for the grand prize, I really didn't expect to win, but it is a lot of fun helping others and I am glad I could help and help other people learn more about rails!

Mikel


2. James May 12, 2008 at 00:44

Woot! I'm the first!

(@_@)


3. James May 12, 2008 at 00:48

(ò_ô) What!!

@Mikel, congrats!


4. Russell Jones May 12, 2008 at 00:58

Awesome episode Ryan, thanks. One note: I couldn't find the link to your contest results anywhere on your homepage, though i was able to derive it from the screenshot at the tail end of this episode.


5. Trevor Turk May 12, 2008 at 06:54

Note that you can use the depth option in git to keep your "frozen" vendored much smaller by not downloading all of the project history:

git clone git://github.com/rails/rails.git --depth 1


6. Ryan Bates May 12, 2008 at 07:39

@Russell, I added a link in the show notes, hopefully that will be okay.

@Trevor, you're right, good point!


7. Fred May 12, 2008 at 08:48

Why is this better than "sudo gem install rails –source http://gems.rubyonrails.com?"

An obviously non-programmer newbie.


8. Peter Jackson May 12, 2008 at 09:33

@Fred: There are a few reasons.

First, I'm not certain that the RC is available as a gem yet.

Even is if is, there are a couple reasons this might be better.

1. You don't want to upgrade every app running on your machine before you've had a chance to check out how the new framework will affect your code. So installing Rails into the vendor directory is a little "safer" in that it breaks one app instead of all of your apps.

2. A lot of rubyists are on shared hosts and can't run "sudo gem install" anything.

 


9. Ryan Bates May 12, 2008 at 11:51

@Fred, that should work too, and I should have mentioned it. I just prefer to update an individual project through the vendor directory so I don't unintentionally update another project. At least until the final 2.1 is released.


10. Fred May 12, 2008 at 11:51

@Peter

Thanks for the answers. Glad I asked. I'm trying to get started with Rails (working through Agile...) and hard to figure out how all the Rails and Ruby pieces fit together particularly since so many new pieces being developed: Merb, Rubinus, Passenger, Rack, Mongrel, RSpec, Mephisto etc. Trying to figure out what I need to pay attention to and what I don't.


11. Mike Wyatt May 12, 2008 at 12:11

I'm getting this error when I try to run anything like the about, console or server scripts

/Library/Ruby/Site/1.8/rubygems.rb:139:in `activate':Gem::Exception: can't activate activesupport (>= 1.4.1), already activated activesupport-2.0.991]


12. Bjarki May 12, 2008 at 15:10

Nice episode as always :) I have watched all your episode and as a result I have learned a whole lot about how to develop Rails applications. I have been trying these past days to find a good tutorial on how to upload files, images to be exact :). Is it possible you could do an episode on how to do this in Rails 2.1 in the near future? I have done a little experimenting with Django and uploading images there is very simple. I have followed a few Rails examples on this but they seem out-dated and "hackish". Sorry about the long comment, keep up the excellent work. I look forward to a new episode every Monday 8-)


13. Abdullah May 12, 2008 at 17:46

The best feature of rails 2.1:
3 railscasts a week.. WOHOO!
go Ryan!


14. Matt May 12, 2008 at 18:12

@Mike

Try removing any other versions of Ruby apart from the one that ships with OS X 10.5. (The MacPorts install of Ruby was occasionally causing this conflict after I upgraded.)


15. Mike Wyatt May 12, 2008 at 21:52

there's no other traces of ruby on my ststem aside from what is shipped with leopard

:(


16. Ryan Bates May 12, 2008 at 22:27

@Mike, interesting, I'm not familiar with that error. Perhaps post it on the mailing list along with the steps took to trigger it.

groups.google.com/group/rubyonrails-talk


17. Sam Aaron May 13, 2008 at 06:54

Hey Ryan,

nice screencast (as always). Is there any chance you could clarify the repercussions of cloning an external git repository (as you suggest) inside a project which itself is already managed by git.?

So far I have been using braid (http://github.com/evilchelu/braid/tree/master) to pull in external git repositories (which I think links to the repositories as a submodule in a separate branch). This is mainly because I assumed there might be issues with storing git repositories within git repositories. However, I may be wrong...

Anway, suffice to say, a lot of this git stuff is still new to me, and probably a lot of other people too :-)


18. Sam Aaron May 13, 2008 at 06:58

Oh, while on the subject of using git to pull in external repositories, this post by Graeme Mathieson might be useful to people:

http://woss.name/2008/04/09/using-git-submodules-to-track-vendorrails/


19. Carl May 13, 2008 at 10:11

Has anyone else noticed anything odd about the sound in some of these episodes (for example this one)? I'm using Quicktime on Windows and at 5:47 seconds there is a small cutout in the sound, and if you look at the timer in the lower left hand corner it stops updating for about 2 seconds and skips to 5:50. There are a couple of other points where it does the same thing, and I've heard in it a few other railscasts, and I'm wondering if it is just my system, can anyone else verify this?


20. David May 13, 2008 at 20:05

Yes, I am using submodules to track all plugins where possible. I like that it keeps a list of everything managed by git in a single .gitmodules file at the root of your main project.


21. Peter Jackson May 19, 2008 at 07:44

@Mike:

/Library/Ruby/Site/1.8/rubygems.rb:139:in `activate':Gem::Exception: can't activate activesupport (>= 1.4.1), already activated activesupport-2.0.991]

I have run into this error frequently. Two things you can do to fix it:

1. If it is an option for you, run 'sudo gem cleanup' to clean out old versions of rails gems.

2. Look for code in your app that extends ActiveRecord. The "Oracle find_rows" patch and the Oracle "prefetch_primary_key" patch are two common culprits. Check environment.rb for anything that messes with AR.

Is your project open-source or sharable? If so, send me a pointer to your repository and I'll take a look.


22. mike wyatt May 23, 2008 at 12:31

for the record, I got my little problem cleared up a couple of days after-the-fact

http://rails.lighthouseapp.com/projects/8994/tickets/176-2-1_rc1-won-t-load-on-stock-leopard-setup#ticket-176-3


23. Lance Ennen May 27, 2008 at 11:06

@Ryan thanks for the screencast!

@Trevor thanks for point out --depth 1

Thanks Steve Purcell for the new script/dbconsole!!


24. slythic Jun 02, 2008 at 15:45

@Bjarki - I agree about an image uploading tutorial. Very necessary and I think one of the last things to make this site complete. :-)


25. OA Jun 03, 2008 at 15:26

An imagine uploading tutorial would be great. In fact, it would be really nice if Ryan could suggest something that would combine attachment_fu's S3 capabilities and fleximage plugin's on-the-fly imaging capabilities.

Looking forward to each and every episode as always :)


26. Steve Purcell Jul 28, 2008 at 00:39

@Lance - you're welcome!


27. rtf Sep 05, 2008 at 02:47

@kino check out
http://www.gitcasts.com/


28. Walter Sep 20, 2008 at 14:18

Hi Ryan.
I have a problem with this episode.
I downloaded the .tar.gz from the github. Extracted it in my vendor directory.

Now I want to use the new rails to make a new rails project but ofcourse it will still use my old rails version.

Also how did you get that dbconsole script in the existing rails project by just pulling that rails dir into the vendor dir baffles me

Basically there must be some commands I'm missing...

Kind regards and keep up the excellent work!


29. Walter Sep 23, 2008 at 12:30

Ok after installing the acts_as_list gem I was good to go with porting my app. Now to update my actual rails install I followed this:

http://wiki.rubyonrails.org/rails/pages/HowtoUpgrade

Now when I run rails NewCoolProject I do get the dbconsole etc...

Might help others ;)


30. Chat_ Nov 26, 2008 at 13:15

Thanks Ryan,I think this is one of the most wonderful sites. I have great admiration for you. :p


31. Toplist Jan 15, 2009 at 15:14

thank you for sharing..


32. kale kasa Mar 08, 2009 at 06:14

The massively-multiplayer online role playing game World of Warcraft, or WoW as it is affectionately known, is a gaming experience that transcends boundaries and nations. Worldwide, there are over 8 million subscribers playing this game at this time, with player from almost every continent sharing adventures in the magical realm of Azeroth.


33. halimdiktas May 06, 2009 at 02:25

thanks


34. Muhabbet Odaları May 18, 2009 at 00:25

thankss


35. kllk123 Jun 01, 2009 at 22:19

wow power leveling
wow power leveling
wow powerleveling
wow powerleveling
cheap wow powerleveling
cheap wow power leveling
powerleveling
world of warcraft power leveling
world of warcraft power leveling
power leveling
power leveling

power leveling
power level
wow power level
powerleveling
wow powerleveling
world of warcraft power leveling

Badge of Justice power leveling
Badge of Justice powerleveling
Badge of Justice powerleveling
Badge of Justice pl
WoW Badge of Justice
WoW Badge of Justice
WoW Badge of Justice powerleveling
WoW Badge of Justice powerleveling
Cheap Badge of Justice power leveling

Honor Power Leveling
Honor Power Leveling
Honor Powerleveling
Honor Powerleveling
WoW Honor Powerleveling
WoW Honor Powerleveling
WoW Honor Power Leveling
WoW Honor Power Leveling
PVP Honor Powerleveling
PVP Honor Powerleveling
Honor Points Powerleveling
Honor Points Powerleveling
Cheap Honor Powerleveling
Cheap Honor Powerleveling
Honor Power Level
Honor Power Level

AOC Powerleveling
AOC Powerleveling
AOC Power leveling
AOC Power leveling
Age of Conan Powerleveling
Age of Conan Powerleveling
Age of Conan Power leveling
Buy AOC Powerleveling
Cheap AOC Powerleveling
aion Powerleveling
buy aion Powerleveling

click here
http://www.gamesgoto.com


36. mabel Jun 16, 2009 at 02:15

http://www.idolreplicas.com


37. mabel Jun 16, 2009 at 02:16

<a href="http://www.idolreplicas.com">replica watches</a>


38. indir Aug 31, 2009 at 15:41

I am always been a great fan of your railscast. Keep up the good work.

Wow, is freedom of speech against the law over there in India like it is now in the US under the Bush Regime? Wow,

Im shocked!

http://www.indirbir.com
http://www.oyunindirt.com
http://www.kalpsohbet.com
http://www.ezgili.net
http://www.mp3muzikler.net
http://oyunindir.indirbir.com


39. fidancılık Oct 15, 2009 at 13:08

thanks!


40. tibiaggold Oct 19, 2009 at 22:40

tibia gold
http://www.10minget.com
[url=http://www.10minget.com/tibia.htm]tibia gold[/url]

[url=http://www.10minget.com]cheap tibia gold[/url]
[url=http://www.10minget.com/tibia.htm]tibia item[/url]
[url=http://www.10minget.com/tibia.htm]tibia Accounts[/url]
[url=http://www.tibiamoney.com]tibia leveling[/url]
buy Tibia Gold cheap on http://www.10minget.com


41. Lisa Oct 30, 2009 at 08:11

ShopStarStyle.com Handbag Clearance Sale - 50% Off! CHANEL * PRADA * FENDI * GUCCI * LV

Shop Star Style takes an extra 50% off your next purchase via coupon "MERRYXMAS". Find the perfect gifts for your friends and family! Coupon expires December 15, 2009.

http://www.shopstarstyle.com


42. fashion handbags Nov 02, 2009 at 00:16

Thanks for you sharing!
www.netbigshopping.com


43. replica watch Nov 02, 2009 at 04:10

Watch box
http://www.showmywatch.com/original-packing-sets-c-26.html
AP swiss watches
http://www.showmywatch.com/audemars-piguet-c-21.html
Breitling watch
http://www.showmywatch.com/breitling-c-5.html
Tag watch
http://www.showmywatch.com/tag-heuer-c-18.html
Omega watch
http://www.showmywatch.com/omega-c-13.html
Panerai watch
http://www.showmywatch.com/panerai-c-15.html
IWC watch


44. psikolog Nov 12, 2009 at 03:36

thank you.


45. güzel sözler Nov 12, 2009 at 03:38

Python > Rails


46. replica watch Nov 12, 2009 at 22:06

<a href="http://www.showmywatch.com/audemars-piguet-c-21.html"> eta watch</a>
<a href="http://www.showmywatch.com/omega-original-leather-box-set-p-1108.html"> omega watch box</a>,
<a href="http://www.showmywatch.com/breitling-c-5.html"> Breitling Watches</a>
<a href="http://www.showmywatch.com/"> Panerai Replica Watches</a>
<a href="http://www.showmywatch.com/">Rolex Replica</a>
<a href="http://www.showmywatch.com/panerai-original-wooden-box-set-p-1110.html">Panerai watch box</a>
<a href="http://www.showmywatch.com/tag-heuer-c-18.html"> rolex replica</a>
<a href="http://www.showmywatch.com/omega-c-13.html"> fake rolex</a>
<a href="http://www.watchtang.com/omega-c-13.html"> Omega Watches</a>
<a href="http://www.watchtang.com/panerai-c-15.html"> Panerai Replica Watches</a>
<a href="http://www.watchtang.com/rolex-datejust-c-56.html">Rolex Replica</a>
<a href="http://www.watchtang.com/original-packing-sets-c-26.html">watch boxes</a>
<a href="http://www.watchtang.com/rolex-submariner-c-20.html">Swiss eta watch</a>


47. lez sohbet Nov 22, 2009 at 04:30

I`m lez sohbet odalari thnks :)


49. GrupMezar Nov 24, 2009 at 13:13

araniyor, GrupMezarCom djarayan, djler, djlik, dost, dostluk, dostluk burada, duyuru, duyurular, e klavye, e zurna, eglence dedikodu, ehirler sohbet, ekip, emirc, enbeyaz, enkralsohbet, eschat, eschat applet, etleme, exit help founder, film izle, fixmirc, , form, forum, forum sohbet, foruma yekili alm , indiremedim, irc, irc e klavyenet, irc forum admin, irc sohbet, ircaskimcomtr, ircchatkeyfigentr, ircd, ircdiyarcanet, irce zurnanet, irceschatgentr, ircforum, ircimkansizorg, irckacakgentr, ircmirc06com, ircmirctrde, ircmircturkcom, ircop, ircop alinacaktr, ircop olmak istiyorum, ircoper, ircperilerulkesicom, ircsizcenet, ircsohbetcorg, ircsohbetor, ircsohpetcetcom, irctryizcom, islam, islami, islami forum, isp, istek, kalite, kameralichat, kameralisohbet, kanada, kanal, kanal operatorleri, kanka, kanki, kankim, kankimnet, kaos, karahanonline trcom, kefy, kelebek, kelebekorg, kentlog, keyifciyiznet, kilit, kiralk, kiralk irc, kiralk server, kiralk sunucu, kirazimm, klavyefinal, konyachat, kralsohbet, kuazaorg, kzlarla sohbet, laflasana, liderchat, link, link alimi, link alm, link askturknet alimlari, link shell, linkli site, lnx, ltfen 0kuyun , matraknet, matraknetcom, metrofm, min, mirc, GrupMezar download, mirc indir, mirc ndir, mirc siteleri, mirc sohbet, mirc sunuculari, mirc turk, mirc yukle, mirccluborg, mircindir, mircindirnet, mircnoktasi, mircteyiz, mirctr, mirctrnet, mircturkecom adminircop alm, mircyukle, modasohbet, moderatr, mrc, msn, muhabbet, muhabbet muhabbett, muhabbet
Www.GrupMezar.Com


49. GrupMezar Nov 24, 2009 at 13:27

Www.GrupMezar.Com
thanks.


50. konyachat Nov 26, 2009 at 04:22

thanks admin


51. konyachat Nov 26, 2009 at 04:23

thanks admin


52. bobjuck Dec 23, 2009 at 23:41

Welcome to our website,http://www.progiftstore.com, we are professional watch maker who can provide you with a variety of replica watches, these replica watches are high quality and are sold at a cheap price.


53. nikeoutlet Jan 12, 2010 at 00:14

Great post,Hope to see your next better post.


54. wholesale nike shoes Jan 13, 2010 at 23:25

A very good article, I will always come in.


55. fashion scarves Jan 13, 2010 at 23:25

Such a good article, caught my sympathy!
-


56. lez sohbet Jan 15, 2010 at 03:37

thnkas you


57. chris Jan 16, 2010 at 01:31

Once she was satisfied, she jumped out of her chair and headed to the comm shack <a href="http://www.linksoflondonhut.com/">links of london jewellery</a>, pushing past Rynyan, who was loitering in the hatchway and clearly relished the close contact <a href="http://www.linkslondonhut.com/">links of london</a>. I'm caUing for the beam. Sooner you two dreamers are out of my hair, the better. And out of my head <a href="http://www.linksoflondonhut.co.uk/">Links of London sale </a>.


58. linksjuy Jan 20, 2010 at 00:57

What a fantastic read, thank you for this.


59. Alevivizyon Jan 20, 2010 at 08:07

Alevivizyon Kadim Aevi Platformu

http://www.alevivizyon.com/

Alevizyon Gerçek Haber

http://www.alevizyon.com/


60. Alevizyon Jan 20, 2010 at 16:17

thanks admin


61. charms Jan 22, 2010 at 00:18

<span class="xl24">The same links of london collections, but I can find the <a
  href="http://www.linkslondonhut.com/"><strong>cheap links of london</strong></a> on the internet, I have ordered some <a
  href="http://www.linkslondonhut.com/Linksoflondon_Category_3.html"><strong>links of
london necklaces</strong></a> and <a
  href="http://www.linkslondonhut.com/Linksoflondon_Category_6.html"><strong>links of
london earrings</strong></a>. </span>


62. linksoflondon Jan 30, 2010 at 03:42

What a fantastic read, thank you for this. .....

Add your comment:

(SKIP THIS ONE)

(required)

(not shown)


(use pastie or gist for code)

sponsored by:
if you want to help:
required:
Get Quicktime Player
Give Back to Open Source