View Full Version : How to Install Ruby on Rails
rob
July 3rd, 2005, 11:45 PM
Installing Ruby on Rails on OCS web servers is easy. Just follow this easy guide:
SSH into your account
Type "ocs-install-rails" (without the quotes) and hit enter to start the automatic install wizard.
You'll be prompted for the name of the rails instance, and the installer will do all the rest
NOTE: We recommend switching over to FastCGI (.fcgi) when you are ready for your website to go live and in production mode. You can learn how to do that in this thread about FastCGI (http://ocsforums.com/showthread.php?t=115).
peta
September 2nd, 2006, 08:54 PM
Okay... please forgive me...
I have done all the necessary things, I have installed rails, I have set up the three databases, changed the config file ....
Would someone be so kind as to tell me what I have to do next?
I know, I know... I am super noobie... but I'd really apreciate a little guidance from anyone who knows what to do next. Meanwhile I'll be boning up the language itself. Thanks in advance =8?)
#
Use script/generate to create your models and controllers
To see all available options, run it without parameters.
#
Set up a default route and remove or rename this file
Routes are setup in config/routes.rb.
rob
September 2nd, 2006, 11:24 PM
Hi,
If you've got the databases setup, Rails installed, then you're really ready to go!
Only thing now is to write your application. I know that may seem like a daunting task, and its tough to know where to begin sometimes.
Generally I start a Rails app by making the models. They tie in with the database tables and when you think about how the data in your application will be stored, it helps you plan out the rest in your mind. It all does seem to revolve around the database for web apps.
peta
September 3rd, 2006, 07:34 AM
Thanks, so essentially, I just put my code into the project directory I created (the default name being rails) and it just works? (assuming it is written correctly, and if not it will through up an error).
rob
September 4th, 2006, 07:20 PM
Pretty much, yes. As long as the code is valid :)
I would recommend getting a book on Rails, or at least going through some of the tutorials on rubyonrails.com.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.