To make your first RoR (Ruby on Rails) application in your Astutium Business, ECommerce or Developer hosting packages ...
- Login to your Control Panel at http://{domain}/cpanel
- Click on the icon for Ruby on Rails
- Select the option Load on boot to start the applcation
- Give your application a name in the App Name field
We suggest you call your first application test - The Application Path should be automagically completed for you as public_html/{application}
e.g. public_html/test - Select the option production as the Environment (default)
- Click on Create to build the Application and RoR Framework layout.
You should now test your Ruby on Rails Application has been deployed. In a browser go to http://{domain}/{application}/public/
This should show you the default Ruby index page with the Welcome Aboard message.
You have now setup the RoR Application framework for your new development on Astutium Developer Hosting
You can now start uploading your
.rb application class files to app/controllers/
.rhtml view files to app/views/{class}/
Modify your config/routes.rb
add a map.connect line to link the application url to your main class
etc.
You may need to modify the .htaccess file for the {application}/public directory...
check for RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
You can check your Applications status in the control panel
- Login to your Control Panel at http://{domain}/cpanel
- Click on the icon for Ruby on Rails
- If it is Not Running, click on the Run Action to start an "Available Ruby on Rails Application"
Note:
The most common error is a "400" Error, indicating you have made a mistake following the instructions above - normally forgetting the trailing slash on the URL after public.For help and assistance with Ruby on Rail, please visit the official site at rubyonrails.org.
Please remember that OthelloHosts.net will not teach you how to program in Ruby or Rails, and support will not be able to help you debug your applications - if you are an application developer you are expected to know how to do these things yourself.