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
rails 3.2.0, anyone managed to use Activeadmin? #891
Comments
I read a tweet yesterday from josevalim about devise bugs with rails 3.2 being fixed and released recently. |
I installed devise --pre, and now I get: undefined local variable or method `paths' for #ActiveAdmin::FileUpdateChecker:0x007fa6a9fea158 doing db:migrate, weird... |
I'm using Rails 3.2, Devise 2.0, and the latest master branch of meta_search
and I'm getting the same error as @allaire :
|
the problem has nothing to do with rake commenting out the active_admin.rb in initializers allows the migrations to run fine (obviously this will cause active admin not to work) |
it looks like in reloader.rb
should be:
|
Glad to know I'm not the only one. @YodaTravis did you managed to get it working with the reloader.rb fix? |
yes and no |
any one find a better solution to this yet? |
i managed it to work with this option and this patch
|
though this patch will not fit for 3.0.x and 3.1.x of course. |
anyone else tried this patch? |
@efdi your patch works for me, i added one line and removed the custom FileUpdateChecker, since the default should handle deletion of files as well now. (rails/rails@80256ab) For me it works now with Not sure if it's the right approach, i saw it used in the i18n reloader of rails, added with this commit Here is the adapted patch : zzip/active_admin@166cf07 |
@zzip I'm not sure about removing custom FileUpdateChecker, rails' default implementation has this in rdoc: |
I just removed ActiveAdmin's custom Checker so it works with Rails 3.2. How often do you remove files? I'll restart the server if I do... |
See #931 |
I put this duck punch with a reminder in my active admin initializer config/initializers/active_admin.rb if ActiveAdmin::VERSION == "0.3.4" && Rails.version == "3.2.0"
class ActiveSupport::FileUpdateChecker
def paths
@files
end
end
else
warn = "!! double check the ActiveSupport::FileUpdateChecker duck punch in #{__FILE__} !!"
puts "!" * warn.size
puts warn
puts "!" * warn.size
end |
thanks, it works for me! |
Not for me :( And IMHO, the ongoing compatibility issues aren't worth the feature of picking up deleted files. |
I just pushed a patch that implements file reloading (without deletions) on master. If there aren't any major issues with Active Admin and Rails 3.2, I will release master as 0.4.0 tomorrow. |
Thanks ! |
thanks for the update bundle installed and migrations are working just fine again |
I came across this error when I ran rake db:migrate How can I solve it please. |
Are you using ActiveAdmin from the master branch? |
No I am not. I am not. Is there anything you think I can do? |
Could you see if using ActiveAdmin from master solves this issue? |
I'm stuck on the install, on rake db:migrate, I get:
rake aborted!
An error has occurred, this and all later migrations canceled:
uninitialized constant DeviseCreateAdminUsers::AdminUser
anyone else?
The text was updated successfully, but these errors were encountered: