MetricsMine: Fixed bug
November 28, 2008 | Filed Under Uncategorized
In your implementations of MetricsMine, after an edit is made to a Unit, Measurement, or MeasurementKind, you should redirect to the index action for that controller.
Originally, in the reference implementation, this was handled by an action called list. The index action would delegate to list.
In order to reduce the amount of code you have to implement, at some point I got rid of list, and put its functionality in index — but I forgot to fix the redirects, which were going to list, not index.
This is now fixed in the reference implementation. Again, in your implementation, after a instance of a particular model is edited (i.e., updated with the “update” action) you should redirect to the index action.
That’s it.
John
Add New Comment
Viewing 2 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment