# Rails

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

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

---

## [Ugly First Crack at some Metaprogramming](https://www.ruby-forum.com/t/ugly-first-crack-at-some-metaprogramming/121656)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/ugly-first-crack-at-some-metaprogramming/121656 "2007-11-29T18:32:38Z")

</div>

Hey - this is pretty ugly and probably not even considered Metaprogramming, but have a look/laugh and please suggest a more elegant way: Basically, I just want to loop through an array of variables to look for in th…

---

## [Is mutex lock on mongrel needed for activerecord?](https://www.ruby-forum.com/t/is-mutex-lock-on-mongrel-needed-for-activerecord/121657)

<div class="topic-metadata">

**Author:** [@dusty](https://www.ruby-forum.com/u/dusty)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/is-mutex-lock-on-mongrel-needed-for-activerecord/121657 "2007-11-29T18:09:42Z")

</div>

I’ve seen a bunch of posts in various place about whether or not mongrel needs to lock when doing activerecord queries. I’m talking outside the context of rails here, for example, in a custom mongrel handler. It see…

---

## [OCI/Oracle and too many connections?](https://www.ruby-forum.com/t/oci-oracle-and-too-many-connections/121584)

<div class="topic-metadata">

**Author:** [@scarred\_beyond\_beli](https://www.ruby-forum.com/u/scarred_beyond_beli)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/oci-oracle-and-too-many-connections/121584 "2007-11-29T17:50:24Z")

</div>

Hi, I have a RoR app which uses an existing Oracle database. It has its own user/schema which uses Rails conventions for naming. The data are extracted from another schema into views so that we can use these conventi…

---

## [Prototype ajax request](https://www.ruby-forum.com/t/prototype-ajax-request/121652)

<div class="topic-metadata">

**Author:** [@joan2kus](https://www.ruby-forum.com/u/joan2kus)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/prototype-ajax-request/121652 "2007-11-29T17:39:46Z")

</div>

URL: \<%= f.text\_field :url, {:id=\>‘url’, :size =\> 30} %\> \<%= observe\_field :url, :function =\> ‘onChangeURL()’ %\> This is simplified version of my code. The onchangeurl function was called when the url text field conte…

---

## [How do you CRUD Acts\_As\_Tree data?](https://www.ruby-forum.com/t/how-do-you-crud-acts-as-tree-data/121580)

<div class="topic-metadata">

**Author:** [@mjand](https://www.ruby-forum.com/u/mjand)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/how-do-you-crud-acts-as-tree-data/121580 "2007-11-29T17:35:10Z")

</div>

I’m trying to create a simple category structure using acts\_as\_tree. I’ve been able to create the model, view, controller etc. but how do you create the edit page so you can identify the parent? I mean, what’s the bes…

---

## [Rails version configuration](https://www.ruby-forum.com/t/rails-version-configuration/121575)

<div class="topic-metadata">

**Author:** [@doug3](https://www.ruby-forum.com/u/doug3)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/rails-version-configuration/121575 "2007-11-29T17:29:54Z")

</div>

Greetings, Is there a way to configure my rails application so that it will work with any rails version and not crap out when the hosting company arbitrarily upgrades to the next version of rails? My environment.rb f…

---

## [Render\_404 and return not working but it works if I split it in two lines](https://www.ruby-forum.com/t/render-404-and-return-not-working-but-it-works-if-i-split-it-in-two-lines/121640)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/render-404-and-return-not-working-but-it-works-if-i-split-it-in-two-lines/121640 "2007-11-29T17:10:19Z")

</div>

Following code works @vendor = Vendor.find(:first, :conditions =\> {:status =\> 1, :id =\> params\[:id\]}) unless @vendor render\_404 return end \*\* However this code fails. \* @vendor = Vendor.find(:first, :conditions…

---

## [Identifying changes to activerecord tables from form input](https://www.ruby-forum.com/t/identifying-changes-to-activerecord-tables-from-form-input/121573)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/identifying-changes-to-activerecord-tables-from-form-input/121573 "2007-11-29T17:07:38Z")

</div>

Hey, wonderful Rails people! If I have a person record, and associated (has many) address records, is there any easy way that I can identify which fields have been changed via form, instead of updating the db in a sta…

---

## [Netbeans IDE --- anybody have bad experiences?](https://www.ruby-forum.com/t/netbeans-ide-anybody-have-bad-experiences/121634)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 7\
**Last updated:** [November 29, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/netbeans-ide-anybody-have-bad-experiences/121634 "2007-11-29T17:07:03Z")

</div>

I just looked at Netbeans 6.0 rc as an IDE for ROR. It is actually pretty awesome. works on ubuntu. the auto-complete is really nice. i was on aptana till it starting saying all my files were corrupt. then i went j…

---

## [Memory footprint](https://www.ruby-forum.com/t/memory-footprint/121491)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 5\
**Last updated:** [November 29, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/memory-footprint/121491 "2007-11-29T17:00:37Z")

</div>

Hi Everybody, my rails 1.2.5 application runs in a linux embedded environment with serious memory constraints. I would need to know how small a memory footprint I can hope to get. I run ligthtpd with only one dispatch…

---

## [Create linked image if user logged in, otherwise just show image](https://www.ruby-forum.com/t/create-linked-image-if-user-logged-in-otherwise-just-show-image/121646)

<div class="topic-metadata">

**Author:** [@Simon\_Leonhard](https://www.ruby-forum.com/u/Simon_Leonhard)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/create-linked-image-if-user-logged-in-otherwise-just-show-image/121646 "2007-11-29T16:58:51Z")

</div>

Hey everyone. RoR beginner here, so be gentle please. I’m stuck at a probably silly problem and would appreciate any help I can get. I’m trying to create a linked image to an RSS feed if the user is logged in; if the…

---

## [Resident Memory Size Logging](https://www.ruby-forum.com/t/resident-memory-size-logging/120674)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/resident-memory-size-logging/120674 "2007-11-29T16:56:35Z")

</div>

Hello: Is there a way to get the resident memory size of the rails process in- code using ruby? I’d like to have my application log the size of its own memory. Thank you in advance, Dan

---

## [Rails color picker?](https://www.ruby-forum.com/t/rails-color-picker/121636)

<div class="topic-metadata">

**Author:** [@avramd](https://www.ruby-forum.com/u/avramd)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/rails-color-picker/121636 "2007-11-29T16:45:22Z")

</div>

Hello, Is there a color picker somewhere that is integrated with rails? Specifically a I’m hoping for a full 24-bit picker with sliders, etc, that can interact with rails objects, such as updating a form that rails h…

---

## [Railroad-database problem](https://www.ruby-forum.com/t/railroad-database-problem/121619)

<div class="topic-metadata">

**Author:** [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/railroad-database-problem/121619 "2007-11-29T16:03:07Z")

</div>

Hi all, I am facing with a new type of problem with railroad, explained below I am using an oracle database in my application. In the database.yml file, I am having different schema connections to the same database…

---

## [Need some hints on architecture](https://www.ruby-forum.com/t/need-some-hints-on-architecture/121611)

<div class="topic-metadata">

**Author:** [@elinor](https://www.ruby-forum.com/u/elinor)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/need-some-hints-on-architecture/121611 "2007-11-29T14:59:46Z")

</div>

Hi all, I’ve a simple web app that concerns employee’s and their (work/lunch)shifts. I’ve succesfully included HABTM relations between the two tables and all works fine. But now I want to make a distinction between e…

---

## [Model finder with parameters](https://www.ruby-forum.com/t/model-finder-with-parameters/121629)

<div class="topic-metadata">

**Author:** [@axplains](https://www.ruby-forum.com/u/axplains)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/model-finder-with-parameters/121629 "2007-11-29T14:39:27Z")

</div>

Hi everyone, I would like to refactor my finders in order to put query logic in the model. In a view (contracts/list.rhml), I would have “sidebar” links to select contracts “by category” or “by customer”: \[code=\]\<%#…

---

## [Failed to install acts\_as\_ferret plugin](https://www.ruby-forum.com/t/failed-to-install-acts-as-ferret-plugin/121378)

<div class="topic-metadata">

**Author:** [@lookon](https://www.ruby-forum.com/u/lookon)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/failed-to-install-acts-as-ferret-plugin/121378 "2007-11-29T13:20:49Z")

</div>

After enter in the command line :ruby script/plugin install svn://projects.jkraemer.net/acts\_as\_ferret/trunk/plugin/acts\_as\_ferret under WIndows XP , nothing happened. I wonder why? Thank you for your help.

---

## [Noob Subdirectory Question](https://www.ruby-forum.com/t/noob-subdirectory-question/121566)

<div class="topic-metadata">

**Author:** [@emarthinsen](https://www.ruby-forum.com/u/emarthinsen)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/noob-subdirectory-question/121566 "2007-11-29T13:08:31Z")

</div>

Hi- I’m new to RoR (as probably evidenced by this post). What I want to do is group some controllers beneath a subdirectory. For instance, I want to have a http://www.mysite.com/admin section of the site that has are…

---

## [Ruby Newbie-help regarding strings](https://www.ruby-forum.com/t/ruby-newbie-help-regarding-strings/121624)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/ruby-newbie-help-regarding-strings/121624 "2007-11-29T12:59:00Z")

</div>

Hello All, I am very new to ruby.I have a small doubt. suppose i have a string called ‘add’,I want this to get saved when given in any of the following conditions like “ADD” ‘aDD’ ‘Add’ it should be converted bac…

---

## [Auto\_complete like facebook inbox recipient select](https://www.ruby-forum.com/t/auto-complete-like-facebook-inbox-recipient-select/121622)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 2\
**Last updated:** [November 29, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/auto-complete-like-facebook-inbox-recipient-select/121622 "2007-11-29T12:54:54Z")

</div>

Hi Guys I am building an app that has a messaging system similar to facebook. I want to use the functionality of auto\_complete to select from a list of friends possible recipients. I want to be able to type a name,…

---

## [Validates allow\_nil not working as expected](https://www.ruby-forum.com/t/validates-allow-nil-not-working-as-expected/121560)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [November 29, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/validates-allow-nil-not-working-as-expected/121560 "2007-11-29T12:49:02Z")

</div>

I suspect this just doesn’t work like I’m expecting it too, but if I use :allow\_nil =\> TRUE, validation rules still complain if a form field is submitted empty (w/o using a presence\_of rule). So… validates\_format\_of …

---

## [Undefined method more\_results error when trying to execute a Stored procedure on linux](https://www.ruby-forum.com/t/undefined-method-more-results-error-when-trying-to-execute-a-stored-procedure-on-linux/121623)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/undefined-method-more-results-error-when-trying-to-execute-a-stored-procedure-on-linux/121623 "2007-11-29T12:13:52Z")

</div>

Hi, I am using storepocedures for mysql 5.0 where mysql is installed on windows XP I deployed it on windows I am running successfully after modifying the mysql\_adapter.rb with client\_multi\_session = 65536, and …

---

## [Looking for ROR experts in India](https://www.ruby-forum.com/t/looking-for-ror-experts-in-india/121617)

<div class="topic-metadata">

**Author:** [@Srii](https://www.ruby-forum.com/u/Srii)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 11:31am UTC](https://www.ruby-forum.com/t/looking-for-ror-experts-in-india/121617 "2007-11-29T11:31:07Z")

</div>

Hi Group, I am a recruiter based in Hyderabad, India. I am looking for the following experts - ROR preferably with Java/OOPS background Javascripting/Ajax with strong Java/JSP background Strong PHP, specialized in LA…

---

## [Has\_many\_polymorphs for user owned tags](https://www.ruby-forum.com/t/has-many-polymorphs-for-user-owned-tags/121612)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 10:54am UTC](https://www.ruby-forum.com/t/has-many-polymorphs-for-user-owned-tags/121612 "2007-11-29T10:54:33Z")

</div>

Hi all, I’m trying to extend the tagging functionality of has\_many\_polymorphs to work with user owned tags - ie, putting belongs\_to :user in the Tagging model. So I changed the index in the generated migration, and a…

---

## [Flash Message Problem need solutions](https://www.ruby-forum.com/t/flash-message-problem-need-solutions/121138)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 20\
**Last updated:** [November 29, 2007, 10:11am UTC](https://www.ruby-forum.com/t/flash-message-problem-need-solutions/121138 "2007-11-29T10:11:58Z")

</div>

Hello, I am basically trying to figure out how to show a flash message for my system. I have basically got a code in my controller that copies records, this is the code: def copy @artist\_to\_copy = Artist.find(params\[…

---

## [Overriding rest show route but not delete](https://www.ruby-forum.com/t/overriding-rest-show-route-but-not-delete/121572)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 8:40am UTC](https://www.ruby-forum.com/t/overriding-rest-show-route-but-not-delete/121572 "2007-11-29T08:40:46Z")

</div>

hi, lets say routes.rb has map.resources :foo and I want the show action to have a diffent url, so I add (after the above line) map.foo '/bar/:id', :controller =\> 'foo', :action =\> 'show' this works fine, includin…

---

## [Globalize\_countries conflict](https://www.ruby-forum.com/t/globalize-countries-conflict/84191)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 8:09am UTC](https://www.ruby-forum.com/t/globalize-countries-conflict/84191 "2007-11-29T08:09:00Z")

</div>

Hi, I just installed globalize and the problem is that I have a model ‘Country’ which seems to conflict with globalize’s ‘Globalize::Country’ model. Every time I use ‘Country’ now Rails assumes I mean Globalize::Coun…

---

## [Rake fails; path to sqlite database file problem](https://www.ruby-forum.com/t/rake-fails-path-to-sqlite-database-file-problem/121606)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 8:05am UTC](https://www.ruby-forum.com/t/rake-fails-path-to-sqlite-database-file-problem/121606 "2007-11-29T08:05:07Z")

</div>

Must I create a schema.sql? Given that rails creates the schema when using mySQL, why create schema.sql? I have sqlite3 installed but am unsure about what the database.yml should look like and how the database file …

---

## [AJXA and page relalodin](https://www.ruby-forum.com/t/ajxa-and-page-relalodin/121599)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 0\
**Last updated:** [November 29, 2007, 6:33am UTC](https://www.ruby-forum.com/t/ajxa-and-page-relalodin/121599 "2007-11-29T06:33:12Z")

</div>

Hi All i want a quick easy guide to play with some ajax this. the problem is simply as follows, i have created a form and when the form is successfully created i want to display a message saying “Account is successfu…

---

## [How to integrate Flickr with Rails](https://www.ruby-forum.com/t/how-to-integrate-flickr-with-rails/107816)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 3\
**Last updated:** [November 29, 2007, 6:01am UTC](https://www.ruby-forum.com/t/how-to-integrate-flickr-with-rails/107816 "2007-11-29T06:01:12Z")

</div>

hey guys do you integrate Flick with Rails do you have any tutorials ? – Arun A.

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

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