Changeset 1088
- Timestamp:
- 12/13/07 13:31:04 (1 year ago)
- Files:
-
- trunk/lib/merb/mixins/render.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/render.rb
r1014 r1088 268 268 end 269 269 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. 270 274 def set_status(status) 271 275 if status.kind_of?(Symbol) 272 status = Merb::ControllerExceptions:: RESPONSE_CODES(status)276 status = Merb::ControllerExceptions::STATUS_CODES[status] 273 277 status || raise("Can't find a response code with that name") 274 278 end
