Has anyone here every utilized GridFS with Ruby to store images? I am wondering what I am doing wrong in the code below, it comes basically straight from the documentation (https://docs.mongodb.com/ecosystem/tutorial/ruby-driver-tutorial/#gridfs), here is the code I have written (https://gist.github.com/terrabl/f0e6038cba2e210cf366cbbd5eb11e11) And I am getting a gridFS_test.insert | FAILED | wrong number of arguments (2 for 0..1) e
Heya, I'm working on a web app that allows users to input markdown and it gets rendered on the main site. At the moment I'm trying to allow users to render some active record objects in their own custom format, with markdown. I've looked at rendering the content twice, using liquid first and then processing it with markdown afterwards, but it's a bit gross and liquid has way to many features. I kind of want
something like mustache+markdown but mustache allows arbitrary code execution. Any ideas? At the moment I'm thinking add some sort of loop syntax to markdown before processing it with markdown gem. Seems like a lot of work though, and there's probably something easier I've overlooked?
mg^: Yeah, but then it's gonna get real tricky... to support nested loops for example