Ruby on Rails guidence need

Hi,

I just completed Ruby learning and did complete some exercise also on it. Now want to learn Ruby on Rails also.So what would be the good approach or from where to start,to learn it quickly and conceptually.

I also had installed also Ruby as mentioned in this url : https://gist.github.com/pcjpcj2/5443017

Hi,

I just completed Ruby learning and did complete some exercise also on it. Now want to learn Ruby on Rails also.So what would be the good approach or from where to start,to learn it quickly and conceptually.

Have a look at railstutorial.org (which is free to use online) and the Rails Guides.

Colin

Love U Ruby wrote in post #1109081:

Hi,

I just completed Ruby learning and did complete some exercise also on it. Now want to learn Ruby on Rails also.So what would be the good approach or from where to start,to learn it quickly and conceptually.

Excellent, and welcome.

Start with the official Rails guides, which I think are excellently written:

http://edgeguides.rubyonrails.org (if you're living on the edge)

Then move on to one of these great tutorials:

http://railsforzombies.org

Which tutorial/resource do you used?

Robert Walker wrote in post #1109090:

Start with the official Rails guides, which I think are excellently written:

Ruby on Rails Guides http://edgeguides.rubyonrails.org (if you're living on the edge)

Then move on to one of these great tutorials:

http://railsforzombies.org http://ruby.railstutorial.org

Thanks for the guidance. Could you help me to install Rail also? What are the things I need to install for it. I have installed Ruby2.0.0 using RVM as I mentioned at the top.

I think you have installed it when you installed rvm (--rails). Try rails -v in a terminal.

Colin

Colin Law wrote in post #1109117:

Try `gem install rails`

Hassan Schroeder wrote in post #1109119:

Hassan Schroeder wrote in post #1109119:

Thanks for the guidance. Could you help me to install Rail also?

Try `gem install rails`

-- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com Hassan Schroeder | about.me twitter: @hassan

I used RVM to install Ruby. I think I should use also use `RVM` to install Rails. Is it? what the database I need to install also?

Once you have installed rvm then gem install will install into the rvm environment. So gem install rails should do what you want. If you want a particular version then, for example gem install rails --version 2.3.2

To install a different version of Ruby (should you wish to do so) then, for example rvm install 1.9.2 and to use it rvm use 1.9.2

I am using SublimeText2 editor for my Ruby programs.

What has that got to do with installing Rails?

Colin

Colin Law wrote in post #1109163:

Hassan Schroeder | about.me twitter: @hassan

When I was on windows, I used the tutorial : http://railsinstaller.org/ . Here I did install Ruby,Rails,MSSQL and SublimeText2 editor - a total package for rails programming.

Looking for the same way to do in my Unix.

https://github.com/joshfng/railsready

I used RVM to install Ruby. I think I should use also use `RVM` to install Rails. Is it?

No matter, `gem install rails` is how you're going to install it. You should create a gemset for your project first (IMO, one of the best features of rvm).

what the database I need to install also?

Whatever you want, or are most familiar with, or is easiest :slight_smile:

SQLite3 is the default, MySQL is probably most widely used, and some people prefer Postgres. For learning purposes, I'd go with one of the first two.

HTH,

Hassan Schroeder wrote in post #1109188:

You need to install the database of your choice; that has nothing to do with Rails per se'.

Then when you generate your new app, you specify the db and the generated Gemfile will have the appropriate gems, all of which will be (by default) installed for you.

See `rails new --help`

No, you have already installed the sqlite3 db driver (in the apt-get install in your first post). The gem itself will be automatically installed when you run bundle install. I suggest working right through a good tutorial such as railstutorial.org (which is free to use online) and you will learn about the basics of rails including how gems are automatically installed based on the contents of your Gemfile.

Colin

Colin Law wrote in post #1109117:

I think you have installed it when you installed rvm (--rails). Try rails -v in a terminal.

Colin

then why I got the error:

kirti@kirti-Aspire-5733Z:~$ rails -v The program 'rails' can be found in the following packages: * rails * ruby-railties-3.2 Try: sudo apt-get install <selected package>

:frowning: :frowning:

Colin Law wrote in post #1109117:

I think you have installed it when you installed rvm (--rails). Try rails -v in a terminal.

Colin

then why I got the error:

I did say I /think/ you have installed it. Obviously you have not. What happens when you install it, as has been suggested numerous times on the this thread, by gem install rails

Colin

Colin Law wrote in post #1109259:

You should not choose the version of Rails that is right for Ruby, you should decide which version of Rails you want then make sure you have an appropriate version of Ruby. Remember that with rvm you can easily install another version of ruby. Also you can install multiple versions of Rails.

Assuming that you are starting by working through a tutorial then install the version of rails that the tutorial requires.

When you come to writing your own app then presumably you will want the latest stable version, or perhaps you want to go with the beta version of Rails 4. That is for you to decide.

Colin