# Rails

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

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

---

## [Problem in update](https://www.ruby-forum.com/t/problem-in-update/229176)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 0\
**Last updated:** [December 19, 2008, 5:29am UTC](https://www.ruby-forum.com/t/problem-in-update/229176 "2008-12-19T05:29:58Z")

</div>

Hi im using five forms(5 pages) and one controller.select the edit form1 page values displayed but i change values after updated but not change the values in database .only already values stored. view code --------…

---

## [How complex a query can ActiveRecord handle before it's better using Raw SQL or a View?](https://www.ruby-forum.com/t/how-complex-a-query-can-activerecord-handle-before-its-better-using-raw-sql-or-a-view/155992)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [December 19, 2008, 3:14am UTC](https://www.ruby-forum.com/t/how-complex-a-query-can-activerecord-handle-before-its-better-using-raw-sql-or-a-view/155992 "2008-12-19T03:14:11Z")

</div>

Hi, How complex a query can ActiveRecord handle before it’s better using Raw SQL or a View??? I need to calculate for example taxable income via a query going across 5 tables. Some like this: Find all transaction …

---

## [HABTM on 3 tables](https://www.ruby-forum.com/t/habtm-on-3-tables/151697)

<div class="topic-metadata">

**Author:** [@pandabeer](https://www.ruby-forum.com/u/pandabeer)\
**Replies:** 6\
**Last updated:** [December 19, 2008, 1:53am UTC](https://www.ruby-forum.com/t/habtm-on-3-tables/151697 "2008-12-19T01:53:27Z")

</div>

Hi. Currently, I had 2 models linked with HABTM association: Article and Tag class Article \< ActiveRecord::Base has\_and\_belongs\_to\_many :tags end class Tag \< ActiveRecord::Base has\_and\_belongs\_to\_many :articles en…

---

## [Html\_options and select()](https://www.ruby-forum.com/t/html-options-and-select/62244)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 3\
**Last updated:** [December 19, 2008, 1:19am UTC](https://www.ruby-forum.com/t/html-options-and-select/62244 "2008-12-19T01:19:27Z")

</div>

I am trying to add html\_options to select(): \<%=select(:user, :id,\[\[‘me’,1\],\[‘myself’,2\],\[‘and I’,3\]\], :select =\> {},:html\_options =\> {“size” =\> 5, “multiple” =\> true})%\> This does not work… How do I get the html\_opt…

---

## [Setting dynamic variables](https://www.ruby-forum.com/t/setting-dynamic-variables/155985)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 3\
**Last updated:** [December 18, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/setting-dynamic-variables/155985 "2008-12-18T23:10:06Z")

</div>

How do I set variables dynamically based on a search in the database? I have a list of 30 words in a table called ‘words’ with a field called…words. I would like to loop through them and for each word set a variable. …

---

## [Assert\_raise broken with Rails 2.2.2 upgrade](https://www.ruby-forum.com/t/assert-raise-broken-with-rails-2-2-2-upgrade/155983)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/assert-raise-broken-with-rails-2-2-2-upgrade/155983 "2008-12-18T22:23:39Z")

</div>

Trying to upgrade to Rails 2.2.2 and all of my assert\_raise tests are failing. It appears that my rescue\_action method is being called but not reraising the Exception. In Rails 2.1.2 and all the other versions I’ve us…

---

## [State of Ruby and ROR](https://www.ruby-forum.com/t/state-of-ruby-and-ror/155960)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/state-of-ruby-and-ror/155960 "2008-12-18T20:44:34Z")

</div>

New year is comming and I would like to clear some questions on the future of Ruby and ROR. We see that Ruby 1.8.7 is default on ubuntu 8.10. In the past there were problems with ROR and ruby 1.8.7. Have this pr…

---

## [Regarding Hosting at Godaddy](https://www.ruby-forum.com/t/regarding-hosting-at-godaddy/155915)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/regarding-hosting-at-godaddy/155915 "2008-12-18T20:40:31Z")

</div>

Hello all anyone know how to setup rails application on Godaddy shared linux server… ? I uploaded site but still my site is not appearing on preview dns server anyone has idea abt this. ?

---

## [Exists? && new? undefined in ActiveRecord::Base?](https://www.ruby-forum.com/t/exists-new-undefined-in-activerecord-base/155977)

<div class="topic-metadata">

**Author:** [@Tim\_McIntyre](https://www.ruby-forum.com/u/Tim_McIntyre)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/exists-new-undefined-in-activerecord-base/155977 "2008-12-18T20:34:04Z")

</div>

I’ve got a trivial Order class: class Order \< ActiveRecord::Base end From the console: Loading development environment (Rails 2.1.2) o = Order.new =\> #\<Order id: nil, partner\_account\_id: nil, delivery\_status: nil…

---

## [Rails Auto Documentor?](https://www.ruby-forum.com/t/rails-auto-documentor/155973)

<div class="topic-metadata">

**Author:** [@matt\_simp](https://www.ruby-forum.com/u/matt_simp)\
**Replies:** 6\
**Last updated:** [December 18, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/rails-auto-documentor/155973 "2008-12-18T20:11:13Z")

</div>

Is there an auto documentor for a rails app like php documentor (http://www.phpdoc.org/)? I’m in need of an auto documentation engine. Any recommendations would be great. Thanks, Matt

---

## [Refactoring Rails - Project Name](https://www.ruby-forum.com/t/refactoring-rails-project-name/155970)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 3\
**Last updated:** [December 18, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/refactoring-rails-project-name/155970 "2008-12-18T20:05:22Z")

</div>

Hi- I would like to refactor the name of my project and am wondering if anyone has done this before (and if there’s an easy way)? I know there will be updates to the database.yml for DB names, along with environment…

---

## [Call other programs and need return value](https://www.ruby-forum.com/t/call-other-programs-and-need-return-value/155937)

<div class="topic-metadata">

**Author:** [@lily](https://www.ruby-forum.com/u/lily)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/call-other-programs-and-need-return-value/155937 "2008-12-18T20:01:05Z")

</div>

hi, all, You know if you use system call to call a perl script in Ruby’s controller, it will only return the status for the status of execution but not the return value of perl script. I really need the return value…

---

## [Rails Console Question ?\>](https://www.ruby-forum.com/t/rails-console-question/155966)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/rails-console-question/155966 "2008-12-18T17:10:43Z")

</div>

OS = CentOS-5.2 Ruby = 1.8.6 Rails = 2.2.2 This may or may not be intended behaviour. $ script/console Loading development environment (Rails 2.2.2) ?\> ?\> In short, I am getting a command complete prompt if…

---

## [JOBS: Looking for RoR developers to work on enterprise website in Gibraltar](https://www.ruby-forum.com/t/jobs-looking-for-ror-developers-to-work-on-enterprise-website-in-gibraltar/155621)

<div class="topic-metadata">

**Author:** [@Swordfish](https://www.ruby-forum.com/u/Swordfish)\
**Replies:** 4\
**Last updated:** [December 18, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-ror-developers-to-work-on-enterprise-website-in-gibraltar/155621 "2008-12-18T17:02:54Z")

</div>

Hi We have just completed the first phase of replacing our client’s betting and gaming website with a new version written in Ruby on Rails. You can see this at http://casino.victorchandler.com/vccasino. We are using…

---

## [Action\_mailer in windows -can't get to work](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884)

<div class="topic-metadata">

**Author:** [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/action-mailer-in-windows-cant-get-to-work/155884 "2008-12-18T16:14:37Z")

</div>

Newbie problem - I am on windows and can’t get action mailer to send an email. There are no error messages, the command line says "Sent mail to " and then lists the contents. I have done lots of seacrhing on the web b…

---

## [Model, controller or view - where to normalize data?](https://www.ruby-forum.com/t/model-controller-or-view-where-to-normalize-data/155962)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/model-controller-or-view-where-to-normalize-data/155962 "2008-12-18T15:58:56Z")

</div>

I have a login screen and I wish to normalize the login name for the purposes of INSERT and SELECT. In the model I have: def username=(name) # keycase is a local extension of class String. write\_attribute(:username,…

---

## [RoR Developer Needed](https://www.ruby-forum.com/t/ror-developer-needed/63129)

<div class="topic-metadata">

**Author:** [@Larry\_Staton\_Jr](https://www.ruby-forum.com/u/Larry_Staton_Jr)\
**Replies:** 3\
**Last updated:** [December 18, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/ror-developer-needed/63129 "2008-12-18T14:59:21Z")

</div>

Our law firm is looking for a contractor to assist in developing and extending our internal case management system. This system tracks most aspects of our workflow. Our current system is deployed as a WebObjects appl…

---

## [Permalink\_fu and Rails 2.2.2](https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/permalink-fu-and-rails-2-2-2/154854 "2008-12-18T14:52:27Z")

</div>

Hi, Since I have updated my Rails gems to 2.2.2, when I create a new entry in DB which has a permalink I get the following error message: uninitialized constant ActiveSupport::Multibyte::Handlers Do you know if perma…

---

## [Correct way to build an AR object with multiple associations?](https://www.ruby-forum.com/t/correct-way-to-build-an-ar-object-with-multiple-associations/155930)

<div class="topic-metadata">

**Author:** [@Lisa\_Klein](https://www.ruby-forum.com/u/Lisa_Klein)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/correct-way-to-build-an-ar-object-with-multiple-associations/155930 "2008-12-18T14:38:39Z")

</div>

I have a Book resource that belongs both to a User and to an Isbn. What is the recommended way of building a new Book record in this type of situation? class Book \< ActiveRecord::Base belongs\_to :user belongs\_to :is…

---

## [\[ADV\] "Mastering Rails Forms" Screencasts](https://www.ruby-forum.com/t/adv-mastering-rails-forms-screencasts/155952)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/adv-mastering-rails-forms-screencasts/155952 "2008-12-18T13:53:59Z")

</div>

Hi Folks, As the development editor for The Pragmatic Programmer’s line of screencasts, I’m excited to announce that the new “Mastering Rails Forms” screencast series by Ryan B. is now available: http://pragprog.com/…

---

## [Cache Classes problem](https://www.ruby-forum.com/t/cache-classes-problem/155934)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/cache-classes-problem/155934 "2008-12-18T13:05:47Z")

</div>

Hi all I’ve got a problem with the “cache classes” option in Rails. (config.cache\_classes = true) When I turn it on, some objects are not reloaded during a long time. For example: If i load something from database w…

---

## [Active\_record + threads](https://www.ruby-forum.com/t/active-record-threads/155951)

<div class="topic-metadata">

**Author:** [@jvalencia](https://www.ruby-forum.com/u/jvalencia)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 1:00pm UTC](https://www.ruby-forum.com/t/active-record-threads/155951 "2008-12-18T13:00:22Z")

</div>

I’m having problems with active\_record within threads I have some code that works alone, but if I insert it into a thread with: threads = \[\] for x in 1…5 do threads \<\< Thread.new do team = Team.find(2) end end t…

---

## [New Version of IBM\_DB Rails Adapter/Driver for IBM DataServers now available](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/155949)

<div class="topic-metadata">

**Author:** [@praveen](https://www.ruby-forum.com/u/praveen)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/new-version-of-ibm-db-rails-adapter-driver-for-ibm-dataservers-now-available/155949 "2008-12-18T12:59:52Z")

</div>

Hi All, IBM\_DB 1.0.1 gem refresh is now available. To download the new version visit http://rubyforge.org/projects/rubyibm/ This release of the gem has made made clear the environment variables to be set during the i…

---

## [Using get and put](https://www.ruby-forum.com/t/using-get-and-put/155932)

<div class="topic-metadata">

**Author:** [@vishal\_mehta](https://www.ruby-forum.com/u/vishal_mehta)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/using-get-and-put/155932 "2008-12-18T12:59:16Z")

</div>

Hello everyone, I am new to rails and I am trying to run simple get post put methods in ruby rails. Can any one tell me where do I implement that methods. Can you provide any source where I can go through and learn th…

---

## [Serializing active record objects do not save after first slice](https://www.ruby-forum.com/t/serializing-active-record-objects-do-not-save-after-first-slice/155946)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/serializing-active-record-objects-do-not-save-after-first-slice/155946 "2008-12-18T12:25:50Z")

</div>

Hi, i am having a very weird problem i have an array Model: serialize :marketarray Controller @marketobject = Market.find(1) @marketobject.marketarray = \[“red”,“blue”,“green”\] I do this @marketobject.marketarray.s…

---

## [Disable single action cache](https://www.ruby-forum.com/t/disable-single-action-cache/155948)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/disable-single-action-cache/155948 "2008-12-18T12:21:55Z")

</div>

Hi all I m running my site in production mode and i want to disable cache in search page. Can you tell me how do i disable cache in that search action? Thanks

---

## [Action mailer](https://www.ruby-forum.com/t/action-mailer/155947)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 12:17pm UTC](https://www.ruby-forum.com/t/action-mailer/155947 "2008-12-18T12:17:37Z")

</div>

hi i am new to ror so please kindly help me out from this i am developing an application in that i need to have "FORGOT PASSWORD" .so what happening is whenever user types email address and press submit button it is …

---

## [Configure.gem image\_science doesn't work](https://www.ruby-forum.com/t/configure-gem-image-science-doesnt-work/155940)

<div class="topic-metadata">

**Author:** [@idahoev](https://www.ruby-forum.com/u/idahoev)\
**Replies:** 0\
**Last updated:** [December 18, 2008, 10:58am UTC](https://www.ruby-forum.com/t/configure-gem-image-science-doesnt-work/155940 "2008-12-18T10:58:36Z")

</div>

I have an app that requires 6 gems at the moment. config.gem works fine for most of them, but not for image\_science. ImageScience is installed correctly, and the code works fine. But if I have the line: config.ge…

---

## [Update the form](https://www.ruby-forum.com/t/update-the-form/226031)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 1\
**Last updated:** [December 18, 2008, 10:50am UTC](https://www.ruby-forum.com/t/update-the-form/226031 "2008-12-18T10:50:13Z")

</div>

Hi im using five forms(5 pages) and one controller.select the edit form1 page values displayed but i change values after updated but not change the values in database .only already values stored. view code -------…

---

## [Issue loading RMagick](https://www.ruby-forum.com/t/issue-loading-rmagick/155872)

<div class="topic-metadata">

**Author:** [@mimimi](https://www.ruby-forum.com/u/mimimi)\
**Replies:** 3\
**Last updated:** [December 18, 2008, 9:46am UTC](https://www.ruby-forum.com/t/issue-loading-rmagick/155872 "2008-12-18T09:46:12Z")

</div>

Using attachment\_fu and ‘Rmagick’ as processor I have the following error Problems loading RmagickProcessor: no such file to load – RMagick ( the code is begin processor\_mod = Technoweenie::AttachmentFu::Processors…

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

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