Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2009, 02:43 PM   PM User | #1
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
What just happened? Installing Rails.

I have decided to try out this RoR. It looks like something I have wanted for a long time. I have had past experince with ASP, PHP, etc.

Following the links provided in the sticky at the top of this forum I installed Ruby. I already had MySQL and then I went to install Rails. But the details don't tell me everything.

Rails - I typed the command 'gem install rails --remote' and after a few moments I got 'Successfully installed rails-2.3.4, 1 gem installed.' What is a gem?

Do I have to set up a server on my machine? I have been reading a lot of stuff, but so many assume the answers are obvious that they don't mention the details.

I am going to start with a couple of the tutorials I saw while browsing. But I wanted to get a jump on understanding what was going on.
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Old 10-01-2009, 02:27 AM   PM User | #2
kirkland
New to the CF scene

 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kirkland is an unknown quantity at this point
Hi Scott,

I'm a beginner myself, but I think I can answer your questions.

Ruby gems is a ruby package manager, through which you can install various versions of Rails and other packages. A gem is a package.

Rails comes with a server. To get started, first run 'rails test', which will create a test directory, and everything inside it you'll need. Then 'cd test'. then 'ruby script/server' will start the web server (called WEBrick), by default on port 3000.

If everything works on the first try, you're very lucky. Different versions of Ruby/Gems/Rails have various issues, and you might end up doing a lot of googling to get everything square away. Also, as of some version, the default database for Rails is now SQLite 3. You can still use MySQL, but you need to pass some option to the 'rails' command, and I don't know it off hand.

Cheers,
Kirkland
kirkland is offline   Reply With Quote
Old 10-01-2009, 06:32 PM   PM User | #3
ScottInTexas
Regular Coder

 
Join Date: Nov 2002
Posts: 567
Thanks: 2
Thanked 4 Times in 4 Posts
ScottInTexas is on a distinguished road
Thanks for your reply. I got it working just as you described and got to the "You're riding.." screen. Now I am dealing with a problem regarding scaffold. As you say, a lot of time with Google and reading. I getting the big picture, but most of the tutorials are leaving out some important details.
__________________
Scott Stewart
Always happy to learn from pros.
ScottInTexas is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:37 AM.


Advertisement
Log in to turn off these ads.