This wiki entry necessarily involves a lot.
My best guess: you need to add it to the appropriate controller (or application controller if you want it for everything).
: before_filter: http_authenticate!
, .
. , Warden . - .
, , - (, OmniAuth) - /, . DeclarativeAuthorization CanCan, - .
HTTPBasic ( , ) .