RailsCasts Pro episodes are now free!

Learn more or hide this

Arcath's Profile

GitHub User: Arcath

Site: http://www.arcath.net

Comments by Arcath

Avatar

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:

http://www.arcath.net/post/Controlling_access_to_Resque_with_CanCan

Avatar

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.

Avatar

@Alexander Open an Issue on Metrical

https://github.com/iain/metrical/issues

 

Avatar

I wrote a helper method to do this that takes option as a hash

https://gist.github.com/481321

this lets you do the same but isn't specific to a user model