Sha256: 1441a930db0e51dfb35b0b1b30c42e8bd9cecd80af43a76806512baaadf47d26
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
class Admin::PreferencesController < ApplicationController before_action :initialize_variables def show set_standard_body_style render :edit end def edit render end def update if @user.update_attributes(params[:user]) redirect_to admin_configuration_path else flash[:error] = t('preferences_controller.error_updating') render :edit end end private def initialize_variables @user = current_user @controller_name = 'user' @template_name = 'preferences' end end
Version data entries
5 entries across 5 versions & 1 rubygems