Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On rails?
#1
I know this sounds like a n00bish question, but what does on rails mean in ruby? I dont know crap about ruby Wacko.
Reply
#2
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
[Image: Zephie_Sig_by_GKmero.png]
Reply
#3
(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.
Reply
#4
What is ruby?
Reply
#5
(03-29-2011, 05:17 AM)€uro Wrote: What is ruby?

Use Google, and don't gravedig threads that have been answered pl0x.
[Image: Zephie_Sig_by_GKmero.png]
Reply
#6
it doesnt sound good is all i know
This isn't the right forum to advertise hacking tools. -Staff
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  what is ruby on rails DaUB3R 3 2,032 11-01-2012, 04:20 AM
Last Post: johnnymward
  Ruby on rails Poppins 8 3,748 01-01-2011, 07:31 AM
Last Post: Poppins

Forum Jump:


Users browsing this thread: 3 Guest(s)