Update for Rails 4 (before_filter, strong parameters, update_attributes...etc).