Frederick Cheung wrote:

> Are you using the app checked in at 
> http://code.google.com/p/simply-rich-authenticator
> essentially unmodified?

YES!

>That is using rails 2.0.2 (look at
> environment.rb) and rescue_from was only made to deal with
> RoutingError in july of 2008  (ie several months after that sample app
> was checked in), (if memory is correct that will mean that the first
> version it was in was rails 2.2)

I tracked through environment.rb with a debugger and
  RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
RAILS_GEM_VERSION is undefined before the statement and is defined as
  RAILS_GEM_VERSION = "2.0.2"
afterwards.

I continued the run and immediately got the error
- - -
F:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.
rb:530:in `send': undefined method `cache_template_extensions=' for 
ActionView::
Base:Class (NoMethodError)
- - -

So a little sniffing in the debugger and Google found
http://paulsturgess.co.uk/articles/show/75-undefined-method-cache_template_extensions-when-upgrading-to-ruby-on-rails-222

Commending out the line
  # config.action_view.cache_template_extensions         = false
in application.rb and voila ...

  rescue_from ActionController::RoutingError, :with => :route_not_found

now works.

I love you, Frederick Cheung.  Please marry me.

- - - -

Now I have another decision to make.  Do I use the autlogic code or the 
restful authorization code?

The http://code.google.com/p/simply-rich-authenticator code does a lot 
of stuff I want (e.g. email confirmation of the user's email account).

Yet ... I am reading a lot about why I should not use it.

Some advice, please.






-- 
Posted via http://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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to