amvis
unread,Apr 4, 2012, 3:37:41 AM4/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
class BranchesController < ApplicationController
def create
//call for_branch with argument pass
end
end
class ApplicationController < ActionController::Base
def for_branch(branch)
end
end
In the above code, i have to call one function which is in application controller, from one controller. how to call this...its like in all other oop language, create one object of an extended class and call the object. so can i do like that?
Thank you
vishnu