We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Chris Oliver - Powerful Rails Features You Might Not Know - Rails World 2023
Discover powerful yet lesser-known features in Rails, including template strict locals, Turbo streams, and more, to take your Ruby on Rails development to the next level.
- Template strict locals are handy for cleaning up views.
- Turbo streams can be used to generate files and email them out.
-
The
truncatemethod can be used to shorten text to a certain length. -
The
number_to_phonemethod can be used to format phone numbers. -
The
html_escapemethod can be used to escape HTML characters in text. -
The
number_to_currencymethod can be used to format currency. -
The
distance_of_time_in_wordsmethod can be used to format time differences. -
The
pluralizemethod can be used to add -s or -es to the end of a word to make it plural. -
The
time_ago_in_wordsmethod can be used to format time from now in words. -
Active Support includes a lot of other helpful methods for strings, such as
singularize,camelize,tableize, and more. -
with_optionscan be used to set the precision in numbers to one decimal place. -
railtiescan be used to create custom generators for Rails. -
action_textcan be used to create custom content for Rails. -
active_storagecan be used to store and serve files in Rails. -
devisecan be used to implement password challenges and more. -
mongo_mappercan be used to map MongoDB data to Ruby objects. -
mutable_stringcan be used to create a string that can be modified. -
number_to_humancan be used to format numbers with a unit. -
time_ago_in_wordscan be used to format time differences from now in words. -
active_support_core_extensionscan be used to add custom functionality to Rails. -
rails_helpercan be used to test Rails applications. -
runnercan be used to run scripts in Rails. -
springcan be used to start and stop Rails applications in development mode. -
foremancan be used to manage and run Rails applications in production mode. -
viagracan be used to create custom views for Rails. -
nested_formcan be used to create custom forms for Rails. -
remote_form_forcan be used to create custom forms for Rails that can be submitted remotely.