Mcgill Guy wrote:> I am having the same issue , did you manage to resolve this ?
>
> it seems that if i try to access a page that has the permissions
> requirements directly i will get the error, but i can avoid it by
> going through home and then navigating from there with menu ...
> I think it must be somesort of a loading error, as the methods
> injected by the plugin "accept_role?" and such are not present at
the
> time of the error .
>
> any thoughts would be greatly appreciated !
> cheers
>
> On Jul 14, 11:46�am, Elliott Blatt <rails-mailing-l...@andreas-s.net>
The plugin was not broken. I had done something stupid. Before
installing the plugin, I had stubbed out a method like this:
def has_role?
true
end
This method was called in place of the the method defined by the plugin.
Once I removed the stubbed version, everything worked fine.
Have you defined any method in your user model that might conflict?
--
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---