Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Assets on Rails na Prática
Search
Ramon Bispo
December 17, 2012
Programming
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Assets on Rails na Prática
Entendendo, configurando e aplicando a estrutura de assets do Rails.
Ramon Bispo
December 17, 2012
More Decks by Ramon Bispo
See All by Ramon Bispo
Dicas para tomadas de decisão seguras em front-end
ramonpage
0
610
Other Decks in Programming
See All in Programming
ゲームコントローラやキーボードのファームウェアをSwiftで書く
kishikawakatsumi
1
250
JRuby: Past, Present, and Future
headius
0
190
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
130
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
190
アクセシビリティから考える情報設計
high_g_engineer
0
400
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
570
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
18
15k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
220
Are APIs Still Relevant in the AI Era?
soyuka
0
310
巨大モノリシックアプリ モダン化大作戦
ktcryomm
1
1.1k
Workers Cache を知る
syumai
0
240
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
440
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
550
Abbi's Birthday
coloredviolet
4
10k
Documentation Writing (for coders)
carmenintech
77
5.5k
Agile that works and the tools we love
rasmusluckow
331
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
520
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
470
WENDY [Excerpt]
tessaabrams
14
39k
Designing for Timeless Needs
cassininazir
1
510
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
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!