Ruby S. wrote in post #1025143:
I just installed Rails 3.1.0 on my LINUX (Red Hat) box.
I also installed Apache2 and IBM DB2 9.7.
While DB2 might be fine for production. I would recommend learning Rails
using its default SQLite 3 database. Doing so will make working with
Rails easier, since you’ll likely do a lot less fighting with trying to
get your database configured.
I searched the web for a beginner’s tutorials for Rails. Found a few,
although some conflicting.
One tutorial said that I could run: rails demo. I tried but it did not
Another tutorial calls for running: rails new
/opt/rails_3.1.0/Code/Ruby/weblog …, which I did. But then what???
There was a time when Rails used a set of script kept under ./script.
Most of these old scripts have been rolled into the rails command. So
using “rails new” you’re asking rails to create a new application, as
opposed to say starting the server “rails server” or optionally “rails
s”. You can also do other things like start rails instance and enter the
console “rails console” or “rails c”.
You also use the rails command to generate various parts of a rails
rails g[enerate] model User
rails g[enerate] controller users
rails g[enerate] scaffold Post first_name:string last_name:string
Bottom line, I would love to find a good tutorial that has been tested
can start playing with rails.
BTW, I also purchased couple rails book over two years ago. One I recall
Rails Recipes. But I prefer soft copy materials.
“Rails Recipes” is a fairly old book. Unless it’s been updated to work
well with the latests version of Rails a lot of things in there might
not work as shown, or may be out-of-date. It’s also a book intended for
programmers familiar with Rails rather than a book to teach Rails.
Pragmatic Programmers is one good source for books on Ruby and Rails:
But, before you go anywhere else looking for how to get started with
Rails, begin your reading here:
The API reference for Rails, which you’ll need to get more details about
specific parts of Rails, go here:
Between these two resources there is enough information for reasonably
experience programmers to find just about anything they need to know.
But, if you’re looking for something that will walk your through
building a real world application with Rails I would highly recommend
the following book:
You might also want to take a look at other books related to Ruby on
You might also find this book useful in you haven’t found it already: