Frederick Cheung wrote in post #989266: > On 25 Mar 2011, at 16:47, John Merlino <li...@ruby-forum.com> wrote: > >> Frederick Cheung wrote in post #988949: >>> On Mar 23, 8:52pm, John Merlino <li...@ruby-forum.com> wrote: >>>> >>>> >> if >> params[:controller].singularize.capitalize.constantize.method_defined? >> :viewable > > Why not just controller.respond_to? :viewable ? > > Fred
Thanks for the idea. That should work. -- 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@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.