Home
 

Customer Support

Search for keywords:

Browse by category:

Do you support Ruby on Rails ?

Our support for Ruby on Rails is preliminary and experimental; we'd appreciate any feedback you might have. Please note that currently we are not running Ruby using FastCGI which will reduce the performance of any Ruby Scripts.

Ruby, RubyGems, and Rails are already installed, so you just need to create you project. First, log in to your shell account via telnet/SSH.

The rail must be web accessable, so make the project somewhere in /htdocs:
$ rails /htdocs/www/your_project_name
Change to the project directory:
$ cd /htdocs/www/your_project_name
Adjust .htaccess file for Modwest servers:
$ vim public/.htaccess
Type on the first line of .htaccess (press 'i' to enter insert mode):
RewriteBase /your_project_name/public
Press 'esc' to exit insert mode, then type ':wq' 'cr' to save and exit vim.
Make a test controller:
$ ruby script/generate controller Test
Edit the test controller:
$ vim app/controllers/test_controller.rb
Insert text between "class TestController < ApplicationController" and "end":
def index
render_text "Hello World!"
end
View test:
Go to http://yourdomain.com/your_project_name/public/Test. If you see "Hello World!," then you have successfully created a new Ruby on Rails project.

User-Contributed Notes

add a note
29-Dec-2005 17:04
To set up a database connection in ruby you need to modify the
database.yml settings:
adapter: mysql 
database: database 
host: db.modwest.com 
username: yourusername 
password: yourpassword

The database.yml file should be located under
 /htdocs/www/your_project_name/config/

Here is a great tutorial on how set up a connection:
http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/

add a note

Related Questions:


Do you have Server Side Includes (SSI)?

Do you support Front Page Extensions?

How do I block access to my site based on certain conditions?

Do you support JSP, Tomcat or Resin?

How do I publish with FrontPage?

Do you offer mod_perl, mod_python, WebDAV, ASP, Cold Fusion or Zope?

Can I have all .html files parsed as .shtml SSI files?

Why doesn't my banner.gif display?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us