Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

databaseanswers.net Latest Questions

  • 0
Clara
Beginner

I have a controller method where I’m trying to pass a string with multiple order_by arguments to return a sorted collection. The order_by syntax works with one stringified argument, i.e. order_param = "image_fize_size DESC" query.order_by(order_param) >> #<Mongoid::Criteria selector: {...}, options: {:sort => {"image_file_size"=> -1}} class: ...> Due to ...

  • 4
Clara
Beginner

I’m using 'mongo', '1.6.2' and 'mongoid', '2.4.11'. I have ProPlayer model, When I run in console. irb(main):006:0> ProPlayer.first => #<ProPlayer _id: 508a5549d3966f02e7000001, _type: nil, created_at: nil, updated_at: nil, first_name: "Adam", last_name: "Jones", batting_style: "R", image_thumbnail: "1.jpg", is_pro_player: true, team_id: BSON::ObjectId('508a550ad3966f02ce000012'), ...