Sha256: e3925a303994e3620c4da90466c958d9a1ad516bafa490d644ce69694f1538d8
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 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(widget_params) flash[:notice] = t('quadro.flash.updated') else flash[:alert] = t('quadro.flash.not_updated') end respond_with widget end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quadro-0.6.1 | app/controllers/quadro/widgets_controller.rb |
quadro-0.6.0 | app/controllers/quadro/widgets_controller.rb |