Forum: Ruby on Rails Controller methods

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gregory S. (Guest)
on 2006-02-28 01:26
(Received via mailing list)
I am not clear on what makes a controller method available as an URL.
More
specifically, I'm not clear on how to prevent methods from being
available
as URLs.

I am working on a simple web API framework (home-rolled rather
than SOAP or XML-RPC) that provides little more than a high-level
messaging
system between JavaScript and Rails. My ApplicationController will
implement the only methods that should be available via HTTP, but the
other
controllers will need to implement methods that the HTTP-accessible
methods
will call. Is it as simple as making the separate controllers' methods
all
protected and private?

--Greg
Kevin O. (Guest)
on 2006-02-28 02:43
(Received via mailing list)
Yes, I think 'private' methods are not reachable by a URL.

_Kevin
This topic is locked and can not be replied to.