-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Followed installation instruction, logged on, and clicked on the link to show "HenrySmith44". Crashed:
NoMethodError in Records#show
Showing /home/tobyc/work/mitre/pdmp/patient-data-server/app/views/records/_section.html.erb where line #3 raised:
undefined method `strftime' for 1291266000:Bignum
Extracted source (around line #3):
1: <h2><%= link_to I18n.t("section." + section.to_s), section_path(@record.medical_record_number, section, format: 'html') %></h2>
2: <% section_enumerator(record, section) do |x| %>
3: <%= yield x %>
4: <% end %>
5: <div class='history_link'><%= link_to ('<< Past ' + I18n.t("section." + section.to_s)).html_safe, (record_path(record.medical_record_number) + "/" + section.to_s) %></div>
6: <% if section.to_s == "encounters" %>
Trace of template inclusion: app/views/records/show.html.erb
Rails.root: /home/tobyc/work/mitre/pdmp/patient-data-server
Application Trace | Framework Trace | Full Trace
app/helpers/application_helper.rb:32:in `date'
app/views/records/show.html.erb:16:in `block in _app_views_records_show_html_erb___192870393_99621270'
app/views/records/_section.html.erb:3:in `block in _app_views_records__section_html_erb__653169289_100052650'
app/helpers/record_helper.rb:11:in `block in section_enumerator'
app/helpers/record_helper.rb:10:in `section_enumerator'
app/views/records/_section.html.erb:2:in `_app_views_records__section_html_erb__653169289_100052650'
app/views/records/show.html.erb:14:in `_app_views_records_show_html_erb___192870393_99621270'
app/controllers/records_controller.rb:45:in `show'
Request
Parameters:
{"id"=>"1"}
Show session dump
Show env dump
Response
Headers:
None
Metadata
Metadata
Assignees
Labels
No labels