# Rails

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

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

---

## [Help with Rails Vs Grails benchmark comparison](https://www.ruby-forum.com/t/help-with-rails-vs-grails-benchmark-comparison/90051)

<div class="topic-metadata">

**Author:** [@kate\_rhodes](https://www.ruby-forum.com/u/kate_rhodes)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/help-with-rails-vs-grails-benchmark-comparison/90051 "2007-03-25T19:06:49Z")

</div>

Graeme Rocher (one of the lead Grails guys) has put together a benchmark comparison between a simplistic Rails app and a Grails app. http://docs.codehaus.org/display/GRAILS/Grails+vs+Rails+Benchmark But there’s some w…

---

## [Depend\_on deprecated; what is replacement?](https://www.ruby-forum.com/t/depend-on-deprecated-what-is-replacement/90052)

<div class="topic-metadata">

**Author:** [@JESii](https://www.ruby-forum.com/u/JESii)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/depend-on-deprecated-what-is-replacement/90052 "2007-03-25T18:49:45Z")

</div>

I get the following warning: DEPRECATION WARNING: depend\_on is deprecated and will be removed from Rails 2.0 See http://www.rubyonrails.org/deprecation for details. The referenced page has no information about depend…

---

## [ActiveRecord :dependent problem](https://www.ruby-forum.com/t/activerecord-dependent-problem/90048)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/activerecord-dependent-problem/90048 "2007-03-25T18:21:41Z")

</div>

Hey guys, I have trouble with the ActiveRecord dependent option, I guess it’s a bug in ActiveRecord. I have a superclass called ‘list’ which has to subclasses ‘hard\_list’ and ‘intelligent\_list’. I’m working with sing…

---

## [Suggestions for a masters dissertation](https://www.ruby-forum.com/t/suggestions-for-a-masters-dissertation/89986)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 6\
**Last updated:** [March 25, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/suggestions-for-a-masters-dissertation/89986 "2007-03-25T17:00:25Z")

</div>

I am thinking about ideas for my masters dissertation in computer engineering and I am going to do it about RoR, any ideas please? I don’t know j2ee though so I can’t do a rails/j2ee comparison. thanx in advance Pat

---

## [Help with system call](https://www.ruby-forum.com/t/help-with-system-call/90003)

<div class="topic-metadata">

**Author:** [@Russell\_N](https://www.ruby-forum.com/u/Russell_N)\
**Replies:** 7\
**Last updated:** [March 25, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/help-with-system-call/90003 "2007-03-25T16:19:19Z")

</div>

Lemme start out by begging. I really need help with this one. Any suggestions at all. Now that that’s out of the way… I’m trying to call script/generate from within Rails and having no luck. I’ve tried a couple of dif…

---

## [Attachment\_fu with S3: custom path?](https://www.ruby-forum.com/t/attachment-fu-with-s3-custom-path/90006)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [March 25, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/attachment-fu-with-s3-custom-path/90006 "2007-03-25T15:02:04Z")

</div>

Hi, I recently saw the light and have moved my storage from the server to the wonderful Amazon S3 service. I am also using the equally great attachment\_fu plugin. I would like to store the uploaded files in a path su…

---

## [Simple routing question](https://www.ruby-forum.com/t/simple-routing-question/89998)

<div class="topic-metadata">

**Author:** [@bryanmtl](https://www.ruby-forum.com/u/bryanmtl)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/simple-routing-question/89998 "2007-03-25T14:43:10Z")

</div>

I’m setting up my first real rails app, and I’ve run into the following problem. I have an admin area that now contains many controllers. To keep things clean, i’ve grouped my controllers in an “admin” folder. For ex…

---

## [Session is nil inside model](https://www.ruby-forum.com/t/session-is-nil-inside-model/90018)

<div class="topic-metadata">

**Author:** [@stubbsuk](https://www.ruby-forum.com/u/stubbsuk)\
**Replies:** 3\
**Last updated:** [March 25, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/session-is-nil-inside-model/90018 "2007-03-25T13:50:05Z")

</div>

I’m tring to write a little function to indicate if a user is able to pay an invoice, I have my invoice model with: def canPay? if session\[:user\].id == self.consumer\_id return true; else return false; end end as…

---

## [Autocomplete for the chosen element from autocomplete](https://www.ruby-forum.com/t/autocomplete-for-the-chosen-element-from-autocomplete/88856)

<div class="topic-metadata">

**Author:** [@anydot](https://www.ruby-forum.com/u/anydot)\
**Replies:** 3\
**Last updated:** [March 25, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/autocomplete-for-the-chosen-element-from-autocomplete/88856 "2007-03-25T12:29:57Z")

</div>

Hi, How could I achieve the following - I have autocomplete which is working pretty well, but after select any value from the list, I would like to get in the search box another list of values associated with already …

---

## [Why not giving every link, button etc. tag a unique id attr?](https://www.ruby-forum.com/t/why-not-giving-every-link-button-etc-tag-a-unique-id-attr/89999)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [March 25, 2007, 11:24am UTC](https://www.ruby-forum.com/t/why-not-giving-every-link-button-etc-tag-a-unique-id-attr/89999 "2007-03-25T11:24:17Z")

</div>

Hi all I’m playing around with Selenium IDE for creating automated acceptance tests for my RoR projects (very cool tool by the way). Often it’s the easiest way to pass a HTML-tag ID to Selenium to perform actions suc…

---

## [\[ANN\] Instant Rails 1.7 has been released!](https://www.ruby-forum.com/t/ann-instant-rails-1-7-has-been-released/90031)

<div class="topic-metadata">

**Author:** [@curthibbs](https://www.ruby-forum.com/u/curthibbs)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 8:54am UTC](https://www.ruby-forum.com/t/ann-instant-rails-1-7-has-been-released/90031 "2007-03-25T08:54:31Z")

</div>

Instant Rails 1.7 contains the following major changes: Upgrades Ruby to version 1.8.6 Upgrades Rails to 1.2.3 Upgrades phpMyAdmin to version 2.10.0.2 Many thanks to Jirka Pech who made the phpMyAdmin upgrade possible…

---

## [Member login plugins?](https://www.ruby-forum.com/t/member-login-plugins/89971)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 4:58am UTC](https://www.ruby-forum.com/t/member-login-plugins/89971 "2007-03-25T04:58:55Z")

</div>

Hi, I am just about to develop a new app using rails 1.2 and was wondering what are the best plugins for member accounts and role based authenticaton. In the past I have used acts as authenticated but just just wonde…

---

## [IE6 refuses to allow AJAX requests on page to load](https://www.ruby-forum.com/t/ie6-refuses-to-allow-ajax-requests-on-page-to-load/90026)

<div class="topic-metadata">

**Author:** [@dandiebolt](https://www.ruby-forum.com/u/dandiebolt)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 4:32am UTC](https://www.ruby-forum.com/t/ie6-refuses-to-allow-ajax-requests-on-page-to-load/90026 "2007-03-25T04:32:01Z")

</div>

having developed and tested diligently on Firefox and IE6, I am now not so pleasantly surprised to find that my ror pages are refused by IE6: “Some files can harm your computer. If the file information below looks sus…

---

## [Error While creating an appliation](https://www.ruby-forum.com/t/error-while-creating-an-appliation/88906)

<div class="topic-metadata">

**Author:** [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Replies:** 9\
**Last updated:** [March 25, 2007, 3:29am UTC](https://www.ruby-forum.com/t/error-while-creating-an-appliation/88906 "2007-03-25T03:29:21Z")

</div>

Hi Thanks for faster reply. Iam having an question. I followed the steps in the tutorial to create an application. In doing so everything went fine. But when I ran this command ‘ruby script\\generate scaffold recipe r…

---

## [Select tags and AJAX](https://www.ruby-forum.com/t/select-tags-and-ajax/90016)

<div class="topic-metadata">

**Author:** [@mephtik](https://www.ruby-forum.com/u/mephtik)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 3:07am UTC](https://www.ruby-forum.com/t/select-tags-and-ajax/90016 "2007-03-25T03:07:27Z")

</div>

Here’s my situation. I’ve got a select form that I’m populating with a list of colors. I then have a database with a list of products, and each product has a specific color. Some colors have multiple products (ie. the…

---

## [Collection\_select - how to set selected options?](https://www.ruby-forum.com/t/collection-select-how-to-set-selected-options/81719)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 1:59am UTC](https://www.ruby-forum.com/t/collection-select-how-to-set-selected-options/81719 "2007-03-25T01:59:13Z")

</div>

In a form, I am trying to use collection\_select with multiple=true, like so: collection\_select(:user, :roles, Role.find(:all), ‘id’, ‘name’, {}, :multiple =\> true) %\> My multiple select box is rendered fine, but… I …

---

## [Scalability in RoR ! Please reply ASAP](https://www.ruby-forum.com/t/scalability-in-ror-please-reply-asap/90000)

<div class="topic-metadata">

**Author:** [@Hardik\_Shah](https://www.ruby-forum.com/u/Hardik_Shah)\
**Replies:** 4\
**Last updated:** [March 24, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/scalability-in-ror-please-reply-asap/90000 "2007-03-24T23:59:07Z")

</div>

Hi all, I am right now developing the customized web portal in RoR framework and using MySQL as database. I am facing the problem in terms of no. of users it can support.I am hostong the application on a normal deskt…

---

## [Anyone hosting on APlus? If so, can you help with installati](https://www.ruby-forum.com/t/anyone-hosting-on-aplus-if-so-can-you-help-with-installati/90012)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/anyone-hosting-on-aplus-if-so-can-you-help-with-installati/90012 "2007-03-24T23:35:05Z")

</div>

Hi, I am stuck trying to get rails install on my APlus shared hosting environment. I got as far as getting the gems installed. However, when I try to install the rails I get the following error: gem install rails --i…

---

## [403 Forbidden! can't find index! HELP](https://www.ruby-forum.com/t/403-forbidden-cant-find-index-help/84519)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/403-forbidden-cant-find-index-help/84519 "2007-03-24T23:34:04Z")

</div>

I am installing rails on a hosting server (aplus.net) where I have very limited access (no root access, I’m limited to my /home/ usernames/ dir). They had ruby installed but no rubygems or rails. I got rubygems and ra…

---

## [QueryCache](https://www.ruby-forum.com/t/querycache/90009)

<div class="topic-metadata">

**Author:** [@Jens\_Himmelreich](https://www.ruby-forum.com/u/Jens_Himmelreich)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/querycache/90009 "2007-03-24T22:40:59Z")

</div>

Hi, is someone interested in using the QueryCache? It seams to be an old part of rails. I enable the querycache in the database-specification with a: query\_cache: true and get an exception from ActiveRecord … Conne…

---

## [How to get more informations about an association at runtime](https://www.ruby-forum.com/t/how-to-get-more-informations-about-an-association-at-runtime/89187)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 7\
**Last updated:** [March 24, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/how-to-get-more-informations-about-an-association-at-runtime/89187 "2007-03-24T22:35:35Z")

</div>

Hi all I’m working on a Custom Formbuilder. I want it to create me with a single method call checkboxes for a given HABTM association. My model looks like this: class Member \< ActiveRecord::Base has\_and\_belongs\_to\_…

---

## [Memory leak from a base controller without sessions](https://www.ruby-forum.com/t/memory-leak-from-a-base-controller-without-sessions/84231)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 24, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/memory-leak-from-a-base-controller-without-sessions/84231 "2007-03-24T22:17:57Z")

</div>

I’ve got a controller that I’m using as a check for monit to verify my website is up and functioning. Right now it just is a simple index page that just renders success. It seems that overnight, this controller is lea…

---

## [Rails logger.silence on controller action](https://www.ruby-forum.com/t/rails-logger-silence-on-controller-action/83113)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 24, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/rails-logger-silence-on-controller-action/83113 "2007-03-24T22:15:57Z")

</div>

I’ve got a simple controller which is being hit every minute to monitor the website. I’ve read in a few places, and on this group as well that if you include a logger.silence around the code, it shouldn’t appear in th…

---

## [Help with multiple lists](https://www.ruby-forum.com/t/help-with-multiple-lists/90004)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/help-with-multiple-lists/90004 "2007-03-24T21:53:55Z")

</div>

I have a problem I can’t seem to find an answer to. I have the following relations (contact) 1 == \*(Phone) \*== (Phone Type). (contact) 1 == 1 (Address) I will be constructing an AJAX interface that allows user to ad…

---

## [Dynamic select box form field parameter not being submitted](https://www.ruby-forum.com/t/dynamic-select-box-form-field-parameter-not-being-submitted/89995)

<div class="topic-metadata">

**Author:** [@jeet](https://www.ruby-forum.com/u/jeet)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/dynamic-select-box-form-field-parameter-not-being-submitted/89995 "2007-03-24T21:11:53Z")

</div>

I am trying to create a dynamic select box (contact\_preferences options list) based on a selection made in another select box (user contact\_preference\_opt\_in). I am using form\_for to build the form that has user conta…

---

## [App vs Plugin/Engine - raise error message](https://www.ruby-forum.com/t/app-vs-plugin-engine-raise-error-message/89997)

<div class="topic-metadata">

**Author:** [@Wes\_Hays](https://www.ruby-forum.com/u/Wes_Hays)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/app-vs-plugin-engine-raise-error-message/89997 "2007-03-24T20:33:50Z")

</div>

Hello All I have some code that I was duplicating across applications so I made it a plugin (engine actually). The engine works fine but the only problem is when I raise an error in the before\_destroy method in my mod…

---

## [File\_column exception when file is unexpectedly deleted](https://www.ruby-forum.com/t/file-column-exception-when-file-is-unexpectedly-deleted/89992)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/file-column-exception-when-file-is-unexpectedly-deleted/89992 "2007-03-24T18:40:28Z")

</div>

file\_column does not handle inconsistency between the database and filesystem well. If I define an url\_for\_image\_column like this: url\_for\_image\_column( @ad.images.first, “image”, { :geometry =\> “120x90”, } ) I…

---

## [Undefined method AFTER First load](https://www.ruby-forum.com/t/undefined-method-after-first-load/89961)

<div class="topic-metadata">

**Author:** [@kate\_rhodes](https://www.ruby-forum.com/u/kate_rhodes)\
**Replies:** 1\
**Last updated:** [March 24, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/undefined-method-after-first-load/89961 "2007-03-24T16:53:55Z")

</div>

I have a fairly simple model to which i’ve added a method: def pro? return true end For some reason myModel.pro? works just fine the First time i call it. But when i reload the page i get an undefined method error. …

---

## [Attachment\_fu, width/height of original image](https://www.ruby-forum.com/t/attachment-fu-width-height-of-original-image/89982)

<div class="topic-metadata">

**Author:** [@Jung-joon\_Kim](https://www.ruby-forum.com/u/Jung-joon_Kim)\
**Replies:** 0\
**Last updated:** [March 24, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/attachment-fu-width-height-of-original-image/89982 "2007-03-24T16:46:54Z")

</div>

Hi Q: How can I get height/width of original image (not tumbnail)? I’m using attachment\_fu plugin. (thanks to the author!) model has following options has\_attachment :content\_type =\> :image, :storage =\> :file\_system…

---

## [ActiveRecord suggestion: column options](https://www.ruby-forum.com/t/activerecord-suggestion-column-options/89928)

<div class="topic-metadata">

**Author:** [@candlerb](https://www.ruby-forum.com/u/candlerb)\
**Replies:** 2\
**Last updated:** [March 24, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/activerecord-suggestion-column-options/89928 "2007-03-24T16:22:48Z")

</div>

Hello, I’m using rails-1.2.2 with ActiveRecord-1.15.2. I have a small feature request for ActiveRecord. When creating a table, AR lets you add options to the whole table, but not for individual columns. I would like …

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

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