-
Notifications
You must be signed in to change notification settings - Fork 2
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
Story 25 #130
Story 25 #130
Conversation
Clear session
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.
I hope Sam changes the redirects. Looks good otherwise
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.
Looks good. I will merge shortly.
|
||
def update | ||
@item = Item.find(params[:id]) | ||
if @item.update(item_params) |
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.
Should work. We can discuss a different redirect (the actual image page that was updated) but I kind of like this the way it is.
|
||
<%= f.label :status %> | ||
<%= f.select :status, ["active", "retired"] %> |
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.
This is nice an clean.
Related Issue: #3
Summary: Add functionality for admin to edit items information
Author(s): randy-darsh and big dawg Joel Lindow