RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Never use ActiveRecord persistence methods in Rails controllers

Rails controllers are a mess. There's one relatively simple practice I've adopted that helps improve their code significantly: Never use ActiveRecord persistence methods in Rails controllers, and never, ever use ActiveRecord filters.

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!