0
votes
1answer
21 views

Error on connecting MySQL with Ruby on Rails

I have just setup the MySQL with Ruby on Rails. I have created a new rails project giving following command rails new test1 –d mysql The project got successfully created but I am getting error when ...
0
votes
1answer
35 views

Data of different user is getting accessed to other each other in rails

I'm very new to Ruby on Rails , I'm creating an application , where I have Login and Signup , My problem is both users can see all the data of each others . I hope you guys understood . Is there any ...
0
votes
1answer
27 views

Android - Ruby on Rails - MySQL

I have started working on an Android app for which we need to use MySQL as database and Ruby on Rails for server side code. We will be using SQLLite too on device(will sync both DB as and when ...
-2
votes
3answers
44 views

joining two tables with multiple conditions in rails

I have two tables named lines and attribute_values. From that I want to select the fields name from the lines tables with conditions given in the MySQL query below: select distinct a.name from ...
0
votes
1answer
31 views

Chicken and egg email

Here's the setup: I have a system with many Accounts, each with many Users. System superusers can broadcast a Message to all accounts. A Messaging represents the joining between an account and a ...
0
votes
1answer
34 views

Rails: How to handle existing invalid dates in database?

First, this is directly related to my other question: How to gracefully handle "Mysql2::Error: Invalid date" in ActiveRecord? But I still do not want to jump through all the loops of ...
0
votes
3answers
38 views

Preventing duplicates via a custom foreign key in has_many :through

I'm trying to implement a two-way has_many :through association between a User model and a Location model using a UserLocations join table. This will enable setting user locations with built in ...
0
votes
1answer
18 views

Uniqueness Not Maintained On MYSQL Database Rails 3.2

I have a simple form submission. On Model I have added validates_uniqueness_of :field But somehow in my Database I get records with duplicate value of field. And Controller Methods are as ...
1
vote
4answers
38 views

Rails looking for a databases not specified by database.yml

I recently pulled some code and ran rspec. The tests passed with no problem. When I ran "rake db:migrate" and "rake db:prepare" however, I got an issue. Now no rspec test passes, and every failure ...
0
votes
0answers
42 views

Update Phusion Passenger from 3.0.11 to 4.0.10 causes ActiveRecord::StatementInvalid Lost connection to MySQL server during query

I'm trying to update a rails application on our production server to ruby 1.9. We have several production sites, some of which have more critical uptime requirements so it would be really beneficial ...
0
votes
1answer
43 views

RoR Watching for changes in a frequently updated table

I'm looking for some advice about monitoring a specific table which gets about 250,000 inserts per day. Not massive but it's growing quickly and we cannot continue working it as we are. The main ...
0
votes
1answer
49 views

ERROR when type “rake db:migrate” got bad file descriptor

I got some trouble when migrate Mysql and Rails Information-------------------------- MySQL Server 5.5 (I had try MySQL Server 5.1, but not work) Ruby 1.9.3-p429 Rails 3.2 I have already ...
0
votes
1answer
41 views

Can't connect to MySQL server on 'myhost.com' (4)

I'm able to connect to the remote database from a MySQL client and using terminal as well. But when trying to access the database from the Rails app, I got this error: Mysql2::Error (Can't connect to ...
-1
votes
0answers
36 views

Ruby on Rails Controller won't let me save data to MySQL based on condition

Thanks for any help you can offer! I have an html form in my Ruby on Rails 2.X app. The goal is to save the starting, ending, and waypoints addresses in a MySQL databases, as well as some other ...
0
votes
1answer
23 views

How can I save each item in a “select multiple” field in its own MySQL record (using Rails)?

Thanks for any help you can provide! I have a Ruby on Rails application where I am trying to save maps with driving directions and waypoints. The data needs to come straight out of the entry form ...

1 2 3 4 5 167
15 30 50 per page