RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

edelpero — 4 posts

http://edelpero.svbtle.com

Rake Tasks Best Practices  edelpero.svbtle.com
One of the guys at the office asked me. What things should I keep in mind when writing a rake task and how do I know if my rake task is well written. I decided to make a list of what I think are good practices and here it's the result.

Everything You Always Wanted to Know About Writing Good Rake Tasks * But Were Afraid to Ask
Lately I’ve been supporting several legacy projects.

As many of you may know, working on legacy projects sucks most of the time, usually because most of the code is ugly and difficult to understand or read.

I decided to make a list of common bad practices, or what I consider bad practices, and how to improve the code or avoid this bad practices.

Continue Reading
ActionParameter helps you move all your parameter's logic from controllers into it's own class. This way you'll keep your controllers dry and they'll be easier to test.
ActionParameter helps you move all your parameter's logic from controllers into it's own class. This way you'll keep your controllers dry and they would be easier to test. Works with Rails 3 onwards and plays nice with StrongParameters. Link: https://github.com/edelpero/action_parameter