-
Notifications
You must be signed in to change notification settings - Fork 199
Rails 3 compatibility broken #210
Comments
At the very least, the gemspec should be updated to state that Rails 4 is required. |
How about using semver? |
All, could you point your |
0.9.8 still fails at line 82:
|
@merqlove I'm curious, have you got the 0.9.9 working on your Rails 3.2 app, or is this issue present in 0.9.9 too? Thanks. |
@agis- Yes, still present. And only my patch fixes it. |
@agis- I did pull request. #231 |
@agis- Yes, my patch is for #210 or something. |
@agis- Yeah, i have not tried 0.9.9 in production. |
Hi everyone, In addition to the Rails 3.2 compatibility problems mentioned in the above comments, I found a problem in the almond build. A change in the rjs_driver template between 0.9.3 and 0.9.5 caused the almond build to output to almond.js instead of main.js in the tmp directory. The fix to the above problem was to just use the older working 0.9.3 version. It would be nice to specify in the readme that 0.9.5 (0.9.3 for Rails 3.2 + and almond) is the last known version with Rails 3 compatibility (possibly a gemspec constraint as well). Or do we intend to continue to support Rails 3.x? |
@sun16 Almond support is screwed up right now. Does it work normally? |
@carsomyr Sorry about the late response. I have just started using the latest Rails 4.2.5, so I can confirm that almond support is broken regardless of the Rails version. So to update my previous comment, almond support has been broken since 0.9.3, and it's unrelated to Rails 3.x compatibility. I will create a separate PR for fixing this issue. |
@sun16 Could you file a separate issue for this? |
The commit 913f599 adds lib/requirejs/rails/view_proxy.rb which has the line
include ActionView::Helpers::AssetUrlHelper
in it. This module does not exist in Rails 3.It appears that it is included to get access to
javascript_path
. The same method is defined inActionView::Helpers::AssetTagHelper
in Rails 3.Perhaps compatibility could be restored with a code change like this:
AssetTagHelper includes TagHelper in Rails 3, so it need not be included again.
The text was updated successfully, but these errors were encountered: