Ryan Bates

Episode 49: Reading the API


over 4 years ago by Ryan Bates on Railscasts.
The Rails API docs are very useful but can be difficult to read. This episode will give some tips on reading the docs and mention a few alternative sites...

Episode 48: Console Tricks


over 4 years ago by Ryan Bates on Railscasts.
The Rails console is one of my favorite tools. This episode is packed with tips and tricks on how to get the most out of the console....

Episode 47: Two Many-to-Many


over 4 years ago by Ryan Bates on Railscasts.
There are two different ways to set up a many-to-many association in Rails. In this episode you will see how to implement both ways along with some tips...

Episode 46: Catch-all Route


over 4 years ago by Ryan Bates on Railscasts.
Sometimes you need to add complex/dynamic routes. This is often impossible to do in routes.rb, but do not worry. It can be accomplished with a catch-all...

Episode 45: RJS Tips


over 4 years ago by Ryan Bates on Railscasts.
This episode is packed with little RJS goodies. Learn the different ways to access an element, how to add "if" conditions and how to apply an effect to...

Episode 44: Debugging RJS


over 4 years ago by Ryan Bates on Railscasts.
RJS and AJAX can be difficult to debug. Many times you don't get any error message in the browser. Learn different techniques for solving these tricky problems...

Episode 43: AJAX with RJS


over 4 years ago by Ryan Bates on Railscasts.
This episode will walk you through adding AJAX functionality to a form using RJS. See how to easily update multiple elements on a page....

Episode 42: with_options


over 4 years ago by Ryan Bates on Railscasts.
Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication...

Episode 41: Conditional Validations


over 4 years ago by Ryan Bates on Railscasts.
By default, validations will take place every time the model is saved. Sometimes you only want a validation to happen when certain conditions are met. See...

Episode 40: Blocks in View


over 4 years ago by Ryan Bates on Railscasts.
If you try to create a helper method which accepts a block, you will run into a few gotchas. Learn the secrets of blocks in views in this episode....