# Rails

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

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

---

## [Routing issues in controller module](https://www.ruby-forum.com/t/routing-issues-in-controller-module/112241)

<div class="topic-metadata">

**Author:** [@dotjake](https://www.ruby-forum.com/u/dotjake)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/routing-issues-in-controller-module/112241 "2007-08-17T19:26:20Z")

</div>

I’m having problems with the routing of requests on my production server, running mongrel\_cluster with apache. The problem does not happen on my local mongrel test server. Here’s an example of what’s happening: I hav…

---

## [Need your help](https://www.ruby-forum.com/t/need-your-help/112340)

<div class="topic-metadata">

**Author:** [@Mr\_tony](https://www.ruby-forum.com/u/Mr_tony)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/need-your-help/112340 "2007-08-17T18:38:17Z")

</div>

hi all, in real i need your help. we are working on a project and we need to know the functions of the files in the ruby gems like app\_generator.rb, rails\_generator.rb, … etc so how can i get the functionality of the…

---

## [Problem starting mongrel cluster](https://www.ruby-forum.com/t/problem-starting-mongrel-cluster/112343)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/problem-starting-mongrel-cluster/112343 "2007-08-17T18:37:16Z")

</div>

I’m having an odd issue with mongrel cluster 1.0.2 on ubuntu feisty which I could sure use a hand with: I’m starting the cluster like this and get no errors mongrel\_rails cluster::start -v starting port 8000 mongrel…

---

## [Really don't unstand Rails, can anyone help?Thanks](https://www.ruby-forum.com/t/really-dont-unstand-rails-can-anyone-help-thanks/112295)

<div class="topic-metadata">

**Author:** [@Zhan\_feng\_W](https://www.ruby-forum.com/u/Zhan_feng_W)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/really-dont-unstand-rails-can-anyone-help-thanks/112295 "2007-08-17T18:05:46Z")

</div>

Accodrding to Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. 1.I run following: gem install rails --…

---

## [Memcached loses sessions during clusters](https://www.ruby-forum.com/t/memcached-loses-sessions-during-clusters/112341)

<div class="topic-metadata">

**Author:** [@innr](https://www.ruby-forum.com/u/innr)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/memcached-loses-sessions-during-clusters/112341 "2007-08-17T17:50:08Z")

</div>

Hello, My memcached seems to work OK for a single mongrel instance. When I move to a mongrel cluster, memcache seems to lose the session state between mongrel cluster instances. I am using the standard memcached c…

---

## [Restructuring my rails project](https://www.ruby-forum.com/t/restructuring-my-rails-project/112338)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/restructuring-my-rails-project/112338 "2007-08-17T17:40:26Z")

</div>

I currently have two controllers, models, and views called retain\_users and retain\_queues. That is going to grow to have retain\_pmrs, retain\_customers, etc. So I’m thinking I need to have: retain/quues, retain/users…

---

## [Need advice: transaction block for saving?](https://www.ruby-forum.com/t/need-advice-transaction-block-for-saving/112164)

<div class="topic-metadata">

**Author:** [@Dcjgoose](https://www.ruby-forum.com/u/Dcjgoose)\
**Replies:** 4\
**Last updated:** [August 17, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/need-advice-transaction-block-for-saving/112164 "2007-08-17T16:27:58Z")

</div>

I am building an app to allow clients to create a project and fill out a survey. There are also contractors and hiring\_managers associated with the project. Below are the models: class User \< ActiveRecord::Base has\_m…

---

## [Customized auto complete with preloaded array](https://www.ruby-forum.com/t/customized-auto-complete-with-preloaded-array/112317)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/customized-auto-complete-with-preloaded-array/112317 "2007-08-17T16:15:57Z")

</div>

Hi, I want to have an autocomplete which displays the name and email address of the contact. But, the contact list array should be pre loaded, as described in Rails Recipes. Since this recipe doesn´t use any partial…

---

## [Rails 1.2.2 cookies big headache!](https://www.ruby-forum.com/t/rails-1-2-2-cookies-big-headache/112321)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/rails-1-2-2-cookies-big-headache/112321 "2007-08-17T14:27:07Z")

</div>

I am trying to write a cookie : request.cookies\[‘ad\_w1’\] = {:value =\> “#{advertising.id}”, :expires =\> Time.now.utc+1.year} or any other test cookies\[:user\_id\] = { :value =\> ‘123’, :expires =\> Time.now + 1.hour} bu…

---

## [Get a list of updated fields in Model.update?](https://www.ruby-forum.com/t/get-a-list-of-updated-fields-in-model-update/112298)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/get-a-list-of-updated-fields-in-model-update/112298 "2007-08-17T14:19:44Z")

</div>

Is there a spiffy Rails way to easily get a list of fields updated in an update call? I figure it’s possible to go into the model and keep track of what fields are changed in each field=() method (before the save happ…

---

## [Strange deployment error](https://www.ruby-forum.com/t/strange-deployment-error/110416)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/strange-deployment-error/110416 "2007-08-17T14:01:51Z")

</div>

We are having difficulty figuring out why our app works fine in mongrel development, but in production it gets messed up. On an ajax search function (people search, we are a social network) in development we get the n…

---

## [Request global variable](https://www.ruby-forum.com/t/request-global-variable/112309)

<div class="topic-metadata">

**Author:** [@Jesper\_Andersen](https://www.ruby-forum.com/u/Jesper_Andersen)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/request-global-variable/112309 "2007-08-17T13:39:47Z")

</div>

I need information about the user currently logged in available outside of controllers. At least in models but probably also in some library code. I don’t want to pass the user object around everywhere. That is ugly a…

---

## [RJS error on IE only: will trade (virtual) beer for (real) a](https://www.ruby-forum.com/t/rjs-error-on-ie-only-will-trade-virtual-beer-for-real-a/81448)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/rjs-error-on-ie-only-will-trade-virtual-beer-for-real-a/81448 "2007-08-17T13:29:40Z")

</div>

So I’m doing something I’ve done a million times before with some RJS flavored code, and for some reason it’s not working on IE. I’ve Googled the problem and found only stuff that’s not terribly relevant to this prob…

---

## [Multiple apps on one lighty server](https://www.ruby-forum.com/t/multiple-apps-on-one-lighty-server/112195)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 6\
**Last updated:** [August 17, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/multiple-apps-on-one-lighty-server/112195 "2007-08-17T12:52:28Z")

</div>

Does anybody know how to run multiple rails apps off of one server? All I can imagine is running mongrel with different port numbers, but since (internal server) lighttpd is set up to run on port 81, and mongrel is a …

---

## [In\_place\_editor and lists](https://www.ruby-forum.com/t/in-place-editor-and-lists/69137)

<div class="topic-metadata">

**Author:** [@Abdullah\_J](https://www.ruby-forum.com/u/Abdullah_J)\
**Replies:** 5\
**Last updated:** [August 17, 2007, 12:38pm UTC](https://www.ruby-forum.com/t/in-place-editor-and-lists/69137 "2007-08-17T12:38:04Z")

</div>

Hi All, I’m trying to use the in\_place\_editor with a list and ended up having to do this: \<% for task in @tasks %\> \<% @task = task %\> \<%= in\_place\_editor\_field :task, :name %\> ... Is there a way not to ha…

---

## [Sample code for displaying a MIME email message on a web pag](https://www.ruby-forum.com/t/sample-code-for-displaying-a-mime-email-message-on-a-web-pag/111239)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 10\
**Last updated:** [August 17, 2007, 11:23am UTC](https://www.ruby-forum.com/t/sample-code-for-displaying-a-mime-email-message-on-a-web-pag/111239 "2007-08-17T11:23:41Z")

</div>

Can anyone point me to a good source of sample code for taking a raw email message (multipart, with attachments) and displaying it on a web page? Also same thing for composing a new message with attachments? ~Josh

---

## [Belongs\_to the same table 2 times](https://www.ruby-forum.com/t/belongs-to-the-same-table-2-times/112297)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 10:37am UTC](https://www.ruby-forum.com/t/belongs-to-the-same-table-2-times/112297 "2007-08-17T10:37:18Z")

</div>

Hi ~ I have the following database design class Subscription \< ActiveRecord::Base belongs\_to :user, :class\_name =\> “User”, :foreign\_key =\> ‘subscriber\_user\_id’ belongs\_to :user, :class\_name =\> “User”, :foreign\_key =\>…

---

## [Format Class Name](https://www.ruby-forum.com/t/format-class-name/112308)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 10:35am UTC](https://www.ruby-forum.com/t/format-class-name/112308 "2007-08-17T10:35:10Z")

</div>

Hi, I have a loop which loops through all the associations for a particular model, what i want is to display a label with the class name formatted like “My Class Name” \<% @project.reflect\_on\_all\_associations.each do …

---

## [Error: "Couldn't find Contact without an ID" -\> form\_tag par](https://www.ruby-forum.com/t/error-couldnt-find-contact-without-an-id-form-tag-par/111713)

<div class="topic-metadata">

**Author:** [@svenhecht](https://www.ruby-forum.com/u/svenhecht)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 10:34am UTC](https://www.ruby-forum.com/t/error-couldnt-find-contact-without-an-id-form-tag-par/111713 "2007-08-17T10:34:18Z")

</div>

Hi, I Try to Add to one of my Group objects a Contact object My model looks simplified like this: Group has a Contacts Contact has a Group Contact has a City City is owned by Contacts I hope thats understandable. …

---

## [Application.rb and before\_filter](https://www.ruby-forum.com/t/application-rb-and-before-filter/112302)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 10:30am UTC](https://www.ruby-forum.com/t/application-rb-and-before-filter/112302 "2007-08-17T10:30:45Z")

</div>

Hello, How can i apply a before\_filter on all controllers in application.rb without some specific controllers. Is there something like :only and :except for controllers like there is for methods?

---

## [Loss of sessions - Mongrel/Apache/SSL](https://www.ruby-forum.com/t/loss-of-sessions-mongrel-apache-ssl/112305)

<div class="topic-metadata">

**Author:** [@innr](https://www.ruby-forum.com/u/innr)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 10:08am UTC](https://www.ruby-forum.com/t/loss-of-sessions-mongrel-apache-ssl/112305 "2007-08-17T10:08:16Z")

</div>

Hello fellow Railsers, I am running a fairly standard Apache2.2 - Mongrel setup. I have a bunch of Mongrels on my application server, and then a seperate Apache server which uses mod\_ssl and mod\_proxy\_balancer to t…

---

## [Credits/tickets system - paypal](https://www.ruby-forum.com/t/credits-tickets-system-paypal/112246)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 9:40am UTC](https://www.ruby-forum.com/t/credits-tickets-system-paypal/112246 "2007-08-17T09:40:10Z")

</div>

Hello, I’m new here. I started programming in Ruby on Rails week ago. It’s great! I’m preparing my first application but I need to make tickets system - (my vision) people will come, register, buy tickets (via paypal)…

---

## [Using the new cookie-based sessions](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 6:55am UTC](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201 "2007-08-17T06:55:11Z")

</div>

Hi all, I’m just about to deploy my first big site, and i want to use the new cookie-based sessions, instead of pstore or mysql sessions, as i’ve read about here: http://dev.rubyonrails.org/changeset/6184 Any tips ho…

---

## [Using unions in ActiveRecord](https://www.ruby-forum.com/t/using-unions-in-activerecord/112233)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 5:17am UTC](https://www.ruby-forum.com/t/using-unions-in-activerecord/112233 "2007-08-17T05:17:02Z")

</div>

I am at a complete loss of how to do this in an ActiveRecord: Example select concat(c.last\_name, ', ', c.first\_name,) as name from customer c inner join basketball b on (c.id=b.cust\_id) where b.start\_date \> ‘8/1/200…

---

## [Strangest restful\_authentication 'unidentified method' error](https://www.ruby-forum.com/t/strangest-restful-authentication-unidentified-method-error/112223)

<div class="topic-metadata">

**Author:** [@builderchad](https://www.ruby-forum.com/u/builderchad)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 4:10am UTC](https://www.ruby-forum.com/t/strangest-restful-authentication-unidentified-method-error/112223 "2007-08-17T04:10:06Z")

</div>

Hi. My head is about to explode on this one. I am using restful\_authentication and added a method to lib/authentication\_system.rb like so: module AuthenticatedSystem protected def logged\_in? current\_user != :false …

---

## [Look at this nice new website its very good](https://www.ruby-forum.com/t/look-at-this-nice-new-website-its-very-good/112289)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 3:46am UTC](https://www.ruby-forum.com/t/look-at-this-nice-new-website-its-very-good/112289 "2007-08-17T03:46:44Z")

</div>

http://www.pennergame.de/ref.php?uid=4762

---

## [When Could AR Objects Not Have Their Methods?](https://www.ruby-forum.com/t/when-could-ar-objects-not-have-their-methods/196433)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 6\
**Last updated:** [August 17, 2007, 2:15am UTC](https://www.ruby-forum.com/t/when-could-ar-objects-not-have-their-methods/196433 "2007-08-17T02:15:38Z")

</div>

I’m seeing something strange and so far haven’t been able to figure it out. First off, here’s our setup: MacOS X Tiger 10.4.10 (Intel) Ruby 1.8.6 Rails 1.2.3 PostgreSQL 8.2.3 I have a ton of apps that work great bu…

---

## [Creating your own generator](https://www.ruby-forum.com/t/creating-your-own-generator/112286)

<div class="topic-metadata">

**Author:** [@davidslee9](https://www.ruby-forum.com/u/davidslee9)\
**Replies:** 0\
**Last updated:** [August 17, 2007, 2:11am UTC](https://www.ruby-forum.com/t/creating-your-own-generator/112286 "2007-08-17T02:11:38Z")

</div>

I created a controller for Maxmind’s GeoIP service which worked fine. Now I would like to create a generator for it so I can send it to other developers so they can install it and test it. Steps I followed: create …

---

## [:order question](https://www.ruby-forum.com/t/order-question/112277)

<div class="topic-metadata">

**Author:** [@Brien](https://www.ruby-forum.com/u/Brien)\
**Replies:** 2\
**Last updated:** [August 17, 2007, 1:29am UTC](https://www.ruby-forum.com/t/order-question/112277 "2007-08-17T01:29:35Z")

</div>

I’m new to rails, so excuse me if this is a silly/simple question - It appears that rails is doing the annoying way of ordering items, with 10 - 19 following 1, 20-29 following 2, etcetera. Does anyone know of a way t…

---

## [Project Need Advice](https://www.ruby-forum.com/t/project-need-advice/112281)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 17, 2007, 1:29am UTC](https://www.ruby-forum.com/t/project-need-advice/112281 "2007-08-17T01:29:35Z")

</div>

Hello, I am trying to build a new platform for our massive internet database/ application which is currently in coldfusion, sql and java. I am not a programmer, but I love ruby on rails and the 37 signals programming …

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

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