Sha256: b55da98bab2c06020fd4843183419dd900b041e4f09b7d6f5e4fed9df1edcc89
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
require_dependency 'quadro/application_controller' module Quadro class WidgetsController < ApplicationController before_filter :authenticate_user! respond_to :js, :json, :xml def update if widget.update_attributes(params[:widget]) flash[:notice] = t('quadro.flash.updated') else flash[:alert] = t('quadro.flash.not_updated') end respond_with widget end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.5.8 | app/controllers/quadro/widgets_controller.rb |