# Rails

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

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

---

## [Frustrrated - Simple Drop Down](https://www.ruby-forum.com/t/frustrrated-simple-drop-down/135665)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 2:40am UTC](https://www.ruby-forum.com/t/frustrrated-simple-drop-down/135665 "2008-04-24T02:40:30Z")

</div>

i have an array @item = \[ \[name1, value1\] \[name2, value2\] \[name3, value4\] \] which comes from the controller i want to put this into a drop down menu where the item chosen goes to :enter\_by i also need to go back to …

---

## [Rjs question](https://www.ruby-forum.com/t/rjs-question/135581)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 2:37am UTC](https://www.ruby-forum.com/t/rjs-question/135581 "2008-04-24T02:37:55Z")

</div>

Hello RoR developers, I want to see url path in alert message. exp, this is my url \<%=url\_for :controller=\>‘admin’, :action=\>‘admin2’%\> I want to see the path in alert message when I click to button I want to call…

---

## [Multi-dimensional hash/array as model attribute](https://www.ruby-forum.com/t/multi-dimensional-hash-array-as-model-attribute/135645)

<div class="topic-metadata">

**Author:** [@jedfoster](https://www.ruby-forum.com/u/jedfoster)\
**Replies:** 5\
**Last updated:** [April 24, 2008, 2:13am UTC](https://www.ruby-forum.com/t/multi-dimensional-hash-array-as-model-attribute/135645 "2008-04-24T02:13:37Z")

</div>

I’m a Ruby and Rails newbie, trying to get out of PHP. I have two AR models, Trip and Activity, where Trip has\_many Activities. I want to pull all the trips and load their associated activities as attributes so that I…

---

## [Best practices for multitenant application?](https://www.ruby-forum.com/t/best-practices-for-multitenant-application/135394)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 2:07am UTC](https://www.ruby-forum.com/t/best-practices-for-multitenant-application/135394 "2008-04-24T02:07:12Z")

</div>

Are there any best practices for designing multitenant applications using rails? Would I want to run 10 instances of the same application, or one instance of an application that can handle 10 tenants? What if I was ma…

---

## [Newbe Install Question, rails install w/o internet](https://www.ruby-forum.com/t/newbe-install-question-rails-install-w-o-internet/135657)

<div class="topic-metadata">

**Author:** [@bruce](https://www.ruby-forum.com/u/bruce)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 1:54am UTC](https://www.ruby-forum.com/t/newbe-install-question-rails-install-w-o-internet/135657 "2008-04-24T01:54:54Z")

</div>

It may seem stupid to consider ruby on rails without an internet connection and gem seems to require one, but it is common to run web services for test using only the loopback address. I have two linux installs with r…

---

## [Multiple apps on win32 with apache and mongrel](https://www.ruby-forum.com/t/multiple-apps-on-win32-with-apache-and-mongrel/135666)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 12:39am UTC](https://www.ruby-forum.com/t/multiple-apps-on-win32-with-apache-and-mongrel/135666 "2008-04-24T00:39:01Z")

</div>

Hi everyone, I used the following receipe to deploy my app on a win32 enviroment(http://www.paolocorti.net/public/wordpress/index.php/2007/11/15/ruby-on-rails-applications-with-mongrel-cluster-and-apache-url-rewriting-…

---

## [Newbie question - how do I add values to a result and save?](https://www.ruby-forum.com/t/newbie-question-how-do-i-add-values-to-a-result-and-save/135640)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 9\
**Last updated:** [April 24, 2008, 12:35am UTC](https://www.ruby-forum.com/t/newbie-question-how-do-i-add-values-to-a-result-and-save/135640 "2008-04-24T00:35:57Z")

</div>

Sorry for cross posting this, but I accidentally put this in the Ruby forum first and I think it’s more appropriate in RoR. I know that I’m missing something simple here, but the solution is evading me. I want to get…

---

## [Select\_tag inside loop](https://www.ruby-forum.com/t/select-tag-inside-loop/135647)

<div class="topic-metadata">

**Author:** [@maia](https://www.ruby-forum.com/u/maia)\
**Replies:** 2\
**Last updated:** [April 24, 2008, 12:16am UTC](https://www.ruby-forum.com/t/select-tag-inside-loop/135647 "2008-04-24T00:16:00Z")

</div>

I have a user who has a list of friends on displayed on his webpage. He can add each friend to a group like, Family or Friends. To implement this , I have the select\_tag /form\_tag block inside a loop in my view as sh…

---

## [Auditing: session\[:user\] reference in after\_save callback](https://www.ruby-forum.com/t/auditing-session-user-reference-in-after-save-callback/135661)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 4\
**Last updated:** [April 24, 2008, 12:01am UTC](https://www.ruby-forum.com/t/auditing-session-user-reference-in-after-save-callback/135661 "2008-04-24T00:01:46Z")

</div>

I know, it is against the MVC to speak directly to a session object in the model but I am looking for a solution to this problem with auditing I have a SystemLog model which works as a sort of auditor to track changes…

---

## [Syntax error, unexpected ':', expecting kEND](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/135629)

<div class="topic-metadata">

**Author:** [@chastheone](https://www.ruby-forum.com/u/chastheone)\
**Replies:** 4\
**Last updated:** [April 24, 2008, 12:01am UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-expecting-kend/135629 "2008-04-24T00:01:34Z")

</div>

My db:migrate code as generated by ROR refuses to run. I’m running MySQL as the db, and think I have everything installed and configured correctly. I’ve tried deletion of the colon, quoting with single and double quo…

---

## [Pagination per\_page using select\_box](https://www.ruby-forum.com/t/pagination-per-page-using-select-box/135595)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/pagination-per-page-using-select-box/135595 "2008-04-23T23:56:08Z")

</div>

I want to pass the number of pages in a select box (10,15,25,50) and when I press some button or just doing the action (observer\_field?) it will change the pagination, how can i do it ?

---

## [Why are my views being cached?](https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569)

<div class="topic-metadata">

**Author:** [@Rob\_A](https://www.ruby-forum.com/u/Rob_A)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/why-are-my-views-being-cached/135569 "2008-04-23T23:53:47Z")

</div>

Hi, I’m experiencing something very strange, rails 2.0.1. I’m running my app in development mode, yet it is caching views… If I put some random text in a view and refresh the page it isn’t there… yet if I restart the…

---

## [\[ADV\] Announcing the Third Edition of Agile Web Development with Rails](https://www.ruby-forum.com/t/adv-announcing-the-third-edition-of-agile-web-development-with-rails/135651)

<div class="topic-metadata">

**Author:** [@pragdave](https://www.ruby-forum.com/u/pragdave)\
**Replies:** 4\
**Last updated:** [April 23, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/adv-announcing-the-third-edition-of-agile-web-development-with-rails/135651 "2008-04-23T23:30:51Z")

</div>

If a dog year is 7 human years, then a Rails year is a lifetime. Things keep changing—the core team add new features (and remove old ones…), and we all learn new idioms and patterns for writing Rails applications. So…

---

## [SQL hints and activerecord](https://www.ruby-forum.com/t/sql-hints-and-activerecord/135658)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/sql-hints-and-activerecord/135658 "2008-04-23T22:52:02Z")

</div>

How do I use SQL hints with ActiveRecord? I’m trying to have “with(nolock)” added just before the “where” Mytable.find(:first, :joins=\>‘with(nolock)’) Gives the desired result, but I’d prefer to have it be a default. …

---

## [Passing a hidden field to insert\_html](https://www.ruby-forum.com/t/passing-a-hidden-field-to-insert-html/135648)

<div class="topic-metadata">

**Author:** [@nachocab](https://www.ruby-forum.com/u/nachocab)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/passing-a-hidden-field-to-insert-html/135648 "2008-04-23T21:41:50Z")

</div>

I’m trying to pass a hidden field (item\_property) to the add\_link helper function but when I do it the process threads start eating up memory and my computer freezes. def add\_link(name) link\_to\_function name do…

---

## [InvalidURIError: can not set user with registry or opaque](https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/invalidurierror-can-not-set-user-with-registry-or-opaque/108216 "2008-04-23T21:32:34Z")

</div>

Hi, I’m attempting to install Rails through RubyGems on OS X 10.4.10, but whenever I use “sudo gem instsll rails --include-dependencies” it gives me this error: ERROR: While executing gem … (URI::InvalidURIError) c…

---

## [Auto\_complete data and text field](https://www.ruby-forum.com/t/auto-complete-data-and-text-field/135548)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 18\
**Last updated:** [April 23, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/auto-complete-data-and-text-field/135548 "2008-04-23T20:44:48Z")

</div>

two problems with auto\_complete. i have user table with id fname, lname, following the steps on the wiki, drop down works but selected item does not appear in text box (issue #1) i am searching only on fname but t…

---

## [Maintaining drop down menu selections](https://www.ruby-forum.com/t/maintaining-drop-down-menu-selections/135634)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 3\
**Last updated:** [April 23, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/maintaining-drop-down-menu-selections/135634 "2008-04-23T20:30:35Z")

</div>

i am creating multiple drop down menus using \<%= form.select(:choice, @list.map { | item | \[ item\[0\], item\[1\] \] }) %\> this works great but when the client hits submit and there are other validation errors it resets …

---

## [Collection\_select with an index](https://www.ruby-forum.com/t/collection-select-with-an-index/135637)

<div class="topic-metadata">

**Author:** [@Jakob\_Lenfers](https://www.ruby-forum.com/u/Jakob_Lenfers)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/collection-select-with-an-index/135637 "2008-04-23T20:22:45Z")

</div>

Hi, I’m new to Rails, this is my first try, so be gentle, I tried to google but could solve my problem. :slight\_smile: I’m trying to use the index-option of, for example, the text\_field in a collection\_select. I foun…

---

## [Datetime\_select custom input fields](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134759)

<div class="topic-metadata">

**Author:** [@Phil\_U](https://www.ruby-forum.com/u/Phil_U)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/datetime-select-custom-input-fields/134759 "2008-04-23T20:09:45Z")

</div>

by default datetime\_select allows the user to input any date and time they want. Is there a way it can only allow a user to select an hour between 8AM and 6PM and only allow them to choose the top of the hour (:00) an…

---

## [RESTful but use create in another controller](https://www.ruby-forum.com/t/restful-but-use-create-in-another-controller/135611)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/restful-but-use-create-in-another-controller/135611 "2008-04-23T20:04:46Z")

</div>

I have a RESTful setup, where one is for messages. In MessagesController I have the basic methods. But I have problems when I want to “create” from another controller. I took the form in new.erb.html from message view…

---

## [Novice: Pages not available other than server](https://www.ruby-forum.com/t/novice-pages-not-available-other-than-server/135616)

<div class="topic-metadata">

**Author:** [@opus\_az](https://www.ruby-forum.com/u/opus_az)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/novice-pages-not-available-other-than-server/135616 "2008-04-23T19:30:55Z")

</div>

Hi… I have RoR installed and apparently working, since a simple http://localhost:3000 displays on the server. But http://ip.address:3000 or http://ip.address:3000/hello doesn’t work on other computers. The computers …

---

## [Rjs is either not ignored or not evaluated](https://www.ruby-forum.com/t/rjs-is-either-not-ignored-or-not-evaluated/135633)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/rjs-is-either-not-ignored-or-not-evaluated/135633 "2008-04-23T19:30:42Z")

</div>

Hi, I’m testing ajax in a restful resource. In a non-restful controller, ajax worked fine. But in a restful controller, ajax didn’t work as I expected. I did the following. script/generate scaffold user name:string …

---

## [Reload render partial in production mode](https://www.ruby-forum.com/t/reload-render-partial-in-production-mode/135630)

<div class="topic-metadata">

**Author:** [@Mongdar](https://www.ruby-forum.com/u/Mongdar)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/reload-render-partial-in-production-mode/135630 "2008-04-23T18:51:49Z")

</div>

Hi Rails Guru, I have a partial view \_rss.rhml that is updated with a cronjob every 15 minutes by parsing a remote rss feeds. On my main web site I read the \_rss.rhtml file on the side bar. But because production mod…

---

## [Updated\_at not updating](https://www.ruby-forum.com/t/updated-at-not-updating/135556)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [April 23, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/updated-at-not-updating/135556 "2008-04-23T18:28:48Z")

</div>

How strange? I have a model that has updated\_at as a “magic” field in the database. But it isn’t updating unless I update it manually. Doing a google search, I saw someone else having a similar problem that was usin…

---

## [Flare plugin (with Ruby Solr library and acts\_as\_solr plugin)](https://www.ruby-forum.com/t/flare-plugin-with-ruby-solr-library-and-acts-as-solr-plugin/135628)

<div class="topic-metadata">

**Author:** [@Vincent\_PSSSSrSSSSs](https://www.ruby-forum.com/u/Vincent_PSSSSrSSSSs)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/flare-plugin-with-ruby-solr-library-and-acts-as-solr-plugin/135628 "2008-04-23T18:26:26Z")

</div>

Hello, I’m looking for informations about this plugin (Flare). http://wiki.apache.org/solr/Flare/ Is it a final plugin? Can we use it on final production application? Have you some documentation / tutorial about it? …

---

## [Global documentation for Rails' ActionView](https://www.ruby-forum.com/t/global-documentation-for-rails-actionview/135621)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [April 23, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/global-documentation-for-rails-actionview/135621 "2008-04-23T17:55:39Z")

</div>

I got myself rather confused yesterday. It started when I put a “form\_remote\_tag” in a helper method. I get the error that \_erbout is not defined. I dug around and found suggestions to put it into a template and do…

---

## [Web Developer](https://www.ruby-forum.com/t/web-developer/135620)

<div class="topic-metadata">

**Author:** [@hema](https://www.ruby-forum.com/u/hema)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/web-developer/135620 "2008-04-23T17:47:38Z")

</div>

Responsibilities: Provides technical design, development, support, and systems administration for Merchant Link’s platforms in one or more highly specialized phases of software development. Defines specifications…

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/135610)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 6\
**Last updated:** [April 23, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/collection-select/135610 "2008-04-23T17:46:35Z")

</div>

I am attempting to populate a collection\_select object with data from a separate table than the one the collection will be displayed. Specifically, I would like to add a new ‘project’, and in one of the fields, I woul…

---

## [ODBC and rails 2.0](https://www.ruby-forum.com/t/odbc-and-rails-2-0/135617)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 0\
**Last updated:** [April 23, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/odbc-and-rails-2-0/135617 "2008-04-23T17:10:38Z")

</div>

Hi All, Anyone having success using the odbc-rails adapters with ROR 2.0? Would you feel safe using this combination for production servers? I looked into using the ODBC Binding for Ruby and OpenLink ODBC Adapter a…

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

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