# Undefined method \`link\_to'

**URL:** <https://www.ruby-forum.com/t/undefined-method-link-to/49067>\
**Category:** Rails\
**Created:** [November 29, 2005, 1:35pm UTC](https://www.ruby-forum.com/t/undefined-method-link-to/49067 "2005-11-29T13:35:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulchin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8797f3/32.png) [@paulchin](https://www.ruby-forum.com/u/paulchin)\
**Post date:** [November 29, 2005, 1:35pm UTC](https://www.ruby-forum.com/t/undefined-method-link-to/49067/1 "2005-11-29T13:35:39Z")

</div>

Hi, all I’m trying call link\_to from another helper  
but got this error:

undefined method `link_to' for module`UserHelper’

how can I get access to helper from another helper? this is my  
users\_helper.rb:

module UsersHelper

alias ink\_to\_original link\_to  
alias link\_to link\_to\_permission

def link\_to\_permission(name, options = {}, html\_options = nil,  
\*parameters\_for\_method\_reference)  
if @permission  
if html\_options  
html\_options = html\_options.stringify\_keys  
convert\_options\_to\_javascript!(html\_options)  
tag\_options = tag\_options(html\_options)  
else  
tag\_options = nil  
end  
url = html\_escape(options.is\_a?(String) ? options :  
url\_for(options,  
\*parameters\_for\_method\_reference))  
“\<a href=”#{url}"#{tag\_options}\>#{name||url}"  
else  
link\_to\_original( name, options,  
html\_options,\*parameters\_for\_method\_reference )  
end

end

end
