Tag Info

New answers tagged


Maintainability trumps all. Unless you have a pressing reason not to, follow the conventions as they appear in the reference material. In this case, the first Google hit is the documentation for validations at rubyonrails.org, which shows a strong preference to the validates form. The only counter example I could find was validates_associated, which makes ...


This is the expected behavior in case of a DELETE request. So much so that in rails if you generate a resource or scaffold (using rails generate), this is what is generated. All 2xx statuses are "success" statuses. So if you are actually not sending any content, it is best to mention it with a no_content So rest assured that what you are doing is in fact ...

Top 50 recent answers are included