Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Error when selection enter/view scores on an existing intervention with a new intervention_probe_assignment

#282

ActionView::TemplateError (preview_graph_intervention_probe_assignment_url failed to generate from {:count=>0, :controller=>"interventions/probe_assignments", :intervention_id=>184330823, :action=>"preview_graph", :id=>nil}, expected: {:controller=>"interventions/probe_assignments", :action=>"preview_graph"}, diff: {:count=>0, :intervention_id=>184330823, :id=>nil}) on line #13 of app/views/interventions/probe_assignments/probe_assignment.html.erb:
10: end
11: %>
12:
13: <%= link_to_remote 'Preview Graph', :url => preview_graph_intervention_probe_assignment_path(:intervention_id=>probe_assignment.intervention_id, :id=>probe_assignment.id, :count => probe_assignment_counter), :method => :get, :update => {:success => "graph
#{probe_assignment_counter}"}, :with => "new_probe_scores()" %>
14:
15: <% end %>
16: <% else %>

(eval):16:in `preview_graph_intervention_probe_assignment_path'
app/views/interventions/probe_assignments/_probe_assignment.html.erb:13
app/views/interventions/probe_assignments/_probe_assignment.html.erb:4
app/views/interventions/probe_assignments/_index.html.erb:1
app/views/interventions/probe_assignments/index.js.rjs:2:in `__instance_exec0'
app/views/interventions/probe_assignments/index.js.rjs:1:in `_run_rjs_app47views47interventions47probe_assignments47index46js46rjs'
app/controllers/interventions/probe_assignments_controller.rb:10:in `index'

Rendered rescues/trace (106.1ms)
Rendered rescues/
request_and_response (2.6ms)
Rendering rescues/layout (internal_server_error)

Reported by shawn (at vegantech) · May 28th, 2009 @ 10:40 AM

State: resolved
Assigned to: shawn (at vegantech) shawn (at vegantech)

Activity

  1. shawn (at vegantech)
  2. shawn (at vegantech)
    shawn (at vegantech)

    new intervention - should not have enter/view scores

    edit intervention with no intervention_probe_assignments previously selected should have enter/view scores. (Currently disabled in temporary fix)

    edit intervention with existing intervention_probe_assignment should have enter/view scores

    May 29th, 2009 @ 12:26 PM

  3. shawn (at vegantech)
    shawn (at vegantech)
    • State changed from new to needs_tests

    (from [aef398b845943ba85535cb33327dfaa1bd2f89ce]) [282 state:needs_tests] probe graph prview now works for new intervention probe assignment http://github.com/vegantech/sims/commit/aef398b845943ba85535cb33327...

    May 29th, 2009 @ 05:41 PM

  4. shawn (at vegantech)
    shawn (at vegantech)
    • State changed from needs_tests to resolved

    (from [4df48b23a5c420e389f901e8ed216eb764f4452d]) [#282 state:resolved] tested and fixed probe graph preview for new intervention probe assignment http://github.com/vegantech/sims/commit/4df48b23a5c420e389f901e8ed2...

    May 29th, 2009 @ 05:41 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.