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

block_params: 
comment: 
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "url<String>:"
    body: URL to redirect to. It can be either a relative or fully-qualified URL.
  - !ruby/struct:SM::Flow::LI 
    label: "opts<Hash>:"
    body: An options hash (see below)
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Options (opts)
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: ":message<Hash>:"
    body: Messages to pass in url query string as value for &quot;_message&quot;
  - !ruby/struct:SM::Flow::LI 
    label: ":permanent<Boolean>:"
    body: When true, return status 301 Moved Permanently
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: Explanation of redirect.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  redirect(&quot;/posts/34&quot;)\n  redirect(&quot;/posts/34&quot;, :message =&gt; { :notice =&gt; 'Post updated successfully!' })\n  redirect(&quot;http://www.merbivore.com/&quot;)\n  redirect(&quot;http://www.merbivore.com/&quot;, :permanent =&gt; true)\n"
- !ruby/struct:SM::Flow::P 
  body: ":api: public"
full_name: Merb::ControllerMixin#redirect
is_singleton: false
name: redirect
params: (url, opts = {})
visibility: public
