include
is generally used to include code at the instance level, where extend
is for the class level. In this case, you'll want to look to have User
extend
ApplicationHelper
. I haven't tested this, but it might be that simple.
RailsTips has a great write-up on include
vs. extend
- I highly recommend it.