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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ramon Bispo
December 17, 2012
Programming
0
310
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
570
Other Decks in Programming
See All in Programming
Linux Kernelの1文字のミスで 権限昇格ができた話
rqda
0
2.2k
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
KagglerがMixSeekを触ってみた
morim
0
340
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
夢の無限スパゲッティ製造機 -実装篇- #phpstudy
o0h
PRO
0
170
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
170
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
Claude Code Skill入門
mayahoney
0
440
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
440
我々はなぜ「層」を分けるのか〜「関心の分離」と「抽象化」で手に入れる変更に強いシンプルな設計〜 #phperkaigi / PHPerKaigi 2026
shogogg
2
700
Ruby and LLM Ecosystem 2nd
koic
1
1.4k
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
2.9k
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
140
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
A designer walks into a library…
pauljervisheath
210
24k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
[SF Ruby Conf 2025] Rails X
palkan
2
870
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
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!