# Rails

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

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

---

## [How do I create an autocomplete text field that allows for multiple words/tags](https://www.ruby-forum.com/t/how-do-i-create-an-autocomplete-text-field-that-allows-for-multiple-words-tags/153545)

<div class="topic-metadata">

**Author:** [@Gishu\_Pillai](https://www.ruby-forum.com/u/Gishu_Pillai)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/how-do-i-create-an-autocomplete-text-field-that-allows-for-multiple-words-tags/153545 "2008-11-18T17:01:34Z")

</div>

I have described the problem in details in the above post. What I’d like is for the autocomplete field to allow the user to enter multiple ‘tags’ or ‘categories’ separated by commas. e.g. “Ruby, Rails, autocomplete” …

---

## [Any\_instance with rspec](https://www.ruby-forum.com/t/any-instance-with-rspec/138205)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 5\
**Last updated:** [November 18, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/any-instance-with-rspec/138205 "2008-11-18T16:09:13Z")

</div>

Hi, I really need to use any\_instance - which is a Mocha feature with rspec. I really can’t get around it. In “The Rails Way”, the author says “It is possible to use Mocha together with RSpec…”. How? Thanks, Tiberiu …

---

## [Session Corruption?](https://www.ruby-forum.com/t/session-corruption/153496)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 5\
**Last updated:** [November 18, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/session-corruption/153496 "2008-11-18T15:56:22Z")

</div>

I have a vexing problem where a request is completed and customer information is stored in session (to be deleted on successful checkout). After the request completes, any subsequent action throws a Internal Server Er…

---

## [Problem with gem](https://www.ruby-forum.com/t/problem-with-gem/153526)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/problem-with-gem/153526 "2008-11-18T13:19:56Z")

</div>

Hello, I am trying to install ROR in Ubuntu on my virtualbox VM. I followed the instruction on Documents for installation of the same.As i am working in office where we have to deal with proxy; i have also set the ap…

---

## [Excellent Job Opportunity: Lead Engineering (Ruby On Rails), New Delhi](https://www.ruby-forum.com/t/excellent-job-opportunity-lead-engineering-ruby-on-rails-new-delhi/196844)

<div class="topic-metadata">

**Author:** [@Jitendra\_Singh](https://www.ruby-forum.com/u/Jitendra_Singh)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 11:42am UTC](https://www.ruby-forum.com/t/excellent-job-opportunity-lead-engineering-ruby-on-rails-new-delhi/196844 "2008-11-18T11:42:02Z")

</div>

Hi All, We are looking for motivated Ruby on Rails/Java technology professionals with 3+ years of relevant experience and a strong background in computer science, in particular Internet technologies. The role would i…

---

## [Missing js.erb template](https://www.ruby-forum.com/t/missing-js-erb-template/153512)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 11:08am UTC](https://www.ruby-forum.com/t/missing-js-erb-template/153512 "2008-11-18T11:08:18Z")

</div>

Dear all I am new to web development, and I am working on some simple ajax function and got the following error that may need your expert opinions. Missing template ecpath\_app\_version/\_\_version\_list.js.erb in view pat…

---

## [Rails Stability](https://www.ruby-forum.com/t/rails-stability/153426)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 11\
**Last updated:** [November 18, 2008, 10:34am UTC](https://www.ruby-forum.com/t/rails-stability/153426 "2008-11-18T10:34:33Z")

</div>

I have been away from Rails for a year now, but I have been maintaining a site which runs on rails. It’s still hosted on textdrive served by lighttpd with fastcgi. There’s something inherently wrong with fastcgi and f…

---

## [Dynamic condition for has\_one and eager loading issue](https://www.ruby-forum.com/t/dynamic-condition-for-has-one-and-eager-loading-issue/153161)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [November 18, 2008, 9:39am UTC](https://www.ruby-forum.com/t/dynamic-condition-for-has-one-and-eager-loading-issue/153161 "2008-11-18T09:39:22Z")

</div>

Hi, I ve defined the following relation in one of my models with a dynamic where condition: has\_one :selection, :foreign\_key =\> ‘object\_id’, :conditions =\> ‘selection\_type = 1 and account\_id = # {self.send(:account…

---

## [Sortable\_element trouble](https://www.ruby-forum.com/t/sortable-element-trouble/153514)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 9:39am UTC](https://www.ruby-forum.com/t/sortable-element-trouble/153514 "2008-11-18T09:39:15Z")

</div>

I need some reordering functionality so I tried the sortable\_element helper. It is giving me trouble though. I have a show view that looks like this (HAML): %ul#items = render :partial =\> @menu.items = sortable\_elem…

---

## [How can I leverage Validation framework for input parameter collection when I don't have/need to per](https://www.ruby-forum.com/t/how-can-i-leverage-validation-framework-for-input-parameter-collection-when-i-dont-have-need-to-per/153511)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 8:16am UTC](https://www.ruby-forum.com/t/how-can-i-leverage-validation-framework-for-input-parameter-collection-when-i-dont-have-need-to-per/153511 "2008-11-18T08:16:49Z")

</div>

Hi, How can I leverage Validation framework for input parameter collection when I don’t have/need to persist to database (i.e. no activerecord table) ??? I have a set of parameters I want to collect from a form that …

---

## [Testing Rake Tasks](https://www.ruby-forum.com/t/testing-rake-tasks/153510)

<div class="topic-metadata">

**Author:** [@cheeseprophet](https://www.ruby-forum.com/u/cheeseprophet)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 7:36am UTC](https://www.ruby-forum.com/t/testing-rake-tasks/153510 "2008-11-18T07:36:28Z")

</div>

I’m somewhat new to RoR and I’ve found that along with my main RoR development work I’ve also developed a number of custom rake tasks that do various things. I’d like to be able to write unit tests for these rake tas…

---

## [Limitations Question](https://www.ruby-forum.com/t/limitations-question/153474)

<div class="topic-metadata">

**Author:** [@shatterfist](https://www.ruby-forum.com/u/shatterfist)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 7:13am UTC](https://www.ruby-forum.com/t/limitations-question/153474 "2008-11-18T07:13:23Z")

</div>

I’m a college student learning Ruby on Rails. My instructor has given me a good basis for designing web based solutions with RoR and we’ve looked at Ajax and script.aculos. I’ve seen posted on various sites about Rub…

---

## [Ruby console problem](https://www.ruby-forum.com/t/ruby-console-problem/151796)

<div class="topic-metadata">

**Author:** [@Sal\_eSM](https://www.ruby-forum.com/u/Sal_eSM)\
**Replies:** 3\
**Last updated:** [November 18, 2008, 6:43am UTC](https://www.ruby-forum.com/t/ruby-console-problem/151796 "2008-11-18T06:43:44Z")

</div>

Hi, I am using InstantRails in XP SP2. When I try to open a Ruby console window from InstantRails menu system I only get a Dos window. This is, probably, a problem in my registry configuration and happens even when I …

---

## [Rails 2.2rc2: ArgumentError - Anonymous modules have no name to be referenced by](https://www.ruby-forum.com/t/rails-2-2rc2-argumenterror-anonymous-modules-have-no-name-to-be-referenced-by/153505)

<div class="topic-metadata">

**Author:** [@jacques](https://www.ruby-forum.com/u/jacques)\
**Replies:** 2\
**Last updated:** [November 18, 2008, 6:36am UTC](https://www.ruby-forum.com/t/rails-2-2rc2-argumenterror-anonymous-modules-have-no-name-to-be-referenced-by/153505 "2008-11-18T06:36:14Z")

</div>

If you convert your Rails 2.1 app to Rails 2.2RC2, you’ll see this fancy error message as soon as you start script server: ArgumentError “Anonymous modules have no name to be referenced by” Stack trace will lead you t…

---

## [Restful Authentication](https://www.ruby-forum.com/t/restful-authentication/153502)

<div class="topic-metadata">

**Author:** [@jrm](https://www.ruby-forum.com/u/jrm)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 2:28am UTC](https://www.ruby-forum.com/t/restful-authentication/153502 "2008-11-18T02:28:58Z")

</div>

Hi, I added authentication to an app that already had a Person model. Rather than use the Person class to represent “Users” I created a User model and stored “users” in a users table. I now want to clean that up as …

---

## [Querying date format for DB via ActiveRecord?](https://www.ruby-forum.com/t/querying-date-format-for-db-via-activerecord/153499)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 2:10am UTC](https://www.ruby-forum.com/t/querying-date-format-for-db-via-activerecord/153499 "2008-11-18T02:10:21Z")

</div>

Is there a way to query the DB connection behind an AR::Base object for the date string format expected by the DB? I’m trying to use quoted\_date, however, this returns a formatted timestamp and the column in question …

---

## [Customize logger messages in Rails2?](https://www.ruby-forum.com/t/customize-logger-messages-in-rails2/153066)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 6\
**Last updated:** [November 18, 2008, 1:44am UTC](https://www.ruby-forum.com/t/customize-logger-messages-in-rails2/153066 "2008-11-18T01:44:44Z")

</div>

In Rails2, what’s the best way to customize the format of logger output in Rails? In Rails1, due to Rails weird monkey-patching of Logger, you couldn’t just subclass Logger and then set it as the logger to be used. Ha…

---

## [Cross-database joins on has\_many associations](https://www.ruby-forum.com/t/cross-database-joins-on-has-many-associations/153491)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [November 18, 2008, 1:21am UTC](https://www.ruby-forum.com/t/cross-database-joins-on-has-many-associations/153491 "2008-11-18T01:21:21Z")

</div>

All, I’m looking at possibly having to define a has\_many relationship across two databases (possibly even two databases on different servers). To be clear, I mean model A lives in database X and it’s related to model…

---

## [Custom format with BufferedLogger?](https://www.ruby-forum.com/t/custom-format-with-bufferedlogger/153495)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [November 18, 2008, 12:32am UTC](https://www.ruby-forum.com/t/custom-format-with-bufferedlogger/153495 "2008-11-18T00:32:22Z")

</div>

So Rails2 provides a new BufferedLogger class that is used for logging. The old monkey-patched Logger class is deprecated. It’s nice that the new BufferedLogger doesn’t do that weird monkey patching thing, making it e…

---

## [Super global dummy method for gettext + rails 2.2](https://www.ruby-forum.com/t/super-global-dummy-method-for-gettext-rails-2-2/153479)

<div class="topic-metadata">

**Author:** [@Olaf](https://www.ruby-forum.com/u/Olaf)\
**Replies:** 7\
**Last updated:** [November 18, 2008, 12:01am UTC](https://www.ruby-forum.com/t/super-global-dummy-method-for-gettext-rails-2-2/153479 "2008-11-18T00:01:33Z")

</div>

Hi, since rails 2.2 doesn’t work with gettext anymore I decided to use a gettext dummy method until the gettext team relases a working version for rails 2.2. My application doesn’t need any i18n support right now and…

---

## [How to review changes in a new version of a plugin? what's the best approach?](https://www.ruby-forum.com/t/how-to-review-changes-in-a-new-version-of-a-plugin-whats-the-best-approach/153485)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/how-to-review-changes-in-a-new-version-of-a-plugin-whats-the-best-approach/153485 "2008-11-17T22:08:21Z")

</div>

Hi, Background - I’m a few month behind the latest code for a plugin. I use SVN for my RoR project. Question - What’s the best/easiest way to review the changes in a more update version of the plugin against my vers…

---

## [Implementation guidance, please](https://www.ruby-forum.com/t/implementation-guidance-please/152660)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/implementation-guidance-please/152660 "2008-11-17T22:06:35Z")

</div>

Hi, I just want some validation or correct to my implementation plan for a modest, Rails-based Payroll system. The input is going to be a set of weekly spreadsheets (in CVS form) which the user will copy from time …

---

## [backgrounDRB & Cygwin?](https://www.ruby-forum.com/t/backgroundrb-cygwin/153483)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/backgroundrb-cygwin/153483 "2008-11-17T22:00:42Z")

</div>

Hello, I’m trying to use BackgrounDRB on InstantRails v1.7 (Ruby 1.8.6 and Rails 2.1.0) with Windows Server 2003. I know that I can’t use BackgrounDRB on a Windows machine because it uses forking - thats why I instal…

---

## [Cookies are not saved](https://www.ruby-forum.com/t/cookies-are-not-saved/153484)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/cookies-are-not-saved/153484 "2008-11-17T21:54:27Z")

</div>

Hi, I’m developing my first RoR application and working first time with cookies on RoR. I create a product object, save it and set the id into the cookie def create @image = Image.new(params\[:image\]) respond\_to do …

---

## [Can't seem to test http error codes](https://www.ruby-forum.com/t/cant-seem-to-test-http-error-codes/153470)

<div class="topic-metadata">

**Author:** [@davetron5000](https://www.ruby-forum.com/u/davetron5000)\
**Replies:** 2\
**Last updated:** [November 17, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/cant-seem-to-test-http-error-codes/153470 "2008-11-17T19:27:41Z")

</div>

in application.rb rescue\_from ActiveRecord::RecordNotFound { |e| http\_status\_code (:missing, e) } def http\_status\_code(status, exception) @exception = exception respond\_to do |format| format.html { render :templa…

---

## [Got Redbox or Thickbox experience?](https://www.ruby-forum.com/t/got-redbox-or-thickbox-experience/153471)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/got-redbox-or-thickbox-experience/153471 "2008-11-17T17:44:58Z")

</div>

Greetings! I could use some feedback / assistance from anyone who’s used either one of Redbox or Thickbox with Rails. I’ve got Redbox functioning but ‘had’ to do some stuff to make it work (e.g., fixing the size of t…

---

## [Html \<frame\> tag not work](https://www.ruby-forum.com/t/html-frame-tag-not-work/153466)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 1\
**Last updated:** [November 17, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/html-frame-tag-not-work/153466 "2008-11-17T16:52:03Z")

</div>

I want to make a view containing the tag to let the part to accommodate enough info.But the rails does not support the tag.So how do i get a element that has a scroll bar? Thank you.

---

## [How to change the language settings?](https://www.ruby-forum.com/t/how-to-change-the-language-settings/153460)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 1\
**Last updated:** [November 17, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/how-to-change-the-language-settings/153460 "2008-11-17T16:00:19Z")

</div>

Hi, I have integrated the savage beast plugin for forum.Its working fine but error messages(model validation) are displaying in some other language how to change into english? thanks,

---

## [Strange behaviour](https://www.ruby-forum.com/t/strange-behaviour/153454)

<div class="topic-metadata">

**Author:** [@sigvei](https://www.ruby-forum.com/u/sigvei)\
**Replies:** 4\
**Last updated:** [November 17, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/strange-behaviour/153454 "2008-11-17T15:37:59Z")

</div>

I have the following relationships: Document :has\_many Proposals :has\_many ProposalVersions. This fails: Document.first.proposals.first.proposal\_versions.size =\> 0 But this works: Proposal.find(1).proposal\_ve…

---

## [Database Views in Rails 2.2](https://www.ruby-forum.com/t/database-views-in-rails-2-2/153457)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 17, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/database-views-in-rails-2-2/153457 "2008-11-17T15:22:07Z")

</div>

Hi, we have a problem upgrading from Rails 2.1.2 to Rails 2.2 because of some Database Views (PostgreSQL) we use. rake db:test:clone\_structure is copying the necessary Database Views to the test database. But when I…

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

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