Support Forums
On rails? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Ruby and Ruby on Rails (https://www.supportforums.net/forumdisplay.php?fid=55)
+---- Thread: On rails? (/showthread.php?tid=16117)



On rails? - InfamousKnight - 02-11-2011

I know this sounds like a n00bish question, but what does on rails mean in ruby? I dont know crap about ruby Wacko.


RE: On rails? - Gadget - 02-11-2011

The Rails::ScriptRailsLoader module here defines two constants: RUBY and SCRIPT_RAILS. RUBY is the full path to your ruby executable, on a Snow Leopard system it’s /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby_. SCRIPTRAILS is simply script/rails_. When exec_scriptrails is invoked, this will attempt to exec the rails file in the script directory using the path to your Ruby executable, RUBY. If exec is invoked, the program will stop at this point. If the script/rails file doesn’t exist in the current directory, Rails will recurse upwards until it finds it by calling exec_script_rails from inside the Dir.chdir(".."). This is handy if you’re currently in one of the sub-directories of the rails application and wish to launch a server or a console.

Dunno if this site will help you out or not: http://guides.rubyonrails.org/initialization.html


RE: On rails? - InfamousKnight - 02-11-2011

(02-11-2011, 02:35 PM)Gadget Wrote: The Rails::ScriptRailsLoader module here defines two constants: RUBY and SCRIPT_RAILS. RUBY is the full path to your ruby executable, on a Snow Leopard system it’s /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby_. SCRIPTRAILS is simply script/rails_. When exec_scriptrails is invoked, this will attempt to exec the rails file in the script directory using the path to your Ruby executable, RUBY. If exec is invoked, the program will stop at this point. If the script/rails file doesn’t exist in the current directory, Rails will recurse upwards until it finds it by calling exec_script_rails from inside the Dir.chdir(".."). This is handy if you’re currently in one of the sub-directories of the rails application and wish to launch a server or a console.

Dunno if this site will help you out or not: http://guides.rubyonrails.org/initialization.html
Thank you gadget.



RE: On rails? - Mr Kitty Cat - 03-29-2011

What is ruby?


RE: On rails? - Gadget - 03-29-2011

(03-29-2011, 05:17 AM)€uro Wrote: What is ruby?

Use Google, and don't gravedig threads that have been answered pl0x.


RE: On rails? - A N D R E W - 04-02-2011

it doesnt sound good is all i know