-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: protected method `render' called for ... #176
Comments
Stefan, I'm not convinced this is Hobo. Tim |
Maybe the full stracktrace is usefull:
In case you're wondering: responders is seen here because:
So maybe I should move away from controller level respond_with ... |
@enwood Thanks for your comment, I believe it's an incompatibility to Rails 4.2.x ... will look into this as well ... |
Yes I thought the responders gem might be a culprit. Haven't confirmed I've just had to back down to Rails 4.0.8, no responders gem, and Hobo T On Thu, Jan 14, 2016 at 9:37 AM, Stefan Haslinger [email protected]
|
Thanks again @enwood , I'm not in trouble here and can move backwards any time, so no worries :-).
Line 35. |
Hi Stefan, I have tried to reproduce this error in an empty app, unsuccessfully. Maybe there's some gem/ruby version incompatibility we are missing. I have uploaded the test app here: test_rails_425.zip. I'm running it with Ruby 2.1.5p273, Rails 4.2.5, and Hobo 2.2.4. Can you download it and try to see if the error happens? The "ThingsController" should have a similar code to your PodcastsController. Warm regards, |
Hi Ignacio, thanks for your efforts, I can confirm, that your test app runs fine. I will no go on and intruduce gems and later probably code to reproduce the issue. Cheers, Stefan |
OK, I drilled it down. Ignacio, please change the line in the Gemfile of your test app
to
to see it fail, change it to
to see it succeed again. To be precise, Hobo is compatible to responders in version 2.1.0, but not to 2.1.1 . Cheers, Stefan |
Thanks a lot Stefan, that makes a lot of sense. I'll try to find out what's wrong. |
I've seen a quick work-around ("band-aid") to be this in your controllers: public :render Tim On Thu, Jan 21, 2016 at 4:34 PM, Ignacio Huerta [email protected]
|
I see one more regression (updating from Hobo 2.1.1. to 2.2.4 / Ruby 4.0.13 to 4.2.5):
Overriding an index method
falls in several occasions with the error
Full sourcecode of the controller is available .
The text was updated successfully, but these errors were encountered: