-
Notifications
You must be signed in to change notification settings - Fork 214
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
My experience setting up activeadmin-mongoid for rails 4 #78
Comments
Getting errors on find_by_[:id] when trying to edit a resource, trying to figure out how to fix that. |
Found a solution to the problem: just add the line |
Found a cleaner solution than the one above in this issue #79 |
Wow thanks that just made my day :) |
@pencilcheck thanks man!! |
Search filter is not supported because the original repo uses the version of ransack which does not support NoSQL such as mongoid, if we want filter to work then someone has to find a replacement for that. |
Well, I tried to follow your steps... but when I start my server I get:
|
Looks like that went away when I reran the devise generator... |
I believe if you follow my spec here, you don't need any patch at all, except maybe this snippet from this issue heartcombo/devise#2949:
In the user class used for devise |
Just to share this with you guys the steps I take to resolve errors I have encountered when setting up activeadmin-mongoid for rails 4.1.1
You need those gems in Gemfile:
gem 'devise'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'rails4'
This issue #76 can be solved by following @djsmentya's answer at heartcombo/devise#2949
Follow this SO answer to avoid activeadmin.css taking over app's css
http://stackoverflow.com/a/11745446/1742820
Follow @funfun's answer in the link below to fix the "undefined method `object' for #Mongoid::Criteria:0x.." I guess from formtastic
#52
Hopefully this issue would help out wandering google searching souls trying to make activeadmin-mongoid work on rails4
I would appreciate if the support for rails4 can benefit from this report. Because this is definitely not straightforward...
The text was updated successfully, but these errors were encountered: