Feed items

94. vi editor

When you want to work on unix systems, you need to know the basics of using an editor like vi. This will help you to do basic tasks on remote server such as staging, production etc where you don't have your favorite IDE / text editor. This episode covers the basics required to use vi editor.

Here is the notes:

93. RESTful Rails

This is the presentation that I gave to Silicon Valley Ruby on Rails. Some of the topics covered were:

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

91. Association Proxy Method in Rails

In this episode you will learn how to use the _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

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 ful #3 and #5 by Stephen Chu.

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.

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

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.

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

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)