app/controllers/employees_controller.rb
def update_settings
    @employee = Employee.find(@current_user.id)
    @employee.update_attributes(params[:employee])
    flash[:notice] = t(:settings) + t(:updated)
    redirect_to user_settings_employee_path(@current_user.id)
  end
# Updates a user's preferred setting based on their selections from the "User Settings" page
Updates a user's preferred setting based on their selections from the "User Settings" page
Updates a user ' s preferred setting based on their selections from the " User Settings " page
def update_settings
    @employee = Employee.find(@current_user.id)
    @employee.update_attributes(params[:employee])
    flash[:notice] = t(:settings) + t(:updated)
    redirect_to user_settings_employee_path(@current_user.id)
  end
def update_settings @employee = Employee . find ( @current_user . id ) @employee . update_attributes ( params [ :employee ] ) flash [ :notice ] = t ( :settings ) + t ( :updated ) redirect_to user_settings_employee_path ( @current_user . id ) end
Updates a user's preferred setting based on their selections from the "User Settings" page
Updates a user ' s preferred setting based on their selections from the " User Settings " page