# Rails

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

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

---

## [Single Table Inheritance and .class problem](https://www.ruby-forum.com/t/single-table-inheritance-and-class-problem/186099)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 9\
**Last updated:** [March 31, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-and-class-problem/186099 "2010-03-31T17:51:00Z")

</div>

Hi all, I’m trying to do a condition in my application.html.erb where if a user is based off of a STI it has a “special” section in the navigation. The following code correctly prints out the user type (either User or …

---

## [Undefined method error](https://www.ruby-forum.com/t/undefined-method-error/186077)

<div class="topic-metadata">

**Author:** [@gautam](https://www.ruby-forum.com/u/gautam)\
**Replies:** 3\
**Last updated:** [March 31, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/undefined-method-error/186077 "2010-03-31T17:41:44Z")

</div>

I am getting the following error when trying to link a method in a view so that it can be called on that very object(id). undefined method \`abc\_notice\_path’ for #ActionView::Base:0xed65220 Extracted source (around lin…

---

## [Date format in Rails 3.0 using sqlite3](https://www.ruby-forum.com/t/date-format-in-rails-3-0-using-sqlite3/186101)

<div class="topic-metadata">

**Author:** [@bluecat76](https://www.ruby-forum.com/u/bluecat76)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/date-format-in-rails-3-0-using-sqlite3/186101 "2010-03-31T16:44:15Z")

</div>

Hi, I am new to Ruby and Rails, so I don’t know if this is my fault, but maybe this is a bug in Rails (I’m using Rails 3.0 beta) which should be reported. I have following search statement: events = CalendarEvent.fi…

---

## [Looking for a coutdown solution](https://www.ruby-forum.com/t/looking-for-a-coutdown-solution/186049)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 4\
**Last updated:** [March 31, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/looking-for-a-coutdown-solution/186049 "2010-03-31T16:21:30Z")

</div>

Hi, i am looking for a coutdown solution. When a product is created in my database a coutdown starts. The countdown is presented to visitors on my website. Someone ideas, links ? grtz…remco

---

## [Utf-8 htmlentities,decode keeps switching to ascii-8bit](https://www.ruby-forum.com/t/utf-8-htmlentities-decode-keeps-switching-to-ascii-8bit/186095)

<div class="topic-metadata">

**Author:** [@noxx000](https://www.ruby-forum.com/u/noxx000)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/utf-8-htmlentities-decode-keeps-switching-to-ascii-8bit/186095 "2010-03-31T15:13:01Z")

</div>

Hi there, it’s not really rubyonrails but because it fits into the web-development I think I’m in the right forum. I’m trying to decode a string I read from an online xml-file and compare it to another, locally store…

---

## [Application to import a csv file to database(help me)](https://www.ruby-forum.com/t/application-to-import-a-csv-file-to-database-help-me/197288)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/application-to-import-a-csv-file-to-database-help-me/197288 "2010-03-31T15:05:22Z")

</div>

hi actually i am creating an application to import a csv file to database. but onn running that application ai’am getting errors like this NoMethodError in ImportsController#new undefined method \`login\_required’…

---

## [How to assign currently logged in user name to a table field](https://www.ruby-forum.com/t/how-to-assign-currently-logged-in-user-name-to-a-table-field/186076)

<div class="topic-metadata">

**Author:** [@railsquestion](https://www.ruby-forum.com/u/railsquestion)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/how-to-assign-currently-logged-in-user-name-to-a-table-field/186076 "2010-03-31T14:17:40Z")

</div>

I have 3 tables items (columns are: id, name , type) history(columns are: id, date, username, item\_id, user\_id) user(id , username, password) When a user “ABC” logs in and creates a new item, a history record gets …

---

## [Object has two collections of objects of the same type](https://www.ruby-forum.com/t/object-has-two-collections-of-objects-of-the-same-type/186089)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 1:34pm UTC](https://www.ruby-forum.com/t/object-has-two-collections-of-objects-of-the-same-type/186089 "2010-03-31T13:34:37Z")

</div>

I want to have my object class have both a collection of doc objects called “reports” and one called “docs”. How do I specify two different arrays of the same type of object? I have this in my new method @echantillo…

---

## [Support for multiple database session](https://www.ruby-forum.com/t/support-for-multiple-database-session/186088)

<div class="topic-metadata">

**Author:** [@nitin\_k\_m](https://www.ruby-forum.com/u/nitin_k_m)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/support-for-multiple-database-session/186088 "2010-03-31T13:07:38Z")

</div>

Hi all, I am working on a rails project. First I am giving a brief of what it does then I will tell what are issues I am facing. This project is basically a reporting tool that gets data from database and generates r…

---

## [Custom cache store â€“ possible?](https://www.ruby-forum.com/t/custom-cache-store-a-possible/186083)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/custom-cache-store-a-possible/186083 "2010-03-31T12:39:01Z")

</div>

Hi. I want to define my own cache store but I have no idea how to use in my app. Rails initializer reads environment config before loading app initializers and plugins. So, i cant write: config.cache\_store = :my\_bea…

---

## [Disable lazy loading?](https://www.ruby-forum.com/t/disable-lazy-loading/186087)

<div class="topic-metadata">

**Author:** [@aurel](https://www.ruby-forum.com/u/aurel)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 12:36pm UTC](https://www.ruby-forum.com/t/disable-lazy-loading/186087 "2010-03-31T12:36:40Z")

</div>

Hi, I have 2 active records with has\_one/belongs\_to association between them. class Story \< ActiveRecord::Base belongs\_to :conclusion end class Conclusion \< ActiveRecord::Base has\_one :story end Sometimes I fetc…

---

## [Ruby in javascript](https://www.ruby-forum.com/t/ruby-in-javascript/186016)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 11\
**Last updated:** [March 31, 2010, 11:29am UTC](https://www.ruby-forum.com/t/ruby-in-javascript/186016 "2010-03-31T11:29:20Z")

</div>

Hey Champs… Can we write some ruby code into javascript ? Can you guys light me?

---

## [\[JOBS\] Rails -osaajaa kaivataan](https://www.ruby-forum.com/t/jobs-rails-osaajaa-kaivataan/186080)

<div class="topic-metadata">

**Author:** [@MIRRI](https://www.ruby-forum.com/u/MIRRI)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 10:04am UTC](https://www.ruby-forum.com/t/jobs-rails-osaajaa-kaivataan/186080 "2010-03-31T10:04:29Z")

</div>

Moikka, asiakkaamme Carigna Oy etsii heidän tuotekehitysyksikköön IctPro - rekrytoivan koulutusohjelman kautta Jyväskylään kehityskelpoista Rails -osaajaa. Valmis osaaja ei siis tarvitse välttämättä olla. Tarvitset …

---

## [Character formatting help](https://www.ruby-forum.com/t/character-formatting-help/186054)

<div class="topic-metadata">

**Author:** [@Nick\_Downes](https://www.ruby-forum.com/u/Nick_Downes)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 10:01am UTC](https://www.ruby-forum.com/t/character-formatting-help/186054 "2010-03-31T10:01:33Z")

</div>

Hi All, Two of my integration tests are failing because of the way the UKpound sign (£) is being rendered. My test expects a string to be returned (£10.00 x 5) = £50.00 but when the test fails it shows that (\\24310.0…

---

## [Firebird vers 2 and up](https://www.ruby-forum.com/t/firebird-vers-2-and-up/185819)

<div class="topic-metadata">

**Author:** [@hstx](https://www.ruby-forum.com/u/hstx)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 10:01am UTC](https://www.ruby-forum.com/t/firebird-vers-2-and-up/185819 "2010-03-31T10:01:33Z")

</div>

Is there a reliable stabile driver for a production environment for Firebird database vers 2 and up with RR? Reply preferred from someone with actual working experience with this configuration. Thanks

---

## [Unifying command line syntax](https://www.ruby-forum.com/t/unifying-command-line-syntax/186079)

<div class="topic-metadata">

**Author:** [@Third\_Replicator](https://www.ruby-forum.com/u/Third_Replicator)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 10:00am UTC](https://www.ruby-forum.com/t/unifying-command-line-syntax/186079 "2010-03-31T10:00:58Z")

</div>

It would be nice to see a convention on ways to specify environments on the command line. Here are three to choose from: script/server -e test script/console test rake db:migrate RAILS\_ENV=test

---

## [Saving data from database to text/yaml file](https://www.ruby-forum.com/t/saving-data-from-database-to-text-yaml-file/185980)

<div class="topic-metadata">

**Author:** [@gautam](https://www.ruby-forum.com/u/gautam)\
**Replies:** 2\
**Last updated:** [March 31, 2010, 10:00am UTC](https://www.ruby-forum.com/t/saving-data-from-database-to-text-yaml-file/185980 "2010-03-31T10:00:58Z")

</div>

Hello all… I am new to rails. I have a rails app in which i want data from my database table into a text file. I have a notices table that has three fields - title, body and user. I want this data to be stored in a …

---

## [Passing parameters to a URL through curl in the application](https://www.ruby-forum.com/t/passing-parameters-to-a-url-through-curl-in-the-application/186070)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 2\
**Last updated:** [March 31, 2010, 9:51am UTC](https://www.ruby-forum.com/t/passing-parameters-to-a-url-through-curl-in-the-application/186070 "2010-03-31T09:51:18Z")

</div>

Hello all, I need few suggestions on how to pass the parameters to a URL through curl. Currently I can do that using system() and %x\[\] through which I could give the curl command. But since these two executes th…

---

## [Date checking?](https://www.ruby-forum.com/t/date-checking/186051)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 9:15am UTC](https://www.ruby-forum.com/t/date-checking/186051 "2010-03-31T09:15:54Z")

</div>

Is there a method in Rails to see if a date is valid and in the last 120 years? I’m doing an app that has a list of people and I’d like to check their birthdays. Just checking to see if this is already here before i s…

---

## [Too Simple for Rails?](https://www.ruby-forum.com/t/too-simple-for-rails/186038)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 2\
**Last updated:** [March 31, 2010, 9:11am UTC](https://www.ruby-forum.com/t/too-simple-for-rails/186038 "2010-03-31T09:11:13Z")

</div>

I want to create a simple app. On one page, I want a form. This form has a single field for a ticket number. When someone enters a ticket number and submits the form, they are shown a second page with links to downloa…

---

## [Putting Sessions in the Database](https://www.ruby-forum.com/t/putting-sessions-in-the-database/185993)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 1\
**Last updated:** [March 31, 2010, 8:36am UTC](https://www.ruby-forum.com/t/putting-sessions-in-the-database/185993 "2010-03-31T08:36:05Z")

</div>

Hi, I have rails version 2.3.5. How I can use session? is there any documentation how to use it for rails 2.3.5? Thanks, Yudi S.

---

## [Mport a csv file to database.(help pls)](https://www.ruby-forum.com/t/mport-a-csv-file-to-database-help-pls/186069)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [March 31, 2010, 6:22am UTC](https://www.ruby-forum.com/t/mport-a-csv-file-to-database-help-pls/186069 "2010-03-31T06:22:07Z")

</div>

hi actually i am creating an application to import a csv file to database. but onn running that application ai’am getting errors like this NoMethodError in ImportsController#new undefined method \`login\_required’…

---

## [Joining Multiple Tables](https://www.ruby-forum.com/t/joining-multiple-tables/186047)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 6\
**Last updated:** [March 31, 2010, 2:43am UTC](https://www.ruby-forum.com/t/joining-multiple-tables/186047 "2010-03-31T02:43:19Z")

</div>

I’m trying to replicate a join in RoR that I can do in SQL very simply. Three tables/models that I have are: Users, Users\_Activities, Activities and Codes. Users and Activities have appropriate has\_many associations …

---

## [Loading 3000 models to Ruby on Rails. Performances?](https://www.ruby-forum.com/t/loading-3000-models-to-ruby-on-rails-performances/186056)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 7\
**Last updated:** [March 31, 2010, 1:45am UTC](https://www.ruby-forum.com/t/loading-3000-models-to-ruby-on-rails-performances/186056 "2010-03-31T01:45:25Z")

</div>

Hi, I just wandering. If I autoload 3000 Ruby on Rails classes, will it need more computer memory? is more rails classes loaded, more memory needed? will it cause performances problems? Thanks, John

---

## [JOBS - Ruby on Rails opportunity in New Orleans](https://www.ruby-forum.com/t/jobs-ruby-on-rails-opportunity-in-new-orleans/185999)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 30, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-opportunity-in-new-orleans/185999 "2010-03-30T23:02:40Z")

</div>

I am an IT recruiter with TEKsystems. I’m working with a client here in New Orleans that is looking to bring on several entry level Ruby on Rails developers. I’m looking for anyone that is a Ruby novice all the way u…

---

## [Ruby on Rails (ROR) Consultant](https://www.ruby-forum.com/t/ruby-on-rails-ror-consultant/186053)

<div class="topic-metadata">

**Author:** [@Suju](https://www.ruby-forum.com/u/Suju)\
**Replies:** 0\
**Last updated:** [March 30, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-ror-consultant/186053 "2010-03-30T23:02:04Z")

</div>

For This Position i’m looking for US Citizens, Green Card, EAD & H1B Candidates only Requirements: Title: Ruby on Rails Software Engineer Location: Raleigh, NC Duration: 6 months. Rate: 45$/hr on Corp - Corp all In…

---

## [Find conditions issue](https://www.ruby-forum.com/t/find-conditions-issue/185987)

<div class="topic-metadata">

**Author:** [@laa018](https://www.ruby-forum.com/u/laa018)\
**Replies:** 6\
**Last updated:** [March 30, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/find-conditions-issue/185987 "2010-03-30T22:55:49Z")

</div>

I am making a search to look through my database at a string that I enter into a text field. I got it to work properly if I enter in the exact title but I wanted to see if I could find database entries with similar ti…

---

## [Fwd: simpe help needed - fixed](https://www.ruby-forum.com/t/fwd-simpe-help-needed-fixed/186045)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [March 30, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/fwd-simpe-help-needed-fixed/186045 "2010-03-30T22:30:28Z")

</div>

\<%= job.id %\> ---------- Forwarded message ---------- From: tom removed\_email\_address@domain.invalid Date: Tue, Mar 30, 2010 at 2:21 PM Subject: simpe help needed To: removed\_email\_address@domain.invalid \<%= job.t…

---

## [Problem running "Practical Prototype ..." example](https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/problem-running-practical-prototype-example/185919 "2010-03-30T21:16:43Z")

</div>

I tried running the example in the text around Figures 4.1 , 4.2. I’m running WinXP-Pro/SP3, Firefox 3.6.2, Firebug 1.5.3. All the details are in the following Command Window results. It’s pretty obvious that “new”…

---

## [Simpe help needed](https://www.ruby-forum.com/t/simpe-help-needed/186044)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 1\
**Last updated:** [March 30, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/simpe-help-needed/186044 "2010-03-30T20:49:53Z")

</div>

\<%= job.title %\> \<%= job.id %\> \<%= job.created\_at %\> s gives me: test123 7123 2010-02-23 17:53:49 UTC s what is wrong with the ID of the DIV? thx

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

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