Hi Fred,

Thanks for chiming in.

I changed config/environment.rb back to the original code,  with one
change:
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
in order to run my first Rails 2 version.

I also introduced the line:
    BUG_BUG_BUG_BUG_BUG_BUG_BUG_BUG_RLM
in my mal-named controllers/cvs_items_controller.rb
in order to force some diagnostics in the Firefox 3.0.4 tab running my
rails app.

The diagnostics:
============================
uninitialized constant
CvsItemsController::BUG_BUG_BUG_BUG_BUG_BUG_BUG_BUG_RLM
RAILS_ROOT: K:/_Projects/Ruby/_Rails_Apps/PayrollSys
Application Trace | Framework Trace | Full Trace
K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/
activesupport-2.2.0/lib/active_support/dependencies.rb:102:in
`const_missing'
app/controllers/cvs_items_controller.rb:96:in
`get_csv_filenames_attributes'
app/controllers/cvs_items_controller.rb:9:in `index'
===========================
suggest that my specification of Ruby 2.0.2 was not honored; Version
2.0.0 gems are continuing to be run.

I posted the relevant code on http://www.pastie.org/321639 in case you
want to see if I’ve done anything stupid.  The files include:
- config/environment.rb
- app/controllers/cvs_items_controller.rb (bug in last method)
- ActionController Exception

> (see http://github.com/rails/rails/tree/master/railties%2Fenvironments%2Fb.. 
> .)
I'll check out the link now.  Goodness knows,  I can always use more
Rails education.

Best wishes,
Richard


On Nov 22, 3:24 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Nov 22, 8:05 pm, RichardOnRails
>
> <[EMAIL PROTECTED]> wrote:
> > Hi again,
>
> > Wow, that's pretty neat.  Of course,  it's not quite as nice that I
> > thought Rails offered with the line in config/environment.rb, namely
> > overriding "RAILS_GEM_VERSION = '2.2.0' unless defined?
> > RAILS_GEM_VERSION" somehow.
>
> > I'm going to hold out for a little while to see if someone can tell me
> > why my attempt is working.
>
> First of rails -v is always going to report the latest version of
> rails installed on your system. If you want to run another version of
> it you can do rails _2.1.2_ for example.
>
> Secondly the trick here is that rails has to play a slightly dirty
> trick with RAILS_GEM_VERSION: it actually loads environment.rb and
> pulls it apart with a regular expression to find what you've set it to
> (seehttp://github.com/rails/rails/tree/master/railties%2Fenvironments%2Fb...)
>
> It's possible you've confused it with extra statements in
> environment.rb
>
> Fred
>
> > Thanks for your suggestion,
> > Richard
>
> > On Nov 22, 2:03 am, Web Reservoir <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hi,
>
> > > Your problem is solved very easily.
>
> > > Install Netbeans 6.5 today. It comes with an exclusive " FIRST TIME
> > > FEATURE " added in this new version.
>
> > > It helps you choose the rails framework at the time of creating project.
> > > like Rails 1.2, 2.0.2, 2.1.2, 2.2.2 etc..
>
> > > This was the most outstanding request and finally it has landed.
>
> > > Hope this helps
> > > --
> > > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to