Questions tagged [nobrainer]

A Ruby ORM for RethinkDB

5 questions
1
vote
0 answers

Unit Testing - 'fixtures' no method error using No-Brainer ORM

I am trying to write unit tests for my database using fixtures in rails 5.0.1. I keep getting the error: test/test_helper.rb:7:in `': undefined method `fixtures' for ActiveSupport::TestCase:Class (NoMethodError) from…
tacoplz
  • 11
  • 3
1
vote
0 answers

How to use getFields with nobrainer

I started learning rethinkdb and can't replicate a query that I need using nobrainer+rails. In the RethinkDB data explorer the query is working (not sure if optimal) but it returns the required result. …
DiogoLG
  • 247
  • 1
  • 2
  • 12
0
votes
1 answer

Get RethinkDB query working in Ruby on Rails

I have a ReQL query... r.db('development').table('responses').filter({ survey_id: 9 }).concatMap(r.row.getField('numerical_answers')).filter({ type: 'CustomerEffortAnswer' }).sum('number') ...that I would like to get working in NoBrainer…
Tyler C
  • 531
  • 1
  • 5
  • 12
0
votes
1 answer

What's the database.yml configuration for using Rails with RethinkDB?

I am trying to dive into RethinkDB with Rails and followed the steps until here: https://rethinkdb.com/docs/rails/ How do I configure the database adapter for RethinkDB though?
Maxim Zubarev
  • 2,403
  • 2
  • 29
  • 48
0
votes
1 answer

Rails simple_form associations with NoBrainer and RethinkDB

I am using simple_form as my form builder in a rails project, with RethinkDB as the database and the NoBrainer ORM. I have set up the models to include the relationships between them however when trying to generate the select dropdown for the…