SlideShare a Scribd company logo
Speed your app
creation with templates
need some rails power? www.tinci.fr@happynoff
Simon Courtois
www.tinci.fr
happynoff
simonc
need some rails power? www.tinci.fr@happynoff
Every new app!
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
A simple Ruby file
need some rails power? www.tinci.fr@happynoff
rails new -m template.rb
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
gem 'bootstrap-sass','~> 3.3'
need some rails power? www.tinci.fr@happynoff
gem_group :development do
gem 'better_errors'
end
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
initializer 'hello.rb',
'Hello = 42'
need some rails power? www.tinci.fr@happynoff
initializer 'mustdown.rb', <<-CODE
Mustdown.configure do |config|
config.renderer_options = {
with_toc_data: true
}
end
CODE
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
insert_into_file
'config/application.rb',
"config.i18n.default_locale = :frn",
after: ":den"
need some rails power? www.tinci.fr@happynoff
Add usual gems
Create initializers
Set default locale
Run generators
need some rails power? www.tinci.fr@happynoff
after_bundle do
generate
'simple_form:install',
'--bootstrap'
end
need some rails power? www.tinci.fr@happynoff
And it’s just Ruby!
need some rails power? www.tinci.fr@happynoff
doing_admin = ask('Need admin?')
if doing_admin
gem 'rails_admin', '~> 0.6.7'
after_bundle do
generator ''
end
end
need some rails power? www.tinci.fr@happynoff
Run commands
need some rails power? www.tinci.fr@happynoff
run "wget ...
-O config/locales/devise.fr.yml"
need some rails power? www.tinci.fr@happynoff
Use git
need some rails power? www.tinci.fr@happynoff
after_bundle
do
git :init
git add: '.'
end
Learn more
guides.rubyonrails.org/
rails_application_templates.html
need some rails power? www.tinci.fr@happynoff
Questions?
need some rails power? www.tinci.fr@happynoff
Thanks!

More Related Content

Similar to Speed your Rails app creation with templates

Your fist RubyMotion Application
Your fist RubyMotion ApplicationYour fist RubyMotion Application
Your fist RubyMotion Application
toamitkumar
 
Twiggy - let's get our widget on!
Twiggy - let's get our widget on!Twiggy - let's get our widget on!
Twiggy - let's get our widget on!
Elliott Kember
 
Employing Custom Fonts
Employing Custom FontsEmploying Custom Fonts
Employing Custom Fonts
Paul Irish
 
Jay Phillips's Presentation at eComm 2009
Jay Phillips's Presentation at eComm 2009Jay Phillips's Presentation at eComm 2009
Jay Phillips's Presentation at eComm 2009
eCommConf
 

Similar to Speed your Rails app creation with templates (20)

Testing Adhearsion Applications
Testing Adhearsion ApplicationsTesting Adhearsion Applications
Testing Adhearsion Applications
 
Building CI/CD Pipelines for MongoDB Realm Apps
Building CI/CD Pipelines for MongoDB Realm AppsBuilding CI/CD Pipelines for MongoDB Realm Apps
Building CI/CD Pipelines for MongoDB Realm Apps
 
Your fist RubyMotion Application
Your fist RubyMotion ApplicationYour fist RubyMotion Application
Your fist RubyMotion Application
 
Finding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdfFinding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdf
 
Offline of web applications
Offline of web applicationsOffline of web applications
Offline of web applications
 
Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014Offline for web - Frontend Dev Conf Minsk 2014
Offline for web - Frontend Dev Conf Minsk 2014
 
Twiggy - let's get our widget on!
Twiggy - let's get our widget on!Twiggy - let's get our widget on!
Twiggy - let's get our widget on!
 
Translating ruby OSS
Translating ruby OSSTranslating ruby OSS
Translating ruby OSS
 
Code rippa
Code rippaCode rippa
Code rippa
 
Mojolicious
MojoliciousMojolicious
Mojolicious
 
Employing Custom Fonts
Employing Custom FontsEmploying Custom Fonts
Employing Custom Fonts
 
Sinatra Rack And Middleware
Sinatra Rack And MiddlewareSinatra Rack And Middleware
Sinatra Rack And Middleware
 
Pourquoi Ruby on Rails ça déchire ?
Pourquoi Ruby on Rails ça déchire ?Pourquoi Ruby on Rails ça déchire ?
Pourquoi Ruby on Rails ça déchire ?
 
Jay Phillips's Presentation at eComm 2009
Jay Phillips's Presentation at eComm 2009Jay Phillips's Presentation at eComm 2009
Jay Phillips's Presentation at eComm 2009
 
