Why use Attach for update Entity Framework 6??

While searching for the best practivies of performing CRUD operation via EF I noticed that it is highly recommended ...

Rails return JSON instead of HTML?

I have a ruby on rails web app, but I want it to act like a web service and instead of HTML to return JSONs. I want ...