Ethan Herdrick
2009-Mar-21 01:04 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
Here''s what I get when I try to use the console with the current facebooker: First I make a simple app: rails foo -d mysql cd foo script/plugin install git://github.com/mmangino/facebooker.git Then I go to config/environment.rb and change the rails version to ''2.2.2'' Then I run the console: script/console and I get: [17:56][herdrick:~/rails/foo]$ script/console Loading development environment (Rails 2.2.2) Curb not found. Using Net::HTTP. /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_without_new_constant_marking'': no such file to load -- application.rb (MissingSourceFile) from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in `load_file'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in `load_file'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in `require_or_load'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in `depend_on'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in `require_dependency'' from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'' from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'' from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' from /opt/local/bin/irb:13 What am I doing wrong? Thanks in advance!
Philip Hallstrom
2009-Mar-21 03:12 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote:> Here''s what I get when I try to use the console with the current > facebooker: > > > First I make a simple app: > rails foo -d mysql > cd foo > script/plugin install git://github.com/mmangino/facebooker.git > > Then I go to config/environment.rb and change the rails version to > ''2.2.2'' Then I run the console: > > script/console > > and I get: > > [17:56][herdrick:~/rails/foo]$ script/console > Loading development environment (Rails 2.2.2) > Curb not found. Using Net::HTTP.Make sure you have the curl-dev package installed and then install the curb ruby gem.> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in > `load_without_new_constant_marking'': no such file to load -- > application.rb (MissingSourceFile) > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:382:in > `load_file'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in > `new_constants_in'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:381:in > `load_file'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:256:in > `require_or_load'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:221:in > `depend_on'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:133:in > `require_dependency'' > from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ > console_with_helpers.rb:19 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 31:in > `gem_original_require'' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 31:in > `require'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in > `require'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:521:in > `new_constants_in'' > from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ > active_support/dependencies.rb:153:in > `require'' > from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' > from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' > from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' > from /opt/local/bin/irb:13 > > > What am I doing wrong? > > Thanks in advance! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
Mike Mangino
2009-Mar-21 05:22 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
You shouldn''t need this. It looks like this is a rails problem. What version of Rails are you using to build the app? Also, I''m moving this to the google group which is the preferred mailing list. Mike On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote:> > On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: > >> Here''s what I get when I try to use the console with the current >> facebooker: >> >> >> First I make a simple app: >> rails foo -d mysql >> cd foo >> script/plugin install git://github.com/mmangino/facebooker.git >> >> Then I go to config/environment.rb and change the rails version to >> ''2.2.2'' Then I run the console: >> >> script/console >> >> and I get: >> >> [17:56][herdrick:~/rails/foo]$ script/console >> Loading development environment (Rails 2.2.2) >> Curb not found. Using Net::HTTP. > > Make sure you have the curl-dev package installed and then install > the curb ruby gem. > > >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:382:in >> `load_without_new_constant_marking'': no such file to load -- >> application.rb (MissingSourceFile) >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:382:in >> `load_file'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:521:in >> `new_constants_in'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:381:in >> `load_file'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:256:in >> `require_or_load'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:221:in >> `depend_on'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:133:in >> `require_dependency'' >> from /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ >> console_with_helpers.rb:19 >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 31:in >> `gem_original_require'' >> from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: >> 31:in >> `require'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:153:in >> `require'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:521:in >> `new_constants_in'' >> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ >> active_support/dependencies.rb:153:in >> `require'' >> from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' >> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' >> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' >> from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' >> from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' >> from /opt/local/bin/irb:13 >> >> >> What am I doing wrong? >> >> Thanks in advance! >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Zhao Lu
2009-Mar-21 15:52 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
application.rb was renamed to application_controller.rb. http://afreshcup.com/2008/11/17/rails-2x-the-death-of-applicationrb/ maybe that''s why you couldn''t find it? what do you get if you do rails -v? On Fri, Mar 20, 2009 at 6:04 PM, Ethan Herdrick <herdrick at gmail.com> wrote:> Here''s what I get when I try to use the console with the current > facebooker: > > > First I make a simple app: > rails foo -d mysql > cd foo > script/plugin install git://github.com/mmangino/facebooker.git > > Then I go to config/environment.rb and change the rails version to > ''2.2.2'' Then I run the console: > > script/console > > and I get: > > [17:56][herdrick:~/rails/foo]$ script/console > Loading development environment (Rails 2.2.2) > Curb not found. Using Net::HTTP. > > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > `load_without_new_constant_marking'': no such file to load -- > application.rb (MissingSourceFile) > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > `load_file'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > `new_constants_in'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in > `load_file'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in > `require_or_load'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in > `depend_on'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in > `require_dependency'' > from > /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > from > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > `require'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > `new_constants_in'' > from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > `require'' > from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' > from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' > from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' > from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' > from /opt/local/bin/irb:13 > > > What am I doing wrong? > > Thanks in advance! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-- Zhao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090321/4594e0df/attachment-0001.html>
Ethan Herdrick
2009-Mar-21 16:46 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
In environment.rb I''ve set RAILS_GEM_VERSION to ''2.2.2'' . But I initially created this app with "rails foo -d mysql" and rails -v gives me: "Rails 2.3.2" . Is that the problem? Here''s what I get when I do "gem list -d rails" : *** LOCAL GEMS *** rails (2.3.2, 2.2.2) Author: David Heinemeier Hansson Rubyforge: http://rubyforge.org/projects/rails Homepage: http://www.rubyonrails.org Installed at (2.3.2): /opt/local/lib/ruby/gems/1.8 (2.2.2): /opt/local/lib/ruby/gems/1.8 So if this is the problem, how do I specify the version of rails to use at app creation time? When I tried specifying the path to ruby with -r I had problems, but that could be because I specified the full path to the interpreter, like this: rails test4 -r /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/rails -d mysql Of course if this is the problem then I''ve asked this on the wrong forum. Thank you for all the quick responses! On Fri, Mar 20, 2009 at 10:22 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> You shouldn''t need this. It looks like this is a rails problem. What version > of Rails are you using to build the app? > > Also, I''m moving this to the google group which is the preferred mailing > list. > > Mike > > On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote: > >> >> On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: >> >>> Here''s what I get when I try to use the console with the current >>> facebooker: >>> >>> >>> First I make a simple app: >>> rails foo -d mysql >>> cd foo >>> script/plugin install git://github.com/mmangino/facebooker.git >>> >>> Then I go to config/environment.rb and change the rails version to >>> ''2.2.2'' ?Then I run the console: >>> >>> script/console >>> >>> and I get: >>> >>> [17:56][herdrick:~/rails/foo]$ script/console >>> Loading development environment (Rails 2.2.2) >>> Curb not found. Using Net::HTTP. >> >> Make sure you have the curl-dev package installed and then install the >> curb ruby gem. >> >> >>> >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >>> `load_without_new_constant_marking'': no such file to load -- >>> application.rb (MissingSourceFile) >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >>> `load_file'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >>> `new_constants_in'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in >>> `load_file'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in >>> `require_or_load'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in >>> `depend_on'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in >>> `require_dependency'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 >>> ? ? ? ?from >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >>> `gem_original_require'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >>> `require'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >>> `require'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >>> `new_constants_in'' >>> ? ? ? ?from >>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >>> `require'' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' >>> ? ? ? ?from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' >>> ? ? ? ?from /opt/local/bin/irb:13 >>> >>> >>> What am I doing wrong? >>> >>> Thanks in advance! >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > >
Ethan Herdrick
2009-Mar-21 17:08 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
$ rails -v Rails 2.3.2 I think you are right; this is my problem. Please see my previous response. Thanks. On Sat, Mar 21, 2009 at 8:52 AM, Zhao Lu <zhao.lu.us at gmail.com> wrote:> application.rb was renamed to application_controller.rb. > http://afreshcup.com/2008/11/17/rails-2x-the-death-of-applicationrb/ > maybe that''s why you couldn''t find it? > what do you get if you do rails -v? > > On Fri, Mar 20, 2009 at 6:04 PM, Ethan Herdrick <herdrick at gmail.com> wrote: >> >> Here''s what I get when I try to use the console with the current >> facebooker: >> >> >> First I make a simple app: >> rails foo -d mysql >> cd foo >> script/plugin install git://github.com/mmangino/facebooker.git >> >> Then I go to config/environment.rb and change the rails version to >> ''2.2.2'' ?Then I run the console: >> >> script/console >> >> and I get: >> >> [17:56][herdrick:~/rails/foo]$ script/console >> Loading development environment (Rails 2.2.2) >> Curb not found. Using Net::HTTP. >> >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >> `load_without_new_constant_marking'': no such file to load -- >> application.rb (MissingSourceFile) >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in >> `load_file'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >> `new_constants_in'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in >> `load_file'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in >> `require_or_load'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in >> `depend_on'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in >> `require_dependency'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 >> ? ? ? ?from >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `gem_original_require'' >> ? ? ? ?from >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `require'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >> `require'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in >> `new_constants_in'' >> ? ? ? ?from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in >> `require'' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' >> ? ? ? ?from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' >> ? ? ? ?from /opt/local/bin/irb:13 >> >> >> What am I doing wrong? >> >> Thanks in advance! >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > Zhao >
Zhao Lu
2009-Mar-21 17:10 UTC
[Facebooker-talk] script/console: "no such file to load -- application.rb (MissingSourceFile)"
that was the problem. rails 2.3.2 creates application_controller.rb when rails 2.2.2 expects application.rb you''ll want to do this: /PATH_TO_RAILS_2.2.2/rails my_app (forcing creating app with rails 2.2.2) you''ll want to find the executable of rails 2.2.2. it''s probably something like this: zlu-macbook:~ zlu$ rails -v Rails 2.1.2 zlu-macbook:~ zlu$ which rails /usr/local/bin/rails zlu-macbook:~ zlu$ On Sat, Mar 21, 2009 at 9:46 AM, Ethan Herdrick <herdrick at gmail.com> wrote:> > In environment.rb I''ve set RAILS_GEM_VERSION to ''2.2.2'' . But I > initially created this app with "rails foo -d mysql" and rails -v > gives me: "Rails 2.3.2" . Is that the problem? Here''s what I get > when I do "gem list -d rails" : > > *** LOCAL GEMS *** > > rails (2.3.2, 2.2.2) > Author: David Heinemeier Hansson > Rubyforge: http://rubyforge.org/projects/rails > Homepage: http://www.rubyonrails.org > Installed at (2.3.2): /opt/local/lib/ruby/gems/1.8 > (2.2.2): /opt/local/lib/ruby/gems/1.8 > > > So if this is the problem, how do I specify the version of rails to > use at app creation time? When I tried specifying the path to ruby > with -r I had problems, but that could be because I specified the full > path to the interpreter, like this: > > rails test4 -r /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/rails > -d mysql > > Of course if this is the problem then I''ve asked this on the wrong forum. > > Thank you for all the quick responses! > > > > On Fri, Mar 20, 2009 at 10:22 PM, Mike Mangino > <mmangino at elevatedrails.com> wrote: > > You shouldn''t need this. It looks like this is a rails problem. What > version > > of Rails are you using to build the app? > > > > Also, I''m moving this to the google group which is the preferred mailing > > list. > > > > Mike > > > > On Mar 20, 2009, at 11:12 PM, Philip Hallstrom wrote: > > > >> > >> On Mar 20, 2009, at 6:04 PM, Ethan Herdrick wrote: > >> > >>> Here''s what I get when I try to use the console with the current > >>> facebooker: > >>> > >>> > >>> First I make a simple app: > >>> rails foo -d mysql > >>> cd foo > >>> script/plugin install git://github.com/mmangino/facebooker.git > >>> > >>> Then I go to config/environment.rb and change the rails version to > >>> ''2.2.2'' Then I run the console: > >>> > >>> script/console > >>> > >>> and I get: > >>> > >>> [17:56][herdrick:~/rails/foo]$ script/console > >>> Loading development environment (Rails 2.2.2) > >>> Curb not found. Using Net::HTTP. > >> > >> Make sure you have the curl-dev package installed and then install the > >> curb ruby gem. > >> > >> > >>> > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > >>> `load_without_new_constant_marking'': no such file to load -- > >>> application.rb (MissingSourceFile) > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:382:in > >>> `load_file'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > >>> `new_constants_in'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:381:in > >>> `load_file'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:256:in > >>> `require_or_load'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in > >>> `depend_on'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in > >>> `require_dependency'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/console_with_helpers.rb:19 > >>> from > >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `gem_original_require'' > >>> from > >>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > >>> `require'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > >>> `require'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in > >>> `new_constants_in'' > >>> from > >>> > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in > >>> `require'' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `each'' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'' > >>> from /opt/local/lib/ruby/1.8/irb/init.rb:21:in `setup'' > >>> from /opt/local/lib/ruby/1.8/irb.rb:54:in `start'' > >>> from /opt/local/bin/irb:13 > >>> > >>> > >>> What am I doing wrong? > >>> > >>> Thanks in advance! > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > > Mike Mangino > > http://www.elevatedrails.com > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "facebooker" group. > To post to this group, send email to facebooker at googlegroups.com > To unsubscribe from this group, send email to > facebooker+unsubscribe at googlegroups.com<facebooker%2Bunsubscribe at googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/facebooker?hl=en > -~----------~----~----~----~------~----~------~--~--- > >-- Zhao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090321/65d4d42e/attachment-0001.html>