-
Notifications
You must be signed in to change notification settings - Fork 61
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
Helpers methods not available #36
Comments
I had to explicitly call the helpers I need from ApplicationController to make it work:
I also forked the repo to custom the S3 path I'm writing to and make the input file match our needs and also I added a class to customize the downloadable URL with a expiring token from AWS. |
I've encountered this too. A few days ago, I added the Spree gem to my app. It couldn't find methods from its frontend_helper. It's been very difficult to track this down, but I eventually isolated it to the inclusion of the s3_multipart gem. When s3_multipart is included, it breaks Spree; when it's not, Spree is fine. I'm having trouble figuring out what s3_multipart is doing to break helpers, though. Jose, did you ever find that out? I could also remove s3_multipart from my app, but I'd prefer not to (I include it as a backup option for my users if they have trouble with FineUploader). |
I've figured this out, mostly. s3_multipart generates a file: This file's first line will be:
It's this line, or this class being created in this way, that breaks the helpers. If you change it to this, the helpers work, and s3_multipart still works:
I don't know exactly why this works, but it seems to work. |
…ontroller Being subclassed from ApplicationController caused some helper methods to not work. (See maxgillett#36)
Oh @michaelkeenan sorry for delay, no I couldn' figure it out I had to manually add each helper to make it work, I'll try your workaround |
it worked for me too! 👍 👯 thanks @michaelkeenan! |
You're welcome! :) |
Hi there,
I'm currently testing the s3_multipart implementation in our app but after following all the steps now I can't get any of our (Module) helpers to work, none of them is available, is there something special I need to do to include the helpers again?
Thanks
Rails 4.1.8
Ruby 2.1.1
s3_multipart 0.0.10.6
The text was updated successfully, but these errors were encountered: