· 1 min read

Screencast: Asset Pipeline Grundlagen

Downloads in verschiedenen Formaten:

source code mp4 m4v webm ogv

Resourcen:

bash

[bash] bundle open jquery-rails rails s -e production rake assets:precompile [/bash]

app/assets/anything/greeting.txt.erb

[html] Hello world <%= 1 + 1 %>! [/html]

app/assets/javascripts/application.js

[javascript] //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree ./public // or //= require_directory . [/javascript]

app/assets/javascripts/admin/categories.js.coffee

[javascript] alert(“hello!“) [/javascript]

Back to Blog