# Rails

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

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

---

## [Need some assistance with routing -- 'resource' using natural key](https://www.ruby-forum.com/t/need-some-assistance-with-routing-resource-using-natural-key/138021)

<div class="topic-metadata">

**Author:** [@Isak\_H](https://www.ruby-forum.com/u/Isak_H)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/need-some-assistance-with-routing-resource-using-natural-key/138021 "2008-05-19T18:16:20Z")

</div>

I want to create a resource, let’s say ‘cars’, which are accessed by license\_number rather than id. The column in question is guaranteed to be unique and unchanging (and no, it’s not actually a car table). Best way t…

---

## [REST urls and Authenticity Token](https://www.ruby-forum.com/t/rest-urls-and-authenticity-token/138001)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 4\
**Last updated:** [May 19, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/rest-urls-and-authenticity-token/138001 "2008-05-19T18:06:49Z")

</div>

Hi, I have a few questions regarding REST and the Authenticity Token. I’m using a RESTful aproach for my small project and everything worked fine untill I wanted to destroy a record. Lets say we have a listing of fo…

---

## [Dev location for non-bundled ActiveRecord adapters?](https://www.ruby-forum.com/t/dev-location-for-non-bundled-activerecord-adapters/136351)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/dev-location-for-non-bundled-activerecord-adapters/136351 "2008-05-19T17:15:11Z")

</div>

I am beginning a Rails project where Oracle has been mandated. I was curious to look at the Oracle ActiveRecord adapter code, read about the bugs, etc. I know it was “unbundled” from Rails 2.0, but where is the develo…

---

## [\[ANN\] RubyOnRails workshops in the East Midlands, UK](https://www.ruby-forum.com/t/ann-rubyonrails-workshops-in-the-east-midlands-uk/138030)

<div class="topic-metadata">

**Author:** [@krisleech](https://www.ruby-forum.com/u/krisleech)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/ann-rubyonrails-workshops-in-the-east-midlands-uk/138030 "2008-05-19T17:07:02Z")

</div>

Until now, RubyOnRails training, courses and workshops have been few and far between in the UK and pretty much exclusive to London. KickStart Events are bringing knowledge and expertise to the Midlands by launching th…

---

## [Complex pagination issue](https://www.ruby-forum.com/t/complex-pagination-issue/137975)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/complex-pagination-issue/137975 "2008-05-19T16:49:40Z")

</div>

I wonder if anyone can give me some direction. I’m trying to figure out how to handle pagination when I have a very complex way of building up a collection of objects. I’ve used the old classic pagination before, and …

---

## [How to pass an array IN via GET?](https://www.ruby-forum.com/t/how-to-pass-an-array-in-via-get/137987)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/how-to-pass-an-array-in-via-get/137987 "2008-05-19T16:39:40Z")

</div>

Howdy. I’m not sure what the right way to do this is. I basically need to pass an array in via GET to my controller action. For a little background, here’s what’s going on from the user’s perspective: User clicks s…

---

## [Rendering data in tables](https://www.ruby-forum.com/t/rendering-data-in-tables/137928)

<div class="topic-metadata">

**Author:** [@sai](https://www.ruby-forum.com/u/sai)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/rendering-data-in-tables/137928 "2008-05-19T16:36:43Z")

</div>

Hello all, I am new to Rails. I don’t know whether it is possible are not. In my application, I need get data from one table , then arrange these data in table in textfield, then I need to edit data in all rows in s…

---

## [P2P facility or plugin?](https://www.ruby-forum.com/t/p2p-facility-or-plugin/137945)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 4\
**Last updated:** [May 19, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/p2p-facility-or-plugin/137945 "2008-05-19T16:31:56Z")

</div>

Hi you all, is there any plugin or extension to create P2P applications with Rails? Such as JXTA for Java? Thanks.

---

## [Call\_backs, session data, controllers, oh my](https://www.ruby-forum.com/t/call-backs-session-data-controllers-oh-my/138023)

<div class="topic-metadata">

**Author:** [@predhme](https://www.ruby-forum.com/u/predhme)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/call-backs-session-data-controllers-oh-my/138023 "2008-05-19T16:28:23Z")

</div>

I have three models… User Log Items Requests The relationships are built so that a user can have many requests but a request belongs to one user. A request has many log items and a log item belongs to one request. …

---

## [Non-standard joins for an associated model](https://www.ruby-forum.com/t/non-standard-joins-for-an-associated-model/137552)

<div class="topic-metadata">

**Author:** [@Avishai](https://www.ruby-forum.com/u/Avishai)\
**Replies:** 3\
**Last updated:** [May 19, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/non-standard-joins-for-an-associated-model/137552 "2008-05-19T16:15:30Z")

</div>

Hi, I have two models, Place and Region. This seems like a good place to have a composite primary key, but seems that Rails doesnt support it. class Place belongs\_to :region … end class Region has\_many :places … …

---

## [What could be causing my pack of Mongrels to get so fat?](https://www.ruby-forum.com/t/what-could-be-causing-my-pack-of-mongrels-to-get-so-fat/137983)

<div class="topic-metadata">

**Author:** [@Morgan\_G](https://www.ruby-forum.com/u/Morgan_G)\
**Replies:** 14\
**Last updated:** [May 19, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/what-could-be-causing-my-pack-of-mongrels-to-get-so-fat/137983 "2008-05-19T15:32:18Z")

</div>

I have 15 mongrels running on one machine which come to life at about 35M. I found one source of their growth to be a cache mechanism which set class variables, never expiring them, causing each Mongrel to build it’s …

---

## [Destroy / delete with optimistic locking](https://www.ruby-forum.com/t/destroy-delete-with-optimistic-locking/138019)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/destroy-delete-with-optimistic-locking/138019 "2008-05-19T15:26:23Z")

</div>

Hi, Some of my models use optimistic locking, but it doesn’t change the SQL delete command. What I get is just: DELETE FROM things WHERE id = 62 Can I do anything so that the lock version also appears in this query …

---

## [Autocomplete does nothing](https://www.ruby-forum.com/t/autocomplete-does-nothing/138012)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/autocomplete-does-nothing/138012 "2008-05-19T15:21:40Z")

</div>

hi… I use auto\_complete… put this in my controllerBestemming: auto\_complete\_for :bestemming, :naam This works fine… But when i make a action in controllerBestemming, below…it does nothing… def auto\_complete\_for\_be…

---

## [Webservice problem?](https://www.ruby-forum.com/t/webservice-problem/196683)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/webservice-problem/196683 "2008-05-19T15:03:22Z")

</div>

Hi All, I am creating one web service in ror.It’s working fine but now i wanna make a method in webservice in which i want to pass hash as parameter. But i don’t have any idea how to do this. like api\_method :get\_v…

---

## [How to fetch a block provided by content\_for in a helper?](https://www.ruby-forum.com/t/how-to-fetch-a-block-provided-by-content-for-in-a-helper/138008)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/how-to-fetch-a-block-provided-by-content-for-in-a-helper/138008 "2008-05-19T13:38:07Z")

</div>

Hi, I got a title\_tag helper that renders default page title or title provided by content\_for block, if such block is present. Currently I call this method like this: “title\_tag(yield(:title))”. Is it possible to fet…

---

## [Problem creating table in database](https://www.ruby-forum.com/t/problem-creating-table-in-database/137953)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/problem-creating-table-in-database/137953 "2008-05-19T13:22:43Z")

</div>

I manually deleted a table in my database through MySQL administrator as well as the db/migrate/foo file that corresponded with it. Now when I try to recreate this table through the terminal I run: ruby/script/genera…

---

## [Cleanest syntax for form partial?](https://www.ruby-forum.com/t/cleanest-syntax-for-form-partial/137843)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/cleanest-syntax-for-form-partial/137843 "2008-05-19T13:16:10Z")

</div>

When I’m in a form block and am including a partial, I use: \<%= render :partial =\> ‘form’, :locals =\> {:f =\> f} %\> Is there a cleaner way to write this? Something new in Rails 2 maybe? Michael

---

## [Combine old migrations?](https://www.ruby-forum.com/t/combine-old-migrations/137765)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 12\
**Last updated:** [May 19, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/combine-old-migrations/137765 "2008-05-19T13:14:23Z")

</div>

How do I take, say, 20 of my older migrations and wrap them up into only a single one in order to clean up my directory? Thanks!

---

## [Passing parameters with RESTful urls](https://www.ruby-forum.com/t/passing-parameters-with-restful-urls/136704)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 10\
**Last updated:** [May 19, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/passing-parameters-with-restful-urls/136704 "2008-05-19T13:12:02Z")

</div>

Hi, I’m using RESTful urls for a person model, such as edit\_person\_path and new\_person\_path. The problem I am having is that I want to pass some parameters with some of these urls: I want to pass the current person i…

---

## [XHTML vs. HTML4](https://www.ruby-forum.com/t/xhtml-vs-html4/137976)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/xhtml-vs-html4/137976 "2008-05-19T12:38:17Z")

</div>

I was asked today about tag helpers automatically outputting in XHTML and if there was a setting to make them not do this. The reason? The web developer prefers HTML4 vs XHTML. So, is there a Rails setting for this o…

---

## [\[ANN\] RailsRestarter v 0.0.1 version "slow monkey"](https://www.ruby-forum.com/t/ann-railsrestarter-v-0-0-1-version-slow-monkey/137761)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/ann-railsrestarter-v-0-0-1-version-slow-monkey/137761 "2008-05-19T12:33:33Z")

</div>

Don’t know if something like this exists already, but thought I’d advertise my script :slight\_smile: Introduction Rails is slow. Rails in development mode on old computers is WAY slow. There is hope, however. Just ru…

---

## [Changed to will\_paginate](https://www.ruby-forum.com/t/changed-to-will-paginate/138000)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 11:49am UTC](https://www.ruby-forum.com/t/changed-to-will-paginate/138000 "2008-05-19T11:49:37Z")

</div>

Hi Till now we used the rails pagination.But now onwards shifting to will\_paginate The code I use currently is as below .This is with the help of find\_where pluggin…A fantastic pluggin which we still want to use…I w…

---

## [Observer Form](https://www.ruby-forum.com/t/observer-form/137993)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 11:47am UTC](https://www.ruby-forum.com/t/observer-form/137993 "2008-05-19T11:47:55Z")

</div>

I have a form observer wich posts back a form correctly, however, i need to know which item caused the form observer to trigger and what the value of that field is. At the moment i get the whole form back but dont kn…

---

## [Smarter Eager Loading?](https://www.ruby-forum.com/t/smarter-eager-loading/137969)

<div class="topic-metadata">

**Author:** [@normelton](https://www.ruby-forum.com/u/normelton)\
**Replies:** 2\
**Last updated:** [May 19, 2008, 9:54am UTC](https://www.ruby-forum.com/t/smarter-eager-loading/137969 "2008-05-19T09:54:45Z")

</div>

Question… if i’ve got a one-to-one relationship between Assets and Tags (simple example), and I do: a = Asset.find 1, :include =\> :tag I can do “a.tag” without hitting the database again. But “a.tag.asset” instantiat…

---

## [Sending newsletters with Rails](https://www.ruby-forum.com/t/sending-newsletters-with-rails/137981)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [May 19, 2008, 8:50am UTC](https://www.ruby-forum.com/t/sending-newsletters-with-rails/137981 "2008-05-19T08:50:38Z")

</div>

Hi, I’m using ARMailer to send emails, but I still need to iterate over recepients and call deliver\_email method for each recepient. It works fine in production with small number of recepients, but if I had 10000 of …

---

## [Errors about aggregation](https://www.ruby-forum.com/t/errors-about-aggregation/137788)

<div class="topic-metadata">

**Author:** [@stone](https://www.ruby-forum.com/u/stone)\
**Replies:** 15\
**Last updated:** [May 19, 2008, 8:21am UTC](https://www.ruby-forum.com/t/errors-about-aggregation/137788 "2008-05-19T08:21:14Z")

</div>

Hey there i dont quite know the change of rails 2.0 , but according to Agile Development With Rails, aggregation seem not working…i now create a class like this class Temp attr\_reader :n, :p def initialize(n,p) …

---

## [Backgroundrb problem](https://www.ruby-forum.com/t/backgroundrb-problem/136971)

<div class="topic-metadata">

**Author:** [@ahead](https://www.ruby-forum.com/u/ahead)\
**Replies:** 1\
**Last updated:** [May 19, 2008, 7:40am UTC](https://www.ruby-forum.com/t/backgroundrb-problem/136971 "2008-05-19T07:40:42Z")

</div>

I have this worker: class ImportWorker \< BackgrounDRb::MetaWorker set\_worker\_name :import\_worker def create(args = nil) end def process(value) logger.info("Hello from process, value is " + value) end end When I …

---

## [When should you restart a ruby server?](https://www.ruby-forum.com/t/when-should-you-restart-a-ruby-server/137926)

<div class="topic-metadata">

**Author:** [@soa\_dias](https://www.ruby-forum.com/u/soa_dias)\
**Replies:** 9\
**Last updated:** [May 19, 2008, 7:17am UTC](https://www.ruby-forum.com/t/when-should-you-restart-a-ruby-server/137926 "2008-05-19T07:17:12Z")

</div>

Hello everyone, While walking through AWDWR, Task D: Add a Dash of AJAX, I was initially unable to let the AJAX magic work. Hitting the Add to Cart button doesn’t yield to any output on its own; I had to manually ref…

---

## [Auto url formatting?](https://www.ruby-forum.com/t/auto-url-formatting/137862)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 6\
**Last updated:** [May 19, 2008, 4:10am UTC](https://www.ruby-forum.com/t/auto-url-formatting/137862 "2008-05-19T04:10:36Z")

</div>

Hello! I’m having a bear finding this, so I thought I’d just ask… If I want to capture “website” as a user field (i.e. in a contacts database)… is there an easy, automatic way to properly format it for a link\_to tag …

---

## [How to delete join table?](https://www.ruby-forum.com/t/how-to-delete-join-table/137966)

<div class="topic-metadata">

**Author:** [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Replies:** 7\
**Last updated:** [May 19, 2008, 3:25am UTC](https://www.ruby-forum.com/t/how-to-delete-join-table/137966 "2008-05-19T03:25:13Z")

</div>

Hi - I have a join table that joins a people table and a roles table. It’s configured using the has\_and\_belongs\_to\_many statement in the model files. How do I delete the join table? I have code that migrates from a…

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

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