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
Rails Plugins in 20 minutes
Search
excid3
August 22, 2024
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rails Plugins in 20 minutes
excid3
August 22, 2024
Transcript
54 slides
Chris Oliver Rails Plugins in 20 minutes
None
😱
What is a Rails plugin?
None
None
Rails Plugins • Routes • Models • Views • Controllers
• Jobs • Etc
None
Railtie vs Engine
Railtie The core of a Rails plugin • Initializers •
Configuration • Rake tasks
Engine Railtie with more features • Models • Controllers •
Views • Routes • Locales • Tasks
Your Rails app is an Engine.
None
$ rails plugin new
Railtie rails plugin new my_railtie
Engine rails plugin new my_engine —full
Mountable Engines
Mountable Engine rails plugin new my_mountable_engine —full —mountable
\ Mounting Rails Engines in Routes
Engine helper
main_app helper
Dependencies
gemspec
Load Order & Hooks
Rails Plugins Rails Load Order Initializers
None
on_load callbacks
None
None
None
Middleware
– Thoughtful government employees “The website should work only during
business hours. ”
🤔
None
None
None
None
Configuration
Configuration with Accessors
Extending Rails Configuration
Extending Rails Configuration
Generators
None
None
Extending Rails Generators
None
None
Models & Migrations
None
None
None
Rails Console
None
Thanks!
More Decks by excid3
See All by excid3
Rails: The Founder's Unfair Advantage
excid3
0
10
Crafting Rails Plugins
excid3
1
500
Powerful Rails Features You Might Not Know
excid3
0
4.9k
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
320
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Chasing Engaging Ingredients in Design
codingconduct
0
400
Embracing the Ebb and Flow
colly
88
5.2k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570