hi folks, I need help with something, I got a controller and I want be able to use a class method defined in ApplicationController as I do with (let say) the 'layout' function I'm new in Rails and Ruby but I know enough CakePHP to be aware of the conventions a stuff like that
The way I'm doing it is creating a class method in ApplicationController called authorize #...ApplicationController def self.authorized what = [] end #... and trying to do the following in (let say, BlogController) #...BlogController layout 'public' authorize :all def index end #... but I'm getting this error: undefined method `authorize' for #<BlogController:0x23322bc> someone knows the right way of doing this? thanks -- 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.