Ever wanted to have your app virus-scan uploads BEFORE you attach them to a model? My BigAuthor app for writers and agents needed to do exactly that — I didn’t want some bozo uploading a virus-laden Word doc and then distributing to all the agents that log in to the site. So I set to [...]
Posts Tagged ‘inherited_resources’
Mongoid + Carrierwave + Virus scanning!
Posted: 30th December 2010 by M. E. Patterson in CodingTags: clamav, inherited_resources, mongoid, rails, ruby, virus
0
Nested forms, hashes, checkboxes and MongoMapper
Posted: 20th February 2010 by M. E. Patterson in CodingTags: inherited_resources, mongod, mongomapper, rails, ruby, solr, sunspot
While working on my upcoming BigAuthor project, I came upon an interesting challenge that turned out to be so simple with MongoMapper that I just have to share it here. Need to create a hash of multiple filter parameters on a MongoMapper document using a form that is cleanly resource-based, using InheritedResources? It’s not as [...]