Issue when trying to test a new survey

Help
seb castle
2009-06-09
2013-04-19
  • seb castle
    seb castle
    2009-06-09

    Hi,

    I recently installed infomaki and entered new pageviews within the admin tool. Everything is working fine. Then, as a user, when i'm trying to test the survey, i got the following error :

    URL where the issue occured : http://localhost:3000/pageviews/1

    #Error logs :

    NoMethodError in Pageviews#show

    Showing pageviews/show.html.erb where line #29 raised:
    undefined method `elapsed_time' for #<Reply:0x2462fb0>

    Extracted source (around line #29):

    26:     <% form_for(@reply) do |f| %>
    27:       <%= f.error_messages %>
    28:       <%= f.hidden_field :initiative_id, :value => @pageview.id %>
    29:       <%= f.hidden_field :elapsed_time, :id => "elapsed_time" %>
    30:       <div class="heatmap">
    31:       <%= image_submit_tag @pageview.wireframe.screenshot.url, :onclick => "this.form.elapsed_time.value=get_elapsed_time(start_time)" %>
    32:       </div>

    Could you please help me fix this issue ?

    thanks in advance