RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: task x
Move Find into Model
Episode #4Mar 12, 200746 comments

Move Find into Model

Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association. (2 minutes)
Dynamic find_by Methods
Episode #2Mar 06, 200747 comments

Dynamic find_by Methods

Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods. (1 minute)
SQL Injection
Episode #25Apr 30, 200737 comments

SQL Injection

One of the most common security problems for dynamic sites is SQL Injection. Thankfully Rails does everything it can in solving this issue, but you still need to be aware of it. (5 minutes)
Find Through Association
Episode #3Mar 08, 200745 comments

Find Through Association

No need to pass foreign keys in find conditions, just do the find through a has_many association. (2 minutes)