Here\'s the deal: I have a RoR application with bunch of database items (indexed via Sunspot), some of them with file attachments (typically PDFs and plaintext files). What\'s the easiest way to inclu
In my rails app I have a seeds.rb script which inserts lots of rec开发者_运维问答ords. In fact I\'m trying to load 16 million of them. It\'s taking a long time.
I\'m trying to use Rails 3.1. with the activerecord-sqlserver-adapter (3.1.1) and tiny_tds (0.4.5) on a Windows machine.In reading about TinyTDS and it\'s use of FreeTDS it looks like I can use Integr
I\'ve got problems with making update action for 开发者_开发百科one of my data objects. I\'ve got:
I\'m currently using Rails 2.3.9.I understand that specifying the :joins option in a query without an explicit :select automatically makes any records that are returned read-only.I have a situation wh
I have finally started upgrading my Rails apps from 2.3.8 to 3.1.0. I was watching RailsCasts (http://railscasts.com/episodes/202-active-record-queries-in-rails-3) about Active Record queries.
I\'m following http://railscasts.com/episodes/102-auto-complete-association Everything seems fine. I\'m trying to create an invoice and also a client on the fly. It does work. Everything cool.
I am trying to find a complement using ActiveRecord and/or SQL. I have a collection of \'annotations\' that each have two relevant fields:
I have a bunch of products (500k or so) in a database that were created over the last several years and I\'d like to group them together (Rails 2.3.14)
Here is a Ruby ActiveRecord class: class User < ActiveRecord::Base has_many :user_tokens devise :tracka开发者_如何转开发ble, :confirmable