2
votes
0answers
29 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
28 views

Heroku + Rails 3.2 + PostgreSQL = NoMethodError: undefined method `result' for #<NoMethodError:..>

NoMethodError: undefined method `result' for #< NoMethodError: ...> Stack trace refers to this place: def current_income return @current_income if defined? @current_income if ...
1
vote
0answers
44 views

Calling PL/pgSQL Stored Procedures from Ruby on Rails

I am working on a project where I am the database designer/admin in a PostgreSQL environment. The leader has decided to use Rails for the application logic and recruited a Rails programmer. The Rails ...
0
votes
0answers
33 views

Heroku “We're sorry, but something went wrong” but works fine in the localhost

I am building a web app on Rails using Postgresql database and some gems. The app works fine on the localhost. But I deployed it to Heroku and this is where the problem begins. When I open the ...
0
votes
0answers
14 views

heroku console distinct not working

I am new to ruby on rails environment. I migrated my database to heroku along with the data using seeds.rb. in heroku server running TableName.all populates all data present in heroku postgres. when i ...
0
votes
0answers
26 views

How to send data to a client from a Resque worker?

I've got a rails app running on Heroku. I'm trying to add a feature that lets users download some of their data in CSV format. The CSV files are largeish (~ 1-2 MB) and they're slow to generate. So as ...
0
votes
0answers
23 views
+100

Using a database for CKEditor uploads

I need a tiny (less than 100 total) document store in a Rails 3.2 app where a user can create, edit, save, and delete rich text documents (ideally including images and other attached items). There is ...
0
votes
0answers
38 views

update query not updating in postgresql

Not updating postgresql database when update_all using @change_stat = Notification.where("fb_id = ? AND active = ?",@current_user.fb_id,true) @change_stat.update_all(:active => false)
0
votes
0answers
23 views

Heroku Deployment : Discourse Assets precompile

Hi I'm actually trying to deploy discourse on Heroku. I'm following the step by step guide here Basic Heroku deployment I'm facing a problem when I try to rake assets:precompile (I'm precompiling ...
0
votes
0answers
22 views

Timestamp breaks sqlite3 import to postgresql

I have a rails app that I used Sqlite3 for the db, but am now switching to use Postgresql. Per this excellent post, I have set up the postgresql databases, and am now importing the sqlite3 db's to ...
0
votes
0answers
14 views

rake db:setup not work with Postgres and Postgis ERROR: could not access file “$libdir/postgis-1.5”: No such file

In Ubuntu, i try to run rake db:setup to install a Rails application, but i have several times this message ERROR: could not access file “$libdir/postgis-1.5”: No such file Finding in the files, i ...
0
votes
0answers
18 views

Rails postgis adapter makes lot of queries in table “geometry_columns”

I'd like to optimize my Rails 3.2.13 application that's currently using postgis through activerecord-postgis-adapter gem. The problem is that when I make a query in a table, even if there are only ...
0
votes
0answers
46 views

Bulk data load to Heroku Postgres from flat files

UPDATE AT THE BOTTOM I have large amounts of data to load to an Heroku Rails app. Flat files are supplied by the user, and the plan is to upload them to S3, copy to Heroku ephemeral storage, and ...
0
votes
0answers
23 views

rails s error libpq.so.5: wrong ELF class: ELFCLASS64

I am getting the subject error. It seems the error has something to do with the postgres libraries not being 64 bit, but other than that I can't figure it out. Bundle install runs alright, but when I ...
0
votes
0answers
37 views

Rails + Postgresql to_json order isue

Hi Im exporting json to a file with rails, however I can't get the order to be right. I user this code but it produces json with the opposite order. class TojsonWorker < ApplicationController ...

1 2 3 4
15 30 50 per page