04 Jan '14, 9am

I still see this occasionally, so here's a PSA from 2010:

Stop returning false from your before filters Published over 4 years ago In the past version of Rails you had to explicitly return false from before filters to halt the filter chain and make sure the action doesn’t get run. The code looked somewhat like : class AdminController < ApplicationController before_filter :check_admin private def check_admin unless current_user.admin? redirect_to home_path return false end end end But since Rails 2.0 , If you call render , head or redirect_to from a before_filter , the filter chain will be halted. So the above controller will now look like : class AdminController < ApplicationController before_filter :check_admin private def check_admin redirect_to home_path unless current_user.admin? end end You should go ahead and update all your before filters to reflect this change. return false is nothing but code smell. Please enable JavaScr...

Full article: http://m.onkey.org/stop-returning-false-from-your-before-...

Tweets

14 Kicks We Want To See In 2014 | via @KicksOnFire

14 Kicks We Want To See In 2014 | via @KicksOnFire

kicksonfire.com 03 Jan '14, 8pm

One more year to power laces. Image: Universal Pictures One of the problems with writing our monthly “Kicks To Watch For” ...

#Koch Brothers Never Stop: Politicians Sign No New Climate Tax Pledge

#Koch Brothers Never Stop: Politicians Sign No ...

sustainablebusiness.com 04 Jan '14, 9am

The Koch Brothers are taking a cue from Grover Norquist's successful "No New Taxes" Pledge, and are using it to make sure ...

*Customer Reminder* Route 151 Change of Bus Stop

dublinbus.ie 03 Jan '14, 12pm

Dublin Bus wishes to advise customers that due to LUAS Cross City construction work commencing on the 6th January 2014, Ro...

News & Analysis Must-See TV at CES: Mobile Disp...

eetimes.com 03 Jan '14, 10pm

MADISON, Wis. — For the conventioneers in Las Vegas at the International Consumer Electronics Show (CES) next week, one of...

Lighting facts: Did you know that 70% of lightbulbs in the U.S. are still inefficient models?

Lighting facts: Did you know that 70% of lightb...

treehugger.com 02 Jan '14, 6pm

Those of us who are conscious about not wasting energy might thing that the energy-efficient lightbulb revolution is over....