1
2
3
class PeopleController < ApplicationController

...

Ruby Re-use code for new and cre...

by Dave, November 05, 2008 09:30, 4 refactorings, tagged with rails, dry, controller

Hello,

I have a 'people'...

997adc3b63a05bf75f833c48fa246e19 Talk
1
2
3
4
    if @foo.update_attributes(params[:foo]) and @foo.bar.update_attributes(params[:bar])
      redirect_to foo_url(@parent)
    else
...

Ruby Saving multiple models in o...

by rafeco, July 29, 2008 15:56, 2 refactorings, tagged with rails, activerecord, controller

What's the best way to save...

Df2e97f18b5802e199d4920552a52d34 Talk