· 1 min read
Screencast: Asset Pipeline Grundlagen
Downloads in verschiedenen Formaten:
Resourcen:
- Asset Pipeline Rails Guide
- Sprockets Directive Processor Class
- Tilt
- Episode 267: CoffeeScript Basics
- Episode 268: Sass Basics
- Episode 277: Mountable Engines
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]