Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: Arcath
Love the ep
As I don't use devise and HTTP Basic seems a bit weak for my uses I got the route to be conditional based on CanCan permissions:
If your app was to take 20-30 seconds to load the view the browser would hang and show no signs of a response until finished. With this it would load the title etc... and give the end user some sign that its working.
Although I would rather have it load a page saying "loading..." and fire of a ajax request for the data so the user has a complete page and then the data can take as long as it wants.
@Alexander Open an Issue on Metrical
I wrote a helper method to do this that takes option as a hash
this lets you do the same but isn't specific to a user model