# Rails

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

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

---

## [Restful\_authentication doesn't work in Rails 2.3.2](https://www.ruby-forum.com/t/restful-authentication-doesnt-work-in-rails-2-3-2/166905)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 2\
**Last updated:** [May 2, 2009, 12:53am UTC](https://www.ruby-forum.com/t/restful-authentication-doesnt-work-in-rails-2-3-2/166905 "2009-05-02T00:53:30Z")

</div>

Hi, I’m using restful\_authentication on rails 2.3.2. It works find on my local machine which has passenger 2.1.2. But it doesn’t work on the web hosting server (DreamHost) which may have lower version of passenger. …

---

## [How do i stop rails from cacheing a link](https://www.ruby-forum.com/t/how-do-i-stop-rails-from-cacheing-a-link/166922)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/how-do-i-stop-rails-from-cacheing-a-link/166922 "2009-05-01T23:00:52Z")

</div>

I’ve got a controller that saves changes to a file and displays the file… well, the controller the saves the file renders the controller that displays the file after it saves the file (i’m sure there’s a better way t…

---

## [ActiveRecord::Base.establish\_connection loads once?](https://www.ruby-forum.com/t/activerecord-base-establish-connection-loads-once/166910)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/activerecord-base-establish-connection-loads-once/166910 "2009-05-01T22:51:42Z")

</div>

Hello guys, I’m using the establish connection method on my models to connect to different databases. My question is : Is it possible to connect to various databases dynamically as I’m trying to do (I am sending a nam…

---

## [How to disable auto-increment in primary key](https://www.ruby-forum.com/t/how-to-disable-auto-increment-in-primary-key/166935)

<div class="topic-metadata">

**Author:** [@Vipin](https://www.ruby-forum.com/u/Vipin)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/how-to-disable-auto-increment-in-primary-key/166935 "2009-05-01T22:39:02Z")

</div>

How can i disable the auto-increment for a primary key data type. The purpose of using primary\_key data type is using different name for primary key. But we still want to use all the properties of “id” except for aut…

---

## [Can't get to an action in a RESTful controller](https://www.ruby-forum.com/t/cant-get-to-an-action-in-a-restful-controller/166939)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/cant-get-to-an-action-in-a-restful-controller/166939 "2009-05-01T22:31:41Z")

</div>

Folks, I am using the restful\_authentication plugin. This creates the users controller which is declared as a resource in routes.rb as below map.resources :users Now in the UsersController I have created an action to…

---

## [Problem with dynamic selects](https://www.ruby-forum.com/t/problem-with-dynamic-selects/166955)

<div class="topic-metadata">

**Author:** [@bradherman](https://www.ruby-forum.com/u/bradherman)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 10:09pm UTC](https://www.ruby-forum.com/t/problem-with-dynamic-selects/166955 "2009-05-01T22:09:28Z")

</div>

I’m trying to create dynamic select menus for my application. I have a partial that is rendered by an action in my site controller after an :onchange event is triggered. I’ll post the three pieces of code and the er…

---

## [Can a moderator check my message?](https://www.ruby-forum.com/t/can-a-moderator-check-my-message/166946)

<div class="topic-metadata">

**Author:** [@Ahad\_LSAmdani](https://www.ruby-forum.com/u/Ahad_LSAmdani)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/can-a-moderator-check-my-message/166946 "2009-05-01T21:39:35Z")

</div>

I posted a message but I still don’t see it posting yet. I was wondering how long the moderation times are, typically.

---

## [Job: Ruby on Rails Developer-Full Time-NYC,NY](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-full-time-nyc-ny/166997)

<div class="topic-metadata">

**Author:** [@jai](https://www.ruby-forum.com/u/jai)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-full-time-nyc-ny/166997 "2009-05-01T21:14:56Z")

</div>

Hi , Hope you are doing good !! I have requirement for Ruby on Rails Developer, Let me know if you are interested on it. Kindly send me the updated resume along with contact details and salary for the following posit…

---

## [Is possbile limit the number of object in has\_many option?](https://www.ruby-forum.com/t/is-possbile-limit-the-number-of-object-in-has-many-option/166902)

<div class="topic-metadata">

**Author:** [@serenobs](https://www.ruby-forum.com/u/serenobs)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/is-possbile-limit-the-number-of-object-in-has-many-option/166902 "2009-05-01T20:13:28Z")

</div>

(my post was deleted i don’t know why) Hi. I have a question. for example, when model records about man, suppose man can marry with 1 woman. then i think code will be like this class Man \< ActiveRecord::Base has\_ma…

---

## [Re: Engines 2.3 compatibility](https://www.ruby-forum.com/t/re-engines-2-3-compatibility/166072)

<div class="topic-metadata">

**Author:** [@Michael\_Klett](https://www.ruby-forum.com/u/Michael_Klett)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/re-engines-2-3-compatibility/166072 "2009-05-01T20:01:09Z")

</div>

If the community feels that controlling the positioning of the routes is necessary, we should be pursuing this as part of the Rails core implementation, i.e. with tickets and patches and +1s. I have a use-case for n…

---

## [SQL joins question](https://www.ruby-forum.com/t/sql-joins-question/166987)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 7:51pm UTC](https://www.ruby-forum.com/t/sql-joins-question/166987 "2009-05-01T19:51:44Z")

</div>

I want to link up 3 tables to list all members of a particular group. My code (which is wrong) looks like this: @group\_members = Membership.find( :all, :joins =\> \[‘FROM memberships INNER JOIN groups ON memberships.gr…

---

## [Form.collection\_select utilizing CONSTANT string array?](https://www.ruby-forum.com/t/form-collection-select-utilizing-constant-string-array/166420)

<div class="topic-metadata">

**Author:** [@Coondog](https://www.ruby-forum.com/u/Coondog)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/form-collection-select-utilizing-constant-string-array/166420 "2009-05-01T19:35:20Z")

</div>

Hello RoR World- i’ve defined a number of string arrays in /lib/valid.rb which i’m using to validate input for various fields, e.g. module VALID TITLES = \[ ‘Mr.’, ‘Mrs.’, ‘Ms.’, ‘Dr.’, ‘Sir’, ‘RoRN00b’, ‘PhD.’, ‘DHH…

---

## [Who Are We? Research Survey - Thanks!](https://www.ruby-forum.com/t/who-are-we-research-survey-thanks/166993)

<div class="topic-metadata">

**Author:** [@airmont](https://www.ruby-forum.com/u/airmont)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/who-are-we-research-survey-thanks/166993 "2009-05-01T19:08:24Z")

</div>

Hi Ruby on Rails: Talk, Thank you so much for your time and consideration. I am a graduate student at Georgian Court University (Lakewood, NJ) conducting a study titled “Who Are We?” examining the relationship between…

---

## [Using nested model forms with polymorphic associations](https://www.ruby-forum.com/t/using-nested-model-forms-with-polymorphic-associations/166990)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 7:07pm UTC](https://www.ruby-forum.com/t/using-nested-model-forms-with-polymorphic-associations/166990 "2009-05-01T19:07:45Z")

</div>

Hello - Sorry if this is long - I’m erring on the side of giving too much information rather than too little. Hopefully it’ll appear organized and easy to skim. In a nutshell, I’m making a site where people can put t…

---

## [How to combine SQL queries in self.up](https://www.ruby-forum.com/t/how-to-combine-sql-queries-in-self-up/166758)

<div class="topic-metadata">

**Author:** [@Vipin](https://www.ruby-forum.com/u/Vipin)\
**Replies:** 6\
**Last updated:** [May 1, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/how-to-combine-sql-queries-in-self-up/166758 "2009-05-01T18:26:37Z")

</div>

Hi How can i combine multiple SQL statements into one place in self.up in a migration. For the following, method if i combine 3 SQL statements into one section I get the error. ######### following works fine def se…

---

## [Ordering by join table - is this possible?](https://www.ruby-forum.com/t/ordering-by-join-table-is-this-possible/166981)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/ordering-by-join-table-is-this-possible/166981 "2009-05-01T18:14:06Z")

</div>

Hey all Suppose Post has many comments. Is it possible to call Post.all and order them by the number of comments each has without adding a column ‘comments\_count’ to the Post table? If not, can anyone think of a nic…

---

## [Problem with nil.user](https://www.ruby-forum.com/t/problem-with-nil-user/166821)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 7\
**Last updated:** [May 1, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/problem-with-nil-user/166821 "2009-05-01T18:11:46Z")

</div>

Hi all, I’ve put new code into my app so that an administrator will have extra privileges (administer users, edit pages). The error is: ‘Couldn’t find User without an ID’ So the app is looking for a logged in user whe…

---

## [Graticule / acts\_as\_geocodable error?](https://www.ruby-forum.com/t/graticule-acts-as-geocodable-error/166977)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/graticule-acts-as-geocodable-error/166977 "2009-05-01T17:16:03Z")

</div>

Has anyone encountered this error using Graticule & acts\_as\_geocodable? ActiveRecord::UnknownAttributeError (unknown attribute: precision): (DELEGATION):2:in \_\_send\_\_' (\_\_DELEGATION\_\_):2:inwith\_scope’ app/models/list…

---

## [Posting a form from Rails programatically](https://www.ruby-forum.com/t/posting-a-form-from-rails-programatically/166915)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 4\
**Last updated:** [May 1, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/posting-a-form-from-rails-programatically/166915 "2009-05-01T16:15:11Z")

</div>

How would I go about creating and posting a form POST request from inside some Rails code? The use case I have is that I have received a form request, and I would like to forward this request on to a third party with …

---

## [WorldPay/ProTX Integration](https://www.ruby-forum.com/t/worldpay-protx-integration/115096)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/worldpay-protx-integration/115096 "2009-05-01T15:18:56Z")

</div>

I’m going to be integrating two client projects with e-payment systems soon - one ProTX and one WorldPay (both UK). From as far as I can tell there are no existing rails libraries that support ProTX or WorldPay off th…

---

## [Model](https://www.ruby-forum.com/t/model/166941)

<div class="topic-metadata">

**Author:** [@amita0204](https://www.ruby-forum.com/u/amita0204)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/model/166941 "2009-05-01T15:15:25Z")

</div>

Hi, Should every model have an associated table in database? I have a model as a subclass of another model class. I am getting ‘MySQL gone away’ error while creating a new object of this subclass. Any clues? Ami…

---

## [Create Log-in and Log-out](https://www.ruby-forum.com/t/create-log-in-and-log-out/166965)

<div class="topic-metadata">

**Author:** [@anup509](https://www.ruby-forum.com/u/anup509)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/create-log-in-and-log-out/166965 "2009-05-01T15:04:34Z")

</div>

I have an assesment to complete, i’ve done all the pages including customer details but i have to create log-in for the customer, could anyone help me please.

---

## [\[ANN\] Lone Star Ruby Conference 2009 Talk Submission Deadline](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-talk-submission-deadline/166967)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-talk-submission-deadline/166967 "2009-05-01T15:02:33Z")

</div>

Hello This is friendly reminder about the speaker submission deadline. The deadline is Sunday, May 3 at midnight. We have extended it one day to give you the weekend to submit your proposal. If you plan on submittin…

---

## [How to make \<\< 123.. \>\> functionality ? %)](https://www.ruby-forum.com/t/how-to-make-123-functionality/166963)

<div class="topic-metadata">

**Author:** [@sfedi](https://www.ruby-forum.com/u/sfedi)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-make-123-functionality/166963 "2009-05-01T14:57:17Z")

</div>

Hello. I have read all great documentation which recomended me at this forum, thanks, it is really very good start for my. Now I try to create blog. I have one problem, pages looks very bad if many than 40 items on o…

---

## [Sending Bulk SMS](https://www.ruby-forum.com/t/sending-bulk-sms/166961)

<div class="topic-metadata">

**Author:** [@dinesh](https://www.ruby-forum.com/u/dinesh)\
**Replies:** 0\
**Last updated:** [May 1, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/sending-bulk-sms/166961 "2009-05-01T14:18:01Z")

</div>

Hi, I am trying to send bulk sms using sms\_client using GSM/GPRS ANALOGIC MODEM . Below is the log file MODEM: Toggle DTR 1000000 Microseconds MODEM: Toggle DTR 1000000 Microseconds MDM\_send: Drain required. WAR…

---

## [Optimizing OR Queries in Rails and MySQL](https://www.ruby-forum.com/t/optimizing-or-queries-in-rails-and-mysql/166956)

<div class="topic-metadata">

**Author:** [@Moodang](https://www.ruby-forum.com/u/Moodang)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/optimizing-or-queries-in-rails-and-mysql/166956 "2009-05-01T12:16:10Z")

</div>

According to MySQL doc, I must use union and temporary tables. It seems I have to do something along the line of this: http://www.ricroberts.com/articles/2007/09/25/mysql-temporary-tables-and-rails There are cases whe…

---

## [Button\_to\_remote problem on 2.3.2](https://www.ruby-forum.com/t/button-to-remote-problem-on-2-3-2/166936)

<div class="topic-metadata">

**Author:** [@eddier](https://www.ruby-forum.com/u/eddier)\
**Replies:** 3\
**Last updated:** [May 1, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/button-to-remote-problem-on-2-3-2/166936 "2009-05-01T12:12:24Z")

</div>

Sorry about the previous aborted post… Here is the full post. I have a link\_to\_remote call that works as expected (using Rails 2.3.2): \<%= link\_to\_remote “-”, { :url =\> { :action =\> :remove\_from\_cart, :id =\> cart\_item…

---

## [Change default index page](https://www.ruby-forum.com/t/change-default-index-page/166950)

<div class="topic-metadata">

**Author:** [@cpyong27](https://www.ruby-forum.com/u/cpyong27)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 11:38am UTC](https://www.ruby-forum.com/t/change-default-index-page/166950 "2009-05-01T11:38:02Z")

</div>

Hello, Not sure if anyone can help me here. I have a page which I want to make it the index page. The page is http://www.myweb.com:3000/bin/myindex.mxml. Yes, you can probably tell it’s a Adobe Flex component - myind…

---

## [Making a link to a User profile](https://www.ruby-forum.com/t/making-a-link-to-a-user-profile/166931)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 11:12am UTC](https://www.ruby-forum.com/t/making-a-link-to-a-user-profile/166931 "2009-05-01T11:12:31Z")

</div>

So I have a blog like setup for my website. Users can comment on another person’s blog. I want the comment to include a link to the author’s profile. This is proving to be problematic. The blog is a resource and th…

---

## [Need Ruby on Rails Developer / NY](https://www.ruby-forum.com/t/need-ruby-on-rails-developer-ny/166928)

<div class="topic-metadata">

**Author:** [@Shveta](https://www.ruby-forum.com/u/Shveta)\
**Replies:** 1\
**Last updated:** [May 1, 2009, 5:43am UTC](https://www.ruby-forum.com/t/need-ruby-on-rails-developer-ny/166928 "2009-05-01T05:43:21Z")

</div>

Hi Folks, We need a Ruby on Rails Developer for a position in NY . This would be a year long project. If you feel interested, please get ack to me ASAP at removed\_email\_address@domain.invalid Thanks, Shveta remove…

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

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