How can rails provide me an information about the current page on the browser?

Is there a way to get that?

As a second question:

Does attr_accessor can use only symbols (Is this a requirement of using
attr_accessor?) and not a variable which is not a symbol?

thank you