{"comment":{"created_at":"2011-10-20T01:20:54Z","body":"Looks like we've got this covered.","updated_at":"2011-10-20T01:20:54Z","url":"https://api.github.com/repos/jcasimir/draper/issues/comments/2463493","id":2463493,"user":{"avatar_url":"https://secure.gravatar.com/avatar/039547def8be2e50f7dc4a1beb9fecaa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"039547def8be2e50f7dc4a1beb9fecaa","url":"https://api.github.com/users/jcasimir","id":43102,"login":"jcasimir"}},"action":"created","issue":{"number":12,"created_at":"2011-08-10T18:32:35Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm using Devise, which generates its helpers using `AbstractController#helper_method`.  That works like so:\r\n\r\n      def helper_method(*meths)\r\n        meths.flatten!\r\n        self._helper_methods += meths\r\n\r\n        meths.each do |meth|\r\n          _helpers.class_eval <<-ruby_eval, __FILE__, __LINE__ + 1\r\n            def #{meth}(*args, &blk)\r\n              controller.send(%(#{meth}), *args, &blk)\r\n            end\r\n          ruby_eval\r\n        end\r\n      end\r\n\r\nSo the helper ends up wanting to call `controller`, and that's nil since you don't proxy it.  Any ideas how to solve it?","comments":23,"title":"Needs to provide \"controller\" for helper_method helpers","updated_at":"2011-10-20T01:20:54Z","url":"https://api.github.com/repos/jcasimir/draper/issues/12","id":1381750,"assignee":null,"milestone":null,"closed_at":"2011-10-20T01:20:54Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/b8aca816cb8646a855175f64bdfa2838?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8aca816cb8646a855175f64bdfa2838","url":"https://api.github.com/users/jaylevitt","id":11246,"login":"jaylevitt"},"html_url":"https://github.com/jcasimir/draper/issues/12","labels":[],"state":"closed"},"legacy":{"issue_id":1381750,"comment_id":2463493}}