Re: Copying controller methods to helpers.

Chris Wanstrath
Sun, 21 Jan 2007 09:50:22 -0000

On 1/20/07, Jake Janovetz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:

> I would also like to provide these same methods to my views, but I
don''t
> quite understand how the scope will work.

In your ApplicationController:

helper_method :can_view?, :can_modify?

--
Chris Wanstrath