Created
June 27, 2014 13:44
-
-
Save tkfm-yamaguchi/e9b8cd23ab34a1fd9b83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/sprockets.rb | |
YourAppName::Application.configure do |config| | |
config.assets.context_class.instance_eval do | |
# enables to use named_route in the asset files. | |
# ( asset file should be ERB ) | |
include Rails.application.routes.url_helpers | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment