# Rails

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

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

---

## [Polymorph associations](https://www.ruby-forum.com/t/polymorph-associations/178607)

<div class="topic-metadata">

**Author:** [@Terracor](https://www.ruby-forum.com/u/Terracor)\
**Replies:** 0\
**Last updated:** [November 7, 2009, 6:13pm UTC](https://www.ruby-forum.com/t/polymorph-associations/178607 "2009-11-07T18:13:09Z")

</div>

Hello! I’m quite new to the rails framework and I just discovered the different kind of associations in models. For the application I’m creating, I need some polymorph associations. The model I created, works great. …

---

## [How to handle my comment validation errors](https://www.ruby-forum.com/t/how-to-handle-my-comment-validation-errors/178549)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [November 7, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-handle-my-comment-validation-errors/178549 "2009-11-07T18:06:43Z")

</div>

I’ve got a resorts view, shows details of a ski resort. Under the resort description I allow users to leave comments on the resort - works fine. Resort has many comments. Comment belongs to resort. However, slight pr…

---

## [Cookie and JSON request](https://www.ruby-forum.com/t/cookie-and-json-request/178547)

<div class="topic-metadata">

**Author:** [@Jens\_MF](https://www.ruby-forum.com/u/Jens_MF)\
**Replies:** 2\
**Last updated:** [November 7, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/cookie-and-json-request/178547 "2009-11-07T18:02:37Z")

</div>

HI: I want to make a JSON GET request and have a ‘setCookie’ entry in the http response header. By default there is none. How can I enable cookies with JSON? -Jens

---

## [Question about updating files in production / Mongrel restart](https://www.ruby-forum.com/t/question-about-updating-files-in-production-mongrel-restart/178572)

<div class="topic-metadata">

**Author:** [@MJFuzz](https://www.ruby-forum.com/u/MJFuzz)\
**Replies:** 4\
**Last updated:** [November 7, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/question-about-updating-files-in-production-mongrel-restart/178572 "2009-11-07T16:34:17Z")

</div>

Hello, I just completed my first real rails application. I successfully deployed it, configured apache/mongrel clusters, etc. However, I do need to make code changes on the site often. I noticed the only time the cha…

---

## [How to use Rails cron?](https://www.ruby-forum.com/t/how-to-use-rails-cron/105158)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 5\
**Last updated:** [November 7, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/how-to-use-rails-cron/105158 "2009-11-07T14:07:42Z")

</div>

Hi, How to use rails cron? can I get any link of reference guide?

---

## [The iRequest Live! Rails + Qooxdoo](https://www.ruby-forum.com/t/the-irequest-live-rails-qooxdoo/178596)

<div class="topic-metadata">

**Author:** [@glex](https://www.ruby-forum.com/u/glex)\
**Replies:** 0\
**Last updated:** [November 7, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/the-irequest-live-rails-qooxdoo/178596 "2009-11-07T12:17:44Z")

</div>

Hi, everyone! We just released The iRequest Live! webapp. It is based on qooxdoo frontend, and Ruby on Rails backend. I have provided some qooxdoo + rails integration tips on the qooxdoo website. The iRequest Live! …

---

## [Output values being converted?](https://www.ruby-forum.com/t/output-values-being-converted/178583)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 3\
**Last updated:** [November 7, 2009, 11:17am UTC](https://www.ruby-forum.com/t/output-values-being-converted/178583 "2009-11-07T11:17:36Z")

</div>

Hi all, I’ve got a c++ program that inserts data into a mysql database, its a 32 length varchar column in question that contains sha256 hashes such as 018cf0b47256973ab6f08a720208c28c34d85722 Unfortunately, when I co…

---

## [\[JOBS\] 3x Sr Ruby on Rails developers (New Delhi)](https://www.ruby-forum.com/t/jobs-3x-sr-ruby-on-rails-developers-new-delhi/178595)

<div class="topic-metadata">

**Author:** [@Rails\_Delhi](https://www.ruby-forum.com/u/Rails_Delhi)\
**Replies:** 0\
**Last updated:** [November 7, 2009, 11:15am UTC](https://www.ruby-forum.com/t/jobs-3x-sr-ruby-on-rails-developers-new-delhi/178595 "2009-11-07T11:15:16Z")

</div>

We are looking for multiple talented Senior Web D.s with a history of commercial product & consumer-oriented web application design and high-end development and exposure to the full project life cycle. The successful …

---

## [Create multiple objects in 1 form](https://www.ruby-forum.com/t/create-multiple-objects-in-1-form/178586)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [November 7, 2009, 8:42am UTC](https://www.ruby-forum.com/t/create-multiple-objects-in-1-form/178586 "2009-11-07T08:42:32Z")

</div>

I have an model in my rails app called Dog. I want to create a form where I can create an arbitrary amount of dogs with one request. Here’s the default for creating a dog form: New dog \<% form\_for(@dog) do |f| %\> \<%=…

---

## [Fetching data from two or more tables](https://www.ruby-forum.com/t/fetching-data-from-two-or-more-tables/160434)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 1\
**Last updated:** [November 7, 2009, 7:34am UTC](https://www.ruby-forum.com/t/fetching-data-from-two-or-more-tables/160434 "2009-11-07T07:34:09Z")

</div>

Hi all, Say, I have two tables (requirements & projreqs)and want to execute the following query. SELECT \* FROM requirements WHERE(id = (SELECT req\_id FROM projreqs WHERE proj\_id = ?)); Being a newbie in Ruby, I know…

---

## [Ruby on Rails based Content Management System](https://www.ruby-forum.com/t/ruby-on-rails-based-content-management-system/178525)

<div class="topic-metadata">

**Author:** [@mupet](https://www.ruby-forum.com/u/mupet)\
**Replies:** 3\
**Last updated:** [November 7, 2009, 5:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-based-content-management-system/178525 "2009-11-07T05:08:18Z")

</div>

Hi, just want to know what is the best Ruby ob Rails based Content Management system for bloging platform?

---

## [Advice for superset/subset data model](https://www.ruby-forum.com/t/advice-for-superset-subset-data-model/178544)

<div class="topic-metadata">

**Author:** [@danm](https://www.ruby-forum.com/u/danm)\
**Replies:** 1\
**Last updated:** [November 7, 2009, 3:59am UTC](https://www.ruby-forum.com/t/advice-for-superset-subset-data-model/178544 "2009-11-07T03:59:19Z")

</div>

Hi, I’m interested to know if anyone has any clever suggestions about how to model the following scenario with ActiveRecord: I’d like a collection of media, including photos, videos, and songs, all of which have som…

---

## [Newbie Alert: RoR on Passenger issue](https://www.ruby-forum.com/t/newbie-alert-ror-on-passenger-issue/178164)

<div class="topic-metadata">

**Author:** [@Saurabh\_Agrawal](https://www.ruby-forum.com/u/Saurabh_Agrawal)\
**Replies:** 7\
**Last updated:** [November 7, 2009, 2:26am UTC](https://www.ruby-forum.com/t/newbie-alert-ror-on-passenger-issue/178164 "2009-11-07T02:26:35Z")

</div>

Hi, Just finished installing RoR on my brand new linode Ubuntu 9.04 VPS using following guides: http://library.linode.com/web-frameworks/ruby-on-rails/installing-ruby-on-rails-with-apache https://help.ubuntu.com/com…

---

## [Running ruby scripts from rails](https://www.ruby-forum.com/t/running-ruby-scripts-from-rails/178582)

<div class="topic-metadata">

**Author:** [@tbtbtb](https://www.ruby-forum.com/u/tbtbtb)\
**Replies:** 0\
**Last updated:** [November 7, 2009, 1:34am UTC](https://www.ruby-forum.com/t/running-ruby-scripts-from-rails/178582 "2009-11-07T01:34:12Z")

</div>

Hi, First, I am new to rails. I have written a Ruby script to test some perf issues in socket calls. The Ruby code spins up some server threads listening on localhost, and then starts a client on the main thread, and…

---

## [Segmentation Fault in Snow Leopard](https://www.ruby-forum.com/t/segmentation-fault-in-snow-leopard/178530)

<div class="topic-metadata">

**Author:** [@likumahuwa](https://www.ruby-forum.com/u/likumahuwa)\
**Replies:** 26\
**Last updated:** [November 7, 2009, 12:18am UTC](https://www.ruby-forum.com/t/segmentation-fault-in-snow-leopard/178530 "2009-11-07T00:18:55Z")

</div>

I just upgraded to snow leopard and I’m trying to get the 64 bit version of mysql and ruby going. I ran through the steps here… mysql is running properly and when I run which ruby I get… /usr/local/bin/ruby Whi…

---

## [Trouble Freezing Rails](https://www.ruby-forum.com/t/trouble-freezing-rails/178447)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 3\
**Last updated:** [November 6, 2009, 11:11pm UTC](https://www.ruby-forum.com/t/trouble-freezing-rails/178447 "2009-11-06T23:11:23Z")

</div>

I have a Rails app that is currently running in production on Rails v1.2.2. Since I didn’t have control of the server that runs the production copy of this app, I have put off upgrading to v2.x. However, I recently r…

---

## [Streaming, xml and daemons](https://www.ruby-forum.com/t/streaming-xml-and-daemons/178579)

<div class="topic-metadata">

**Author:** [@cadqc](https://www.ruby-forum.com/u/cadqc)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/streaming-xml-and-daemons/178579 "2009-11-06T22:28:39Z")

</div>

Hi everyone, I am trying to find a way to use the new twitter streaming API (continuous XML or JSON stream) in a ruby/rails project. I want to grab the stream on my server, process it with different algorithms, and t…

---

## [DNS query](https://www.ruby-forum.com/t/dns-query/178522)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 3\
**Last updated:** [November 6, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/dns-query/178522 "2009-11-06T22:11:04Z")

</div>

Hi, This is a bit of Ruby and a bit of Linux, but because I’m working on this in a Rails environment, I’ve decided to post it here. I use the net-dns gem to make SOA queries like the following: def query\_domain(domai…

---

## [Generate identifying number after a record is created](https://www.ruby-forum.com/t/generate-identifying-number-after-a-record-is-created/178513)

<div class="topic-metadata">

**Author:** [@snlsn](https://www.ruby-forum.com/u/snlsn)\
**Replies:** 16\
**Last updated:** [November 6, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/generate-identifying-number-after-a-record-is-created/178513 "2009-11-06T20:25:42Z")

</div>

Hello; For this scheduling app I’m trying to make for my little photography company… I would like to assign a unique, incrementing number to records in my database, but NOT at the time the record is created. In our …

---

## [Active Directory](https://www.ruby-forum.com/t/active-directory/178571)

<div class="topic-metadata">

**Author:** [@Steven\_Elliott\_Jr](https://www.ruby-forum.com/u/Steven_Elliott_Jr)\
**Replies:** 3\
**Last updated:** [November 6, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/active-directory/178571 "2009-11-06T18:22:45Z")

</div>

Hello, I have been asked to write an intranet app that deals with certain HR functionality. It would be awesome to be able to tie into Active Directory from Rails. Has anyone ever done this before? If so, what did yo…

---

## [Issues Customizing ActiveRecord Error Messages](https://www.ruby-forum.com/t/issues-customizing-activerecord-error-messages/178468)

<div class="topic-metadata">

**Author:** [@ESLitwin](https://www.ruby-forum.com/u/ESLitwin)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/issues-customizing-activerecord-error-messages/178468 "2009-11-06T17:41:11Z")

</div>

I have two issues with trying to customize error messages. I’m using Rails 2.3.4 and Ruby 1.8.7. The first issue has to do with basic error message interpolation. As an example, I modified my en.yml file and added the…

---

## [New brand ruby job board was launched](https://www.ruby-forum.com/t/new-brand-ruby-job-board-was-launched/178566)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/new-brand-ruby-job-board-was-launched/178566 "2009-11-06T15:28:53Z")

</div>

New brand ruby job board was launched. Check it out http://www.rubyjobs4u.com/

---

## [App or platform for screencasts](https://www.ruby-forum.com/t/app-or-platform-for-screencasts/178511)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 2\
**Last updated:** [November 6, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/app-or-platform-for-screencasts/178511 "2009-11-06T15:25:58Z")

</div>

Hi, I’m looking for an application or platform (both in Ruby) which would make me publish screencasts with ease. I already know railscasts and aintablog (which is used by gitcasts). Does anyone know more free stuff …

---

## [Uploading an image using attachemnt\_fu](https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543 "2009-11-06T15:24:03Z")

</div>

Hi, I am using image uploading by using attachment\_fu. I am able tp upload the images by using attachment\_fu. I have seen that images are uploading in ‘public/#{table\_name}/0000’ directory. My question is if my imag…

---

## [How can I make an aggregated property support ActiveRecord::Dirty semantics?](https://www.ruby-forum.com/t/how-can-i-make-an-aggregated-property-support-activerecord-dirty-semantics/178559)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/how-can-i-make-an-aggregated-property-support-activerecord-dirty-semantics/178559 "2009-11-06T15:01:58Z")

</div>

Hoping one of the many experts here might help out a newb… I have an aggregated attribute which I want to be able ask about its \_changed? ness, etc. composed\_of :range, :class\_name =\> ‘Range’, :mapping =\> \[ %w(range…

---

## [Googles Closure on Rails](https://www.ruby-forum.com/t/googles-closure-on-rails/178561)

<div class="topic-metadata">

**Author:** [@Marian\_Theisen](https://www.ruby-forum.com/u/Marian_Theisen)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/googles-closure-on-rails/178561 "2009-11-06T14:06:22Z")

</div>

Google recently made their Closure js libs open-source, is there or are there plans for a rails plugin?

---

## [Inserting records using REST](https://www.ruby-forum.com/t/inserting-records-using-rest/178541)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 3\
**Last updated:** [November 6, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/inserting-records-using-rest/178541 "2009-11-06T13:53:29Z")

</div>

HI All, I have a situation to insert records from table of one database to a table of another database. Previously I did it using the following code in the script. establish\_connection File.open( “#{RAILS\_ROOT}/confi…

---

## [Apache + ssl + passenger](https://www.ruby-forum.com/t/apache-ssl-passenger/178553)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/apache-ssl-passenger/178553 "2009-11-06T12:19:29Z")

</div>

Hello all! I have a problem, I couldn’t setup apache+passenger+ssl (( Please take a look on http://pastie.org/686216, here is my configs and log Seems to be that passenger doesn’t start (log file, couldn’f find regi…

---

## [Regarding acts\_as\_solr](https://www.ruby-forum.com/t/regarding-acts-as-solr/178550)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 0\
**Last updated:** [November 6, 2009, 11:20am UTC](https://www.ruby-forum.com/t/regarding-acts-as-solr/178550 "2009-11-06T11:20:21Z")

</div>

Hey friends, Suggest me some articles on acts\_as\_solr, as I googled but unable to find relevant article. Regards Hunt.

---

## [Bootstrapping Prototype to allow simple widgets?](https://www.ruby-forum.com/t/bootstrapping-prototype-to-allow-simple-widgets/178546)

<div class="topic-metadata">

**Author:** [@chrizbot](https://www.ruby-forum.com/u/chrizbot)\
**Replies:** 1\
**Last updated:** [November 6, 2009, 9:18am UTC](https://www.ruby-forum.com/t/bootstrapping-prototype-to-allow-simple-widgets/178546 "2009-11-06T09:18:59Z")

</div>

Hi. I am trying to create a simple widget that people can add to their site with one script tag, like the following: The action is an RJS that renders some HTML at that spot (like a widget): page.insert\_html :top, …

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

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