# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=651

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 652

---

## [KeyValue backend and links issues](https://www.ruby-forum.com/t/keyvalue-backend-and-links-issues/187754)

<div class="topic-metadata">

**Author:** [@josevalim](https://www.ruby-forum.com/u/josevalim)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/keyvalue-backend-and-links-issues/187754 "2010-04-29T19:19:05Z")

</div>

Hey guys, I’ve been working on a KeyValue backend for I18n. The implementation is quite straightforward and works with different data stores (as TokyoCabinet and Redis). Most of the base work was already ported to th…

---

## [Find by Date Regardless of Time](https://www.ruby-forum.com/t/find-by-date-regardless-of-time/187691)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [April 29, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/find-by-date-regardless-of-time/187691 "2010-04-29T18:05:53Z")

</div>

I have a datetime field in the database. How do I find records for a particular date regardless of the time of day? The method I’m trying does not work… tasks.find(:all, :conditions =\> \[“date == ?”, Date.today\]) – …

---

## [Ar\_mailer, class Email : add field to the table?](https://www.ruby-forum.com/t/ar-mailer-class-email-add-field-to-the-table/185846)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/ar-mailer-class-email-add-field-to-the-table/185846 "2010-04-29T17:05:35Z")

</div>

Hi, I use ar\_mailer to send emails from my application. I want to build a page where the admin case see the queue of mails and the possibility of remove some mail in the queue if he wants. The email in the queue are …

---

## [ActionMailer Attachment : Character encoding for :filename](https://www.ruby-forum.com/t/actionmailer-attachment-character-encoding-for-filename/185894)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/actionmailer-attachment-character-encoding-for-filename/185894 "2010-04-29T17:05:00Z")

</div>

Hi, I want to send a file “joke.txt” with ActionMailer but I want to rename the file in the mail “dÃ©putÃ©.txt” I set the parameters :filename of the attachment to “dÃ©putÃ©.txt” But when I receive the mail I can see…

---

## [Database relation's tying to pull data from another table](https://www.ruby-forum.com/t/database-relations-tying-to-pull-data-from-another-table/187769)

<div class="topic-metadata">

**Author:** [@KRKRKR](https://www.ruby-forum.com/u/KRKRKR)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/database-relations-tying-to-pull-data-from-another-table/187769 "2010-04-29T16:40:25Z")

</div>

I need some newb help here. I am making a quick app to learn on to hold my collection of cards. I have a card database with a ton of fields, and also a collection table. my collection has\_many cards, and cards belo…

---

## [Rails database performance issue](https://www.ruby-forum.com/t/rails-database-performance-issue/187787)

<div class="topic-metadata">

**Author:** [@TechSlam](https://www.ruby-forum.com/u/TechSlam)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/rails-database-performance-issue/187787 "2010-04-29T15:05:35Z")

</div>

Hi I have a Student table with 30 columns in it. My question is at what database size, would the query performance be affected? We are actually planning to have a ArchivedStudent table(which has exactly the same str…

---

## [Woriking under webrick but not under passenger](https://www.ruby-forum.com/t/woriking-under-webrick-but-not-under-passenger/187608)

<div class="topic-metadata">

**Author:** [@nesko](https://www.ruby-forum.com/u/nesko)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/woriking-under-webrick-but-not-under-passenger/187608 "2010-04-29T14:23:53Z")

</div>

Hi! I have just added login feature to my rails application (followed the instruction from (Agile Web D. with Rails) but now I am getting strange errors (looks to me like some kind of routing problem) under the passe…

---

## [Paypal account varification](https://www.ruby-forum.com/t/paypal-account-varification/187805)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/paypal-account-varification/187805 "2010-04-29T13:25:51Z")

</div>

Hi, I want to collect users paypal account. Verify if its a paypal account & Pay user at anytime. Paypal account is the email which the user has registered with paypal. Is there any way to verify if the email given b…

---

## [How to use Authlogic with UUID?](https://www.ruby-forum.com/t/how-to-use-authlogic-with-uuid/187801)

<div class="topic-metadata">

**Author:** [@prem](https://www.ruby-forum.com/u/prem)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/how-to-use-authlogic-with-uuid/187801 "2010-04-29T12:28:05Z")

</div>

Hi, I recently started using UUID and now i wanted to use it along with Authlogic.Did any body using these both together? Please help me Thanks & Regards, prem

---

## [Validations and ACL](https://www.ruby-forum.com/t/validations-and-acl/187795)

<div class="topic-metadata">

**Author:** [@serpico](https://www.ruby-forum.com/u/serpico)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 11:25am UTC](https://www.ruby-forum.com/t/validations-and-acl/187795 "2010-04-29T11:25:48Z")

</div>

Hi, I’m creating a rails app which requires an authentication system based on an Access Control List. Basically I have a User model associated to a Role model where every user has one and only one role. The problem …

---

## [CanCan questions](https://www.ruby-forum.com/t/cancan-questions/187722)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 11:13am UTC](https://www.ruby-forum.com/t/cancan-questions/187722 "2010-04-29T11:13:45Z")

</div>

I’ve used Aegis in the past for role-based authorisation, but have seen a lot of talk about CanCan; so I thought I’d give it a go and have been fiddling with it over the last couple of days. It seems to have a slightl…

---

## [Jquery validation with scriptocolos](https://www.ruby-forum.com/t/jquery-validation-with-scriptocolos/187789)

<div class="topic-metadata">

**Author:** [@Loveline](https://www.ruby-forum.com/u/Loveline)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 10:52am UTC](https://www.ruby-forum.com/t/jquery-validation-with-scriptocolos/187789 "2010-04-29T10:52:05Z")

</div>

MY Jquery validation conflicting with scriptocolos …do anyone have solution for this?

---

## [\[JOBS\] Ruby on Rails Developers needed for San Francisco, CA or Wilmington, DE location](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-needed-for-san-francisco-ca-or-wilmington-de-location/187791)

<div class="topic-metadata">

**Author:** [@Fort\_Hill\_Developme](https://www.ruby-forum.com/u/Fort_Hill_Developme)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 10:15am UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-needed-for-san-francisco-ca-or-wilmington-de-location/187791 "2010-04-29T10:15:12Z")

</div>

Location: San Francisco, CA or Wilmington, DE Fort Hill is a technology firm specializing in optimizing learning transfer and behavior change in the field of executive and leadership development. Our flagship software…

---

## [Top Engineering Roles: SF & East Bay](https://www.ruby-forum.com/t/top-engineering-roles-sf-east-bay/187786)

<div class="topic-metadata">

**Author:** [@Marta\_Daglow](https://www.ruby-forum.com/u/Marta_Daglow)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 10:15am UTC](https://www.ruby-forum.com/t/top-engineering-roles-sf-east-bay/187786 "2010-04-29T10:15:12Z")

</div>

I am an independent recruiter and have solid relationships with the technical leadership in companies in the web 2.0 space. Right now, I’m looking for three top engineers for two different companies (these companies …

---

## [Create animated gif from images in DB](https://www.ruby-forum.com/t/create-animated-gif-from-images-in-db/187776)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 9:17am UTC](https://www.ruby-forum.com/t/create-animated-gif-from-images-in-db/187776 "2010-04-29T09:17:14Z")

</div>

Hi all anyone got an idea of how to create an animated gif using images uploaded in paperclip? OR some way to display rotating images in rails. (i’m trying to create rotating sponsor images on the fly from user upl…

---

## [Using the newly created value in faker gem](https://www.ruby-forum.com/t/using-the-newly-created-value-in-faker-gem/187788)

<div class="topic-metadata">

**Author:** [@sanjayarun07](https://www.ruby-forum.com/u/sanjayarun07)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 8:34am UTC](https://www.ruby-forum.com/t/using-the-newly-created-value-in-faker-gem/187788 "2010-04-29T08:34:30Z")

</div>

require ‘faker’ require ‘populator’ require ‘date’ Dbase.destroy\_all User.destroy\_all Table.destroy\_all 100.times do u = User.new u.username = Faker::Internet.user\_name u.email = Faker::Internet.email u.passwor…

---

## [Layouts in popup window](https://www.ruby-forum.com/t/layouts-in-popup-window/187783)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 8:25am UTC](https://www.ruby-forum.com/t/layouts-in-popup-window/187783 "2010-04-29T08:25:18Z")

</div>

How to apply layouts in pop up windows

---

## [Csv header -mapping](https://www.ruby-forum.com/t/csv-header-mapping/187784)

<div class="topic-metadata">

**Author:** [@savitha](https://www.ruby-forum.com/u/savitha)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 8:03am UTC](https://www.ruby-forum.com/t/csv-header-mapping/187784 "2010-04-29T08:03:57Z")

</div>

Hi all, I need to append the headers to specific attributes within a form from an imported csv file, for example; I have a model which contain only “:name” field but csv file contain firstname and last name (csv files …

---

## [Activerecord-import for multiple tables](https://www.ruby-forum.com/t/activerecord-import-for-multiple-tables/187785)

<div class="topic-metadata">

**Author:** [@deepak\_kannan](https://www.ruby-forum.com/u/deepak_kannan)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 7:36am UTC](https://www.ruby-forum.com/t/activerecord-import-for-multiple-tables/187785 "2010-04-29T07:36:33Z")

</div>

hi, i wanted to use ‘activerecord-import’ for bulk import but i have dependent tables. if i insert in one table then two more tables have to be inserted with the foreign key. can i use activerecord-import in this c…

---

## [Help! How to redirect if SSL applied](https://www.ruby-forum.com/t/help-how-to-redirect-if-ssl-applied/187780)

<div class="topic-metadata">

**Author:** [@anaconda\_wly](https://www.ruby-forum.com/u/anaconda_wly)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 6:53am UTC](https://www.ruby-forum.com/t/help-how-to-redirect-if-ssl-applied/187780 "2010-04-29T06:53:33Z")

</div>

I’m working on the client side, the server had been applied with SSL. In my client, If the server is secured with SSL, the https shall be used automatically, or say “redirecting”; otherwise only use http to access the…

---

## [Latest user post (many-to-many relation)](https://www.ruby-forum.com/t/latest-user-post-many-to-many-relation/187778)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 5:14am UTC](https://www.ruby-forum.com/t/latest-user-post-many-to-many-relation/187778 "2010-04-29T05:14:19Z")

</div>

Hello I have a one-to-many relation between two tables, ‘users’ and ‘posts’, where User has\_many :posts and Post belongs\_to :user. I have a query which returns every user on the table, along with the content of their …

---

## [Best way to handle multiple tables to replace one big table?](https://www.ruby-forum.com/t/best-way-to-handle-multiple-tables-to-replace-one-big-table/187478)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 15\
**Last updated:** [April 29, 2010, 4:48am UTC](https://www.ruby-forum.com/t/best-way-to-handle-multiple-tables-to-replace-one-big-table/187478 "2010-04-29T04:48:31Z")

</div>

Hello, I’ve decided to use multiple tables for an entity (e.g. “todo\_items1,” “todo\_items2,” “todo\_items3,” etc.), instead of just one main table which could end up having a lot of rows (e.g. just “todo\_items”). I’m …

---

## [Rails - associations help](https://www.ruby-forum.com/t/rails-associations-help/187717)

<div class="topic-metadata">

**Author:** [@sanjayarun07](https://www.ruby-forum.com/u/sanjayarun07)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 4:10am UTC](https://www.ruby-forum.com/t/rails-associations-help/187717 "2010-04-29T04:10:32Z")

</div>

Hi I have two models . Dbase name vendor type port defuser - default user name Users username password email I need to build an association between these two in that the dbase model’s defuser needs to be prese…

---

## [Update rails variable from database](https://www.ruby-forum.com/t/update-rails-variable-from-database/187742)

<div class="topic-metadata">

**Author:** [@bill-h](https://www.ruby-forum.com/u/bill-h)\
**Replies:** 3\
**Last updated:** [April 29, 2010, 3:21am UTC](https://www.ruby-forum.com/t/update-rails-variable-from-database/187742 "2010-04-29T03:21:09Z")

</div>

Hi all. Im using ROR and am trying to get some data from a database into a web page then periodically update this information say every 5 seconds. Ive got the content working statically and have the div refreshing at …

---

## [Nested form gets inserted twice on every create](https://www.ruby-forum.com/t/nested-form-gets-inserted-twice-on-every-create/187771)

<div class="topic-metadata">

**Author:** [@walt](https://www.ruby-forum.com/u/walt)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 2:16am UTC](https://www.ruby-forum.com/t/nested-form-gets-inserted-twice-on-every-create/187771 "2010-04-29T02:16:10Z")

</div>

Hi, I’m trying to ‘add appointments with schedules’ so I have class Appointment \< ActiveRecord::Base has\_many :schedules accepts\_nested\_attributes\_for :schedules, :allow\_destroy =\> true end and class Schedule \< A…

---

## [Multiple Joins to a single table](https://www.ruby-forum.com/t/multiple-joins-to-a-single-table/187650)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 27\
**Last updated:** [April 29, 2010, 1:34am UTC](https://www.ruby-forum.com/t/multiple-joins-to-a-single-table/187650 "2010-04-29T01:34:42Z")

</div>

Hi, Is it possible to join multiple times to the same table with ActiveRecord? For instance: class Deck \< ActiveRecord::Base has\_many :cards end class Card \< ActiveRecord::Base end And then I run a query for decks…

---

## [Two actions in form\_remote\_tag](https://www.ruby-forum.com/t/two-actions-in-form-remote-tag/187766)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 1:06am UTC](https://www.ruby-forum.com/t/two-actions-in-form-remote-tag/187766 "2010-04-29T01:06:09Z")

</div>

Why does this form\_remote\_tag call generate this form tag with both “post” and “get” action? form\_remote\_tag :url=\> events\_path, :method =\> “get”, :html =\> {:id =\> “search\_form”} do html output. This is messing up …

---

## [Many2many through and nested forms](https://www.ruby-forum.com/t/many2many-through-and-nested-forms/187755)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 12:40am UTC](https://www.ruby-forum.com/t/many2many-through-and-nested-forms/187755 "2010-04-29T00:40:24Z")

</div>

I have the following: class Lot \< ActiveRecord::Base has\_many :images has\_many :features has\_many :feature\_labels, :through =\> :features has\_many :photos, :through =\> :images accepts\_nested\_attributes\_for :photos …

---

## [Chaining scopes with OR instead of AND](https://www.ruby-forum.com/t/chaining-scopes-with-or-instead-of-and/187767)

<div class="topic-metadata">

**Author:** [@sant0sk1](https://www.ruby-forum.com/u/sant0sk1)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 12:18am UTC](https://www.ruby-forum.com/t/chaining-scopes-with-or-instead-of-and/187767 "2010-04-29T00:18:45Z")

</div>

I have an advanced search method which chains a bunch of named scopes depending on an options hash. It is similar to the anonymous scopes railscast from awhile back, and it works great. However, the resulting query al…

---

## [@content.keys.build works even when @content.keys is empty array. how?](https://www.ruby-forum.com/t/content-keys-build-works-even-when-content-keys-is-empty-array-how/187753)

<div class="topic-metadata">

**Author:** [@oreng](https://www.ruby-forum.com/u/oreng)\
**Replies:** 2\
**Last updated:** [April 29, 2010, 12:08am UTC](https://www.ruby-forum.com/t/content-keys-build-works-even-when-content-keys-is-empty-array-how/187753 "2010-04-29T00:08:13Z")

</div>

my models: content has\_many keys I don’t understand how is it possible that empty array will have ‘build’ method? @content = Content.create(:text =\> ‘test’) =\> #\<Content id: 3, text: “test”, created\_at: “2010-04-28 1…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=650)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=652)
