-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
'Stack level too deep' error #512
Comments
Hello, could you try to reproduce this issue on a vanilla rails app? Thanks |
Also experiencing this... tried on a brand new rails app without using devise |
How to reproduce bug: use this snippet https://gist.github.com/313121 for generating paperclip attachments to factory girl. Problem is in this line:
#157 - looks like same issue:
How to fix:
|
I'm having this issue too |
This looks similar to #157. |
@jgadbois One of your dependencies must be including ActionDispatch::TestProcess. Please see comment by @brain-geek above to fix it. |
Ok looks like the ckeditor gem is including the file for some of its tests:
Isn't this a valid bug though? Should active admin blow up anytime someone uses a gem that includes an ActiveDispatch module? |
Actually I'm still getting it - this is with all gems mentioning the module taken out (except actionpack) |
Hi, I'm having this issue too :
|
Getting the same errors. If I comment out the ActionDispatch line then I no longer get the 'stack level too deep' |
This should workaround the bug: http://gist.github.com/4079399 |
For me the culprit was to remove the following line include ActionDispatch::TestProcess This means that instead of using fixture_file_upload('/images/ruby-on-rails.jpg', 'image/jpeg') As rugginoso posted i would then use let(:logo) { Rack::Test::UploadedFile.new('spec/fixtures/images/ruby-on-rails.jpg', 'image/jpeg') } |
include ActionDispatch::TestProcess if Rails.env.test? |
@Rodrigora's solution works for me. |
Same for me, @Rodrigora's solution finally helped me after 2 hours of trying to see where was I failing. Rails didn't tell me it had to do with Factories. |
I take it back. I need |
After logging in to activeadmin i have this error:
Full Trace
Gemfile:
config/initializers/active_admin.rb is default.
Have tried different versions of activeadmin - both atable and repo, reinstalling it, removing all files from app/admin.
The text was updated successfully, but these errors were encountered: