-
Notifications
You must be signed in to change notification settings - Fork 103
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
undefined local variable or method `filepicker_js_include_tag' #82
Comments
Confirmed, same thing with me |
put this in ApplicationController:
|
Guys, sorry for that, I create some features specs to this bug dont come back anymore. I made a new release today, here is the news. @dgalarza congratz for the StrongParametersMatcher, we are realy close to add suport to the rails 4.1.0 😉 |
So I'm using the filepicker-rails Gem in version 1.1.0 with Rails 4.0.2 and I still get the same issue. @dylanjha fix helps here, but it would be great if it works by just including the |
@pmuens I added a appraisal for rails 4.0.2 on my local machine and all specs still passes. I will create a simple app to test this, when I have some time. |
@maurogeorge thank you very much! |
@pmuens https://gist.github.com/maurogeorge/11269467 I created a sample app and all run as expected. Take a look at the gist and the README, probably you missed something. Let me know when you test |
@maurogeorge thank you very much for your effort! Your test application seems to work fine. In the meantime, I needed to switch to carrierwave-filepickerio. The problem back then (with filepicker-rails) was still not resolved. Maybe I've missed something. But thank you very much for your effort and your test application which shows that filepicker-rails works with Rails 4.0.2. |
@pmuens thanks for the feedback 👍 |
Confirming this bug still exists in Rails 4.1.2 and filepicker-rails 1.2.0 |
@Oshuma can you double check? This bug was covered with the feature spec. Take a look at this gist and README |
Yep, definitely an issue with those versions I mentioned. @dylanjha's fix (manually including the helpers in ApplicationController) is what I had to do. |
@Oshuma I created a new rails app with Rails 4.1.2 and filepicker-rails 1.2.0 and works. Take a look at this gist. I guess you can try follow this steps: One question, do you try restart the server? |
@maurogeorge I did restart my server after running |
@Oshuma try run with |
@maurogeorge I always run rails related commands through bundler. |
@Oshuma you are on a fresh app? I am out of ideas =) |
@maurogeorge Yea, I dunno, man. At any rate, including the helpers manually works just fine. |
@Oshuma ok, I will keep this bug closed, since no more people have the problem on the 1.2. |
Hello, I recently added the filepicker-rails gem to a Rails 4.0.2 project. It appears that the view helpers are not being included properly as I end up getting an 'undefined local variable or method' error for any of the helpers in
FilepickerRails::ApplicationHelper
.The form helpers appear to be working fine however.
The text was updated successfully, but these errors were encountered: