Nesting Resources in Rails Routes.Rb with Namespaces  
  
    When I have a controller that takes more than one has_many argument, I think about creating a namespace. This way I may still use my forums, pages controllers w/out needing any conditional logic, testing for the presence of :course_id in the params hash.
...  
  
    
      Written by Sean Behan on 06/17/2012
    
  
 
  
    Accessing Links in Nested TD Cells with Prototype  
  
    There must be a better way to do the following with PrototypeJS. I want to loop over nested links inside of  table td cells and apply a class to the row that the link is in when the link is clicked. If a user clicks on another link the class will be remov...  
  
    
      Written by Sean Behan on 06/17/2012
    
  
 
  
    Nested Has_one Relationship with Fields_for and Attr_accessible in Model Class  
  
    To make child attributes accessible to your model through a nested forms (Rails 2.3) you'll need to add the "#{child_class}_attributes" to the attr_accessible method in your parent class. If you don't use attr_accessible in your parent model (you would do...  
  
    
      Written by Sean Behan on 06/17/2012
    
  
 
  
    Nested Attributes in a Form for Has_One Model Association in Rails  
  
    Just for reference...
class Member < ActiveRecord::Base
    has_one :member_profile
    accepts_nested_attributes_for :member_profile
end
        
	
               
               
	
...  
  
    
      Written by Sean Behan on 06/17/2012