Videos tagged with Ruby Plus
This is the presentation that I gave to Silicon Valley Ruby on Rails. Some of the topics covered were: What is REST Why REST What are resources Types of resources How to find the resources I also give practical tips on how to make your Rails app RESTful.
Ruby Plus #92: Extremely Simple Photo Album in 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...
Ruby Plus #91: Association Proxy Method in 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.
Ruby Plus #90: fields_for and the index option in Rails
In this episode you learn how to use fields_for and the index option to create a new parent model with multiple child models on one post. This tip will simplify your code in the controller. Based on the blog post by params fu #3 and #5 by Stephen Chu.
Ruby Plus #89: fields_for and params in Rails
In this episode you will learn how to put attributes into a different params key using fields_for if they belong to a different model than the one you are using in the form_for helper. This technique is useful in real world projects. Based on the blog post params fu #2 by Stephen Chu.
Ruby Plus #88: form_for and params in Rails
In this episode you will learn how to wrap all relevant attributes in a single params key. Covers the basics of form_for and params in Rails. This is based on the blog post params fu #1 by Stephen Chu
Ruby Plus #87: Introduction to jQuery
In this episode I walk you through a hello world example in jQuery and autocomplete functionality that does not make a server side call.
Ruby Plus #86: Command Pattern in Ruby
In this episode you will learn how to implement GoF Command Design Pattern in Ruby. I cover the concept of closures, scope and extent that is required to understand the implementation of Command Pattern
Ruby Plus #85: Select Dropdown using Has One Relationship in 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)
Ruby Plus #84: Drop Down Box in 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...