--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Generates a URL for a single or nested resource.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "resources<Symbol,Object>:"
    body: The resources for which the URL
  type: :NOTE
- !ruby/struct:SM::Flow::VERB 
  body: "  should be generated. These resources should be specified\n  in the router.rb file using #resources and #resource.\n"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "options<Hash>:"
    body: Any extra parameters that are needed to
  type: :NOTE
- !ruby/struct:SM::Flow::VERB 
  body: "  generate the URL.\n"
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: The generated URL.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::P 
  body: Merb::Router.prepare do
- !ruby/struct:SM::Flow::VERB 
  body: "  resources :users do\n    resources :comments\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: end
- !ruby/struct:SM::Flow::P 
  body: "resource(:users) # =&gt; /users resource(@user) # =&gt; /users/10 resource(@user, :comments) # =&gt; /users/10/comments resource(@user, @comment) # =&gt; /users/10/comments/15 resource(:users, :new) # =&gt; /users/new resource(:@user, :edit) # =&gt; /users/10/edit"
- !ruby/struct:SM::Flow::P 
  body: ":api: public"
full_name: Merb::Controller#resource
is_singleton: false
name: resource
params: (*args)
visibility: public
