You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
Added likes/dislikes in merge 2833434. I have looked at the controller/index and I think we need to approach how the index calls likes and dislikes from the each block differently.
NoMethodError in Preferences#new
Showing /Users/errinlarsen/Code/Rails/lunch/app/views/preferences/_form.html.erb where line #2 raised:
undefined method `likes' for #Preference:0x007fef1cfb06b8
Extracted source (around line #2):
1: <%= simple_form_for(@preference) do |f| %>
2: <%= f.input :likes %>
3: <%= f.input :dislikes %>
4: <%= f.button :submit %>
5: <% end %>
Trace of template inclusion: app/views/preferences/new.html.erb
Rails.root: /Users/errinlarsen/Code/Rails/lunch
Application Trace | Framework Trace | Full Trace
app/views/preferences/_form.html.erb:2:in
block in _app_views_preferences__form_html_erb___1564734051096441712_70332480177420' app/views/preferences/_form.html.erb:1:in
_app_views_preferences__form_html_erb___1564734051096441712_70332480177420'app/views/preferences/new.html.erb:8:in
_app_views_preferences_new_html_erb___2804989799273048826_70332485700800' app/controllers/preferences_controller.rb:34:in
new'Request
Parameters:
None
The text was updated successfully, but these errors were encountered: