Search Results For: 'Ruby'
It is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that.
Views: 1465 Uploaded On: 09/30/2010
In the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future.
Views: 705 Uploaded On: 09/30/2010
In this second part of the series on administration, you will learn how to lock down the site to keep the public from accessing the administration features.
Views: 1346 Uploaded On: 09/30/2010
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.
Views: 645 Uploaded On: 09/30/2010
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.
Views: 1841 Uploaded On: 09/30/2010
If you need to display the record count for a has_many association, you can improve performance by caching that number in a column.
Views: 14858 Uploaded On: 09/30/2010
You can pass more than simple strings to find conditions. Arrays, ranges, and nil values can be passed as well. In this episode you will see the tricks involved with passing these odd obj...
Views: 1140 Uploaded On: 09/30/2010
Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.
Views: 897 Uploaded On: 09/30/2010
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.
Views: 1183 Uploaded On: 09/30/2010
Advertisement