# Rails

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

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

---

## [Suppressing updated\_at from being updated](https://www.ruby-forum.com/t/suppressing-updated-at-from-being-updated/123983)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 2:19am UTC](https://www.ruby-forum.com/t/suppressing-updated-at-from-being-updated/123983 "2007-12-23T02:19:00Z")

</div>

This seems like blasphemy but their is a situation where I do not want updated\_at to be updated on update… I know I know… but is their a way? – John K. removed\_email\_address@domain.invalid Blog: http://www.kopanas.…

---

## [Backgroundrb Question](https://www.ruby-forum.com/t/backgroundrb-question/123970)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 1\
**Last updated:** [December 23, 2007, 2:15am UTC](https://www.ruby-forum.com/t/backgroundrb-question/123970 "2007-12-23T02:15:29Z")

</div>

If I have a worker and everything set up and I call: MiddleMan.ask\_status(:worker =\> :foo\_worker) MiddleMan.ask\_status(:worker =\> :foo\_worker) MiddleMan.ask\_status(:worker =\> :foo\_worker) three times in quick success…

---

## [Problem with form\_remote\_tag and hidden fields](https://www.ruby-forum.com/t/problem-with-form-remote-tag-and-hidden-fields/123893)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 2\
**Last updated:** [December 23, 2007, 12:46am UTC](https://www.ruby-forum.com/t/problem-with-form-remote-tag-and-hidden-fields/123893 "2007-12-23T00:46:40Z")

</div>

I’m using form\_remote\_tag to generate a remote form that contains nothing but a hidden\_field\_tag and a submit\_tag. The form appears to be generated correctly (I see the tag and the field with type=“hidden” containe…

---

## [Auth\_generator 2.0.1 on the way](https://www.ruby-forum.com/t/auth-generator-2-0-1-on-the-way/65595)

<div class="topic-metadata">

**Author:** [@Fabien\_P](https://www.ruby-forum.com/u/Fabien_P)\
**Replies:** 3\
**Last updated:** [December 23, 2007, 12:02am UTC](https://www.ruby-forum.com/t/auth-generator-2-0-1-on-the-way/65595 "2007-12-23T00:02:09Z")

</div>

Dear rails users, I’ve released a 2.0.1 version of the auth\_generator. The auth\_generator offers an admin interface as well as other features like gravatar support, theme support, a group like support (we call it dom…

---

## [Memory leak stomping](https://www.ruby-forum.com/t/memory-leak-stomping/123928)

<div class="topic-metadata">

**Author:** [@luisS\_syndeomedia](https://www.ruby-forum.com/u/luisS_syndeomedia)\
**Replies:** 2\
**Last updated:** [December 22, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/memory-leak-stomping/123928 "2007-12-22T23:58:35Z")

</div>

I’m looking for tips on how to stomp memory leaks, as I haven’t a clue how to do it properly. I have a very young Rails 2.0.2 application that jumps from 180mb total usage to 510mb total usage in about 60-90mins. I tr…

---

## [Engines 2ish / Rails 2.0.1](https://www.ruby-forum.com/t/engines-2ish-rails-2-0-1/123113)

<div class="topic-metadata">

**Author:** [@Dylan\_S](https://www.ruby-forum.com/u/Dylan_S)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/engines-2ish-rails-2-0-1/123113 "2007-12-22T22:36:37Z")

</div>

This is on an app that successfully runs Engines 1.2, and Rails 1.2.6… but ported to Engines 2.0.0-RC1, and Rails 2.0.1. Added the engines boot.rb line to environment.rb after the existing boot require. The engines i…

---

## [Mongrel crashing when using gd2 with an uploaded file](https://www.ruby-forum.com/t/mongrel-crashing-when-using-gd2-with-an-uploaded-file/123967)

<div class="topic-metadata">

**Author:** [@mechu](https://www.ruby-forum.com/u/mechu)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/mongrel-crashing-when-using-gd2-with-an-uploaded-file/123967 "2007-12-22T20:42:16Z")

</div>

using GD2 graphic library, this code @image = Image.load(@params\[:image\].read) works one time, and crashes the server the second time. usually the mongrel window shows this error message: C:/INSTAN~1/ruby/lib/ruby/ge…

---

## [Possible to restrict a helper to a view?](https://www.ruby-forum.com/t/possible-to-restrict-a-helper-to-a-view/123843)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 4\
**Last updated:** [December 22, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/possible-to-restrict-a-helper-to-a-view/123843 "2007-12-22T20:09:34Z")

</div>

Right now I have two controllers: courses\_controller.rb events\_controller.rb They each, of course, have their own helpers: courses\_helper.rb events\_helper.rb Is it possible to create a helper method with the same n…

---

## [ActiveRecords Eager Loading](https://www.ruby-forum.com/t/activerecords-eager-loading/123787)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/activerecords-eager-loading/123787 "2007-12-22T18:18:08Z")

</div>

Hi, I am doing an eager loading in ruby on rails using below statement Article.find(:all, :include =\> \[:asset, :vote\], :conditions=\>"assets.parent\_id is null", :order=\>"stat\_final\_ranking de…

---

## [\[ANN\] bj-0.0.3](https://www.ruby-forum.com/t/ann-bj-0-0-3/123956)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/ann-bj-0-0-3/123956 "2007-12-22T17:46:06Z")

</div>

NAME bj SYNOPSIS bj (migration\_code|generate\_migration|migrate|setup|plugin|run| submit|list|set|config|pid) \[options\]+ DESCRIPTION Overview Backgroundjob (Bj) is a simple to use background priority queue for ra…

---

## [RDoc and documenting model attributes?](https://www.ruby-forum.com/t/rdoc-and-documenting-model-attributes/123950)

<div class="topic-metadata">

**Author:** [@Bryan\_Field-Elliot](https://www.ruby-forum.com/u/Bryan_Field-Elliot)\
**Replies:** 1\
**Last updated:** [December 22, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/rdoc-and-documenting-model-attributes/123950 "2007-12-22T17:13:19Z")

</div>

I’d like to “rdoc” my rails application, and have rdoc also pick up the model attributes (i.e. the columns in my database tables), with the ability for me to comment them as well (i.e. "what is this column for?). Is t…

---

## [Text folder](https://www.ruby-forum.com/t/text-folder/123952)

<div class="topic-metadata">

**Author:** [@joviyach](https://www.ruby-forum.com/u/joviyach)\
**Replies:** 1\
**Last updated:** [December 22, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/text-folder/123952 "2007-12-22T16:36:58Z")

</div>

Hi, beginner tutorials all tell you to make text files, fine. But none tell you which folder to put them in. Can any body answer this simple query?

---

## [Quick question about changing attributes on date?](https://www.ruby-forum.com/t/quick-question-about-changing-attributes-on-date/123947)

<div class="topic-metadata">

**Author:** [@dreamer](https://www.ruby-forum.com/u/dreamer)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/quick-question-about-changing-attributes-on-date/123947 "2007-12-22T16:05:28Z")

</div>

Hi! I have set up a simple ‘ideas’ engine for my CMS where users accept an idea and then have 14 days to do it. I have set all this up and it even informs users how long they have left but i was wondering what the bes…

---

## [Formatting looping display from mySQL table](https://www.ruby-forum.com/t/formatting-looping-display-from-mysql-table/123944)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/formatting-looping-display-from-mysql-table/123944 "2007-12-22T13:30:39Z")

</div>

Hi I’m a noob to RoR. I have everything setup but can’t figure out to get the list display as I would like. I’m sure this is very simple stuff. I just haven’t figured it out yet :frowning: I hope someone can point me…

---

## [How do the AR singleton methods actually do there magic?](https://www.ruby-forum.com/t/how-do-the-ar-singleton-methods-actually-do-there-magic/123923)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 2\
**Last updated:** [December 22, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/how-do-the-ar-singleton-methods-actually-do-there-magic/123923 "2007-12-22T13:17:34Z")

</div>

Hey all, Ive been looking at the AR source code and wondering something. There is heavy use of (for example) class Base class \<\< self #Â definitions end end Now, I can see that this is how we get our nice syntax …

---

## [Please help me DRY my script](https://www.ruby-forum.com/t/please-help-me-dry-my-script/123945)

<div class="topic-metadata">

**Author:** [@dreamer](https://www.ruby-forum.com/u/dreamer)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/please-help-me-dry-my-script/123945 "2007-12-22T13:08:11Z")

</div>

Hi there guys, I am struggling with a script for a number of reasons. Firstly it is really ugly… i mean REALLY ugly. Strangely it does not display properly in Internet Explorer, and i don’t know why, the JavaScript do…

---

## [Validation and Re-display with Ajax](https://www.ruby-forum.com/t/validation-and-re-display-with-ajax/123941)

<div class="topic-metadata">

**Author:** [@rajasaur](https://www.ruby-forum.com/u/rajasaur)\
**Replies:** 1\
**Last updated:** [December 22, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/validation-and-re-display-with-ajax/123941 "2007-12-22T12:07:05Z")

</div>

This might be a simple question but Ive had to work around it in both Rails and PHP. Wondering if there is a standard way to do this. I have a form where you have a Department Dropdown and associated Activities for …

---

## [Age Verify](https://www.ruby-forum.com/t/age-verify/123842)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 19\
**Last updated:** [December 22, 2007, 11:49am UTC](https://www.ruby-forum.com/t/age-verify/123842 "2007-12-22T11:49:37Z")

</div>

Is this the best way to do this? class ApplicationController \< ActionController::Base before\_filter :adult? def adult? session\[:age\] == true end def adult session\[:age\] = true redirect\_to :back end end In view…

---

## [Overriding restful routes](https://www.ruby-forum.com/t/overriding-restful-routes/123850)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 7\
**Last updated:** [December 22, 2007, 11:35am UTC](https://www.ruby-forum.com/t/overriding-restful-routes/123850 "2007-12-22T11:35:35Z")

</div>

Hi! i got those 2 routes: map.preferences ‘/preferences’, :controller =\> ‘preferences’, :action =\> ‘new’, :requirements =\> { :method =\> :get } map.resource :preferences what i want to do is: if user type address /…

---

## [One model, several relations to another model](https://www.ruby-forum.com/t/one-model-several-relations-to-another-model/123939)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [December 22, 2007, 11:23am UTC](https://www.ruby-forum.com/t/one-model-several-relations-to-another-model/123939 "2007-12-22T11:23:54Z")

</div>

Hi all, I don’t know a better title for my question, sorry about that. The problem I’m having is that I’ve got no clue how to do this: Table issues: Column created\_by Column closed\_by Both of those columns will hol…

---

## [Rails 2 & Profiler](https://www.ruby-forum.com/t/rails-2-profiler/123848)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 11:18am UTC](https://www.ruby-forum.com/t/rails-2-profiler/123848 "2007-12-22T11:18:38Z")

</div>

So the new profiler in Rails 2.0 looks great - except I can’t figure out how to use the damn thing with my application. I have two unique things that might be preventing me from enjoying the profiler My app require…

---

## [Action Web Service and rails 2.0](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 4\
**Last updated:** [December 22, 2007, 11:18am UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890 "2007-12-22T11:18:38Z")

</div>

Hi, Just thought I’d share what we did to get action web service to go on rails 2.0 Fred

---

## [Routes doing wrong URL parsing with Ruby 1.8.5, works with 1.8.6 (routing trouble with controllers](https://www.ruby-forum.com/t/routes-doing-wrong-url-parsing-with-ruby-1-8-5-works-with-1-8-6-routing-trouble-with-controllers/123905)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal\_Rojas](https://www.ruby-forum.com/u/AnSSS_bal_Rojas)\
**Replies:** 1\
**Last updated:** [December 22, 2007, 10:24am UTC](https://www.ruby-forum.com/t/routes-doing-wrong-url-parsing-with-ruby-1-8-5-works-with-1-8-6-routing-trouble-with-controllers/123905 "2007-12-22T10:24:46Z")

</div>

Hello, We had a problem with a URL being parsed wrong by the routing module of Ruby on Rails for the controllers stored in a folder: admin/ Instead of having Parameters: {“action”=\>“update\_options”, “controller”=\>“ad…

---

## [Using Models as Join Tables and/or Self Referential Joins?](https://www.ruby-forum.com/t/using-models-as-join-tables-and-or-self-referential-joins/123621)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 18\
**Last updated:** [December 22, 2007, 10:24am UTC](https://www.ruby-forum.com/t/using-models-as-join-tables-and-or-self-referential-joins/123621 "2007-12-22T10:24:11Z")

</div>

Given a User model, I would like to describe a relationship between two users and add additional information about the connection. For example, user A and B msg’d each other on X date, and are Y miles apart. In the …

---

## [Help with DB migration file](https://www.ruby-forum.com/t/help-with-db-migration-file/123932)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 4\
**Last updated:** [December 22, 2007, 10:14am UTC](https://www.ruby-forum.com/t/help-with-db-migration-file/123932 "2007-12-22T10:14:14Z")

</div>

HI Every body, I have 4 Migration file name like : 001\_create\_table\_users.rb 002\_create\_table\_profiles.rb 003\_create\_table\_messages.rb 004\_create\_table\_replies.rb Here I want to run the third migration file directl…

---

## [Absolute beginner - simple question!](https://www.ruby-forum.com/t/absolute-beginner-simple-question/123934)

<div class="topic-metadata">

**Author:** [@reback](https://www.ruby-forum.com/u/reback)\
**Replies:** 5\
**Last updated:** [December 22, 2007, 9:49am UTC](https://www.ruby-forum.com/t/absolute-beginner-simple-question/123934 "2007-12-22T09:49:40Z")

</div>

Hi, just followed this tutorial http://media.rubyonrails.org/video/rails\_take2\_with\_sound.mov, and loved it. Now have the skeleton of a blog engine, and starting to customize it and make it my own. If I show you what …

---

## [Drop down list from a scaffold](https://www.ruby-forum.com/t/drop-down-list-from-a-scaffold/123938)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [December 22, 2007, 9:31am UTC](https://www.ruby-forum.com/t/drop-down-list-from-a-scaffold/123938 "2007-12-22T09:31:32Z")

</div>

I have a largely-default scaffold at \<http://strawr.googlecode.com/svn/ trunk/app/views/feeds/show.rhtml\> to which I’d like to add a drop down list. The join table between “categories” and “feeds” is “tags” (for want …

---

## [Quoting rails/ ruby in an academic paper](https://www.ruby-forum.com/t/quoting-rails-ruby-in-an-academic-paper/123766)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 1\
**Last updated:** [December 22, 2007, 6:35am UTC](https://www.ruby-forum.com/t/quoting-rails-ruby-in-an-academic-paper/123766 "2007-12-22T06:35:40Z")

</div>

Hey guys! I have been using rails for developing and application as part of a masters degree work and its time to write a thesis(ouch!!) I was wondering are there Academic articles i can quote? Where can i get the r…

---

## [Search across associations](https://www.ruby-forum.com/t/search-across-associations/123920)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 3\
**Last updated:** [December 22, 2007, 4:29am UTC](https://www.ruby-forum.com/t/search-across-associations/123920 "2007-12-22T04:29:33Z")

</div>

Hello: I’m pretty new to mysql and need to build a search function that searches fields in a ‘case’ object as well as fields in ‘person’ objects that reference each ‘case’ object. The function must return a single ar…

---

## [Find with dynamic attribute name](https://www.ruby-forum.com/t/find-with-dynamic-attribute-name/123921)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 5\
**Last updated:** [December 22, 2007, 3:16am UTC](https://www.ruby-forum.com/t/find-with-dynamic-attribute-name/123921 "2007-12-22T03:16:49Z")

</div>

The model Teacher has attributes of :name, :period1, :period2, :period3 In a part of the view I am iterating with an “upto” clause and have made an instance variable named “hold\_period” that has a strings like “peri…

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

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