search for: link_to_origin

Displaying 2 results from an estimated 2 matches for "link_to_origin".

Did you mean: link_to_original
2006 Jan 11
5
stack level too deep problem
...link_to function, (to disable link_to if the user has no access right) this is my code, it work the first time I run the application, the second time I refresh the page I always get "stack level too deep error" module UsersHelper include ActionView::Helpers::UrlHelper alias_method :link_to_original, :link_to def permission? true end def link_to(name, options = {}, html_options = nil,*parameters_for_method_reference) if permission? link_to_original( name, options,html_options,*parameters_for_method_reference ) end end end the error message howing app/views/u...
2005 Nov 29
0
undefined method `link_to'
..._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}</a>" else link_to_original( name, options, html_options,*parameters_for_method_reference ) end end end