# Secured area

**URL:** <https://www.ruby-forum.com/t/secured-area/193667>\
**Category:** Rails\
**Created:** [August 21, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/secured-area/193667 "2010-08-21T17:13:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [August 21, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/secured-area/193667/1 "2010-08-21T17:13:46Z")

</div>

In the “Head First Rails” book, it has the following as part of a  
method:

authenticate\_or\_request\_with\_http\_basic(“Ads”) do | username, password|

It mentions that “Ads” is: This is the name of the secured area of the  
website - the “domain”.

Provided that the authentication is meant for the “edit” and “update”  
methods.

So, how is (“Ads”) the name of the secured area of the website? Is it  
JUST a name we enter? I entered for example (“Advertisement”), but  
didn’t notice the effect of this name after logging in.

What do you think?

Thanks.
