Hi, guys.
My problem is when i touch the route like '/book/ruby' that will loads the
ApplicationController first,
and then loads the action ruby of the controller book, the loading order as
the following,
# First loading
class ApplicationController < ActionController::Base
protect_from_forgery
#
# Here, can i change the controller book and the action ruby for loading
later ?
# For example , we change the controller book to video, or change the
action ruby to php
# If the controller be changed to video as i say above, so, the controller
video will be loaded instead of the
# the book.
#
end
# loading later..
# A custom controller and sereral actions.
class BookController < ActionController::Base
def ruby
#do something.
end
def php
#do something.
end
def python
#do something.
end
end
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.