-
Notifications
You must be signed in to change notification settings - Fork 11
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
completed requirements plus some extras #12
base: jbkd/master
Are you sure you want to change the base?
Conversation
|
||
def update | ||
id = params[:id] | ||
@market = Market.find(id) |
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.
It would be great to see some refactoring of the id
and @market
variables to use a before_action
@jbuechs @kdefliese Nice job on this! I like some of the fanciness that you used in your design and the There are a few areas for improvement - but the primary one is to consider which method calls query the database and ensure that these are only being used when fully necessary. |
Link to our app: https://jbkd-farmar.herokuapp.com/
Some extras:
Used sessions to "log in" as market and vendor
Users can search for a market
Different navbars for different types of users
Form validation for required fields