# Using a helper\_method in a view

**URL:** <https://www.ruby-forum.com/t/using-a-helper-method-in-a-view/146087>\
**Category:** Rails\
**Created:** [August 17, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/using-a-helper-method-in-a-view/146087 "2008-08-17T19:31:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjnkns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Post date:** [August 17, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/using-a-helper-method-in-a-view/146087/1 "2008-08-17T19:31:55Z")

</div>

I’m having an odd problem… in application.rb I have:

helper\_method :admin?

…since I use this all the time in my views to test if the user is an  
administrator, of course. Pretty standard.

I thought I’d be able to use this in specific helpers, but I’m getting  
“method not found”:

undefined method `admin?’

I’m surprised the admin? method works in a view but not in the  
respective helper. Anything I’m missing? How can I use this method in  
helpers?

Thanks!

---

<div class="post-metadata">

**Author:** ![cjnkns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Post date:** [August 17, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/using-a-helper-method-in-a-view/146087/2 "2008-08-17T22:15:55Z")

</div>

Oops… subject should be “using a helper\_method in a helper”.
