# Rails

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

[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:** 1129

---

## [Single-table inheritance: Uninitialized class constant](https://www.ruby-forum.com/t/single-table-inheritance-uninitialized-class-constant/153079)

<div class="topic-metadata">

**Author:** [@fritza](https://www.ruby-forum.com/u/fritza)\
**Replies:** 3\
**Last updated:** [November 12, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-uninitialized-class-constant/153079 "2008-11-12T23:37:51Z")

</div>

This forum has been of no help before, but I am nothing daunted. I have a “people” table, mapping to a Person ActiveRecord class, which has two subclasses, Principal and Secondary. There is a type column. There is a “…

---

## [Help with JQuery](https://www.ruby-forum.com/t/help-with-jquery/153142)

<div class="topic-metadata">

**Author:** [@cesarstafe](https://www.ruby-forum.com/u/cesarstafe)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/help-with-jquery/153142 "2008-11-12T22:22:49Z")

</div>

Hi, have somebody experience using JQuery in an application Ror join to prototype? somebody knows if is possible use Prototype and JQuery all together? I am trying implement drag and drop effects in a table but nothi…

---

## [Custom Timezone without DST](https://www.ruby-forum.com/t/custom-timezone-without-dst/153170)

<div class="topic-metadata">

**Author:** [@Dante\_R](https://www.ruby-forum.com/u/Dante_R)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/custom-timezone-without-dst/153170 "2008-11-12T22:06:20Z")

</div>

Hey guys I’m having a few problems with the new TimeZone feature of Rails 2.1. Turns out that I am on “Brasilia” TimeZone, (UTC - 03:00), BUT my state is NOT on the daylight saving time. And there is no other timezo…

---

## [BDD with webrat and Cucumber](https://www.ruby-forum.com/t/bdd-with-webrat-and-cucumber/153162)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/bdd-with-webrat-and-cucumber/153162 "2008-11-12T22:05:08Z")

</div>

OS = CentOS-5.2 Ruby 1.8.6 Rails 2.2.0RC1 Cucumber 0.1.9 Webrat 0.3.2 I have asked about this on the RSpec list but I am repeating my request here to reach a somewhat wider audience. I am running a cucumber featur…

---

## [Run 1.2.6 rails application on 2.0.2 rails](https://www.ruby-forum.com/t/run-1-2-6-rails-application-on-2-0-2-rails/153111)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 9:58pm UTC](https://www.ruby-forum.com/t/run-1-2-6-rails-application-on-2-0-2-rails/153111 "2008-11-12T21:58:41Z")

</div>

Hi All, Currently I have two types of project. one is made in 1.2.6 and another in 2.0.2 I upgraded gems and all that. Rails 2.0.2 application are running perfectly but 1.2.6 is not. from /usr/lib/ruby/gems/1.8/gems…

---

## [Unique key in logs to group all log entries for a single request](https://www.ruby-forum.com/t/unique-key-in-logs-to-group-all-log-entries-for-a-single-request/153167)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/unique-key-in-logs-to-group-all-log-entries-for-a-single-request/153167 "2008-11-12T21:45:42Z")

</div>

Does anyone know of a way to append a unique key to each request in the logs (all lines for a single request) so they can be grouped and viewed per request.

---

## [Link to mysql.sock deleted at reboot](https://www.ruby-forum.com/t/link-to-mysql-sock-deleted-at-reboot/153101)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [November 12, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/link-to-mysql-sock-deleted-at-reboot/153101 "2008-11-12T21:08:02Z")

</div>

I’m on Mac OS 10.5. How do I get a link from /tmp/mysql.sock to /opt/…/mysql.sock to stay after reboot? Is there a better way of doing this, like adding an alias in .profile if possible, or is it assumed that you nev…

---

## [NoMethodError on UserMailer:Class](https://www.ruby-forum.com/t/nomethoderror-on-usermailer-class/153156)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/nomethoderror-on-usermailer-class/153156 "2008-11-12T21:03:20Z")

</div>

I’m baffled but this error: NoMethodError: undefined method application\_accepted' for UserMailer:Class from c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.1/lib/action\_mailer /base.rb:385:inmethod\_missing’ from D:/rai…

---

## [Multiple views with same controller](https://www.ruby-forum.com/t/multiple-views-with-same-controller/153158)

<div class="topic-metadata">

**Author:** [@panatura](https://www.ruby-forum.com/u/panatura)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/multiple-views-with-same-controller/153158 "2008-11-12T20:20:07Z")

</div>

Hi there, I want to truncate all the data from user model being edited in different tabs (e.g. privacy data like newsletter receiving, login data, user data, etc.), being convinient for the user. First I wrote a cont…

---

## [Can't run tests using ruby 1.9.0 and rails 2.1.2](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 6\
**Last updated:** [November 12, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/cant-run-tests-using-ruby-1-9-0-and-rails-2-1-2/153115 "2008-11-12T19:54:56Z")

</div>

I have just created my first rails app After having modified the generator script (see http://rails.lighthouseapp.com/projects/8994/tickets/1176-scriptserver-make-an-error-in-ruby-19-because-of-defined-methods-change …

---

## [Search multiple tables](https://www.ruby-forum.com/t/search-multiple-tables/153022)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/search-multiple-tables/153022 "2008-11-12T19:32:52Z")

</div>

Hi, I am trying to create a search feature that queries multiple tables, and returns results from all tables in a single paginated query, kind of like the search feature on facebook. I was wondering if there are any…

---

## [InvalidAuthenticityToken error only in IE](https://www.ruby-forum.com/t/invalidauthenticitytoken-error-only-in-ie/153096)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-error-only-in-ie/153096 "2008-11-12T19:19:02Z")

</div>

Hi, I am developing a web site using rails 2.1.2. I’m using restful\_authentication. I get InvalidAuthenticityToken error at login in IE & Safari. Firefox works fine. What’s wrong? Thanks. Sam Full trace: vendor/…

---

## [Help! getting a "can't dup NilClass" error and don't know what to do about it](https://www.ruby-forum.com/t/help-getting-a-cant-dup-nilclass-error-and-dont-know-what-to-do-about-it/153109)

<div class="topic-metadata">

**Author:** [@eriwright](https://www.ruby-forum.com/u/eriwright)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/help-getting-a-cant-dup-nilclass-error-and-dont-know-what-to-do-about-it/153109 "2008-11-12T18:33:33Z")

</div>

Thanks for any help you can offer. I am trying to send out a small batch of emails using an http request. I know it sounds odd. hear me out. I have loaded a bunch of emails into this table and just want to slowly wo…

---

## [Optimistic Locking and counters](https://www.ruby-forum.com/t/optimistic-locking-and-counters/153110)

<div class="topic-metadata">

**Author:** [@mattias](https://www.ruby-forum.com/u/mattias)\
**Replies:** 12\
**Last updated:** [November 12, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/optimistic-locking-and-counters/153110 "2008-11-12T18:20:12Z")

</div>

Hi I have a model which both have optimistic locking and a counter. Is there any way to disable the version auto increment when only the counter is updated? Lets say I have a post which has many comments. When I add …

---

## [Recommended Reading for](https://www.ruby-forum.com/t/recommended-reading-for/153035)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/recommended-reading-for/153035 "2008-11-12T17:24:22Z")

</div>

For one of my sites, I want to create a developer API so that other people can leverage of what we build to quickly put together their own solutions (I guess something like Google Maps is a good parallel example). We…

---

## [\[ANN/ADV\] Rails Training â€“ Jan 20-23 â€“ S an Antonio, TX](https://www.ruby-forum.com/t/ann-adv-rails-training-a-jan-20-23-a-s-an-antonio-tx/153146)

<div class="topic-metadata">

**Author:** [@brandonpt](https://www.ruby-forum.com/u/brandonpt)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/ann-adv-rails-training-a-jan-20-23-a-s-an-antonio-tx/153146 "2008-11-12T17:13:13Z")

</div>

Collective Idea, a Rails consulting and training company, has been providing highly-praised Ruby on Rails training all over the world, and now we’re bringing it to San Antonio. We will be offering hands-on Ruby on Rai…

---

## [Redirecting to a different controller from a search box](https://www.ruby-forum.com/t/redirecting-to-a-different-controller-from-a-search-box/153137)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/redirecting-to-a-different-controller-from-a-search-box/153137 "2008-11-12T16:11:38Z")

</div>

Hi,- I have a main page with a search box. When the user enters a query and hits “Search” I want to redirect him to another page (another controller with a search action), and display the results on that page. My for…

---

## [Nested forms with multiple models](https://www.ruby-forum.com/t/nested-forms-with-multiple-models/153122)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/nested-forms-with-multiple-models/153122 "2008-11-12T16:06:35Z")

</div>

Hey guys, I need your help again! I have a form in which I want to nest multiple models. Kind of like “a project has many tasks” but rather “a flight has one flight time per flight type”. So it’s three models - Fligh…

---

## [Sort model based on max value of has\_many field](https://www.ruby-forum.com/t/sort-model-based-on-max-value-of-has-many-field/152973)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/sort-model-based-on-max-value-of-has-many-field/152973 "2008-11-12T15:39:46Z")

</div>

Hi, I have models such as: class Team \< ActiveRecord::Base has\_many :games end class Game\< ActiveRecord::Base belongs\_to :team end So there are many (well, 0 to 6) games for each team. Team game has a “score”. I…

---

## [To\_xml and helper methods](https://www.ruby-forum.com/t/to-xml-and-helper-methods/152961)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 3\
**Last updated:** [November 12, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/to-xml-and-helper-methods/152961 "2008-11-12T15:14:45Z")

</div>

Hi, I have an array with objects and I want to generate an XML like: 1 result 1 2 result 2 The helper method generates some urls and it needs as an arguments the object. What…

---

## [How to revise array](https://www.ruby-forum.com/t/how-to-revise-array/153129)

<div class="topic-metadata">

**Author:** [@yan-oleg](https://www.ruby-forum.com/u/yan-oleg)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/how-to-revise-array/153129 "2008-11-12T15:07:41Z")

</div>

I have the following code: @@available\_columns = \[ QueryColumn.new(:tracker, :sortable =\> “#{Tracker.table\_name}.position”), QueryColumn.new(:root\_cause, :sortable =\> “#{RootCause.table\_name}.position”), QueryColum…

---

## [Help concatenating letters and numbers](https://www.ruby-forum.com/t/help-concatenating-letters-and-numbers/153089)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/help-concatenating-letters-and-numbers/153089 "2008-11-12T15:02:19Z")

</div>

Hello… I need to do the following in rails: I have a string with the following composition: AAA-BBB-2008-000001 The first to groups are strings, named @string1 and @string2. The third is the year, (reflected using Ti…

---

## [Action Specific Layouts](https://www.ruby-forum.com/t/action-specific-layouts/153091)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/action-specific-layouts/153091 "2008-11-12T14:51:43Z")

</div>

Greetings, I’m wondering if I can do action specific layouts in an elegant way like this: class AuthorsController \< ApplicationController before\_filter :is\_admin?, :only =\> \[:new, :create, :edit, :update, :destroy\] …

---

## [Is it possible in rails?](https://www.ruby-forum.com/t/is-it-possible-in-rails/153095)

<div class="topic-metadata">

**Author:** [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/is-it-possible-in-rails/153095 "2008-11-12T14:45:17Z")

</div>

multi select files from system file browser, and drag and drop into web browser then (those selected files) multiple file uploads is it possible in rails ?

---

## [ASP.NET to Rails with MySQL](https://www.ruby-forum.com/t/asp-net-to-rails-with-mysql/153118)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 1\
**Last updated:** [November 12, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/asp-net-to-rails-with-mysql/153118 "2008-11-12T14:16:40Z")

</div>

Hi - I’m thinking about porting an ASP.NET app to rails. This will require complete re-write of the site’s code, and I’m fine with it. With ASP.NET I use a lot of MySQL views constructed from tables, and I wondered ho…

---

## [How to get hash values?](https://www.ruby-forum.com/t/how-to-get-hash-values/153119)

<div class="topic-metadata">

**Author:** [@smartee](https://www.ruby-forum.com/u/smartee)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/how-to-get-hash-values/153119 "2008-11-12T13:52:06Z")

</div>

Hi, please help me… \<% puts “Total #{@totalemail.inspect}” %\> My Output is: Total \[{:email=\>“removed\_email\_address@domain.invalid”, :name=\>“aa”}, {:email=\>“removed\_email\_address@domain.invalid”, :name=\>“bb”}\] How to…

---

## [\[ANN\] First Cincinnati.rb Meeting](https://www.ruby-forum.com/t/ann-first-cincinnati-rb-meeting/153121)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/ann-first-cincinnati-rb-meeting/153121 "2008-11-12T13:18:34Z")

</div>

If you live in or near Cincinnati, love Ruby and want to get together to talk and do some hacking, please join us. Date: Every Tuesday (Except the 1st Tuesday of the month, in deference to the excellent Agile Round T…

---

## [Missing sourcefile (no such file to load)-- squlite3 error](https://www.ruby-forum.com/t/missing-sourcefile-no-such-file-to-load-squlite3-error/123840)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 6\
**Last updated:** [November 12, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/missing-sourcefile-no-such-file-to-load-squlite3-error/123840 "2008-11-12T12:56:00Z")

</div>

hi all, i got a problem of no such file to load – sqlite3, after installing new rails version yesterday… the uninstallation gone through this way… $ gem uninstall rails successfully uninstalled rails-1.2.3 Remove…

---

## [Getting the friends contacts mail Id of gmail,hotmail,yahoo](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo/153116)

<div class="topic-metadata">

**Author:** [@smartee](https://www.ruby-forum.com/u/smartee)\
**Replies:** 0\
**Last updated:** [November 12, 2008, 11:52am UTC](https://www.ruby-forum.com/t/getting-the-friends-contacts-mail-id-of-gmail-hotmail-yahoo/153116 "2008-11-12T11:52:24Z")

</div>

hi, Please help me!!! am using ruby-1.8.6 gem blackbook-1.0.4 output is @contacts.inspect(collection of Emails and name) I got this error : undefined method \`name’ for {:email=\>“removed\_email\_address@domain.invalid…

---

## [How to retrive multiple vaules from a view for a text\_field!](https://www.ruby-forum.com/t/how-to-retrive-multiple-vaules-from-a-view-for-a-text-field/153034)

<div class="topic-metadata">

**Author:** [@raji](https://www.ruby-forum.com/u/raji)\
**Replies:** 5\
**Last updated:** [November 12, 2008, 11:13am UTC](https://www.ruby-forum.com/t/how-to-retrive-multiple-vaules-from-a-view-for-a-text-field/153034 "2008-11-12T11:13:27Z")

</div>

Hi, I have view page which takes all the information like contact’s emails , phones no’s etc and saves different tables. I want to save more than one email id’s for a particular contact. view page is something like t…

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

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