There seems to be a few blockers of upgrading administrate, and since Rails 5 was released yesterday - It'd be good to have administrate upgraded aswell.
@graysonwright Let me know if there's anything I can do to help out.
Yes, please let's make administrate Rails 5 compatible :)
What about PR https://github.com/thoughtbot/administrate/pull/575 ?
Just remind that currently we can use this fork, it works well with rails 5
gem 'administrate', github: 'greetpoint/administrate', branch: 'rails5'
gem 'bourbon', '~> 5.0.0.beta.5'
@ID25 Thanks for bringing that up!
I started incorporating your branch into Administrate itself and captured it here https://github.com/thoughtbot/administrate/tree/rails-5.
All though, I ran into issues with generators. But ran out of time, so if someone else wants to pick this up - feel more than welcome to do so.
Looks like the column_types method no longer exists. I patched this method and had the generator run successfully.
def column_type_for_attribute(attr)
if enum_column?(attr)
:enum
else
klass.column_types[attr].type
end
end
def column_type_for_attribute(attr)
if enum_column?(attr)
:enum
else
klass.columns.find {|c| c.name == attr }.try!(:type) # This line changed
end
end
What is the status?
I'm also really curious for the status.
@graysonwright ?
Any news?
Soo... What is the state of play for Rails 5? I see a couple of different branches in this thread which I can use for Rails 5, which is the better one to use?
@J77J You can use the rails5 branch from this fork. I've been using it on production for over a month without a problem.
The Gemfile declaration would be:
gem "administrate", github: "pablo-co/administrate", branch: "rails5"
It's a temporary workaround while administrate officially supports Rails 5. 馃憤
Thanks @pablo-co
I look forward to Rails 5 support. Thanks a lot for all the work going into making it happen. 鉂わ笍
@pablo-co I just installed your fork, and it worked only after I added bourbon to my Gemfile. Might want to add that to your instructions! Thanks for your work!!!
Can we close this since https://github.com/thoughtbot/administrate/pull/636 has been just merged in ?
With the merge of #636, I'm calling this closed.
Most helpful comment
What is the status?