# Rails

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

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

---

## [Backgroundrb and REXML issue](https://www.ruby-forum.com/t/backgroundrb-and-rexml-issue/92750)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 6\
**Last updated:** [April 25, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-rexml-issue/92750 "2007-04-25T20:05:47Z")

</div>

Hi, I have an application that receives XML files, and then hands each one off to a backgroundrb worker to parse and store the info. Everything was working, until I needed to support a larger character set. So I ad…

---

## [With\_scope going protected](https://www.ruby-forum.com/t/with-scope-going-protected/92925)

<div class="topic-metadata">

**Author:** [@RJRJRJ](https://www.ruby-forum.com/u/RJRJRJ)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/with-scope-going-protected/92925 "2007-04-25T19:11:18Z")

</div>

Was reading up on with\_scope and came across this via err.the\_blog Deprecation is a step too far, there are legitimate uses of with\_scope, particularly around encapsulated finds for permissions models. I just thi…

---

## [SQL calls and associations](https://www.ruby-forum.com/t/sql-calls-and-associations/92920)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 3\
**Last updated:** [April 25, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/sql-calls-and-associations/92920 "2007-04-25T18:50:41Z")

</div>

Hi all, I have a really quick question on the number of SQL calls I am seeing in my development log when it comes to associations. This may just be an environment issue, but I could not find an answer. If I have a b…

---

## [Making the browser cache an action](https://www.ruby-forum.com/t/making-the-browser-cache-an-action/69307)

<div class="topic-metadata">

**Author:** [@Robert\_MannI](https://www.ruby-forum.com/u/Robert_MannI)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/making-the-browser-cache-an-action/69307 "2007-04-25T18:48:51Z")

</div>

Hi! What HTTP headers do I have to sent to make the browser cache the output of an action? I tried: request.delete(‘Cache-control’) but no luck. It’s an action that sends an image to the browser, hence I need that. …

---

## [View name of multiselect in list instead of view](https://www.ruby-forum.com/t/view-name-of-multiselect-in-list-instead-of-view/92923)

<div class="topic-metadata">

**Author:** [@bullring](https://www.ruby-forum.com/u/bullring)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/view-name-of-multiselect-in-list-instead-of-view/92923 "2007-04-25T18:25:39Z")

</div>

In my model i have: PRIORITY\_TYPES = \[ \[ 'Trivial", “1” \], \[ “Minor”, “2” \], \[ “Major”, “3” \] \] in my new entry form i have: \<%= form.select(:status, Project::STATUS\_TYPES, :prompt =\> “Select Status”) %\> in my v…

---

## [Single Table Inheritance VS Polymorphic Associations](https://www.ruby-forum.com/t/single-table-inheritance-vs-polymorphic-associations/92922)

<div class="topic-metadata">

**Author:** [@jesselfout](https://www.ruby-forum.com/u/jesselfout)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-vs-polymorphic-associations/92922 "2007-04-25T18:20:37Z")

</div>

I am trying to evaluate the reuse of software between versions. With out going into how I’m doing this i have a style question: If I have model Artifact, which right now can be typed as SrcCode or Document and basica…

---

## [Need workaround for belongs\_to :finder\_sql](https://www.ruby-forum.com/t/need-workaround-for-belongs-to-finder-sql/92916)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/need-workaround-for-belongs-to-finder-sql/92916 "2007-04-25T17:46:31Z")

</div>

Hi I am building an interface around my postfix config files. I have a bit of a mix of primary keys with the “Mailboxes” table having a rails-esqe Id field for each user. However, my “Aliases” table has just From/To …

---

## [Multiple databases and fixtures problems](https://www.ruby-forum.com/t/multiple-databases-and-fixtures-problems/92914)

<div class="topic-metadata">

**Author:** [@lodestone](https://www.ruby-forum.com/u/lodestone)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/multiple-databases-and-fixtures-problems/92914 "2007-04-25T17:33:30Z")

</div>

I’m working on a Rails app which makes use of two distinct (i.e. not master-slave) databases, one ours and the other a central data store which holds the core data we’re using. We have two sets of model classes, and t…

---

## [Streaming to/from DBI SQL Server](https://www.ruby-forum.com/t/streaming-to-from-dbi-sql-server/92913)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/streaming-to-from-dbi-sql-server/92913 "2007-04-25T17:31:30Z")

</div>

Hello all, I would like to know any links or experience that you have had using streaming to/from DBI for SQL Server. I have a data-transformation I’m working on that would do field-level calculation on every row fro…

---

## [Beginner: First 'app' not displaying in browser](https://www.ruby-forum.com/t/beginner-first-app-not-displaying-in-browser/92908)

<div class="topic-metadata">

**Author:** [@joe3000](https://www.ruby-forum.com/u/joe3000)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/beginner-first-app-not-displaying-in-browser/92908 "2007-04-25T17:28:38Z")

</div>

I have just started looking at Ruby on Rails and am following a book ‘Beginning Ruby on Rails’. The first exercise is to display a webpage but when entering the url in Firefox it doesnt display. I get this error mess…

---

## [Set attribute value from custom validation](https://www.ruby-forum.com/t/set-attribute-value-from-custom-validation/92902)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/set-attribute-value-from-custom-validation/92902 "2007-04-25T15:26:59Z")

</div>

Is there any way to set a value from a custom validates? There are times when a user has submitted the appropriate information, but just not in the exact form I am looking for and I would like to override what they en…

---

## [Using date\_select helper without an ActiveRecord model?](https://www.ruby-forum.com/t/using-date-select-helper-without-an-activerecord-model/92898)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/using-date-select-helper-without-an-activerecord-model/92898 "2007-04-25T14:44:55Z")

</div>

I would like to use a date\_select helper to select a date that will be used as a part of a condition in an ActiveRecord::find. The code I’m using looks like this: \<%= date\_select :calendar, :show\_month, :order =\> \[:mo…

---

## [How to run "freeze\_gem" on godaddy share hosting?](https://www.ruby-forum.com/t/how-to-run-freeze-gem-on-godaddy-share-hosting/92873)

<div class="topic-metadata">

**Author:** [@modpriest](https://www.ruby-forum.com/u/modpriest)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/how-to-run-freeze-gem-on-godaddy-share-hosting/92873 "2007-04-25T14:37:55Z")

</div>

How to run “freeze\_gem” on godaddy share hosting?

---

## [What web server to choose?](https://www.ruby-forum.com/t/what-web-server-to-choose/92866)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 25, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/what-web-server-to-choose/92866 "2007-04-25T13:47:45Z")

</div>

I’ve seen people moving from Lighttpd to Apache 2 based on blog posts, etc … Then again some people have posted about lighty coming back into favor. I am confused, whats the current favourite ? Is there one besides t…

---

## [Using partials insisde a partial](https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886 "2007-04-25T12:53:36Z")

</div>

HI , I am trying to use a partial inside a partial.Basically i am using ajax support of rails.I am updating a div with partial ,lets say a. Now i want to include a partial b with in a. I am trying this , but the htm…

---

## [How can I deal with collections in fieldset?](https://www.ruby-forum.com/t/how-can-i-deal-with-collections-in-fieldset/92889)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/how-can-i-deal-with-collections-in-fieldset/92889 "2007-04-25T12:51:36Z")

</div>

Hi all, I have a very complex model which has several has\_one and has\_many relationships with other models. For the has\_one relations, I can use “field\_for” to create/update the model information in a single form. Bu…

---

## [Auto\_complete galore](https://www.ruby-forum.com/t/auto-complete-galore/59090)

<div class="topic-metadata">

**Author:** [@mich](https://www.ruby-forum.com/u/mich)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/auto-complete-galore/59090 "2007-04-25T12:03:08Z")

</div>

List, I’m using auto\_complete with textfield, called CompanyCode. so when you type fx ‘0403’ it will show a list with matching company codes, and the respective company name - like so: 040333 - Some company inc 0403…

---

## [Long report](https://www.ruby-forum.com/t/long-report/92808)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 6\
**Last updated:** [April 25, 2007, 11:45am UTC](https://www.ruby-forum.com/t/long-report/92808 "2007-04-25T11:45:31Z")

</div>

Hi all! I have a rails app that has the ability to export data to excel. The problem is that the report is very bug, so I need a way to reduce the waiting time of my clients. My thought was, lunch some threads… but… …

---

## [Cygwin slow problem](https://www.ruby-forum.com/t/cygwin-slow-problem/92825)

<div class="topic-metadata">

**Author:** [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Replies:** 4\
**Last updated:** [April 25, 2007, 11:41am UTC](https://www.ruby-forum.com/t/cygwin-slow-problem/92825 "2007-04-25T11:41:43Z")

</div>

Hi, Being stuck in Windows at work, I installed rails on cygwin. However, when I type something like: script/generate or script/generate model the pc just churns and whirrs away and after about 2 minutes displays …

---

## [Problem POSTing with curl and REST using scaffold\_resource](https://www.ruby-forum.com/t/problem-posting-with-curl-and-rest-using-scaffold-resource/92872)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 10:47am UTC](https://www.ruby-forum.com/t/problem-posting-with-curl-and-rest-using-scaffold-resource/92872 "2007-04-25T10:47:19Z")

</div>

I issued the following curl command to post to the database using REST: curl -i -X POST -d “102\</ heartRate\>100215068\</ heartrate\>” http://localhost:3000/heartrates I have tested the GET (with curl also) and it work…

---

## [Aws.yml layout and security of accesskey and secret key?](https://www.ruby-forum.com/t/aws-yml-layout-and-security-of-accesskey-and-secret-key/92877)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 10:35am UTC](https://www.ruby-forum.com/t/aws-yml-layout-and-security-of-accesskey-and-secret-key/92877 "2007-04-25T10:35:59Z")

</div>

I have a aws.yml fill in a similar fashion to database.yml. There are staging, production areas, which include instance\_url, keypair\_name, see below. Im not storing this in svn, but copying across the file with cap on…

---

## [Downloading](https://www.ruby-forum.com/t/downloading/92880)

<div class="topic-metadata">

**Author:** [@noname](https://www.ruby-forum.com/u/noname)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 10:27am UTC](https://www.ruby-forum.com/t/downloading/92880 "2007-04-25T10:27:09Z")

</div>

I have downloaded the mac “locomotive” many times and receive a “codec overrun” error. I am at a loss. I have read that this means a damaged .dmg, Any help is appreciated. Machine Name: iBook G4 Machine Model: P…

---

## [Pirates of Silicon Valley Entire movie](https://www.ruby-forum.com/t/pirates-of-silicon-valley-entire-movie/92874)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 9:19am UTC](https://www.ruby-forum.com/t/pirates-of-silicon-valley-entire-movie/92874 "2007-04-25T09:19:45Z")

</div>

Pirates of Silicon Valley Entire movie

---

## [LDAP Authentication](https://www.ruby-forum.com/t/ldap-authentication/92871)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 9:02am UTC](https://www.ruby-forum.com/t/ldap-authentication/92871 "2007-04-25T09:02:00Z")

</div>

Hi all, I’ve LDAP basic authentication working using NET::LDAP. ##################################################### require ‘ldap\_auth’ #LDAP connection info host= ‘myldapserver’ #Your ldap server dn = ‘CN=users…

---

## [Simple deployment](https://www.ruby-forum.com/t/simple-deployment/92852)

<div class="topic-metadata">

**Author:** [@Ernst\_BeiglbSSSSck](https://www.ruby-forum.com/u/Ernst_BeiglbSSSSck)\
**Replies:** 2\
**Last updated:** [April 25, 2007, 8:45am UTC](https://www.ruby-forum.com/t/simple-deployment/92852 "2007-04-25T08:45:42Z")

</div>

Hi, what is the simplest and most up-to-date method of deploying rails for a site with very few users? I definitely don’t need clustering. Should I use Lighttpd? If yes, can someone point me to a site describing the …

---

## [How to get the current value of a select box?](https://www.ruby-forum.com/t/how-to-get-the-current-value-of-a-select-box/92863)

<div class="topic-metadata">

**Author:** [@Leo](https://www.ruby-forum.com/u/Leo)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 7:14am UTC](https://www.ruby-forum.com/t/how-to-get-the-current-value-of-a-select-box/92863 "2007-04-25T07:14:36Z")

</div>

Here is my code: \<%= observe\_field 'search\_form', :frequency =\> 0.5, :update =\> 'results', :url =\> { :controller =\> 'programs', :action=\> 'get\_results', …

---

## [Getting confused by my associations](https://www.ruby-forum.com/t/getting-confused-by-my-associations/92865)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 7:12am UTC](https://www.ruby-forum.com/t/getting-confused-by-my-associations/92865 "2007-04-25T07:12:36Z")

</div>

Hi All, I’m working on an application whereby each user will have a dashboard that will show topics and the associated results for those topics based on a quiz taken by the user. The 3 models in question are: User …

---

## [Testing on rubyonrails](https://www.ruby-forum.com/t/testing-on-rubyonrails/92864)

<div class="topic-metadata">

**Author:** [@vijay\_baskar](https://www.ruby-forum.com/u/vijay_baskar)\
**Replies:** 0\
**Last updated:** [April 25, 2007, 7:04am UTC](https://www.ruby-forum.com/t/testing-on-rubyonrails/92864 "2007-04-25T07:04:54Z")

</div>

Hi I am very new to Ruby on Rails, now i am working in Testing the Ruby on Rails platform.I need to know what are the Tools available for functional,unit,perfomance and automated testing tools? If you find anything k…

---

## [How to get the current value of a select box?](https://www.ruby-forum.com/t/how-to-get-the-current-value-of-a-select-box/92857)

<div class="topic-metadata">

**Author:** [@Leo](https://www.ruby-forum.com/u/Leo)\
**Replies:** 1\
**Last updated:** [April 25, 2007, 6:04am UTC](https://www.ruby-forum.com/t/how-to-get-the-current-value-of-a-select-box/92857 "2007-04-25T06:04:33Z")

</div>

Hey, guys I want to get the value of select box when i call the action “get\_result”. Here is my code. \<%= observe\_field 'search\_form', :frequency =\> 0.5, :update =\> 'results', …

---

## [Creating a "friends" association?](https://www.ruby-forum.com/t/creating-a-friends-association/92830)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 25, 2007, 4:08am UTC](https://www.ruby-forum.com/t/creating-a-friends-association/92830 "2007-04-25T04:08:28Z")

</div>

Hi, I have a Friend model that looks like this: create\_table “friendships”, :force =\> true do |t| t.column “sent\_by\_user\_id”, :integer t.column “received\_by\_user\_id”, :integer t.column “status”, :boo…

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

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