Reputation: 171
Can we call helper functions in controller methods? Can you give me a simple example too?
Upvotes: 0
Views: 41
Reputation: 35531
Sure, just include the helper in the controller:
def MyController < ApplicationController
include MyHelper
...
end
Upvotes: 2