Videos tagged with Ruby Plus




Ruby Plus #92: Extremely Simple Photo Album in Rails

Ruby Plus #92: Extremely Simple Photo Album in Rails

Posted in Development, Broadcasting, Frameworks, Ruby, Screencasts, Ruby On Rails

I had looked at Gullery, WebAlbum and Photo Album in Ajax on Rails books among others. I will show you how to create a photo album with slide show in a RESTful way. I will include the source code as part of the download. Exercise You can extend this album so that the photo upload does not tie up the Mongrel process by using Background DRB, Merb etc. Add the feature where users can only add/edit...

Tags: Ruby, Ruby On Rails, Frameworks, REST, Merb, Ruby Plus, RESTful, Background DRB


Ruby Plus #91: Association Proxy Method in Rails

Ruby Plus #91: Association Proxy Method in Rails

Posted in Development, Broadcasting, Frameworks, Ruby, Screencasts, Ruby On Rails

In this episode you will learn how to use the <association_name>_ids=([array of ids]) association proxy method in your controllers. When you have has_many or has_and_belongs_to_many models you can use the association proxy method and simplify code in your controllers.  Based on the blog post params fu #4 by Stephen Chu.

Tags: Ruby, Ruby On Rails, Frameworks, Ruby Plus, has many, form_for, params, hbtm








Ruby Plus #85: Select Dropdown using Has One Relationship in Rails

Ruby Plus #85: Select Dropdown using Has One Relationship in Rails

Posted in Development, Broadcasting, Frameworks, Ruby, Screencasts, Ruby On Rails

In this episode you will learn how to use options_from_collection_for_select when you have a has_one relationship between ActiveRecord objects. Note: For create, I was looking at the wrong book because the id was higher than the one we were looking at. (I had created some books before the screencast)

Tags: Ruby, Ruby On Rails, Frameworks, ActiveRecord, Ruby Plus, has_one


Ruby Plus #84: Drop Down Box in Rails

Ruby Plus #84: Drop Down Box in Rails

Posted in Development, Broadcasting, Frameworks, Ruby, Screencasts, Ruby On Rails

I was surprised when I found that Rails does not provide any helper to create simple drop down box with integer values. I came across the blog post by Brian McQuay In this episode I will show you how to display and edit a simple drop down box that contains integer values. I have included the source code in the download. This is an opportunity for you to contribute to Rails, check out Ryan Bates...

Tags: Ruby, Ruby On Rails, Frameworks, Git, Ruby Plus, FormHelper