Sign up to save your podcastsEmail addressPasswordRegisterOrContinue with GoogleAlready have an account? Log in here.
March 16, 2007#6 Shortcut Blocks with Symbol to_procIt may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.4 minPlay
March 14, 2007#5 Using with_scopeLearn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!3 minPlay
March 12, 2007#4 Move Find into ModelMove 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.3 minPlay
March 09, 2007#3 Find Through AssociationNo need to pass foreign keys in find conditions, just do the find through a has_many association.3 minPlay
March 07, 2007#2 Dynamic find_by MethodsShorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.2 minPlay
March 04, 2007#1 Caching with Instance VariablesLearn a quick way to improve performance. Just store the end result of an expensive command in an instance variable!3 minPlay