Changeset 1088

Show
Ignore:
Timestamp:
12/13/07 13:31:04 (1 year ago)
Author:
e.@brainspl.at
Message:

fix set_status to actually work, add docs, closes #359 [Francios]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/mixins/render.rb

    r1014 r1088  
    268268    end 
    269269 
     270        # Sets the response's status to the specified value.  Use either an  
     271        # integer (200, 201, 302, etc.), or a Symbol as defined in   
     272        # Merb::ControllerExceptions::RESPONSE_CODES, such as :not_found,  
     273        # :created or :see_other. 
    270274    def set_status(status) 
    271275      if status.kind_of?(Symbol) 
    272         status  = Merb::ControllerExceptions::RESPONSE_CODES(status) 
     276        status  = Merb::ControllerExceptions::STATUS_CODES[status] 
    273277        status || raise("Can't find a response code with that name") 
    274278      end