Forum: Ruby on Rails Create a script that includes the resources of a project

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Nicolas B. (Guest)
on 2007-03-11 12:00
What includes/requires should I write to create a separate console
script that includes all the resources (models) of a Rails project (like
script/console) ?

Eden L. (Guest)
on 2007-03-11 13:06
(Received via mailing list)
require 'path/to/rails_root/config/boot'
require 'path/to/rails_root/config/environment'
require 'irb/completion'
require 'console_app'
require 'console_sandbox'
require 'console_with_helpers'

you probably want to specify this on the command-line to irb like
script/console does.

Take a look at /path/to/lib/ruby/gems/1.8/gems/rails-1.x.x/lib/
commands/console.rb for more info

On Mar 11, 6:00 pm, Nicolas B. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.