private Method

Controller.get_controller_for_url_generation(options)

This method is here to overwrite the one in the general_controller mixin The method ensures that when a url is generated with a hash, it contains a controller

Source Code

# File merb/controller.rb, line 212
def get_controller_for_url_generation(options)
  controller = options[:controller] || params[:controller]
  controller = params[:controller] if controller == :current
  controller
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.