benkoshy said about 1 year ago on I'm a teapot :
How is one, practically, to implement all these response codes?

Wouldn't you need a massive case statement when returning a controller action? Does Rails handle most of the difficulties outside the box?

# pseudo-code
def controller_action
   case :succes
     then
   case :other code
     then 
   end
end

David Kimura PRO said about 1 year ago on I'm a teapot :
I feel that the default conventions are sufficient in most cases. If something else is needed for a more unique use case then add just the one in.

Login to Comment