1
2
3
4
class MyaccountController < ApplicationController

  before_filter load_users, :only => [ :account_details, :show_email_box, :show_mobile_box ]
...

Ruby On How to make instance variab...

by rafeco, July 31, 2008 13:31 Star_fullStar_fullStar_fullStar_full

You could create a before_f...

Df2e97f18b5802e199d4920552a52d34 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