Rails 4.1 uninitialized constant AbstractController::Layouts
masterkain opened this issue · comments
Hello,
getting:
/Users/kain/.rvm/gems/ruby-2.1.0/gems/render_anywhere-0.0.4/lib/render_anywhere/rendering_controller.rb:6:in `<class:RenderingController>': uninitialized constant AbstractController::Layouts (NameError)
from /Users/kain/.rvm/gems/ruby-2.1.0/gems/render_anywhere-0.0.4/lib/render_anywhere/rendering_controller.rb:2:in `<module:RenderAnywhere>'
from /Users/kain/.rvm/gems/ruby-2.1.0/gems/render_anywhere-0.0.4/lib/render_anywhere/rendering_controller.rb:1:in `<top (required)>'
with Rails 4.1.x
Hi @masterkain
I'll try and take a look. Do you have an example project I can check out and replicate the issue on?
Robbie
Looks like there's been some changes from Rails 4.0 to 4.1 in this area. I'll take me a little while to get this working in 4.1 with backwards compatibility with 4.0 and 3.2. Any reason you're looking at 4.1 beta? Is this an area you can help with, or are you just checking for future compatibility?
Robbie
I'm just checking future compatibility, I'm on 4-0-stable for now, but I guess we should be ready when 4.1 hits since it contains some decent improvements.
I'm really busy at the moment, if we can wait I'll try to take a look in near future.
Thanks,
C.
I had a breakthrough after my message. I've created a branch with what I believe should be 4.1 support. Can you check it out and let me know if you have any problems?
https://github.com/yappbox/render_anywhere/tree/rails41
Robbie
Moved to master.
No gem update for this?
Should be in from v0.0.6, are you having issues?
I also updated the latest master branch as v0.0.8 so this should be in there.
yeah, bundle updating render_anywhere didn't do anything, i had to link to the repo to get rid of the error
Its working now, i specified '0.0.7' in my gemfile