To Lecture Notes
IT 232 -- 11/4/15
Some Examples
Look at these Examples:
MiniTwitter
-- display messages for one follower from all users in reverse chronological order.
DisplayValidations
-- display validation in a non-scaffold-based project.
Uploading a Rails Project
The CDM server cdmruby is available for uploading final projects for our class.
This Unix server uses Apache and Phusion Passenger to display Rails projects.
The cdmruby server can only host one Rails project per user.
To upload your application to the server, you can use FileZilla, which is a free software download.
Here are the directions:
Deploying a Rails Application on CDMRuby
.
Note that only Rails project can be deployed at a time on CDMRuby, although this project can be changed any time.
After uploading your application, you may need to run
bundle install
to update the gems.
To do this, you can open an SSH Unix Terminal Window with Putty, which is also a free download.
You can only run
bundle install
with super user privileges, because the installed gem files folder is restricted. Use the following command instead:
> bundle install --path vendor/bundle
Rails Security
Look at the
Rails Security document
.