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
  • Ruby on Rails
  • Virtual Attributes

    Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.

    HABTM Checkboxes

    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.

    Looping Through Flash

    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.


    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?