Videos tagged with Ruby
Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.
Railscasts #8: Layouts and content_for
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 placed anywhere in a layout.
Railscasts #7: All About Layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.
Railscasts #6: Shortcut Blocks with Symbol to_proc
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.
Railscasts #5: Using with_scope
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!
Railscasts #4: 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.
Railscasts #3: Find Through Association
No need to pass foreign keys in find conditions, just do the find through a has_many association.
Railscasts #2: Dynamic find_by Methods
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods in Ruby on Rails applications.
Railscasts #1: Caching with Instance Variables
Learn a quick way to improve performance of your Rails applications. Just store the end result of an expensive command in an instance variable!
RUBY: Competitious On Rails
Kris Rasmussen and Andy Holt from Competitious will be sharing their experience using RoR in a production environment in a new startup. In addition, they'll explain some of the many advantages Rails has for companies like theirs and smaller teams, as well as some of the disadvantages and gotchas of production Rails apps. Finally, they'll describe their architecture and cover some unique...