Os Bowkett
Os BowkettOs Bowkett
Os Bowkett
 
Sinatra + Heroku
Sinatra + HerokuSinatra + Heroku
Sinatra + Heroku
 
I35s
I35sI35s
I35s
 
Foreman - Process manager for applications with multiple components
Foreman - Process manager for applications with multiple componentsForeman - Process manager for applications with multiple components
Foreman - Process manager for applications with multiple components
 
Website Audit Report Sample
Website Audit Report SampleWebsite Audit Report Sample
Website Audit Report Sample
 
The NEW Web Typography: Where the Sexy Is
The NEW Web Typography: Where the Sexy IsThe NEW Web Typography: Where the Sexy Is
The NEW Web Typography: Where the Sexy Is
 

More from Simon Courtois

More from Simon Courtois (13)

Conseils pour un lancement Product Hunt réussi
Conseils pour un lancement Product Hunt réussiConseils pour un lancement Product Hunt réussi
Conseils pour un lancement Product Hunt réussi
 
Dependency sorting in Ruby with TSort
Dependency sorting in Ruby with TSortDependency sorting in Ruby with TSort
Dependency sorting in Ruby with TSort
 
How Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIIHow Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCII
 
Get Slim!
Get Slim!Get Slim!
Get Slim!
 
Multi tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on RailsMulti tenant/lang application with Ruby on Rails
Multi tenant/lang application with Ruby on Rails
 
Fake your files - MemFs
Fake your files - MemFsFake your files - MemFs
Fake your files - MemFs
 
Rails is like Burger King
Rails is like Burger KingRails is like Burger King
Rails is like Burger King
 
REST with Her (and let Her take care of the REST)
REST with Her (and let Her take care of the REST)REST with Her (and let Her take care of the REST)
REST with Her (and let Her take care of the REST)
 
Ruby and DCI
Ruby and DCIRuby and DCI
Ruby and DCI
 
Cells
CellsCells
Cells
 
Mustdown
MustdownMustdown
Mustdown
 
Ariane
ArianeAriane
Ariane
 
Commander
CommanderCommander
Commander
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 

Recently uploaded (20)

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
In-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT ProfessionalsIn-Depth Performance Testing Guide for IT Professionals
In-Depth Performance Testing Guide for IT Professionals
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 

Speed your Rails app creation with templates

  • 1. Speed your app creation with templates
  • 2. need some rails power? www.tinci.fr@happynoff Simon Courtois www.tinci.fr happynoff simonc
  • 3. need some rails power? www.tinci.fr@happynoff Every new app!
  • 4. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 5. need some rails power? www.tinci.fr@happynoff A simple Ruby file
  • 6. need some rails power? www.tinci.fr@happynoff rails new -m template.rb
  • 7. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 8. need some rails power? www.tinci.fr@happynoff gem 'bootstrap-sass','~> 3.3'
  • 9. need some rails power? www.tinci.fr@happynoff gem_group :development do gem 'better_errors' end
  • 10. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 11. need some rails power? www.tinci.fr@happynoff initializer 'hello.rb', 'Hello = 42'
  • 12. need some rails power? www.tinci.fr@happynoff initializer 'mustdown.rb', <<-CODE Mustdown.configure do |config| config.renderer_options = { with_toc_data: true } end CODE
  • 13. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 14. need some rails power? www.tinci.fr@happynoff insert_into_file 'config/application.rb', "config.i18n.default_locale = :frn", after: ":den"
  • 15. need some rails power? www.tinci.fr@happynoff Add usual gems Create initializers Set default locale Run generators
  • 16. need some rails power? www.tinci.fr@happynoff after_bundle do generate 'simple_form:install', '--bootstrap' end
  • 17. need some rails power? www.tinci.fr@happynoff And it’s just Ruby!
  • 18. need some rails power? www.tinci.fr@happynoff doing_admin = ask('Need admin?') if doing_admin gem 'rails_admin', '~> 0.6.7' after_bundle do generator '' end end
  • 19. need some rails power? www.tinci.fr@happynoff Run commands
  • 20. need some rails power? www.tinci.fr@happynoff run "wget ... -O config/locales/devise.fr.yml"
  • 21. need some rails power? www.tinci.fr@happynoff Use git
  • 22. need some rails power? www.tinci.fr@happynoff after_bundle do git :init git add: '.' end
  • 24. need some rails power? www.tinci.fr@happynoff Questions?
  • 25. need some rails power? www.tinci.fr@happynoff Thanks!