static public Method

Router.generate(name, params = {}, fallback = {})

There's no documentation for this item.

Source Code

# File merb/router.rb, line 42
def generate(name, params = {}, fallback = {})
  name = name.to_sym
  unless @@named_routes.key? name
    raise "Named route not found: #{name}"
  else
    @@named_routes[name].generate(params, fallback)
  end
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.