Ryan Bates
Episode 9: Filtering Sensitive Logs
almost 5 years ago by Ryan Bates on Railscasts.
Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs...
Episode 8: Layouts and content_for
almost 5 years ago by Ryan Bates on Railscasts.
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be...
Episode 7: All About Layouts
almost 5 years ago by Ryan Bates on Railscasts.
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are...
Episode 6: Shortcut Blocks with Symbol to_proc
almost 5 years ago by Ryan Bates on Railscasts.
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily....
Episode 5: Using with_scope
almost 5 years ago by Ryan Bates on Railscasts.
Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!...
Episode 4: Move Find into Model
almost 5 years ago by Ryan Bates on Railscasts.
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...
Episode 3: Find Through Association
almost 5 years ago by Ryan Bates on Railscasts.
No need to pass foreign keys in find conditions, just do the find through a has_many association....
Episode 2: Dynamic find_by Methods
almost 5 years ago by Ryan Bates on Railscasts.
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods....
Episode 1: Caching with Instance Variables
almost 5 years ago by Ryan Bates on Railscasts.
Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!...
Episode 57: Create Model Through Text Field
over 4 years ago by Ryan Bates on Railscasts.
Let's say you provide a select menu for setting which category a given product belongs to, but you also want the option of creating a new category by typing...
