Skip to content

Instantly share code, notes, and snippets.

@nurey
Last active August 29, 2015 14:19
Show Gist options
  • Save nurey/2d6c4427c25241d84b74 to your computer and use it in GitHub Desktop.
Save nurey/2d6c4427c25241d84b74 to your computer and use it in GitHub Desktop.
# Rails 4.2.1
[19] pry(main)> ActionController::Base.helpers.class
=> ActionView::Base
[20] pry(main)> ActionController::Base.helpers.asset_path 'clear.gif'
=> "/assets/clear.gif"
[21] pry(main)> ActionView::Base.asset_path 'clear.gif'
=> "/clear.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment