Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access current_user (devise) in dynamic error pages #2

Open
jackkinsella opened this issue Feb 11, 2011 · 0 comments
Open

Can't access current_user (devise) in dynamic error pages #2

jackkinsella opened this issue Feb 11, 2011 · 0 comments

Comments

@jackkinsella
Copy link

Hi,

I tried out your gem this morning and it looks like a very promising solution to (what I see) as a problem in Rails 3. After trying differing solutions all morning yours is the only solid one. I'm very close to getting it working fully but have two issues off getting it perfect.

The first is that my current_user (via devise) is throwing an error

  Error during failsafe response: ActionView::Template::Error

/Users/jack/.rvm/gems/ruby-1.9.2-p0/gems/activemodel-3.0.3/lib/active_model/attribute_methods.rb:364:in method_missing' /Users/jack/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.3/lib/active_record/attribute_methods.rb:46:inmethod_missing'
/Users/jack/Code/oxnotes3/app/helpers/application_helper.rb:3:in current_seller' /Users/jack/Code/oxnotes3/site/app/views/shared/_nav_bar.html.erb:2:in_site_app_views_shared__nav_bar_html_erb___737376405_689060__547631846'
/Users/jack/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.3/lib/action_view/template.rb:135:in `block in render'

The second (related) is that some of my preferences (e.g. image to be displayed on layout) is determined at db level and this isn't working either.

I'm thinking this might mean that Goalie is having issues db issues? Any ideas? Roads I should explore?

Jack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant