Vote count:
0
So I have a app/assets/javascript/sites.js.coffee.erb
file.
There I do:
#lots of stuff
formData: '<%= @s3_direct_post[:fields] %>',
#and more stuff
which ends in:
undefined method `[]' for nil:NilClass
which seems to suggest that rails is NOT preprocessing the erb file. I tried leaving out the .erb extension, leaving app/assets/javascript/sites.js.coffee
, but that didn't help either.
How does correct rails 4 preprocessing work??? I'm confused as the sites_controller correctly creates the @s3_direct_post
object, and it can be used in app/views/sites/upload.html.erb
just fine...
asked 18 secs ago
Rails 4 preprocessing coffee.erb
Aucun commentaire:
Enregistrer un commentaire