public Method

ControllerSegment.extract_value

Make sure controller names like Admin/Content are correctly normalized to admin/content

Source Code

# File action_controller/routing/segments.rb, line 219
def extract_value
  "#{local_name} = (hash[:#{key}] #{"|| #{default.inspect}" if default}).downcase"
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.