# Rails

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

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

---

## [Eager Loading with custom :finder\_sql](https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650)

<div class="topic-metadata">

**Author:** [@robertjames](https://www.ruby-forum.com/u/robertjames)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/eager-loading-with-custom-finder-sql/89650 "2007-03-22T13:42:48Z")

</div>

Is there any way to do eager loading when using custom :finder\_sql ?

---

## [Newbie question: Writing my first application](https://www.ruby-forum.com/t/newbie-question-writing-my-first-application/89729)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/newbie-question-writing-my-first-application/89729 "2007-03-22T13:34:47Z")

</div>

Hi all, I’m coming from PHP, were I had to write a lot database backed web applications. Someone pointed me to ruby on rails. I just went through all tutorials I could find and ordered my copy of “Agile Web D. with R…

---

## [Ajax autocomplete for two fields](https://www.ruby-forum.com/t/ajax-autocomplete-for-two-fields/89713)

<div class="topic-metadata">

**Author:** [@moo](https://www.ruby-forum.com/u/moo)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/ajax-autocomplete-for-two-fields/89713 "2007-03-22T13:22:46Z")

</div>

in a form if i have two autocomplete fields in which one depend on other… like for ex…if we select country name…all the states should come …both are autocomplete… please help me in this regards… moyeen.

---

## [Trimming whitespace in my view template](https://www.ruby-forum.com/t/trimming-whitespace-in-my-view-template/89734)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/trimming-whitespace-in-my-view-template/89734 "2007-03-22T12:15:13Z")

</div>

\<% for ... %\> .. \<% end %\> .. .. The above sample ends up giving me double spacing between the elements. I was told that \<% for -%\> will remove them, but it is also adding more tabs in the loop…so my …

---

## [Limiting table to just one row?](https://www.ruby-forum.com/t/limiting-table-to-just-one-row/89536)

<div class="topic-metadata">

**Author:** [@Nathaniel\_Martin](https://www.ruby-forum.com/u/Nathaniel_Martin)\
**Replies:** 11\
**Last updated:** [March 22, 2007, 11:54am UTC](https://www.ruby-forum.com/t/limiting-table-to-just-one-row/89536 "2007-03-22T11:54:06Z")

</div>

I’m new at RoR, so please excuse me if this is a very basic question. I’ve tried some googling, but haven’t found an answer yet. Is there any established, or preferred way to limit a table to have one and only one row…

---

## [Draggable\_element: How to get id of dragged element, AND rec](https://www.ruby-forum.com/t/draggable-element-how-to-get-id-of-dragged-element-and-rec/89730)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 11:48am UTC](https://www.ruby-forum.com/t/draggable-element-how-to-get-id-of-dragged-element-and-rec/89730 "2007-03-22T11:48:05Z")

</div>

Hey :slight\_smile: I’m creating a drag-and-drop tree structure using draggable\_element. I use this code, \<%= draggable\_element(content\_element\_id, :ghosting=\>true, :revert=\>true) %\> \<%= drop\_receiving\_element(conte…

---

## [Method to display the result of find (..) in a view](https://www.ruby-forum.com/t/method-to-display-the-result-of-find-in-a-view/89728)

<div class="topic-metadata">

**Author:** [@jubei](https://www.ruby-forum.com/u/jubei)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 11:03am UTC](https://www.ruby-forum.com/t/method-to-display-the-result-of-find-in-a-view/89728 "2007-03-22T11:03:45Z")

</div>

I’ve been trying to write a method that effectively displays the result of a find() for say… my Customer model. What i’ve come up with is this: The controller My main controller first makes the query via the model c…

---

## [\[ANN\] Release 0.1.9 clusterer, acts\_as\_classifiable, acts\_as](https://www.ruby-forum.com/t/ann-release-0-1-9-clusterer-acts-as-classifiable-acts-as/89726)

<div class="topic-metadata">

**Author:** [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 10:10am UTC](https://www.ruby-forum.com/t/ann-release-0-1-9-clusterer-acts-as-classifiable-acts-as/89726 "2007-03-22T10:10:08Z")

</div>

Hello, If you are interested or use the gem clusterer or any of the plugins acts\_as\_classifiable, acts\_as\_clusterable you may want to check out the release candidate for rel 0.2.0, take a look at http://cuttingthere…

---

## [Ruby Gems used in Rails app implementation?](https://www.ruby-forum.com/t/ruby-gems-used-in-rails-app-implementation/89715)

<div class="topic-metadata">

**Author:** [@conz](https://www.ruby-forum.com/u/conz)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 9:36am UTC](https://www.ruby-forum.com/t/ruby-gems-used-in-rails-app-implementation/89715 "2007-03-22T09:36:57Z")

</div>

Hi, I was wondering, is there an easy to determine which gems were used in the implementation of a Rails 1.1.6 application? At this time, I can perform grep on the controllers and models files. Thanks in advance, -C…

---

## [Active session list](https://www.ruby-forum.com/t/active-session-list/89322)

<div class="topic-metadata">

**Author:** [@bioform](https://www.ruby-forum.com/u/bioform)\
**Replies:** 4\
**Last updated:** [March 22, 2007, 9:16am UTC](https://www.ruby-forum.com/t/active-session-list/89322 "2007-03-22T09:16:55Z")

</div>

Hi all Does anybody know how to get active session list or list of active session ID in RubyOnRails? Thanks

---

## [\`alias\_method\_chain': undefined method \`find' for class \`Act](https://www.ruby-forum.com/t/alias-method-chain-undefined-method-find-for-class-act/89711)

<div class="topic-metadata">

**Author:** [@zin](https://www.ruby-forum.com/u/zin)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 7:54am UTC](https://www.ruby-forum.com/t/alias-method-chain-undefined-method-find-for-class-act/89711 "2007-03-22T07:54:41Z")

</div>

I can’t seem to be able to override the :find method in the model base class, for example, in /lib/usermonitor.rb: module ActiveRecord module UserMonitor def self.included(base) base.class\_eval do alias\_method\_chai…

---

## [Session Expire](https://www.ruby-forum.com/t/session-expire/89709)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 7:52am UTC](https://www.ruby-forum.com/t/session-expire/89709 "2007-03-22T07:52:41Z")

</div>

Hai This may be simple question. but little confision… I want to expire the session after some time.I am not much experience in session handling Regards selva

---

## [Standard Rails library](https://www.ruby-forum.com/t/standard-rails-library/89699)

<div class="topic-metadata">

**Author:** [@jamesarobertson](https://www.ruby-forum.com/u/jamesarobertson)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 7:13am UTC](https://www.ruby-forum.com/t/standard-rails-library/89699 "2007-03-22T07:13:32Z")

</div>

Is there a ‘standard’ (ie. managed) library of Rails plug-ins/ modules/extensions/etc.? (ie. a bit like Perl CPAN or PHP Pear, etc.) What I am currently looking for is an authentication module. I visited http://wiki.r…

---

## [Standard Rails library](https://www.ruby-forum.com/t/standard-rails-library/89698)

<div class="topic-metadata">

**Author:** [@jamesarobertson](https://www.ruby-forum.com/u/jamesarobertson)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 5:56am UTC](https://www.ruby-forum.com/t/standard-rails-library/89698 "2007-03-22T05:56:27Z")

</div>

Is there a ‘standard’ (ie. managed) library of test Rail plug-ins/ modules/extensions/etc.? (ie. a bit like Perl CPAN or PHP Pear, etc.) What I am currently looking for is an authentication module. I visited http://wi…

---

## [StaleObject Merging Example](https://www.ruby-forum.com/t/staleobject-merging-example/88733)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 5:32am UTC](https://www.ruby-forum.com/t/staleobject-merging-example/88733 "2007-03-22T05:32:25Z")

</div>

Does anyone have an example of how they have dealt with StaleObjectErrors caused by having optimistic locking enabled? Ideally I’d like to merge the changes, but I haven’t found much in terms of sample code or documen…

---

## [Vista / Instant Rails (Apache) startup error](https://www.ruby-forum.com/t/vista-instant-rails-apache-startup-error/89534)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 4:48am UTC](https://www.ruby-forum.com/t/vista-instant-rails-apache-startup-error/89534 "2007-03-22T04:48:23Z")

</div>

I have instant rails (1.4) on an XP machine, the contents of which (i.e. C:\\InstantRails and everything under it) I copied over to a new Vista machine. Everything fies up nicely EXCEPT Apache, which fails with: “Erro…

---

## [Rails Developers in Argentina](https://www.ruby-forum.com/t/rails-developers-in-argentina/89691)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 1\
**Last updated:** [March 22, 2007, 4:43am UTC](https://www.ruby-forum.com/t/rails-developers-in-argentina/89691 "2007-03-22T04:43:23Z")

</div>

Are there any Rails developers in Argentina subscribed to this group? I’m looking to hire or at least meet some here. Most of the developers I’ve met so far in Buenos Aires haven’t even heard of it. Eric

---

## [Relative paths for images problem](https://www.ruby-forum.com/t/relative-paths-for-images-problem/89694)

<div class="topic-metadata">

**Author:** [@zavulon](https://www.ruby-forum.com/u/zavulon)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 4:02am UTC](https://www.ruby-forum.com/t/relative-paths-for-images-problem/89694 "2007-03-22T04:02:28Z")

</div>

Hi all, I have a possibly dumb question. In my template, I reference the images folder by “…/images/foo.jpg”. This works with all my pages that are two levels - i.e. this works for example with “…/items/list” page. H…

---

## [Ferret Gem Install fails under Locomotive](https://www.ruby-forum.com/t/ferret-gem-install-fails-under-locomotive/89693)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 3:16am UTC](https://www.ruby-forum.com/t/ferret-gem-install-fails-under-locomotive/89693 "2007-03-22T03:16:12Z")

</div>

Hi all, Hoping somebody can shed some light on this for me, haven’t been able to find any posts anywhere about similar problems. I was trying to install the ferret gem under locomotive. I opened the terminal through…

---

## [About \<\<Agile web development with rails\>\>](https://www.ruby-forum.com/t/about-agile-web-development-with-rails/89688)

<div class="topic-metadata">

**Author:** [@cyjbox](https://www.ruby-forum.com/u/cyjbox)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 2:21am UTC](https://www.ruby-forum.com/t/about-agile-web-development-with-rails/89688 "2007-03-22T02:21:10Z")

</div>

there is a example application “depot” in the book, when you login: http://localhost/login the login form shows,then you enter an error user name or bad pass word,there will show an flash notice “Invalid user/password …

---

## [Howto redisplay same page using captcha?](https://www.ruby-forum.com/t/howto-redisplay-same-page-using-captcha/89687)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 2:16am UTC](https://www.ruby-forum.com/t/howto-redisplay-same-page-using-captcha/89687 "2007-03-22T02:16:09Z")

</div>

hi all, i have implemented a captcha plugin that works very well in my site. however, i would like to keep the same naming convention in my url. how can this be done? basically my url is like mysite.com/account/detail…

---

## [What is the folder tree vendor/rails/... for?](https://www.ruby-forum.com/t/what-is-the-folder-tree-vendor-rails-for/89686)

<div class="topic-metadata">

**Author:** [@nevermoo](https://www.ruby-forum.com/u/nevermoo)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 1:50am UTC](https://www.ruby-forum.com/t/what-is-the-folder-tree-vendor-rails-for/89686 "2007-03-22T01:50:14Z")

</div>

Hi all, I have been trying to work out why a set of functional tests have been failing in a RoR book project I have been following (in Patrick Lenz’s book BYORORWA). I have discovered that in the sample application th…

---

## [Alone in the wilderness? Testing plugins with a database](https://www.ruby-forum.com/t/alone-in-the-wilderness-testing-plugins-with-a-database/89681)

<div class="topic-metadata">

**Author:** [@kpd](https://www.ruby-forum.com/u/kpd)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 12:37am UTC](https://www.ruby-forum.com/t/alone-in-the-wilderness-testing-plugins-with-a-database/89681 "2007-03-22T00:37:03Z")

</div>

Hi, I’m one of the developers of a plugin \[1\] that needs a database for testing. I’ve been having a miserable time keeping the tests for this plugin working between Rails versions. There are a number of guides out th…

---

## [Ruby 1.8.5/6 and Rails 1.2.3 on Mac OS X 10.4.9 (Intel)](https://www.ruby-forum.com/t/ruby-1-8-5-6-and-rails-1-2-3-on-mac-os-x-10-4-9-intel/89531)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/ruby-1-8-5-6-and-rails-1-2-3-on-mac-os-x-10-4-9-intel/89531 "2007-03-21T23:12:54Z")

</div>

I have encountered a very strange error thanks to my unit tests. I am developing an application on a MacBook Pro running Mac OS X 10.4.9, having installed Ruby, Rails, RubyGems, Mongrel, MySQL, and Subversion based on…

---

## [Help with custom FormBuilder](https://www.ruby-forum.com/t/help-with-custom-formbuilder/89520)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 5\
**Last updated:** [March 21, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/help-with-custom-formbuilder/89520 "2007-03-21T23:03:54Z")

</div>

Hi all I’m working on a custom FormBuilder that should be able to handle habtm and has\_many relationships with just one single method call, similar to the existing text\_field, text\_area etc. methods. My code in a vie…

---

## [REST, Ajax, IE, Apache Proxy issue](https://www.ruby-forum.com/t/rest-ajax-ie-apache-proxy-issue/89659)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/rest-ajax-ie-apache-proxy-issue/89659 "2007-03-21T22:51:50Z")

</div>

I’m having a proxy issue with Apache 2.2 when using IE on a Ajax REST link. When I try: link\_to\_remote(“my\_link”, :url =\> {my\_candidates\_path(@candidate)}, {:method =\> :delete}) it works fine in FF, Opera and even I…

---

## [Separate Read and Write Database](https://www.ruby-forum.com/t/separate-read-and-write-database/96137)

<div class="topic-metadata">

**Author:** [@tvollmer](https://www.ruby-forum.com/u/tvollmer)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/separate-read-and-write-database/96137 "2007-03-21T22:43:41Z")

</div>

Hello, I need to access an mirrored database with one read and one write cluster. Is there a way to tell a model to use two connections? So that all updates etc go to the write database and all read from the read one? …

---

## [\[Rails\]Uploading file](https://www.ruby-forum.com/t/rails-uploading-file/89591)

<div class="topic-metadata">

**Author:** [@Kushan\_J](https://www.ruby-forum.com/u/Kushan_J)\
**Replies:** 10\
**Last updated:** [March 21, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/rails-uploading-file/89591 "2007-03-21T22:37:19Z")

</div>

Hi guys is there anyone who knows how to upload files? can u give me the required codings? Thx Regards Kushan

---

## [Removing "is invalid" msgs in validates\_associated](https://www.ruby-forum.com/t/removing-is-invalid-msgs-in-validates-associated/89653)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/removing-is-invalid-msgs-in-validates-associated/89653 "2007-03-21T22:23:14Z")

</div>

All, When using validates\_associated to cause cascading validation from my parent AR class into it’s children, by default a “\_\_\_\_\_ is invalid” message is added to the errors collection for the parent for each child o…

---

## [\[ANN\] YATL (Yet Another TumbleLog)](https://www.ruby-forum.com/t/ann-yatl-yet-another-tumblelog/89508)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/ann-yatl-yet-another-tumblelog/89508 "2007-03-21T21:49:39Z")

</div>

Hey all… I’m going to be starting a (mostly) Ruby/Rails Tumblelog… if anyone’s interested, head over to technodolt.tumblr.com Hope someone finds it useful.

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

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