0
votes
2answers
35 views

Rails application doesn't recognize postgres gem

I'm new to Ruby on Rails. I installed Rails 4 on my Windows 8 system, and the DevKit, and installed the pg (PostgreSQL) gem. > gem install pg ... Successfully installed pg-0.16.0-x64-mingw32 I ...
0
votes
1answer
28 views

Postgres - FATAL: database files are incompatible with server

I am developing a Rails4-App with PostgreSQL and it all worked just fine. After restarting my MacBook Pro I am unable to start the database server: could not connect to server: No such file or ...
3
votes
0answers
62 views

Cancel Rails DB connection

I am writing an app that uses Server Side events with ActionController::Live. It is using the puma app server. A method in the Messages controller stays alive while the user is connected waiting for ...
1
vote
0answers
15 views

Ruby on rails form for postgresql array

I haven't found any example of how to make a dynamic form for a field which is a Postgresql array. I want to fill it dynamically using Mustache.js. I have done it before but with a string field using ...
1
vote
0answers
45 views

Rails 4, Ruby 2.0: Get PG Error when trying to get all records having a specified value in joined table

Given the following two classes: class VacationRequestDay < ActiveRecord::Base belongs_to :vacation_request, :inverse_of => :vacation_request_days, ...
0
votes
0answers
15 views

pg_search searching with dictionary: “spanish” not working

This is my scope pg_search_scope :simple_search, lambda {|args, query| return {:against => args, :query => query, using: { tsearch: { dictionary: "spanish"}} } } this ...
0
votes
0answers
30 views

rails 4 cache digest and PostgreSQL schemas

I have tested a simple app with rails4 using the cache and it just WORKED fine using multiple SCHEMAS, I have created users in schema one and copied them to schema two then in the database I made some ...