# Rails

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

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

---

## [Prices (where to store them and how)](https://www.ruby-forum.com/t/prices-where-to-store-them-and-how/128179)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/prices-where-to-store-them-and-how/128179 "2008-02-05T17:24:55Z")

</div>

trying to figure out the bet way to manage pricing in my app and basically the database design. It’s a language school that also offers host family accomodation. They therefore have Courses which have to have the fol…

---

## [Bug in Active Record?](https://www.ruby-forum.com/t/bug-in-active-record/127677)

<div class="topic-metadata">

**Author:** [@codepanda](https://www.ruby-forum.com/u/codepanda)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/bug-in-active-record/127677 "2008-02-05T17:15:31Z")

</div>

I was getting this: undefined method \`to\_f’ for {}:HashWithIndifferentAccess This was happening in the after\_create method. We have a table that lists fields and what validation is needed, we use this to pick out the…

---

## [Select and session](https://www.ruby-forum.com/t/select-and-session/128177)

<div class="topic-metadata">

**Author:** [@kdonn](https://www.ruby-forum.com/u/kdonn)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/select-and-session/128177 "2008-02-05T17:00:06Z")

</div>

I’m trying to get a decent design for handling a notion like queues in Netflix. On Netflix each user can have multiple movie queues. The user selects the queue he wants to work with from a dropdown at the top of any…

---

## [How to set text in text\_field\_tag?](https://www.ruby-forum.com/t/how-to-set-text-in-text-field-tag/128172)

<div class="topic-metadata">

**Author:** [@eamonwssssssssss](https://www.ruby-forum.com/u/eamonwssssssssss)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/how-to-set-text-in-text-field-tag/128172 "2008-02-05T17:00:04Z")

</div>

Simple problem but I can’t find a solution. I have this tag: \<%=text\_field\_tag(“query”, params\[:query\], :autocomplete =\> “off” ) %\> Its a search field box. Question: how do I update the text in the text field??? i.e …

---

## [Creat stopped working](https://www.ruby-forum.com/t/creat-stopped-working/128170)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/creat-stopped-working/128170 "2008-02-05T16:33:16Z")

</div>

Hello, I am trying to create a new record by writing @person = Person.new @person = Person.create(params\[:person\]) @person.save I get no error but the record does not get created in the database. also …

---

## [Reporting from Ruby/Rails](https://www.ruby-forum.com/t/reporting-from-ruby-rails/72819)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [February 5, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/reporting-from-ruby-rails/72819 "2008-02-05T16:28:51Z")

</div>

At our company we normally use Crystal Reports or Cognos for any reports which need to be generated from an application. This software has api’s for Java which make it pretty easy to run a report. Anyone have experi…

---

## [Changing tmp directory where uploads are stored](https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/changing-tmp-directory-where-uploads-are-stored/65613 "2008-02-05T16:09:57Z")

</div>

When you upload a file through a file field, during the upload the data is stored in a temporary file, /tmp/CGI\[…\] The way my server is set up, there is not very much free space on the / partition, and in my app I wou…

---

## [How do I override a method that's only invoked from a rake task](https://www.ruby-forum.com/t/how-do-i-override-a-method-thats-only-invoked-from-a-rake-task/128171)

<div class="topic-metadata">

**Author:** [@fitter\_man](https://www.ruby-forum.com/u/fitter_man)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/how-do-i-override-a-method-thats-only-invoked-from-a-rake-task/128171 "2008-02-05T15:45:40Z")

</div>

I want to override structure\_dump in the MysqlAdapter class. (It doesn’t dump some stuff I need for my implementation and I’m extending it to do that.) I know how to override methods in application code. MysqlAdapter…

---

## [Can't get mongrel to work with rails 2.0.2](https://www.ruby-forum.com/t/cant-get-mongrel-to-work-with-rails-2-0-2/128173)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/cant-get-mongrel-to-work-with-rails-2-0-2/128173 "2008-02-05T15:40:57Z")

</div>

Hi I have just upgraded to rails 2.0.2 and now i can not get mongrel to start. I am running ubuntu linux server edition I understand that the first warning (\*\* Ruby version is not up-to- date; loading cgi\_multipart\_eo…

---

## [I'm expereinceing bugs with Firefox and Firebug](https://www.ruby-forum.com/t/im-expereinceing-bugs-with-firefox-and-firebug/128079)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 1\
**Last updated:** [February 5, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/im-expereinceing-bugs-with-firefox-and-firebug/128079 "2008-02-05T15:39:43Z")

</div>

First, this may appear to be a little off-topic, but, then again, I don’t think so. I’m going to guess that at least 85% of rails developers use Firefox with Firebug installed, so, my posting here is appropriate. I…

---

## [Routing based on db item values](https://www.ruby-forum.com/t/routing-based-on-db-item-values/128168)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/routing-based-on-db-item-values/128168 "2008-02-05T15:18:59Z")

</div>

How to enable routing if agreement parameter equals 1 to agreement and othwerwise to options ? See example: def select @imitem = Imitem.find(params\[:id\]) if (@imitem.update\_attributes(params\[:agreement\])) redirect\_…

---

## [RoR Trainer Needed in the UK](https://www.ruby-forum.com/t/ror-trainer-needed-in-the-uk/128166)

<div class="topic-metadata">

**Author:** [@angiecat](https://www.ruby-forum.com/u/angiecat)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/ror-trainer-needed-in-the-uk/128166 "2008-02-05T14:42:07Z")

</div>

Hoping someone might be able to help me here. I am looking for an RoR trainer to run a 5 day course in the next few months. Can you or do you know of a freelance trainer based in the UK who could help me with this. T…

---

## [Postgres patches](https://www.ruby-forum.com/t/postgres-patches/128167)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/postgres-patches/128167 "2008-02-05T14:38:51Z")

</div>

I guess if people do not do the +1 stuff, a patch for Rails is never picked up. So, if you use Postgres and want things to work nicer than they currently do, please check out: http://dev.rubyonrails.org/ticket/9042 a…

---

## [More efficient way to manage access control with restful\_authentication?](https://www.ruby-forum.com/t/more-efficient-way-to-manage-access-control-with-restful-authentication/128086)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/more-efficient-way-to-manage-access-control-with-restful-authentication/128086 "2008-02-05T14:37:14Z")

</div>

Hi, I’m using restful\_authentication with the latest version of RoR. There are some actions that a user can only access if he is logged in. So I’m putting this check in my code: def new if logged\_in? …

---

## [Jacko - AÅŸk Yasak & Haydi Åžimdi (2oo8) FuL L](https://www.ruby-forum.com/t/jacko-aayk-yasak-haydi-azimdi-2oo8-ful-l/128159)

<div class="topic-metadata">

**Author:** [@www.Bitmezbusevda.c](https://www.ruby-forum.com/u/www.Bitmezbusevda.c)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/jacko-aayk-yasak-haydi-azimdi-2oo8-ful-l/128159 "2008-02-05T13:29:11Z")

</div>

WwW.BitmezBusevda.CoM http://www.bitmezbusevda.com/ Jacko - AÅŸk Yasak & Haydi Åžimdi (2oo8) FuLL 01 - Ask Yasak 02 - Haydi Simdi 03 - Jacko Geliyor 04 - Simdi Bombos Hersey 05 - Yak Beni 06 - Jacko Geliyor (Ragga…

---

## [Ali YalÃ§Ä±n - NazlÄ±m & Yolcu (2oo8) FuLL](https://www.ruby-forum.com/t/ali-yala-a-n-nazla-m-yolcu-2oo8-full/128157)

<div class="topic-metadata">

**Author:** [@www.Bitmezbusevda.c](https://www.ruby-forum.com/u/www.Bitmezbusevda.c)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/ali-yala-a-n-nazla-m-yolcu-2oo8-full/128157 "2008-02-05T13:27:25Z")

</div>

WwW.BitmezBusevda.CoM http://www.BitmezBusevda.CoM Ali YalÃ§Ä±n - NazlÄ±m & Yolcu (2oo8) FuLL \*\*\*\*\*\* http://www.bitmezbusevda.com/ http://www.bitmezbusevda.com/forum/showthread.php/ali-yalcin-nazlim-yolcu-2oo8-full-23…

---

## [Weird behavior of belongs\_to referencing a model with set\_table\_name](https://www.ruby-forum.com/t/weird-behavior-of-belongs-to-referencing-a-model-with-set-table-name/128156)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/weird-behavior-of-belongs-to-referencing-a-model-with-set-table-name/128156 "2008-02-05T13:25:04Z")

</div>

Hello all, I am experiencing some really weird behavior of belongs\_to with a model where the table name is set by set\_table\_name I have two simple models: === file legal\_entity.rb class LegalEntity \< ActiveRecord::B…

---

## [Neriman Ulusu - Kara GÃ¶zlerin (2oo8) FuLL](https://www.ruby-forum.com/t/neriman-ulusu-kara-ga-zlerin-2oo8-full/128155)

<div class="topic-metadata">

**Author:** [@www.Bitmezbusevda.c](https://www.ruby-forum.com/u/www.Bitmezbusevda.c)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/neriman-ulusu-kara-ga-zlerin-2oo8-full/128155 "2008-02-05T13:24:29Z")

</div>

WwW.BitmezBusevda.CoM http://www.BitmezBusevda.CoM Neriman Ulusu - Kara GÃ¶zlerin (2oo8) FuLL http://www.bitmezbusevda.com/forum/showthread.php/neriman-ulusu-kara-gozlerin-2oo8-full-2329.html?p=3149#post3149 WwW.Bitme…

---

## [Uninitialized constant](https://www.ruby-forum.com/t/uninitialized-constant/128153)

<div class="topic-metadata">

**Author:** [@ranju](https://www.ruby-forum.com/u/ranju)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/128153 "2008-02-05T13:13:50Z")

</div>

Hi, added following line after listening to one of the railscasts on formatting date and time: Time::DATE\_FORMATS\[:due\_time\] = “%I:%M %p” Now i am adding a new column to one of my tables in the database and rails is…

---

## [Catching XML errors in web service parameters](https://www.ruby-forum.com/t/catching-xml-errors-in-web-service-parameters/127695)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 5\
**Last updated:** [February 5, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/catching-xml-errors-in-web-service-parameters/127695 "2008-02-05T12:50:41Z")

</div>

Hi, I’m using RoR as a web service to upload data. Unfortunately I’m often passed poorly formatted XML (it’s written by users, not by machine) and it often contains errors. The XML parser that tries to turn the XML i…

---

## [Oppisite of :joins on polymorphic association](https://www.ruby-forum.com/t/oppisite-of-joins-on-polymorphic-association/128107)

<div class="topic-metadata">

**Author:** [@startrader](https://www.ruby-forum.com/u/startrader)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/oppisite-of-joins-on-polymorphic-association/128107 "2008-02-05T12:48:53Z")

</div>

Here’s the setup: class Person \<\<ActiveRecord::Base has\_one :address, :as=\>:addressable end how would I find all persons who do NOT have an address without using only the database? (i.e. Person.find(:all).find\_all{|…

---

## [FORM creating based on input & database values](https://www.ruby-forum.com/t/form-creating-based-on-input-database-values/128148)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/form-creating-based-on-input-database-values/128148 "2008-02-05T12:00:50Z")

</div>

Hi What’s the way to create form based on the retrieved input from the post ? Example: I have action select: def select @imitem = Imitem.find(params\[:id\]) end which reads ID (database ID) value from the post form…

---

## [Access Outlook from Rails App?](https://www.ruby-forum.com/t/access-outlook-from-rails-app/128145)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 11:47am UTC](https://www.ruby-forum.com/t/access-outlook-from-rails-app/128145 "2008-02-05T11:47:08Z")

</div>

Hi Folks, is there a way to access the Outlook-Folders from a visitor to a hosted Rails Application? For example get the emails the visitor has in his Outlook and show them on the website. I read about “WIN32OLE” and …

---

## [Handling multiple Check boxes in a XHTML Strict way](https://www.ruby-forum.com/t/handling-multiple-check-boxes-in-a-xhtml-strict-way/127697)

<div class="topic-metadata">

**Author:** [@sazwqa](https://www.ruby-forum.com/u/sazwqa)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 11:46am UTC](https://www.ruby-forum.com/t/handling-multiple-check-boxes-in-a-xhtml-strict-way/127697 "2008-02-05T11:46:40Z")

</div>

Hi, The default way we handle an array of checkboxes is like this: \<% items.each do |item| %\> \<%= check\_box\_tag ‘item\[\]’, “#{item.id}” %\> \<% end -%\> this returns an array item\[\] that holds the ids of all the items. …

---

## [Each Iterator and Tables](https://www.ruby-forum.com/t/each-iterator-and-tables/128136)

<div class="topic-metadata">

**Author:** [@tktktk](https://www.ruby-forum.com/u/tktktk)\
**Replies:** 2\
**Last updated:** [February 5, 2008, 11:12am UTC](https://www.ruby-forum.com/t/each-iterator-and-tables/128136 "2008-02-05T11:12:58Z")

</div>

Hi I’m looking to implement a small foto album into one of my projects. For getting the data out of the database I’m using pictures.each do… Is it possible to use the iterator to get me three columns of pictures and …

---

## [Excluding routes from a resource declaration](https://www.ruby-forum.com/t/excluding-routes-from-a-resource-declaration/128139)

<div class="topic-metadata">

**Author:** [@ke\_han](https://www.ruby-forum.com/u/ke_han)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 10:19am UTC](https://www.ruby-forum.com/t/excluding-routes-from-a-resource-declaration/128139 "2008-02-05T10:19:55Z")

</div>

I’m working with restful\_authentication plugin and note that it adds the following to routes.rb: map.resource :session This assumes I named my controller in the singular, which I did. The above resource creates the …

---

## [Undefined method \`each' for nil:NilClass](https://www.ruby-forum.com/t/undefined-method-each-for-nil-nilclass/128108)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 3\
**Last updated:** [February 5, 2008, 8:17am UTC](https://www.ruby-forum.com/t/undefined-method-each-for-nil-nilclass/128108 "2008-02-05T08:17:27Z")

</div>

hi rails developers @templates\_array =get\_templates “#{get\_plugin\_root}/public/converter/templates/” def get\_templates(templates\_path) dir = Dir.new(templates\_path) templates = Array.new dir.each do |d| templates \<…

---

## [Autocomplete + Mootools](https://www.ruby-forum.com/t/autocomplete-mootools/128131)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:49am UTC](https://www.ruby-forum.com/t/autocomplete-mootools/128131 "2008-02-05T07:49:06Z")

</div>

Hi Experts, Any one tried autocomplete with mootools? Plz if you have, post back, i’m in very much needed. regards, Bala

---

## [NEED: Translate/localize RoR site](https://www.ruby-forum.com/t/need-translate-localize-ror-site/196590)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:40am UTC](https://www.ruby-forum.com/t/need-translate-localize-ror-site/196590 "2008-02-05T07:40:38Z")

</div>

Hello, I need a localization tool/plugin for my rails application that work with REST, can translate whole web pages(or i can create 2 different pages for 2 languages), and fast. Thanks for any suggestions!!!

---

## [Adding observers outside environment.rb](https://www.ruby-forum.com/t/adding-observers-outside-environment-rb/128127)

<div class="topic-metadata">

**Author:** [@ke\_han](https://www.ruby-forum.com/u/ke_han)\
**Replies:** 0\
**Last updated:** [February 5, 2008, 7:40am UTC](https://www.ruby-forum.com/t/adding-observers-outside-environment-rb/128127 "2008-02-05T07:40:13Z")

</div>

I need to add an ActiveRecord observer and thought I should follow Rails 2 intent by not changing the base environment.rb I create a file config/initializers/observers.rb but don’t know what to add to it. I can’t add…

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

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