in ruby on rails, how to call a action in ApplicationController?
Posted
by siulamvictor
on Stack Overflow
See other posts from Stack Overflow
or by siulamvictor
Published on 2010-04-14T08:02:44Z
Indexed on
2010/04/14
8:13 UTC
Read the original article
Hit count: 501
I am new to Ruby and RoR. I am not really understand how's the controller work
I have an action in ApplicationController
def some_checking
...
end
And I would like to call the action some_checking in another controller
class OtherController < ApplicationController
some_checking
def xxx
end
end
Is there anything wrong? How can I call an action in ApplicationController? I just can't get into some_checking.
© Stack Overflow or respective owner