0
votes
0answers
12 views

rails/postgresql: daily voting, results for time periods

Given there's a model named 'Topic' and a model named 'User'. There's a static model 'Statement' that has a predefined set of records. User is able to create Topics and set variable number of ...
0
votes
1answer
22 views

new to rails, setting up db then running rake db:create/migrate

hi im currently learning rails, and following a tutorial. the instructions were to edit the migration file after i've created the app, then running rake db:migrate, then rake db:create. i've edited ...
-1
votes
1answer
23 views

deciding team lead and assigning users to team in ruby on rails

I want to assign a team lead and members(users) to team. I have created "has many and through" association between teams and users tables as one team may have many users and a user can be assigned to ...
0
votes
0answers
19 views

update_attributes won't work for nested model in Wicked wizard rails 3.2

I have two models, Bill and Camper. Bill has many campers but it will not save when I call update attributes. I receive no errors, my db just doesn't update. All of my camper values are nil but the ...
0
votes
2answers
20 views

How do you save an attribute to the database that is not coming from the form params?

I am basically trying to save a key that I am generating in the model. It is not something the user is filling out in a form. I keep getting the error when I go to /model/new undefined method ...
2
votes
3answers
52 views

How does interacting with databases on different computers/far away work? (Ruby)

So, I'm fairly new to dealing with databases, and it makes sense to me when the database is on the local machine. But, how would I deal with a database that is far away/in a different computer? How is ...
0
votes
1answer
23 views

Create item in Ruby DB through form submission

I'm new to Ruby and back-end programming, and am trying to build my first app. What I'm trying to do is create an HTML form that stores the submitted data into a database. I have everything finished, ...
0
votes
0answers
26 views

Faster Separation of Database Data

I have a rails 2.3 app that already has 7000 users. I would like to separate them based on the years 2012-2013 and 2013-2014 for archiving. How can I separate these users into separate databases. One ...
0
votes
0answers
42 views

Best alternative for data fixes in rails?

When a rails project grows a lot, you can find yourself having trouble with fixes for the data in the production database. I have normally used migrations or specific rake tasks for this, but I was ...
0
votes
1answer
19 views

Editing multiple records in one form - Rails

I'm trying to edit multiple records using one form, so the user can edit a few records then press submit at the end rather than after each individual one. I've posted my current code, and I get this ...
0
votes
1answer
19 views

Relational database show fields from different tables in view, rails

I have 4 tables, customer, customer_site, site and connection. customer and site have many customer_sites and a site has many connections. This has all been set up in my models. Now i'm trying to have ...
0
votes
1answer
12 views

Rails: Can db queries be run at will through console AFTER deployment?

I am about to build an admin interface for my website. Before I do that, I;d like to know if (as site admin) I can run db queries at will through the console after deploying my app. The reason I am ...
0
votes
1answer
20 views

Ruby on Rails: Do not use database for specific environment

How can I disable the use of a database within a specific environment. I want an environment to purely serve images which does not require a database. A different environment will do the file ...
2
votes
3answers
74 views

Unexpected ',' expecting ')' in update_attributes - Rails

I'm trying to make a Migration but I'm having some troubles. When I try to run "rake db:migrate" on Heroku I got an error message. Now I discover in my localhost that my code in the migration has ...
1
vote
1answer
35 views

How do I reference a tiny_tds connection in ruby/sinatra via database.yml (or other)?

I'm trying to figure out how to pull data from a database without the need to place a connection string at the top of each ruby file. I'm learning the basics of ruby via a little Sinatra app I'm ...

1 2 3 4 5 105
15 30 50 per page