Terence Pires wrote:
First of all, as i’m new here i would like to salute everybody on the
I’m a total Rails and Ruby newbie and had a hard time trying to set up a
dev environment on my computer but now i’m done, thanks to instantrails.
I’m currently trying to modify an existing website, but it won’t load…
The example apps provided in instantrails work well…
I understand that there are config files i should modify but i have no
idea on what to edit.
Can somebody help ?
There are numerous free tutorials on the web, however I would highly
recommend the book “Agile Web D. with Rails rev. 3” by Dave
It can be found here:
The best way to learn the guts of ruby (once you’re up and running):
Really all you have to do to get started is to know a couple things:
- open up a shell (command prompt) and change directory to where you
want to put your application.
- Then type rails appname.
- change directory into the new application.
- change app/config/database.yml to your database information (no
configuration necessary if you are using sqlite3
- run rake db:create
- from then on just type ruby script/generate and it will show you all
the options you can use with the generator.
You’ll then need to generate models, controllers, and views for the
different functions of your application.