Skip to content

Instantly share code, notes, and snippets.

@slowjud
Created April 9, 2009 04:35
Show Gist options
  • Save slowjud/92243 to your computer and use it in GitHub Desktop.
Save slowjud/92243 to your computer and use it in GitHub Desktop.
def change_play_game
@game = Game.find(params[:game_id])
respond_to do |format|
format.js do
render(:update) do |page|
page[:game_display].replace_html(:partial => '/students/display_for_play', :locals => {:game => @game})
end
end
end
end
module InstanceMethods
def render_with_csv(options = nil, extra_options = {}, &block)
-->>> return render_without_csv(options, extra_options, &block) unless options and options[:csv]
send_data Array(options[:csv]).to_comma
end
end
NoMethodError (undefined method `[]' for :update:Symbol):
/vendor/plugins/comma/lib/comma.rb:44:in `render_without_trace_View___newrelic_metric_path__Rendering'
/vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:138:in `render'
/vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:41:in `trace_method_execution_with_scope'
/vendor/plugins/newrelic_rpm/lib/new_relic/agent/method_tracer.rb:137:in `render'
/app/controllers/students_controller.rb:177:in `change_play_game'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in `call'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in `custom'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in `call'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:164:in `respond'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in `each'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:158:in `respond'
/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in `respond_to'
/app/controllers/students_controller.rb:175:in `change_play_game'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment