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

The admin form for creating new products do not detect that you have selected a category. #6

Closed
adrianmcli opened this issue Nov 7, 2016 · 0 comments · Fixed by #7

Comments

@adrianmcli
Copy link
Member

adrianmcli commented Nov 7, 2016

If you tried to create a new product using the admin/products creation page, you will run into an error where it tells you that you cannot be submitting a product with a blank category (even if you actually did choose a category).

Line 38 from app/views/admin/products/new.html.erb reads:

<%= form.select :category, options_from_collection_for_select...

When it should read:

<%= form.select :category_id, options_from_collection_for_select...

This is because the app is expecting :category_id to be passed through.

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

Successfully merging a pull request may close this issue.

1 participant