Skip to content

Instantly share code, notes, and snippets.

@chyld
Created September 14, 2012 19:02
Show Gist options
  • Save chyld/3723990 to your computer and use it in GitHub Desktop.
Save chyld/3723990 to your computer and use it in GitHub Desktop.
asset pipeline
# checking the path
rails c
pp Rails.application.config.assets.paths
# in config/application.rb
config.assets.paths << "#{Rails.root}/vendor/assets/bootstrap"
<%= f.button({:class => "btn btn-primary"}) %>
<%= render :partial => 'shared/showsong', :locals => {:song => @song} %>
<%= render :partial => 'shared/showsong', :collection => @album.songs, :as => :song %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment