Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI undefined method crash when viewing patient record #7

Open
caboteria opened this issue Nov 30, 2012 · 0 comments
Open

UI undefined method crash when viewing patient record #7

caboteria opened this issue Nov 30, 2012 · 0 comments

Comments

@caboteria
Copy link

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 ('<<&nbsp;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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant