Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7150

Show
Ignore:
Timestamp:
06/28/07 18:44:08 (1 year ago)
Author:
david
Message:

Drop the trailing slash

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/tasks/routes.rake

    r7149 r7150  
    55    verb = route.conditions[:method].to_s.upcase 
    66    segs = route.segments.inject("") { |str,s| str << s.to_s } 
     7    segs.chop! if segs.length > 1 
    78    reqs = route.requirements.empty? ? "" : route.requirements.inspect 
    89    {:name => name, :verb => verb, :segs => segs, :reqs => reqs}