search for: scripts_controller

Displaying 2 results from an estimated 2 matches for "scripts_controller".

Did you mean: script_controller
2006 Jun 18
0
problems with upload progress plugin
....rb:1509:in `attributes='' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1354:in `initialize_without_callbacks'' F:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/callbacks.rb:236:in `initialize'' /app/controllers/scripts_controller.rb:6:in `new'' /app/controllers/scripts_controller.rb:6:in `upload'' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `send'' F:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_actio...
2012 Feb 07
2
save method (create action) saves twice
...;video_id", 1]] Completed 201 Created in 14ms (Views: 2.4ms | ActiveRecord: 0.9ms) To be honest, I have no idea which part of my code to show you in order to gain some help to resolve this because I have not changed much from the regular scaffold generation. But this is the create action in scripts_controller.rb. It is to throw json data so that Ajax will catch it. def create @script = Script.new(params[:script]) respond_to do |format| if @script.save format.json { render json: @script, status: :created, location: @script } else format.html { render action: "...