RubyPlus #30
https://www.rubyplus.com/podcasts/351-Episode-30
- Rails 5.1 Released
- manage JavaScript dependencies from NPM via Yarn
- Optionally compile JavaScript with webpack
- jQuery is no longer a default dependency
- system tests using Capybara
- encrypted secrets
- parameterized mailers
- Oj (Optimized JSON) 3.0 Released
- Write Native Ruby Extensions ‘Without Fear’
- Helix makes writing Ruby classes in Rust
- Boot large ruby/rails apps faster
- optional support for ActiveSupport and YAML, to optimize and cache expensive computations
- Search and Autocomplete in Rails with Postgres
- gem ‘pg_search’
- pg_search supports two modes: multisearchable and pg_search_scope
- Select2 - The jQuery replacement for select boxes
- gem ‘pg_search’
- Rails 5.1 has introduced Date#all_day helper
User.where(created_at: Date.today.all_day)
SELECT "users".* FROM "users" WHERE ("users"."created_at" BETWEEN $1 AND $2)
- The Good, Bad and Ugly: The Story of a Rails 5 Upgrade
for gem in $(bundle list | awk '{print $2}'); do ag -Q "before_filter"
bundle show “$gem”; done
- controller test
post :action params: @params, headers: @headers
- GitHub - tjgrathwell/rails5-spec-converter: A tool to upgrade Rails 4-style specs to Rails 5-style
- acli: A Command-Line Client for Action Cable
- Action Cable command-line client
- written in mRuby
- Implicit Code : Programming with a love of the implicit
- DHH: explicit code is not always better
- Ruby on Rails: the Bad and Good parts
- Hanami, Roda
- Postgres tips for Rails developers
- Manage long running queries with statement time-outs
- Finding misbehaving queries
- Some Lesser-Known Features in Rails 5.1
- More consistent tag helpers
- Caution when using before_destroy with model association
before_destroy :remove_external_account, prepend: true
- Parsing Excel Files with Ruby
- axlsx, rubyXL, roo, creek, spreadsheet, simple_xlsx_reader