# Rails

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

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

---

## [Linking across models](https://www.ruby-forum.com/t/linking-across-models/110546)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 6\
**Last updated:** [July 28, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/linking-across-models/110546 "2007-07-28T15:08:17Z")

</div>

Bit new at this so not sure if this is something that shouldn’t be done but I currently have a number of models which are attached to database tables and deal with all the backend actions like populating editing and u…

---

## [Ie7](https://www.ruby-forum.com/t/ie7/110604)

<div class="topic-metadata">

**Author:** [@eno](https://www.ruby-forum.com/u/eno)\
**Replies:** 2\
**Last updated:** [July 28, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/ie7/110604 "2007-07-28T14:35:12Z")

</div>

Anybody have any experience/advice/tips on how to debug AJAX/ Javascript problems in IE7?

---

## [Nginx, litespeed or pound for RHEL 4](https://www.ruby-forum.com/t/nginx-litespeed-or-pound-for-rhel-4/110628)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/nginx-litespeed-or-pound-for-rhel-4/110628 "2007-07-28T13:24:02Z")

</div>

Hello All! I’m in the process of migrating from an older RHEL 4 server to a new RHEL 4 server and need to figure out which way to go. Currently, the old server is running fcgi which is crap. I’ve been doing some res…

---

## [Sortable Elements](https://www.ruby-forum.com/t/sortable-elements/110627)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/sortable-elements/110627 "2007-07-28T12:59:02Z")

</div>

Hello, I have a page on my website where there is a sortable list (using the sortable\_element helper) and also a form which is used to add items the sortable list. The sortable list uses the :handle option to setup an …

---

## [Improving before/after\_add callbacks for has\_many/habtm](https://www.ruby-forum.com/t/improving-before-after-add-callbacks-for-has-many-habtm/110626)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/improving-before-after-add-callbacks-for-has-many-habtm/110626 "2007-07-28T12:48:59Z")

</div>

Hi, I’ve submitted a patch to improve before/after\_add callbacks to handle more situations. Please review/comment/commit - http://dev.rubyonrails.org/ticket/8854 :slight\_smile: Cheers! Pratik http://m.onkey.org

---

## [Lighttpd on Edgy Eft](https://www.ruby-forum.com/t/lighttpd-on-edgy-eft/110426)

<div class="topic-metadata">

**Author:** [@Hasham](https://www.ruby-forum.com/u/Hasham)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 11:39am UTC](https://www.ruby-forum.com/t/lighttpd-on-edgy-eft/110426 "2007-07-28T11:39:55Z")

</div>

I am new to Lighttpd on ubuntu i have problem in which i cant stop server with "sudo /etc/init.d/lighttpd stop " and i have to “killall lighttpd” to stop it. how can i resolve this issue?

---

## [Bulk updating Gem source index for: http://gems.rubyforge.or](https://www.ruby-forum.com/t/bulk-updating-gem-source-index-for-http-gems-rubyforge-or/110625)

<div class="topic-metadata">

**Author:** [@varun\_kumar](https://www.ruby-forum.com/u/varun_kumar)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 10:59am UTC](https://www.ruby-forum.com/t/bulk-updating-gem-source-index-for-http-gems-rubyforge-or/110625 "2007-07-28T10:59:52Z")

</div>

Hi all, I’m having a bit of a problem with installing ruby on rails using gem on Windows XP. after gem install rails --include-dependencies it say as follows Bulk updating Gem source index for: http://gems.rubyforge…

---

## [Server Memory Usage (Mongrel)](https://www.ruby-forum.com/t/server-memory-usage-mongrel/110540)

<div class="topic-metadata">

**Author:** [@sol](https://www.ruby-forum.com/u/sol)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 10:39am UTC](https://www.ruby-forum.com/t/server-memory-usage-mongrel/110540 "2007-07-28T10:39:52Z")

</div>

Hey, I’m wondering about the memory usage on my rootserver and have some basic questions. free -m: total used free shared buffers cached Mem: 1003 928 75 0 …

---

## [SMS Gateway .... for Rails app? (a bit OOT)](https://www.ruby-forum.com/t/sms-gateway-for-rails-app-a-bit-oot/110620)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 2\
**Last updated:** [July 28, 2007, 9:32am UTC](https://www.ruby-forum.com/t/sms-gateway-for-rails-app-a-bit-oot/110620 "2007-07-28T09:32:49Z")

</div>

I’m simply looking for a SMS gateway… The ones like what Twitter uses… The intended audience would be globally. Some of you would have used them and I’d really appreciate if you could share your experience. I’ve Goo…

---

## [SMS Gateway .... for Rails app? (a bit OOT)](https://www.ruby-forum.com/t/sms-gateway-for-rails-app-a-bit-oot/196411)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 9:29am UTC](https://www.ruby-forum.com/t/sms-gateway-for-rails-app-a-bit-oot/196411 "2007-07-28T09:29:48Z")

</div>

I’m simply looking for a SMS gateway… The ones like what Twitter uses… The intended audience would be globally. Some of you would have used them and I’d really appreciate if you could share your experience. I’ve Goo…

---

## [Rails web hosting - spam email policy](https://www.ruby-forum.com/t/rails-web-hosting-spam-email-policy/110210)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 3\
**Last updated:** [July 28, 2007, 8:42am UTC](https://www.ruby-forum.com/t/rails-web-hosting-spam-email-policy/110210 "2007-07-28T08:42:44Z")

</div>

Hi folks, I’m looking for some advice about Rails hosting. I’ve looked at: http://wiki.rubyonrails.org/rails/pages/RailsWebHosts I’m building a site where users link up with their friends, and exchange information wi…

---

## [Passing the contents of a flash to a different controller](https://www.ruby-forum.com/t/passing-the-contents-of-a-flash-to-a-different-controller/110285)

<div class="topic-metadata">

**Author:** [@raghus](https://www.ruby-forum.com/u/raghus)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 7:45am UTC](https://www.ruby-forum.com/t/passing-the-contents-of-a-flash-to-a-different-controller/110285 "2007-07-28T07:45:42Z")

</div>

Is there a way to pass the contents of flash to a different controller/action? In the code below, /alpha/one will give me “The flash contains hello world” but /alpha/three will have just “The flash contains” - any way …

---

## [2 Rails Quirks](https://www.ruby-forum.com/t/2-rails-quirks/110351)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 11\
**Last updated:** [July 28, 2007, 7:40am UTC](https://www.ruby-forum.com/t/2-rails-quirks/110351 "2007-07-28T07:40:42Z")

</div>

I have two problems with my Rails code that seem like they should be easy fixes but I can’t figure it out. Anyone looking at the code below will probably think it looks weird or redundant but it’s the only way I’ve go…

---

## [Adding Query String to Link](https://www.ruby-forum.com/t/adding-query-string-to-link/110612)

<div class="topic-metadata">

**Author:** [@eboss](https://www.ruby-forum.com/u/eboss)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 6:28am UTC](https://www.ruby-forum.com/t/adding-query-string-to-link/110612 "2007-07-28T06:28:39Z")

</div>

I am using ThickBox/jQuery for an app. With it I need to be able to add a query string to the end of a dynamically generated URL. For example ‘?height=300&width=300’ This is how my links are generated \<%= link\_to @te…

---

## [Calling a stored procedure from activerecord](https://www.ruby-forum.com/t/calling-a-stored-procedure-from-activerecord/110600)

<div class="topic-metadata">

**Author:** [@vpredoehl](https://www.ruby-forum.com/u/vpredoehl)\
**Replies:** 4\
**Last updated:** [July 28, 2007, 2:14am UTC](https://www.ruby-forum.com/t/calling-a-stored-procedure-from-activerecord/110600 "2007-07-28T02:14:50Z")

</div>

I need to call a SQLServer stored procedure from activerecord. It has one string parameter. How is this done?

---

## [Ruby UDP Multicasting Binding Insanity](https://www.ruby-forum.com/t/ruby-udp-multicasting-binding-insanity/110614)

<div class="topic-metadata">

**Author:** [@preston](https://www.ruby-forum.com/u/preston)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 2:08am UTC](https://www.ruby-forum.com/t/ruby-udp-multicasting-binding-insanity/110614 "2007-07-28T02:08:21Z")

</div>

I’m writing a gem which binds multiple sockets to the same UDP multicast port, basically like so… socket = UDPSocket.new socket.setsockopt( Socket::SOL\_SOCKET, Socket::SO\_REUSEPORT, \[1\].pack(“i\_”) ) socket.setsockopt…

---

## [Need help with check boxes](https://www.ruby-forum.com/t/need-help-with-check-boxes/110607)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 1:46am UTC](https://www.ruby-forum.com/t/need-help-with-check-boxes/110607 "2007-07-28T01:46:19Z")

</div>

Hello everybody, I have created check box in an rhtml file and want to have its id and name of all the items that are checked, in controller class that it is linked to…how can i get it? This is my scenario in rhtml fi…

---

## [ActiveRecord Warnings plugin: Problem when extending ActiveR](https://www.ruby-forum.com/t/activerecord-warnings-plugin-problem-when-extending-activer/110610)

<div class="topic-metadata">

**Author:** [@Roman\_Gonzalez](https://www.ruby-forum.com/u/Roman_Gonzalez)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 1:35am UTC](https://www.ruby-forum.com/t/activerecord-warnings-plugin-problem-when-extending-activer/110610 "2007-07-28T01:35:19Z")

</div>

Hi everyone. I’m trying to make something cool with the ActiveRecord, it consists in adding the feature of warnings to it. for example: class Person \< ActiveRecord::Base should\_warn\_presence\_of :name end p = Per…

---

## [HABTM updating/saving behaviour](https://www.ruby-forum.com/t/habtm-updating-saving-behaviour/162696)

<div class="topic-metadata">

**Author:** [@Andrea\_Morandini](https://www.ruby-forum.com/u/Andrea_Morandini)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 1:34am UTC](https://www.ruby-forum.com/t/habtm-updating-saving-behaviour/162696 "2007-07-28T01:34:19Z")

</div>

Newbie question (I guess). I have a User whom can have some Preference. So the scracth model is: class User \< ActiveRecord:Base \[…\] has\_and\_belongs\_to\_many :preferences \[…\] end class Preference \< ActiveRecord:Base …

---

## [Multiple rails app hosted on single server](https://www.ruby-forum.com/t/multiple-rails-app-hosted-on-single-server/110611)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 1:13am UTC](https://www.ruby-forum.com/t/multiple-rails-app-hosted-on-single-server/110611 "2007-07-28T01:13:14Z")

</div>

What’s everyone favorite way to do this these days? I have nginx with 4 mongrel processes now which is great for the performance of this 1 rails app I’m running. But to add another rails app to the box would require …

---

## [Question about link\_to\_remote](https://www.ruby-forum.com/t/question-about-link-to-remote/110601)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 1\
**Last updated:** [July 28, 2007, 1:05am UTC](https://www.ruby-forum.com/t/question-about-link-to-remote/110601 "2007-07-28T01:05:16Z")

</div>

Hi, I got the following problem this is my code for link\_to\_remote \[\<%= link\_to\_remote(“Delete”, {:url =\> members\_article\_image\_url(list\_item), :method =\> :delete, :article\_id =\> @article.id}, :confirm =\> “are you s…

---

## [Are you using foreign keys?](https://www.ruby-forum.com/t/are-you-using-foreign-keys/110589)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 4\
**Last updated:** [July 28, 2007, 12:48am UTC](https://www.ruby-forum.com/t/are-you-using-foreign-keys/110589 "2007-07-28T00:48:14Z")

</div>

Hi Guys, When you use ActiveRecord relationship, there is always a place to put foreign key on your table, e.g., id and foo\_id. However, from rails perspective, foreign keys are not required as long as data could be …

---

## [Need help with list boxes](https://www.ruby-forum.com/t/need-help-with-list-boxes/110606)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 28, 2007, 12:20am UTC](https://www.ruby-forum.com/t/need-help-with-list-boxes/110606 "2007-07-28T00:20:10Z")

</div>

Hello everybody, I have a list box whose values i am getting from controller class. There is a submit button below it.when it is pressed, i always loose the value which was selected and once again the first value is …

---

## [Simple parent child view](https://www.ruby-forum.com/t/simple-parent-child-view/110575)

<div class="topic-metadata">

**Author:** [@magiclava](https://www.ruby-forum.com/u/magiclava)\
**Replies:** 3\
**Last updated:** [July 28, 2007, 12:12am UTC](https://www.ruby-forum.com/t/simple-parent-child-view/110575 "2007-07-28T00:12:09Z")

</div>

I have 2 tables (clients and orders). I have create models for them both and the relevant belongs\_to has\_many declarations. I’ve created a controller which has the following code: def list\_orders @all\_clients = Clie…

---

## [\-bash: rails: command not found](https://www.ruby-forum.com/t/bash-rails-command-not-found/110598)

<div class="topic-metadata">

**Author:** [@irock](https://www.ruby-forum.com/u/irock)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/bash-rails-command-not-found/110598 "2007-07-27T23:49:19Z")

</div>

Whats going on here? I’m following a tutorial from a book… which is slightly biased towards Windows. However, I am just translating the commands to use them in the terminal on my Mac (10.4) Maybe I’m not suppose to …

---

## [Creating a News Ticker](https://www.ruby-forum.com/t/creating-a-news-ticker/108195)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/creating-a-news-ticker/108195 "2007-07-27T23:15:59Z")

</div>

I want to create a news ticker. I pull the top five articles from the database in my controller and pass it on to my view. I have a ticker bar, and I want to cycle through each article continuously. I previously did t…

---

## [ActiveRecord can do conditonal update?](https://www.ruby-forum.com/t/activerecord-can-do-conditonal-update/110599)

<div class="topic-metadata">

**Author:** [@jzhang](https://www.ruby-forum.com/u/jzhang)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/activerecord-can-do-conditonal-update/110599 "2007-07-27T23:15:59Z")

</div>

ActiveRecord update method can support condition (SQL where clause)? My rails application always query data by some unique key then update this data (if no data, create one). It is two SQL statement. Want to improve t…

---

## [Mongrel, Nginx, and AJAX not working](https://www.ruby-forum.com/t/mongrel-nginx-and-ajax-not-working/110259)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 7\
**Last updated:** [July 27, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/mongrel-nginx-and-ajax-not-working/110259 "2007-07-27T22:30:52Z")

</div>

Under Apache / FastCGI, the following request is perfectly fine (as pulled from the browser’s View Source): new Ajax.Request(‘http://server/portals?editable=true&amp;update=portal\_list\_wrapper’, {asynchronous:true, …

---

## [Support a model within a script](https://www.ruby-forum.com/t/support-a-model-within-a-script/110595)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/support-a-model-within-a-script/110595 "2007-07-27T22:24:51Z")

</div>

Hi, I want to write a script (something like script/breakpointer) which recognizes the models in my rails application. I tried inheriting from my model class, but I get an “uninitialized constant (NameError)” error. …

---

## [Still struggling on trying to implement a partial](https://www.ruby-forum.com/t/still-struggling-on-trying-to-implement-a-partial/110544)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/still-struggling-on-trying-to-implement-a-partial/110544 "2007-07-27T21:29:42Z")

</div>

At present i have a list of items and a corresponding ‘details’ button… Step1 - Details Step2 - Details Step3 - Details Step4 - Details Step5 - Details I select details, and a is updated underneath this list wi…

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

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