Hello Forum, I would like to play and learn Rails with Ruby I heard of the so called Ruby on Rails. I recently purchased two ruby/rail books: Rails Recipes (Pragmatic Programmers) and Ruby for Rails: Ruby Techniques for Rails Developers. I installed Ruby 1.8.5 under Windows/XP and under AIX 5.3. However, I now would like to installed Rails. The problem is that I am not sure if the current version of Rails (whatever that is) is compatible with Ruby 1.8.5. Can anyone tell me the best approach to combine Ruby and Rails together? Is there a one-click installer of both? Thank you
on 16.09.2006 19:02
on 16.09.2006 19:10
Victor Reyes wrote: > Hello Forum, > I would like to play and learn Rails with Ruby > I heard of the so called Ruby on Rails. > I recently purchased two ruby/rail books: Rails Recipes (Pragmatic > Programmers) and Ruby for Rails: Ruby Techniques for Rails Developers. > > I installed Ruby 1.8.5 under Windows/XP and under AIX 5.3. However, I now > would like to installed Rails. Get 1.8.4 as far as I know 1.8.5 has some minor changes that breaks current stable rails. I just read it somewhere but forgot. I hope I dont tell crap here. Get latest rails. I dont know how to install under windows xp or AIX. AIX is some IBM Unix derivate as far as I remember. I used this guide to install it under OS X 10.4 http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger it might help you too cause many things might be simliar and the guide compiles things from sources anyway. You ll need GCC (I guess 4.0 will do it best) though. > The problem is that I am not sure if the current version of Rails (whatever > that is) is compatible with Ruby 1.8.5. > Can anyone tell me the best approach to combine Ruby and Rails together? 1.8.4 ruby and 1.16 rails works fine. > Is there a one-click installer of both? Maybe for windows. Regards Jonas
on 16.09.2006 19:22
On 9/16/06, Victor Reyes <victor.reyes@gmail.com> wrote: > (whatever > that is) is compatible with Ruby 1.8.5. > Can anyone tell me the best approach to combine Ruby and Rails together? > Is there a one-click installer of both? > > Thank you From RubyonRails.org: We recommend Ruby 1.8.4 for use with Rails. Ruby 1.8.2 is fine too, but version 1.8.3 is not. Should probably stick with1.8.4 for now. Install RubyGems http://docs.rubygems.org/ --> download and run " ruby setup.rb " Then run " gem install rails " This will give you the latest build. " gem update rails " will update to the latest build This should get you set up.
on 17.09.2006 00:33
Thank you Jonas and "RubyonRails.org" for your help. I got ruby and rubygems/rails installed. Thank you Victor
on 17.09.2006 01:09
They probably just didn't update that page since 1.8.5 recently came out. I'm running 1.8.5 with Rails 1.1.6 fine.
on 17.09.2006 01:21
I will try 1.8.5. I wonder if I need to uninstall 1.8.4 first and start from scratch. I actually don't mind to start from scratch since I have not done anything yet. Thank you Victor
on 18.09.2006 21:47
On 9/16/06, Victor Reyes <victor.reyes@gmail.com> wrote: > I will try 1.8.5. I wonder if I need to uninstall 1.8.4 first and start from > scratch. > I actually don't mind to start from scratch since I have not done anything > yet. > I think the problem with 1.8.5 is with breakpoint, which can be important for debugging Rails apps, but there is a patch available that fixes it (I think).
on 18.09.2006 22:25
I got 1.8.5 and RubyGems installed. Now I just need to find what to do with them. I guess I will follow one of the examples on the books I purchased. Thank you all for your help. Victor
on 19.09.2006 11:50
On Tue, Sep 19, 2006 at 04:47:23AM +0900, Gregory Brown wrote: > On 9/16/06, Victor Reyes <victor.reyes@gmail.com> wrote: > >I will try 1.8.5. I wonder if I need to uninstall 1.8.4 first and start > >from scratch. I actually don't mind to start from scratch since I have not > >done anything yet. > > > I think the problem with 1.8.5 is with breakpoint, which can be > important for debugging Rails apps, but there is a patch available > that fixes it (I think). breakpoint (actually, Binding.of_caller, which it depended on) relies on a bug in Ruby that was fixed in 1.8.5 [1]. If you want to keep debugging using breakpoints under 1.8.5, there are two possibilities: * use ruby-debug [2] * use call_stack's alternative Binding.of_caller [3]. If you choose the latter, all you have to do is load breakpoint185.rb in your server, e.g. ruby -rbreakpoint185 script/server and proceed as usual (see [3] for information relevant to RubyGems users, though). 1. http://eigenclass.org/hiki.rb?breakpoint+breaking+in+1.8.5 2. http://raa.ruby-lang.org/project/ruby-debug/ 3. http://eigenclass.org/hiki.rb?call_stack+0.1.0
on 22.03.2007 18:32
Victor Reyes wrote: > Thank you Jonas and "RubyonRails.org" for your help. > I got ruby and rubygems/rails installed. Victor, We are also running Rails under AIX. Not an ideal scenario but the only option we have. What are you using as a deployment webserver? Did you manage to get Mongrel compiled? We are using Webrick, which is far from ideal though in production mode it as plenty fast enough for all but a few pages on our small intranet. If anyone else has good experiences of Rails running on AIX then I've be keen to hear from them. Thanks Tom