| Web Development >> Ruby On Rails |
Railscasts Week 6
| Language : | English | Quality : | High | Has Audio : | true | Source : | showmedo | Media : | Flash |
| Let Ryan Bates take you through a growing series of great Rails tips. |
Tags: Ruby On Rails, Ruby, Web Development, Screencast, Showmedo, [SUGGEST A TAG]
Resources referenced in this screencast
|
||||
|
||||
|
Articles Realted to this Topic |
[SUGGEST A ARTICLE] |
|
Helper to display flash message A simple code snippet for displaying your flash[:warning] = "Warning Message" messages in rails. |
|
Checkbox HABTM Here’s how to update/create habtm (has_and_belongs_to_many) relationships with checkboxes |
|
Doing Checkbox Adds with HABTM So let’s say you’ve been making an app and you have a has_and_belongs_to_many relationship between two models. For the sake of this exercize, we’re going to use the Manuals model that we’re creating in the Koji Production Pipeline. Manuals would be user manuals. Various manuals generally belong to one department, however, there’s a lot of hardware and software that is shared between departments. We want to be able to show, on the department page, any manuals that belong to it. Simple enough, right? |