![]() |
|
Customer Support
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 |
|||
|
|||
|
|
|||
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 |
