- @scroll = Scroll.edit(params[:id], @operators)
- @scroll.attributes = params[:scroll]
- @scroll.overwrite @operators
- respond_to do |format|
- if @scroll.save
- flash[:notice] = I18n.t('flash.notice.updated', :model => Scroll.model_name.human)
- format.html { redirect_to @scroll }
- format.json { head :ok }
- else
- flash[:notice] = I18n.t('flash.notice.not_updated', :model => Scroll.model_name.human)
- format.html { render action: "edit" }
- format.json { render json: @scroll.errors, status: :unprocessable_entity }
- end
- end