Skip to content
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 #10

Closed
nm opened this issue Jan 7, 2012 · 1 comment
Closed

stack level too deep #10

nm opened this issue Jan 7, 2012 · 1 comment

Comments

@nm
Copy link

nm commented Jan 7, 2012

When i include the carrierwave_direct gem I get the following error:

    stack level too deep

Full Trace

    carrierwave_direct (0.0.2) lib/carrierwave_direct/mount.rb:8

mount.rb

      uploader.class_eval <<-RUBY, __FILE__, __LINE__+1
        def #{column}; self; end
      RUBY

rails 3.1.0, ruby 1.9.2, carrierwave 0.5.8, carrierwave_direct 0.0.2

I'm using a standard uploader (as shown in the readme).

What am I doing wrong? Thanks in advance!

@nm
Copy link
Author

nm commented Jan 11, 2012

Solved it!

Don't name your string column "file". It works with carrierwave only, but with carrierwave_direct it results in a stack level error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant