dimanche 7 décembre 2014

Rails' gon.jbuilder won't work


Vote count:

0




I am using gon.jbuilder to send json objects to frontend. I am using usual gon.watch.jbuilder command. It is working quite well on localhost, but when I try to test it on my server I get this exception:



Errno::ENOENT in EventsController#show
No such file or directory @ rb_sysopen - app/views/events/show.json.jbuilder


The file exists on server. This is the part of the full trace:



gon (5.2.2) lib/gon/jbuilder.rb:76:in `readlines'
gon (5.2.2) lib/gon/jbuilder.rb:76:in `parse_jbuilder'
gon (5.2.2) lib/gon/jbuilder.rb:16:in `handler'
gon (5.2.2) lib/gon.rb:94:in `jbuilder'
app/controllers/events_controller.rb:19:in `show'


What could cause this? Thanks for your answers. :)



asked 1 min ago







Rails' gon.jbuilder won't work

Aucun commentaire:

Enregistrer un commentaire