Customizing Rails requests

Where’s the documentation for the Rails ApplicationController class?
Isn’t that where you start to make your own request-handling code?
The tutorials all stop at a basic skeleton,
http://railsmanual.com/class/ApplicationController
is empty, and
http://api.rubyonrails.com/
doesn’t even list it in the Classes frame.
The Rails installer spent a lot of time on some kind of documentation,
but there’s no Rails man page and nothing in myrailsapp/doc.

On 8/17/06, YAD [email protected] wrote:


Yet another Dan

class ApplicationController < ActionController::Base
end

http://api.rubyonrails.com/classes/ActionController/Base.html

Hi,

You’re more likely to find more Rails experts on the Ruby On Rails
mailing list. Just giving you a heads-up.

Also, the ApplicationController generally holds logic that can happen
for any request, such as an authentication filter for a protected
website.

The ActionController::Base documentation will cover creating actions
which handle the requests. However, you’ll want to look at the
Router’s documentation if you’re wanting to make some custom routes,
like http://host/blog/2006/08/17 to map to the blog controller and the
show action.

Hope this helps,

M.T.

Matt T. wrote:

You’re more likely to find more Rails experts on the Ruby On Rails
mailing list. Just giving you a heads-up.

Thanks, I’ll try that.

The ActionController::Base documentation will cover creating actions
which handle the requests.

Good.

However, you’ll want to look at the
Router’s documentation if you’re wanting to make some custom routes,
like http://host/blog/2006/08/17 to map to the blog controller and the
show action.

I’m not doing that right now, but thanks for the info.

Jan S. wrote:

class ApplicationController < ActionController::Base

Thank you. I also found a small reference
(and blogs pointing to it) here:

http://blog.invisible.ch/files/rails-reference-1.1.html#views

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs