11 May '17, 7pm

This Week in Rails: hooks, fixtures, fetch_values, database connections and more!

Hi there! This is Andy with another edition of This Week in Rails. This week we’re covering two weeks worth of changes, so let’s dive right in. New Hooks for action_controller_base and action_controller_api This change breaks out two Action Controller hooks, where there was one before. action_controller_base and action_controller_api . These can be used to load less code at boot time. Fixture accessor with no arguments Do you need to load all the fixtures of a particular type? Calling a fixture accessor method with no arguments returns all fixtures. Implement fetch_values for HashWithIndifferentAccess Add fetch_values for HashWithIndifferentAccess in Rails, added to Ruby in 2.3.0. Support was added conditionally by using method_defined? . Fixed Clear active connections after initialization If your app uses a lot of database connections, this one is worth a look. The author...

Full article: http://weblog.rubyonrails.org/2017/4/15/this-week-in-rail...

Tweets

Avoid parsing Rails controller params by using ...

collectiveidea.com 11 May '17, 5pm

I was looking at this controller today, which was using lots of memory: class WebhooksController < ApplicationController d...

Faster Rails: Is Your Database Properly Indexed?

rubyflow.com 09 May '17, 4pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Faster Rails: Is Your Database Properly Indexed? #ruby #rails

Faster Rails: Is Your Database Properly Indexed...

semaphoreci.com 09 May '17, 4pm

Missing database indexes on foreign keys and commonly searched columns or values that need to be sorted can make a huge di...

Pull up a sleeve this week and give mom a hand!...

movado.com 11 May '17, 6pm

BROWSE WATCHES Men's Designs Women's Designs New Arrivals Browse by Collection View All Watches Watch Advisor OUR STORY He...

Rolex Capri Sailing Week - Day 3

Rolex Capri Sailing Week - Day 3

sail-world.com 13 May '17, 12am

'We won the last race today because we had the best start. That is very important in a fleet this size,' Jahn said. 'We ti...