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
What's new in Rails 4.1 - Paul Grayson
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Las Vegas Ruby Group
April 23, 2014
60
0
Share
What's new in Rails 4.1 - Paul Grayson
Las Vegas Ruby Group
April 23, 2014
More Decks by Las Vegas Ruby Group
See All by Las Vegas Ruby Group
Ruby ISO Standard - David Grayson
lvrug
0
160
Windows Automation - Howard Feldman
lvrug
0
110
Separating Your Application from Rails - Brian Hughes
lvrug
0
160
SWIG and Ruby - David Grayson
lvrug
0
96
Practical Object-Oriented Design in Ruby - Charles Jackson
lvrug
3
140
The Hamster Gem - Ryan Mulligan
lvrug
1
120
Varnish+Redis - Russ Smith
lvrug
1
140
Lambdas and Pops - Jan Hettich
lvrug
0
100
Making Good Use of Fonts - Russ Smith
lvrug
1
110
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
390
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Designing for Timeless Needs
cassininazir
1
230
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
180
My Coaching Mixtape
mlcsv
0
130
Why Our Code Smells
bkeepers
PRO
340
58k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
570
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
280
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
790
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
270
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Transcript
What's new in Rails 4.1 Paul Grayson Las Vegas Ruby
User Group 2014-04-23
What's new in Rails 4.1 • 5210 commits (1469 pull
requests) • 601 authors • Work done 2012-12-09 to 2014-04-08 • v4.0.0.rc1 released 2013-04-29 • v4.0.0 released 2013-06-25 • v4.1.0 released 2014-04-08 git log v4.1.0 --not v4.0.0
Spring application preloader used by default • Keeps a server
running constantly • Hopefully auto-loads your files
config/secrets.yml • Standard place to keep secrets so they won't
be checked into git • Not added to .gitignore in 4.1.0 (!) • No support for deploying this file • You probably still need to use ENV
Action Pack Variants • Custom pages intended for different devices
• Examples are all about USER_AGENT • Not much documentation, but it's simple • Please don't use this!
Action Mailer Previews • Looking at your mailers in a
browser • Formerly the MailView gem from 37signals http://localhost:3000/rails/mailers
Action Mailer Previews
Active Record enums • NOT native database enums • Stored
as integers class Conversation < ActiveRecord::Base enum status: [ :active, :archived ] end conversation.active? converstaion.active! Converstaion.active.each { ... }
Message Verifiers • Was previously used only for cookies •
Now available for unsubscribe links, etc. • Vulnerable to replay attacks, so use sparingly
Module#concerning • Formerly the concerning gem by 37signals • Good
for cleaning up “junk-drawer classes” class Todo concerning :EventTracking do included do has_many :events end class_methods do def next_by_event # ... end end end end
CSRF protection for .js requests • Protects against some obscure
attacks • You will need to provide tokens for AJAX
Load structure.sql instead of db:test:prepare • This file should be
in source control • Ensures that everyone is testing the same DB
Discussion