Congratulations, you're on Rails!
You've succesfully configured your web server to point at this Rails application.
Before you move on, verify that the following conditions have been met:
- The log directory and the empty log files must be writable to the web server (
chmod -R 777 log
).
-
The shebang line in the public/dispatch* files must reference your Ruby installation.
You might need to change it to #!/usr/bin/env ruby
or point directly at the installation.
-
Rails on Apache needs to have the cgi handler and mod_rewrite enabled.
Somewhere in your httpd.conf, you should have:
AddHandler cgi-script .cgi
LoadModule rewrite_module libexec/httpd/mod_rewrite.so
AddModule mod_rewrite.c
Take the following steps to get started:
- Create empty production and test databases for your application.
Warning: Don't point your test database at your production database, it'll destroy the latter on test runs!
- Edit config/database.yml with your database settings.
- Create a new controller using the
script/new_controller
generator
Help: Run with no arguments for documentation
- Create a new model using the
script/new_model
generator
Help: Run with no arguments for documentation
- See all the tests run and fail by running
rake
.
- Develop your Rails application!
- Setup FastCGI or mod_ruby to get production-level performance
Having problems getting up and running? First try debugging it yourself by looking at the log files.
Then try the friendly Rails
community on IRC (howto IRC). It's on FreeNET in channel #rubyonrails.