Template Error: Can't Modify frozen string #1659
Description
Not quite sure what caused it, here are the logs.
Found while testing an issue caused by #1058, might be related or not. I attempted to access a page for a reservation that overlapped with a few others.
Live version: http://reservations-yhack.herokuapp.com/reservations/120
2017-02-07T17:04:59.943577+00:00 app[web.1]: Rendered reservations/show.html.erb within layouts/application (10.3ms) 2017-02-07T17:04:59.943822+00:00 app[web.1]: Completed 500 Internal Server Error in 58ms (ActiveRecord: 19.9ms) 2017-02-07T17:04:59.945171+00:00 app[web.1]: 2017-02-07T17:04:59.945174+00:00 app[web.1]: ActionView::Template::Error (can't modify frozen String): 2017-02-07T17:04:59.945175+00:00 app[web.1]: 101: <div class="progress"> 2017-02-07T17:04:59.945174+00:00 app[web.1]: 100: <div class="col-md-12"> 2017-02-07T17:04:59.945176+00:00 app[web.1]: 102: <%= content_tag :div, class: 'progress-bar', style: "width: " << bar_progress_res do %> 2017-02-07T17:04:59.945177+00:00 app[web.1]: 103: <%= content_tag :span, reservation_length_in_words, style: bar_span_positioning_fix %> 2017-02-07T17:04:59.945178+00:00 app[web.1]: 104: <% end %> 2017-02-07T17:04:59.945178+00:00 app[web.1]: 105: <%# TODO: extract to a helper method? %> 2017-02-07T17:04:59.945179+00:00 app[web.1]: 106: <% unless reservation_length > 31 %> 2017-02-07T17:04:59.945180+00:00 app[web.1]: app/helpers/reservations_helper.rb:39:in
bar_span_positioning_fix'
2017-02-07T17:04:59.945181+00:00 app[web.1]: app/views/reservations/show.html.erb:103:in block in _app_views_reservations_show_html_erb__3918838981081684447_70207726816980' 2017-02-07T17:04:59.945181+00:00 app[web.1]: app/views/reservations/show.html.erb:102:in
_app_views_reservations_show_html_erb__3918838981081684447_70207726816980'
2017-02-07T17:04:59.945182+00:00 app[web.1]:
2017-02-07T17:04:59.945183+00:00 app[web.1]:
`
Activity