Jon
2006-Jul-09 06:29 UTC
[Rails] Can''t find where to put non-index methods for appController
I have a couple of methods that I would like to not be available to the world as actions in my ApplicationController, but need to be visible to the methods in my ApplicationController. This is a dumb question yes, and I know the answer is extermely simple. Can I stuff them in another class somewhere? If so, what rails directory do I put it in? Thanks, -Jon -- Posted via http://www.ruby-forum.com/.
Eaden McKee
2006-Jul-09 06:35 UTC
[Rails] Can''t find where to put non-index methods for appController
Hi there, Look into private & protected in your class. You can see examples here http://wiki.rubyonrails.org/rails/pages/AuthenticationWithAbstractApplicationController but if you look around it''s probally somewhere in the api docs too. Best Regards Eaden McKee -- Webforce Ltd. | www.webforce.co.nz On 7/9/06, Jon <root@localhost.net> wrote:> I have a couple of methods that I would like to not be available to the > world as actions in my ApplicationController, but need to be visible to > the methods in my ApplicationController. > > This is a dumb question yes, and I know the answer is extermely simple. > > Can I stuff them in another class somewhere? > If so, what rails directory do I put it in? > > > Thanks, > -Jon > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >