Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

NoMethodError in Preferences#new #11

Closed
errinlarsen opened this issue Jan 27, 2013 · 2 comments
Closed

NoMethodError in Preferences#new #11

errinlarsen opened this issue Jan 27, 2013 · 2 comments

Comments

@errinlarsen
Copy link
Contributor

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:innew'
Request

Parameters:

None

@errinlarsen
Copy link
Contributor Author

I think Edwin is working on adding likes/dislikes to Preference

@edwinmillan
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants