…for a Senior Developer . Trivia: Durran Jordan, creator of Mongoid, works there, so you'll be in good company! — click here to learn more.
Ruby on Rails or Python Django superstar for web+mobile startup - New York, New York
Collectrium , a technology company focused on elegant tools for art collectors, galleries, and art fairs is looking for a Ruby on Rails or Python Django superstar for their Web + mobile startup — click here …
Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here I cover installation, adding fields, validations, associations, and keys.
What do you think the below code would do in Mongoid? 1 2 3 4 5 Post .where( :author_id => 8 ).delete_all
It would delete all the posts where the author ID is 8, right? Right? Riiight? WRONG ! FOOL! IT DELETES THE ENTIRE FUCKING POSTS COLLECTION . No joke.
Whereas in ActiveRecord Post.where(:author_id => 8).delete_all would delete ONLY THE POSTS WITH AUTHOR ID 8 , Mongoid decided to JUST REMOVE THE ENTIRE COLLECTION . AWESOME SURPRISE !!!!!!!
This leads to awesomeness and unicorns when done in production.
If you're using Mongoid and OpenID, you might be able to use db_store.rb . You could even improve it and release it!
Meanwhile, in Tokyo
I went to the Tokyo Rubyist Meetup . Contrary to popular belief, I don't travel the world going to programmer meet-ups. It was actually my wife who arranged it — she's not a programmer, she worked with one of the organisers when translating Basecamp . It was a good event for her to attend, because the …
…-compliant ORM (like DataMapper, Sequel, or Mongoid), you will be able to use features like form_for, link_to and redirect_to with objects from those ORMs without any additional work.
Official plugin APIs
We also rewrote Railties with the express goal of using the new plugin API for all Rails frameworks like Active Record and Action Mailer . This means that Rails plugins like the ones for DataMapper and RSpec have access to all …
This could in theory also be done for other Rails 3 compatible ORMs like Mongoid, but I haven't looked into that yet.
Hirb
Hirb formats objects into pretty tables, as you can see in the picture above. It also provides some scrolling possibilities like the command line tools less and more. Very handy!
Wirble
The first IRB extension anyone uses. Wirble provides you with history and syntax highlighting.
Awesome Print
While Wirble colorizes the output …
This could in theory also be done for other Rails 3 compatible ORMs like Mongoid, but I haven't looked into that yet.
Hirb
Hirb formats objects into pretty tables, as you can see in the picture above. It also provides some scrolling possibilities like the command line tools less and more. Very handy!
Wirble
The first IRB extension anyone uses. Wirble provides you with history and syntax highlighting.
Awesome Print
While Wirble colorizes the output …
I recently blogged about the rpm_contrib gem, which has custom instrumentation for Camping, Paperclip, MongoDB (via MongoMapper or Mongoid), Resque and Redis that were contributed by expert RPM users. Now let's look at how easy it can be to add custom instrumentation for a Ruby gem so many of us depend on. One of the [...]
…Warden" supports many ORMs ( ActiveRecord, DataMapper, Mongoid). Now, all code related to integration with mentioned ORMs is included in devise itself . Devise checks which ORM is available at runtime (like in dm-paperclip example) and requires appropriate file choosing from many available alternatives (like in markdown example). It's far from being perfect. How this could be improved?
It'd be probably better to put integration code in separate gems. This way …
Do you use Camping, Paperclip, MongoDB (via MongoMapper or Mongoid), Resque or Redis? You can get performance metrics in RPM for all of these frameworks right now just by installing the rpm_contrib gem! The rpm_contrib gem contains custom instrumentation generously written and shared by expert RPM users. Why add custom instrumentation? Inside every application we [...]