Need help with Ruby on Rails

Thread Tools
 
Search this Thread
 
Old Feb 23, 2014 | 05:15 PM
  #1  
Gdubbb's Avatar
Thread Starter
Registered User
iTrader: (1)
 
Joined: Feb 2012
Posts: 182
From: San Francisco
Car Info: 2013 SWP Wrx Sedan
Need help with Ruby on Rails

Not sure if this topic should be in this section but is anyone experienced/familiar with using Ruby on Rails? I'm applying to a dev boot camp that teaches Ruby but I'm at a dead end because I can't get Ruby to open up .rb files, I have the programs all downloaded and installed I believe. I have watch and read a lot of guides but I they aren't helping me so if anyone can help/steer me in the right direction that would be great.
Old Feb 23, 2014 | 05:36 PM
  #2  
joe944's Avatar
Registered User
 
Joined: Jan 2014
Posts: 50
From: Union City
Car Info: 16' R, 14' WRX, 04' MSM
I'm not a dev but do a bit of ruby scripting in my sysadmin work, what OS are you using, I've only used ruby with linux.
Old Feb 23, 2014 | 05:44 PM
  #3  
Gdubbb's Avatar
Thread Starter
Registered User
iTrader: (1)
 
Joined: Feb 2012
Posts: 182
From: San Francisco
Car Info: 2013 SWP Wrx Sedan
Im currently using windows, everytime I try to open a .rb file my cmd tells me it cant read those files. Noob question, do I use a regular cmd or a ruby specific one?
Old Feb 23, 2014 | 05:49 PM
  #4  
joe944's Avatar
Registered User
 
Joined: Jan 2014
Posts: 50
From: Union City
Car Info: 16' R, 14' WRX, 04' MSM
You should be able to use the regular windows shell, perhaps the powershell version?

Sounds like your ruby installation didn't set up your paths correctly. Does your script have #!/path/to/ruby at the top?

Try running your ruby script with the full ruby executable path, whatever that might be.

C:\Ruby\bin\ruby.exe script.rb
Old Feb 23, 2014 | 06:24 PM
  #5  
Gdubbb's Avatar
Thread Starter
Registered User
iTrader: (1)
 
Joined: Feb 2012
Posts: 182
From: San Francisco
Car Info: 2013 SWP Wrx Sedan
That's another problem im stuck at, how do I set executable paths?
Old Feb 23, 2014 | 08:15 PM
  #6  
reign_'s Avatar
Registered User
iTrader: (1)
 
Joined: Jan 2014
Posts: 363
From: Salinas, CA
Car Info: 2002 WRB Wagon
Go download a good text editor. I'd recommend Sublime Text 2

Sublime Text - Download

That will let you view pretty much any file that you need to. Usually you're not going to want to just double-click on an .rb file.

You'd want to either open the project that you're working on in Sublime Text, or just do a right-click -> 'open with' on the file and select Sublime Text.
Old Feb 24, 2014 | 10:28 AM
  #7  
Gdubbb's Avatar
Thread Starter
Registered User
iTrader: (1)
 
Joined: Feb 2012
Posts: 182
From: San Francisco
Car Info: 2013 SWP Wrx Sedan
Cool I'll give it a try
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Ross
Hawaii Classifieds
2
Jan 26, 2010 07:41 AM
Ross
Hawaii Classifieds
3
Aug 13, 2008 10:08 PM
Mrs. Xevious
Sacramento & Reno
124
Sep 20, 2006 12:11 AM
groovbusta
Bay Area
1
Apr 22, 2004 01:43 PM
rentankonko
Aftermarket Forced Induction - Turboed factory NA engines
1
Apr 21, 2003 10:12 AM




All times are GMT -7. The time now is 11:38 PM.