Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created December 12, 2011 14:45
Show Gist options
  • Save richardsondx/1467570 to your computer and use it in GitHub Desktop.
Save richardsondx/1467570 to your computer and use it in GitHub Desktop.
NoMethodError in Deals#edit
Showing /app/views/deals/_form_edit.html.erb where line #26 raised:
undefined method `merge' for 2011-12-12 07:43:35 -0700:Time
Extracted source (around line #26):
23: </p>
24: <p>
25: <%= f.label :start_time%><br />
26: <%= f.text_field :start_time, Time.now %>
27: </p>
28: <p>
29: <%= f.label :end_time %><br />
Trace of template inclusion: app/views/deals/edit.html.erb
Rails.root:
Application Trace | Framework Trace | Full Trace
app/views/deals/_form_edit.html.erb:26:in `block in _app_views_deals__form_edit_html_erb___253596622055428984_2159542700_1453748915930183557'
app/views/deals/_form_edit.html.erb:3:in `_app_views_deals__form_edit_html_erb___253596622055428984_2159542700_1453748915930183557'
app/views/deals/edit.html.erb:4:in `_app_views_deals_edit_html_erb___710493120961921834_2159558040__4369589867945598927'
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