UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > Ruby on Rails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 20-07-2007, 15:43
Member
 
Join Date: Jul 2007
Posts: 68
Default Finaly! got a RubyOnRails test app working!

Steps to happiness:
Install Rails using CPanel
swtich theme to x3
look under Software / Services
click on RubyGems
type "rails" in the second field and click "Install Now"
create a cron job to run the following commands
(don't forget to delete it when it's done)

cd /home/<your-home-directory>/ruby
gems/bin/rails testapp
cd testapp
/usr/bin/ruby script/generate controller main welcome
use CPanel to create a new subdomain, set the document root to ruby/testapp/public

point your browser at http://<your-subdomain>.<your-domain>/ - you should get the standard rails startup screen.

now try http://<your-subdomain>.<your-domain>/main/welcome - you should see
Main#welcome

Find me in app/views/main/welcome.rhtml
now you can add this line to ruby/testapp/config/routes.db - make sure you put it before all other "map.connect" lines.
map.connect '', :controller => 'main', :action => 'welcome'
and delete or rename the file ruby/teatapp/public/index.html

now you can leave off the /main/welcome from the url and still see your app

you can see the proof at http://ruby.noelwalters.co.uk/

The rest - as they say - is up to you...

(please note I typed all this from memory - if you get stuck let me know.)

I'll be building on this a little more as I take my first steps into Ruby on Rails so check back from time to time if you're interested.

Right now I'm going to enjoy a well earned break - maybe open a bottle of something - getting this to work has taken many hours and stressed me out somewhat!

Noel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 20-07-2007, 17:09
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Thanks for that little guide Noel - I am going to try it as I am really interested in learning Ruby.

I'm sure this will also be very helpful to many others as setting up and getting a test app running has been quite frustrating recently for some of the forum community!
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23-07-2007, 14:50
paul's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Virtual Private Server
Posts: 1,984
Default

I would like to watch a video tutorial preferably, I am not sure if there any such video tutorial for ROR?
__________________
OrganizeOne
Darkness does not exist, it is just absence of Light..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 24-07-2007, 13:13
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by paul View Post
I would like to watch a video tutorial preferably, I am not sure if there any such video tutorial for ROR?
I haven't seen any yet but if I do find one then I will post a link to it here .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 24-07-2007, 15:43
Member
 
Join Date: Jul 2007
Posts: 68
Default

I couldn't find anything like that. I had a good look around.

The main things are installing rails and setting the document root of your domain (or sub domain) to the ruby application's public directory. After that everything else just works.

Using CRON jobs to run ruby commands is a bit of a pain, but you could always develop your app off line and then upload it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 24-07-2007, 15:48
Member
 
Join Date: Jul 2007
Posts: 68
Default

I had a first bash at making my test app return some data from a mySQL database.

The only problem I came across was that any database you create trough CPanel gets your account name prefixed to the database name. This means that you can't use the default database name and you have to edit the database names in testapp/config/database.yml.
You also need to edit this file to specify the username and password for each database.

Once again I had to use a cron job to run script/generate to create my model.

I quickly go bored of adding test records so there are only two names in my contact book at the moment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 24-07-2007, 23:08
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Set up a form and i'll add some test records for you .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 25-07-2007, 12:09
Member
 
Join Date: Jul 2007
Posts: 68
Default

That's the idea. But I'm away for a few days
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 25-07-2007, 12:36
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 5,611
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by Noel View Post
That's the idea. But I'm away for a few days
Oh well - if you do get time to do the form in the end just tell me and I'll be happy to help .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
http://djdavid.dpscomputing.com (My DJ Website) - Updated for Christmas 08!
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website) - Temporarily Unavailable .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 19:30.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service