# Rails

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

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

---

## [Session auth and AWS auth](https://www.ruby-forum.com/t/session-auth-and-aws-auth/125024)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/session-auth-and-aws-auth/125024 "2008-01-04T17:48:06Z")

</div>

Hello I have 2 applications (1 normal, 1 Beast Forum) that set the session domain to be the same so that they can share information between them (they use the same database). However, i am not 100% clear on how I c…

---

## [Problem with acts\_as\_ferret](https://www.ruby-forum.com/t/problem-with-acts-as-ferret/125028)

<div class="topic-metadata">

**Author:** [@bmcolombet](https://www.ruby-forum.com/u/bmcolombet)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-ferret/125028 "2008-01-04T17:29:12Z")

</div>

Hi all, I’ve created a ferret analyzer to replace accentuated letters by non-accentuated using the MappingFilter Analyzer. This filter works well in a little ruby script but in my rails (2.0.2) project, the search ha…

---

## [REST: Handling homepage and pagination for XML](https://www.ruby-forum.com/t/rest-handling-homepage-and-pagination-for-xml/125023)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/rest-handling-homepage-and-pagination-for-xml/125023 "2008-01-04T17:16:49Z")

</div>

Hi you all, I have two questions regarding a REST app and the XML responses: Homepage: I want to have a kind of homepage to list all the list of resources the user can access to. I’ve read I can do it with just an …

---

## [Multiple model validation](https://www.ruby-forum.com/t/multiple-model-validation/125010)

<div class="topic-metadata">

**Author:** [@manjularaj](https://www.ruby-forum.com/u/manjularaj)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/multiple-model-validation/125010 "2008-01-04T15:55:35Z")

</div>

Hi I’m doing multiple model validation. For example i’ve inquiry contact and company models. My logic works in inquiries. So in inquiry model i added validates\_associated :contact, :company this. Now my doubt is when …

---

## [ActiveRecord and Threads](https://www.ruby-forum.com/t/activerecord-and-threads/125008)

<div class="topic-metadata">

**Author:** [@jedi](https://www.ruby-forum.com/u/jedi)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/activerecord-and-threads/125008 "2008-01-04T15:54:40Z")

</div>

I do not want to set the concurrency flag in activerecord to true for a variety of reasons. My ROR appln has a background thread spawned which accesses the DB and send out an email. When this background thread is acc…

---

## [Liverails tutorial | Error](https://www.ruby-forum.com/t/liverails-tutorial-error/125002)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/liverails-tutorial-error/125002 "2008-01-04T14:22:00Z")

</div>

Hello all, I followed the liverails tutorial and made a facebook application (the social recipe application). Up till the point where we run our application using an IFrame, my application works fine, but when we cha…

---

## [Getting coordinates from draggable\_element](https://www.ruby-forum.com/t/getting-coordinates-from-draggable-element/124998)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/getting-coordinates-from-draggable-element/124998 "2008-01-04T14:06:05Z")

</div>

I tried to get the coordinates of a draggable\_element. I found in this topic a way to get the coordinates but i don’t know what i must set in the action reposition at the moment i only have this Verplaats de afbeeld…

---

## [Rails 2.0.1 breaks my app - simple question - can anyone help](https://www.ruby-forum.com/t/rails-2-0-1-breaks-my-app-simple-question-can-anyone-help/124996)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/rails-2-0-1-breaks-my-app-simple-question-can-anyone-help/124996 "2008-01-04T13:42:10Z")

</div>

In rails 1.2.6 the following works fine: class Promotion \< ActiveRecord::Base def self.find\_by\_name(name) super(name.upcase.strip) end end so if the db contains a promotion with name ‘PROMO1’ then Promotion.find\_b…

---

## [Setting password](https://www.ruby-forum.com/t/setting-password/124964)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/setting-password/124964 "2008-01-04T13:31:02Z")

</div>

I currently have a form for the user to change password, preferences, etc. The password field and the confirm password field are initially blank. Only if there is something entered in the both fields and they match i…

---

## [How to use "link\_to" to deliver a parameter?](https://www.ruby-forum.com/t/how-to-use-link-to-to-deliver-a-parameter/124951)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/how-to-use-link-to-to-deliver-a-parameter/124951 "2008-01-04T13:07:36Z")

</div>

Hello, there: I wish A link to invoke such a action together with the parameter “zh\_CN” “cookies/switch\_language/zh\_CH” to switch language sellection, and I use the following code: \<%= link\_to ‘Chinese’, :controller…

---

## [Possible bug: belongs\_to with :class\_name and eager loading](https://www.ruby-forum.com/t/possible-bug-belongs-to-with-class-name-and-eager-loading/124978)

<div class="topic-metadata">

**Author:** [@bryan](https://www.ruby-forum.com/u/bryan)\
**Replies:** 1\
**Last updated:** [January 4, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/possible-bug-belongs-to-with-class-name-and-eager-loading/124978 "2008-01-04T12:27:43Z")

</div>

In my model: class Call \< ActiveRecord::Base belongs\_to :doctor, :class\_name =\> ‘User’ end In the migration: t.column :doctor\_id, :int call.doctor.last\_name works great. But my view had an N+1 problem. So I modif…

---

## ["find\_all\_by\<associated class\>"?](https://www.ruby-forum.com/t/find-all-by-associated-class/124986)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [January 4, 2008, 11:35am UTC](https://www.ruby-forum.com/t/find-all-by-associated-class/124986 "2008-01-04T11:35:20Z")

</div>

If an “Learningobject” belongs to a “Kind”, and a kind has many learningobjects, linked in the usual way where a learningobject has a kind\_id field, can i set up the method\_missing stuff so that i can say Learningobje…

---

## [Help with in\_place\_edit from script.aculo.us](https://www.ruby-forum.com/t/help-with-in-place-edit-from-script-aculo-us/124976)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 9:05am UTC](https://www.ruby-forum.com/t/help-with-in-place-edit-from-script-aculo-us/124976 "2008-01-04T09:05:02Z")

</div>

Hello, I try to figure out how to use the script.aculo.us scripts and followed the example on their webpage, but still getting errors, like “element has no properties”. I have the following code: view/add.rhtml \<%=…

---

## [Rails URL Rewrite help needed](https://www.ruby-forum.com/t/rails-url-rewrite-help-needed/124971)

<div class="topic-metadata">

**Author:** [@1978](https://www.ruby-forum.com/u/1978)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 7:19am UTC](https://www.ruby-forum.com/t/rails-url-rewrite-help-needed/124971 "2008-01-04T07:19:09Z")

</div>

Hey guys, I need some help. Firstly: Running Rails 2.0.x cPanel Version 11.16.0-RELEASE Shared hosting. My App is not in public\_html/ but under home/usr/rails\_apps/(rubyapp) Please tell me how I get my rails ap…

---

## [Form field returns string instead of int](https://www.ruby-forum.com/t/form-field-returns-string-instead-of-int/124962)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 8\
**Last updated:** [January 4, 2008, 5:59am UTC](https://www.ruby-forum.com/t/form-field-returns-string-instead-of-int/124962 "2008-01-04T05:59:52Z")

</div>

\<%= select( “user” , “type”, { “Practice” =\> 1, “Doctor” =\> 2, “Hygenist” =\>3, “Assistant” =\> 4 }, {:include\_blank =\> false, :prompt =\>true}) %\> produces: Please select Hygenist Assistant Doctor Practice and the f…

---

## [References in Rails 2.0 migrations](https://www.ruby-forum.com/t/references-in-rails-2-0-migrations/124862)

<div class="topic-metadata">

**Author:** [@Alfredo](https://www.ruby-forum.com/u/Alfredo)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 5:24am UTC](https://www.ruby-forum.com/t/references-in-rails-2-0-migrations/124862 "2008-01-04T05:24:14Z")

</div>

I’ve searched around and have not found a way to add a reference column to an existing table, I guess it would be something like class AddProjectReferenceToTask \< ActiveRecord::Migration def self.up add\_reference :ta…

---

## [Question on updating 'child' records](https://www.ruby-forum.com/t/question-on-updating-child-records/124827)

<div class="topic-metadata">

**Author:** [@Samantha](https://www.ruby-forum.com/u/Samantha)\
**Replies:** 9\
**Last updated:** [January 4, 2008, 5:14am UTC](https://www.ruby-forum.com/t/question-on-updating-child-records/124827 "2008-01-04T05:14:18Z")

</div>

Hi there, I have a Rails app with several has\_many relationships, which in turn have several has\_many relationships. Let’s say that I have an ‘enabled’ field in each table, that can be either true or false. If I dis…

---

## [Best Hardware and Networking Solutions](https://www.ruby-forum.com/t/best-hardware-and-networking-solutions/124968)

<div class="topic-metadata">

**Author:** [@bestsolutions](https://www.ruby-forum.com/u/bestsolutions)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 4:37am UTC](https://www.ruby-forum.com/t/best-hardware-and-networking-solutions/124968 "2008-01-04T04:37:22Z")

</div>

removed\_email\_address@domain.invalid Don’t worry if your computer not booting or freezes or any hardware or software problems .Or if you decide to buy a computer, we will help you to choose best configuration within y…

---

## [User management/Admin backend](https://www.ruby-forum.com/t/user-management-admin-backend/124967)

<div class="topic-metadata">

**Author:** [@AdDoctor](https://www.ruby-forum.com/u/AdDoctor)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 4:36am UTC](https://www.ruby-forum.com/t/user-management-admin-backend/124967 "2008-01-04T04:36:53Z")

</div>

We have built an admin panel that is suitable for use in house, but we are now going to an api and white label model and need a more robust set of admin features and billing functions. Does anyone know of an off the …

---

## [Auto\_complete plugin Mime: CSS](https://www.ruby-forum.com/t/auto-complete-plugin-mime-css/123283)

<div class="topic-metadata">

**Author:** [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Replies:** 4\
**Last updated:** [January 4, 2008, 4:10am UTC](https://www.ruby-forum.com/t/auto-complete-plugin-mime-css/123283 "2008-01-04T04:10:33Z")

</div>

Just upgraded to 2.0, I’ve installed the auto\_complete plugin. When the new event page loads, attached is the error page I get. I’m new to Rails so I’m quite stumped. Please help!!!

---

## [RJS Help](https://www.ruby-forum.com/t/rjs-help/124963)

<div class="topic-metadata">

**Author:** [@jamesSz](https://www.ruby-forum.com/u/jamesSz)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 3:02am UTC](https://www.ruby-forum.com/t/rjs-help/124963 "2008-01-04T03:02:23Z")

</div>

Hi all, I am new to both Ruby and Ruby on Rails. I am trying to do the follow inside a rjs template (building the Depot application using rails 2.0). page.replace\_html(“cart”, :partial =\> “cart”, :object =\> @cart) if…

---

## [Eager loading a specific field?](https://www.ruby-forum.com/t/eager-loading-a-specific-field/124913)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 2:44am UTC](https://www.ruby-forum.com/t/eager-loading-a-specific-field/124913 "2008-01-04T02:44:03Z")

</div>

so I am loading 100 posts, and know I will need post.author.name, is there a way to eager load just authors.name rather than all of authors’ fields? thx

---

## [My old message to this list got removed. please tell me if I do something wrong? - ActiveRecord inc](https://www.ruby-forum.com/t/my-old-message-to-this-list-got-removed-please-tell-me-if-i-do-something-wrong-activerecord-inc/196559)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 4, 2008, 1:29am UTC](https://www.ruby-forum.com/t/my-old-message-to-this-list-got-removed-please-tell-me-if-i-do-something-wrong-activerecord-inc/196559 "2008-01-04T01:29:15Z")

</div>

Hi, I noticed ActiveRecord uses some join queries to perform :include stuff. While this certainly fixes the N+1 problem, I’m wondering about the amount of sparse data this generates. Example: Task has many TodoItem…

---

## [Activerecord include queries - performance](https://www.ruby-forum.com/t/activerecord-include-queries-performance/124930)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 4, 2008, 12:56am UTC](https://www.ruby-forum.com/t/activerecord-include-queries-performance/124930 "2008-01-04T00:56:26Z")

</div>

Hi, I noticed ActiveRecord uses some join queries to perform :include stuff. While this certainly fixes the N+1 problem, I’m wondering about the amount of sparse data this generates. Example: Task has many TodoItem…

---

## [Ruby on Rails bookmarkss](https://www.ruby-forum.com/t/ruby-on-rails-bookmarkss/124952)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 0\
**Last updated:** [January 4, 2008, 12:37am UTC](https://www.ruby-forum.com/t/ruby-on-rails-bookmarkss/124952 "2008-01-04T00:37:57Z")

</div>

I don’t know if this has already been done, but my friend and I have been maintaining our own lists of Railss-related bookmarks on del.icio.us, and we’ve decided to use collaborate and share our Rails-related stuff un…

---

## [PHP in my instant rails](https://www.ruby-forum.com/t/php-in-my-instant-rails/124840)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 5\
**Last updated:** [January 4, 2008, 12:16am UTC](https://www.ruby-forum.com/t/php-in-my-instant-rails/124840 "2008-01-04T00:16:41Z")

</div>

why do i have phpMyAdmin in instant rails? this is a bit weird. can’t it be written in ruby?

---

## [Help using options\_for\_select in select\_tag](https://www.ruby-forum.com/t/help-using-options-for-select-in-select-tag/124929)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 4, 2008, 12:12am UTC](https://www.ruby-forum.com/t/help-using-options-for-select-in-select-tag/124929 "2008-01-04T00:12:35Z")

</div>

Client \<%= select\_tag ‘clients\[\]’, options\_for\_select( \[\[’ ',‘1’\], \[‘aaaa’,‘2’\], \[‘daemon’,‘3’\],\[‘nortel’,‘4’\],\[‘telefonica’,‘5’\],\[‘local’,‘6’\],\[‘otro’,‘7’\]\] ), { :multiple =\> true, :size =\>4 } %\> Instead of …

---

## [Lightweight scalable image proxy](https://www.ruby-forum.com/t/lightweight-scalable-image-proxy/124941)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 3\
**Last updated:** [January 4, 2008, 12:06am UTC](https://www.ruby-forum.com/t/lightweight-scalable-image-proxy/124941 "2008-01-04T00:06:39Z")

</div>

I need to proxy images from facebook through a different url (one which I can put a crossdomain.xml file) Im currently using like 20 mongrels where I run: def index return unless params\[:url\].include?(“facebook.com”) …

---

## [Installing Rails plugins with Subversion for Eclipse](https://www.ruby-forum.com/t/installing-rails-plugins-with-subversion-for-eclipse/124947)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/installing-rails-plugins-with-subversion-for-eclipse/124947 "2008-01-03T23:56:02Z")

</div>

Hi you all, I’ve installed Subversion for Eclipse (Subclipse), in order to install Rails plugins (will\_paginate, more precisely). However, I want to install the plugin without having to move my Rails project to a svn…

---

## [Updated from 1.2.5 to 1.2.6 and getting undefined method 's](https://www.ruby-forum.com/t/updated-from-1-2-5-to-1-2-6-and-getting-undefined-method-s/124942)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/updated-from-1-2-5-to-1-2-6-and-getting-undefined-method-s/124942 "2008-01-03T23:40:46Z")

</div>

i start the server but it exits right away, I ran the rake to update and changed the version string in config.rb. Any thoughts on this matter would be appreciated. i imagine that it has something to do with the sessio…

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

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