Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Assets on Rails na Prática
Search
Ramon Bispo
December 17, 2012
Programming
0
300
Assets on Rails na Prática
Entendendo, configurando e aplicando a estrutura de assets do Rails.
Ramon Bispo
December 17, 2012
Tweet
Share
More Decks by Ramon Bispo
See All by Ramon Bispo
Dicas para tomadas de decisão seguras em front-end
ramonpage
0
560
Other Decks in Programming
See All in Programming
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
Oxlint JS plugins
kazupon
1
970
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
240
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
CSC307 Lecture 06
javiergs
PRO
0
690
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
130
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
55
ラッコキーワード サービス紹介資料
rakko
1
2.3M
KATA
mclloyd
PRO
34
15k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
A Tale of Four Properties
chriscoyier
162
24k
Speed Design
sergeychernyshev
33
1.5k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
180
Are puppies a ranking factor?
jonoalderson
1
2.7k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
120
HDC tutorial
michielstock
1
380
Docker and Python
trallard
47
3.7k
Transcript
RAMON BISPO http://ramonpage.com @ramonpage ASSETS ON RAILS NA PRÁTICA ENTENDENDO,
CONFIGURANDO E APLICANDO
ASSET PACKAGING NO RAILS @RAMONPAGE
UM POUCO DE HISTÓRIA Rails < 3.1 - Jammit http://documentcloud.github.com/jammit/
- Asset Packager https://github.com/sbecker/asset_packager Rails 3.1+ - Sprockets https://github.com/sstephenson/sprockets @RAMONPAGE
@RAMONPAGE RAILS 3.1+ ASSET PIPELINE config.assets.enabled = true
@RAMONPAGE RAILS 3.1+ ASSET PIPELINE FINGERPRINTING /stylesheets/styles.css?2509895876 styles.css => styles-908e25f4bf641868d8683022a5b62f54.css
ESTRUTURA DOS ASSETS NO RAILS @RAMONPAGE ↳ app ↳ assets
↳ images - ... ↳ javascripts - application.js - ... ↳ stylesheets - application.css - ... ↳ ...
@RAMONPAGE ENTENDENDO OS MANIFESTOS application.js //= require jquery //= require
jquery_ujs //= require_tree . application.css /* *= require_self *= require_tree . */
@RAMONPAGE MAIS SOBRE ASSET PIPELINE RAILS GUIDES http://guides.rubyonrails.org/asset_pipeline.html
ENTENDENDO PRÉ-PROCESSADORES @RAMONPAGE COFFEESCRIPT http://jashkenas.github.com/coffee-script/ SASS http://sass-lang.com/ COMPASS http://compass-style.org/
@RAMONPAGE SASS EM USO .CSS .content-navigation { border-color: #3bbfce; color:
#2b9eab; } .border { padding: 8px; margin: 8px; border-color: #3bbfce; } .SASS $blue: #3bbfce $margin: 16px .content-navigation border-color: $blue color: darken($blue, 9%) .border padding: $margin / 2 margin: $margin / 2 border-color: $blue
@RAMONPAGE NÃO GOSTOU? DÊ UMA OLHADA NO LESS http://lesscss.org/
SHOW ME THE CODE @RAMONPAGE
RAMON BISPO http://ramonpage.com @ramonpage OBRIGADO!