LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-22-2008, 02:16 PM   #1
raskol
Member
 
Registered: Mar 2008
Posts: 51

Rep: Reputation: 15
Rails install help please!


http://www.rubyonrails.org/down

rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server

i dont get exactly what im supposed to write there.
1.the location of rails on my harddrive C:\ruby...
2.how do i write cd.. cd.. cd cat in one command?
if thats what im supposed to?
3. this i dont even get?


and is this supposed to be written int he editor scite then laucnhed from cmd?

and does it matter if i use / or \ in the path descriptions?
 
Old 04-22-2008, 03:47 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
A Rails Website is an application, and so when Rails documentation talks about an application it means the site that you are building. Rails documentation always gives the command-line instructions, because these work for everybody, regardless of which editor/IDE or operating system they use.

To get started you need to first decide where to put the development copy of your new site. Next, open a command prompt window, and use "cd" to make that directory the working directory, e.g.

cd C:\mysites

Now runs the "rails" utility, specifying the name of your new site:

rails mynewsite

Rails then creates a directory called "mysite" containing the files for the site/application, with several subdirectories. The subdirectory "script" is automatically created and populated with useful Ruby scripts, such as "generate" and "server". As these are just ordinary Ruby scripts, you need to call the "ruby" program to run them.

If you now change the working directory of your command prompt to the directory for your new application, then this:

ruby script\server

Is the same as:

ruby.exe C:\mysites\mynewsite\script\server

Only shorter, and without Windows-specific bits.

The whole process:

Start > Run > type "cmd"

md C:\mysites
cd C:\mysites
rails mynewsite
cd mynewsite
ruby script\server

HTH

Last edited by hob; 04-22-2008 at 03:55 PM.
 
  


Reply

Tags
rails


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rails, Apache and others ... Tegramon Slackware 1 02-07-2008 03:04 PM
LXer: How to Install Ruby on Rails (ROR) in Ubuntu LXer Syndicated Linux News 0 11-07-2007 01:30 AM
Install of Ruby on Rails not working thepr1nter Linux - Software 0 06-08-2007 03:29 PM
LXer: Real world Rails: Caching in Rails LXer Syndicated Linux News 0 05-19-2007 09:16 PM
Ruby on Rails, on Linux. After the install... caledfwlch Programming 1 06-24-2006 11:47 PM


All times are GMT -5. The time now is 05:07 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration