Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created March 23, 2013 02:11
Show Gist options
  • Save ppworks/5226103 to your computer and use it in GitHub Desktop.
Save ppworks/5226103 to your computer and use it in GitHub Desktop.
Enable to show css & js on save_and_open_page ref: http://qiita.com/items/1bf5aa6083b45b02b4f5
gem 'guard-rails-assets'
guard 'rails-assets', run_on: :change do
watch(%r{^app/assets/.+$})
end
# guard-rails-assets
config.assets.prefix = 'assets-test'
# capybara
config.action_controller.asset_host = "file://#{::Rails.root}/public"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment