vendredi 20 février 2015

Missing template pessoas/show, application/show with {:locale=>[:en], :formats=>[:json], (...)

I am trying to set my project to use as an api. Rabl installed the gem and I instal bundle that appeared to function as usual. the problem is that when I enter in my json by the browser it still search to view json old. WHAT did wrong? to put down my index.json.rabl



collection @pessoas, object_root: "pessoas"
attributes :id, :name, :email, :phone, :city

Aucun commentaire:

Enregistrer un commentaire