Create a new Rails app via SSHNote: if you don't have SSH access you need to fill out a support ticket with us to gain access.

Move into your home directory (if you just logged in, you are already there)

cd ~

Create the directory that holds your Rails applicationNote: MyApp can be changed to whatever you would like, but whatever you choose needs to stay the same wherever you type MyApp.

rails new myapprails new -h (to see all rails commands)

Link your Rails application into your web directory so that you may access the Rails application on your website

cd public_htmlln -s ../myapp/public myapp

Let the server know about your Rails application by opening up the file located at myapp/public/.htaccessNote: you can access this over FTP or by using the nano or vi commands over SSH. This file shouldn't already exist in the system. If it does, you can empty it's contents.

Put this as the entire contents of the file:

RailsBaseURI /myapp

Create your needed models, controllers, and views for your applicationNote: Models are the objects, which will usually be linked to a table in your database.

A model can be created used the following command:

cd ../myapprails generate model User

Note: a controller is what moves data between the model (database) and your view.

A controller can be created using the following code:

rails generate controller User

Note: the view is where you will control what the user sees.

The view can either be created manually or with help of the generator:

rails generate controller User list

The above code would create the controller for the User object and it will also create the needed code for the list view.

If you would like to manually create this edit the User controller file, found at app/controllers/user_controller.rb, by entering the following code within the class (after class and before end):