On Wed, May 25, 2011 at 12:42:21PM +0200, Tomas Sedovic wrote:
ACK. There's a few notes inline.
Updated and pushed. Thanks!
1) Keep the method in the controller and add this line to the
controller's class definition:
helper_method :filter_view?
This is *precisely* what I was wanting to do. Thanks for the tip!
I think it would make more sense to move this code to a standalone
function that would be called from $(document).ready. It would make it
cleaner in my opinion.
Agreed. Updated.
I've made the changes you describe and pushed per your ACK. Thanks.
-- Matt