Need help with Ruby on Rails

Thread Tools
 
Search this Thread
 
Old 02-23-2014, 05:15 PM
  #1  
Registered User
Thread Starter
iTrader: (1)
 
Gdubbb's Avatar
 
Join Date: Feb 2012
Location: San Francisco
Posts: 182
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.
Gdubbb is offline  
Old 02-23-2014, 05:36 PM
  #2  
Registered User
 
joe944's Avatar
 
Join Date: Jan 2014
Location: Union City
Posts: 50
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.
joe944 is offline  
Old 02-23-2014, 05:44 PM
  #3  
Registered User
Thread Starter
iTrader: (1)
 
Gdubbb's Avatar
 
Join Date: Feb 2012
Location: San Francisco
Posts: 182
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?
Gdubbb is offline  
Old 02-23-2014, 05:49 PM
  #4  
Registered User
 
joe944's Avatar
 
Join Date: Jan 2014
Location: Union City
Posts: 50
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
joe944 is offline  
Old 02-23-2014, 06:24 PM
  #5  
Registered User
Thread Starter
iTrader: (1)
 
Gdubbb's Avatar
 
Join Date: Feb 2012
Location: San Francisco
Posts: 182
Car Info: 2013 SWP Wrx Sedan
That's another problem im stuck at, how do I set executable paths?
Gdubbb is offline  
Old 02-23-2014, 08:15 PM
  #6  
Registered User
iTrader: (1)
 
reign_'s Avatar
 
Join Date: Jan 2014
Location: Salinas, CA
Posts: 363
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.
reign_ is offline  
Old 02-24-2014, 10:28 AM
  #7  
Registered User
Thread Starter
iTrader: (1)
 
Gdubbb's Avatar
 
Join Date: Feb 2012
Location: San Francisco
Posts: 182
Car Info: 2013 SWP Wrx Sedan
Cool I'll give it a try
Gdubbb is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Ross
Hawaii Classifieds
2
01-26-2010 07:41 AM
Ross
Hawaii Classifieds
3
08-13-2008 10:08 PM
Mrs. Xevious
Sacramento & Reno
124
09-20-2006 12:11 AM
groovbusta
Bay Area
1
04-22-2004 01:43 PM
rentankonko
Aftermarket Forced Induction - Turboed factory NA engines
1
04-21-2003 10:12 AM



Quick Reply: Need help with Ruby on Rails



All times are GMT -7. The time now is 09:20 AM.