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

Comments

Viewing 2 Comments

blog comments powered by Disqus