These are chat archives for jescalan/roots

28th
Nov 2015
Nick Garland
@ngarland79
Nov 28 2015 02:45

I'm a newbie, so bear with me, and thanks for being patient. I am attempting to generate individual HTML files for each record in a JSON response using roots-records. For the life of me, I can't get it to create the files and I am getting no errors. Here's the coffeescript. "pterosaurs" works (a list of records in a single page) but "pterosaurs_single" does not work. I tried taking "pterosaurs" out and it still didn't work. Can anyone help me with this?

records pterosaurs: url: api_url path: "records" pterosaurs_single: url: api_url path: "records" template: "views/_pterosaur.jade" out: (pterosaurs_single) -> "pterosaurs/#{pterosaurs_single.fields.Name}"

I'm a newbie, so bear with me, and thanks for being patient. I am attempting to generate individual HTML files for each record in a JSON response using roots-records. For the life of me, I can't get it to create the files and I am getting no errors. Here's the coffeescript. "pterosaurs" works (a list of records in a single page) but "pterosaurs_single" does not work. I tried removing "pterosaurs" and it still didn't work. Does anyone have an idea? I can also let you see my GitHub repo if you want. Thanks, Nick.
records
      pterosaurs:
        url: api_url
        path: "records"
      pterosaurs_single:
        url: api_url
        path: "records"
        template: "views/_pterosaur.jade"
        out: (pterosaurs_single) -> "pterosaurs/#{pterosaurs_single.fields.Name}"
Nick Garland
@ngarland79
Nov 28 2015 06:04
Figured that out^^ Version was incredibly outdated. Updated to latest and it worked :-)