-
Notifications
You must be signed in to change notification settings - Fork 13
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
Baseline - PR with trello board and ERD picture #2
base: master
Are you sure you want to change the base?
Conversation
…ince it was provided in csv.
…arket name, address, and a list of all vendors, which links to the individual vendor pages
…sh. It works now... can create new market action
…o prepare to make edit page
…ctions and when Rails uses them
…of having a visible field for market id input
Paired with Sarah N for this project. |
def vendor_edit_params | ||
params.permit(vendor: [:name, :no_employees]) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make one private params method and use it for all your controller actions! No need to separate between create and edit.
Great work! Very thoughtful clean code overall. |
<% end %> | ||
</ul> | ||
<% end %> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good error message to complement your model validations!
Great job, your code looks really good! |
ERD :
Trello : https://trello.com/b/xSjZw2a3