# Rails

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

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

---

## [\[ANN\] Substruct 0.9 Released - Rails 1.2.3, Engines 1.2 - Ro](https://www.ruby-forum.com/t/ann-substruct-0-9-released-rails-1-2-3-engines-1-2-ro/106686)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/ann-substruct-0-9-released-rails-1-2-3-engines-1-2-ro/106686 "2007-06-14T20:21:28Z")

</div>

Substruct, the open-source Ruby on Rails e-commerce and cms engine has finally been updated to Rails 1.2.3 and Engines 1.2 Special thanks to NSHB for his help in this update. http://www.nshb.net/ Substruct website: h…

---

## [Error with apache and mongrel\_cluster](https://www.ruby-forum.com/t/error-with-apache-and-mongrel-cluster/106858)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/error-with-apache-and-mongrel-cluster/106858 "2007-06-14T19:36:30Z")

</div>

Hi, im using Apache 2 as a proxy balancer and a mongrel\_cluster. When I try to load a particular controller/action of my application, it displays something like a HTTP header and, below that, it shows me the generated…

---

## [Nginx on Mac help](https://www.ruby-forum.com/t/nginx-on-mac-help/106770)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 5\
**Last updated:** [June 14, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/nginx-on-mac-help/106770 "2007-06-14T18:18:38Z")

</div>

Greetings, I’m trying get an Nginx, mong-clust, mongrel, rails stack working on an iMac mini that recently came into my possession. I’ve never used Nginx, thus I’m sure I’m doing something wrong. I installed nginx vi…

---

## [Where does it come from?](https://www.ruby-forum.com/t/where-does-it-come-from/55387)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 4\
**Last updated:** [June 14, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/where-does-it-come-from/55387 "2007-06-14T17:49:19Z")

</div>

Below every page in the browser i get: “Loaded suite dispatch.cgi Started Finished in 0.000225 seconds. 0 tests, 0 assertions, 0 failures, 0 errors” I’m not sure if i changed something or someone else did it, but now …

---

## [Are there any HTML+CSS to PDF converters in ruby](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/are-there-any-html-css-to-pdf-converters-in-ruby/106819 "2007-06-14T17:19:57Z")

</div>

Hi, I tried PDF writer , but it doesn’t have HTML to PDF Converter. Infact it is a PDF writer itself not a converter… I've HTML pages with rich css or Strings with html+css such that they are converted to PDF. The i…

---

## [NameError: cannot remove Object::Elements](https://www.ruby-forum.com/t/nameerror-cannot-remove-object-elements/106850)

<div class="topic-metadata">

**Author:** [@cnicolaou](https://www.ruby-forum.com/u/cnicolaou)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/nameerror-cannot-remove-object-elements/106850 "2007-06-14T17:12:37Z")

</div>

Hi, I am receiving this error while loading an XML list into a table using ‘acts\_as\_nested\_set’. I am sure the list is well organized and proper, yet i keep getting the error on the same line/level although it looks …

---

## [ASCII character in select box](https://www.ruby-forum.com/t/ascii-character-in-select-box/106829)

<div class="topic-metadata">

**Author:** [@Cow](https://www.ruby-forum.com/u/Cow)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/ascii-character-in-select-box/106829 "2007-06-14T17:10:57Z")

</div>

Hi all, I’ve been searching for hours trying to find a way to display the euro symbol using the select method. My code is as follows: addresses = @cart.company.delivery\_addresses.map {|a| \[a.description, a.id\]} addr…

---

## [Using two keys in a Model](https://www.ruby-forum.com/t/using-two-keys-in-a-model/106743)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 9\
**Last updated:** [June 14, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/using-two-keys-in-a-model/106743 "2007-06-14T16:56:39Z")

</div>

Hi, i need an approach to tackle this problem: In an ActiveRecord Model, i need to generate the key for the record given the year That is: i know for every new record MYSQL will enforce that the id field will be uniq…

---

## [Looking for developer with experience in developing auction](https://www.ruby-forum.com/t/looking-for-developer-with-experience-in-developing-auction/106847)

<div class="topic-metadata">

**Author:** [@steve8004](https://www.ruby-forum.com/u/steve8004)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/looking-for-developer-with-experience-in-developing-auction/106847 "2007-06-14T16:46:52Z")

</div>

Hello: I’m new to the community and wanted to know if someone on the list might be able to makerecommendations on an open source project that allows you to conduct auctions of services? Ruby on Rails seems like it’s …

---

## [Problems with blocks in views](https://www.ruby-forum.com/t/problems-with-blocks-in-views/106694)

<div class="topic-metadata">

**Author:** [@Regen](https://www.ruby-forum.com/u/Regen)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/problems-with-blocks-in-views/106694 "2007-06-14T16:30:15Z")

</div>

Hello, I have a strange behavior in a view. If I do \<% @atoms.group\_by(&:type).each do |type, atoms| %\> \<p\> \<h3\>\<%= type %\>\</h3\> \<%= render :partial =\> 'row', :collection =\> atoms %\> \</p\> \<% end %\> the problem…

---

## [How to get Domain to point to subdirectory?](https://www.ruby-forum.com/t/how-to-get-domain-to-point-to-subdirectory/106845)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/how-to-get-domain-to-point-to-subdirectory/106845 "2007-06-14T16:24:43Z")

</div>

Hi All, I have an application that will have several domains pointing to different paths within my application. For example: www.johndoe.com should point to: http://www.peoplepages.com/people/1 or www.sallyjohnson…

---

## [Does Javascript allow download from a server to local file s](https://www.ruby-forum.com/t/does-javascript-allow-download-from-a-server-to-local-file-s/106842)

<div class="topic-metadata">

**Author:** [@gilles](https://www.ruby-forum.com/u/gilles)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/does-javascript-allow-download-from-a-server-to-local-file-s/106842 "2007-06-14T15:43:38Z")

</div>

Does Javascript allow download from the server to the local filesystem ? I ask that because i am trying to initiate a file download through a link\_to\_function method which contains an Ajax.Request … Here it is : \<%=…

---

## [ActiveRecord validates\_uniqueness\_of with :date column](https://www.ruby-forum.com/t/activerecord-validates-uniqueness-of-with-date-column/106841)

<div class="topic-metadata">

**Author:** [@Chris\_Lloyd](https://www.ruby-forum.com/u/Chris_Lloyd)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/activerecord-validates-uniqueness-of-with-date-column/106841 "2007-06-14T15:35:37Z")

</div>

Hi, I have a column, “display\_on” of type “date”. Just running default scaffolding, validates\_uniqueness\_of :display\_on doesn’t work. Is this a bug or am I doing somthing wrong?

---

## [Date time comparison](https://www.ruby-forum.com/t/date-time-comparison/106838)

<div class="topic-metadata">

**Author:** [@Paolo\_N](https://www.ruby-forum.com/u/Paolo_N)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/date-time-comparison/106838 "2007-06-14T15:07:30Z")

</div>

Hi there in RoR i can convert a Time into a Date object t = Time.new =\> Thu Jun 14 14:00:46 BST 2007 d = Date.new(2007,06,03) #\<Date: 4908509/2,0,2299161\> t.to\_date =\> #\<Date: 4908531/2,0,2299161\> d.to\_time =\> …

---

## [Want to hide the id value while redirecting to the browser](https://www.ruby-forum.com/t/want-to-hide-the-id-value-while-redirecting-to-the-browser/106837)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/want-to-hide-the-id-value-while-redirecting-to-the-browser/106837 "2007-06-14T15:06:50Z")

</div>

hi, while redirecting i want to hide the passing value in redirect\_to. at present i am doing like this, redirect\_to :controller=\>‘account’,:action=\>‘account\_step2’,:id=\>@acc.id but this id should be hide, so is there…

---

## [Errors When Trying to Update RubyGems on OS X Tiger](https://www.ruby-forum.com/t/errors-when-trying-to-update-rubygems-on-os-x-tiger/106832)

<div class="topic-metadata">

**Author:** [@Unnsse\_Khan](https://www.ruby-forum.com/u/Unnsse_Khan)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/errors-when-trying-to-update-rubygems-on-os-x-tiger/106832 "2007-06-14T14:14:22Z")

</div>

Hello there, I am using the following: Ruby version: ruby 1.8.4 (2005-12-24) \[powerpc-darwin8.7.0\] Rails version: Rails 1.1.4 RubyGems version: 0.9.0 I got the following error message when I tried to update all m…

---

## [Getcwd not found: rails 1.1.6, file\_column (svn)](https://www.ruby-forum.com/t/getcwd-not-found-rails-1-1-6-file-column-svn/106830)

<div class="topic-metadata">

**Author:** [@nov](https://www.ruby-forum.com/u/nov)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/getcwd-not-found-rails-1-1-6-file-column-svn/106830 "2007-06-14T13:39:16Z")

</div>

Hi, I get an “Errno::ENOENT No such file or directory - getcwd”, after finishing an upload process by the file\_column plugin, and just before a redirection. The action which receives the POST with the upload informat…

---

## [Rhtml to controller](https://www.ruby-forum.com/t/rhtml-to-controller/106697)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/rhtml-to-controller/106697 "2007-06-14T13:31:32Z")

</div>

Hello I have big Problem with an function. I want to change the Password for a User in my Program. View: Neues Passwort \<%form\_tag :url =\> {:controller =\> :admin, :action =\> :changepw\_admin} do %\> Bitte alle Fe…

---

## [Problem: Foreign Key in INSERT is NULL](https://www.ruby-forum.com/t/problem-foreign-key-in-insert-is-null/106818)

<div class="topic-metadata">

**Author:** [@rubyrubyruby\_onrail](https://www.ruby-forum.com/u/rubyrubyruby_onrail)\
**Replies:** 4\
**Last updated:** [June 14, 2007, 12:46pm UTC](https://www.ruby-forum.com/t/problem-foreign-key-in-insert-is-null/106818 "2007-06-14T12:46:00Z")

</div>

Using a collection\_select in the view, I have added the foreign key to the parameter list - good so far. The log file confirms this: The model is an item (in the Items database table), the supplier\_id is the foreign ke…

---

## [What is rails-mailing-list@andreas-s.net?](https://www.ruby-forum.com/t/what-is-rails-mailing-list-andreas-s-net/106816)

<div class="topic-metadata">

**Author:** [@gman327](https://www.ruby-forum.com/u/gman327)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/what-is-rails-mailing-list-andreas-s-net/106816 "2007-06-14T12:32:08Z")

</div>

So I see a lot of legitimate postings to this group using the above From: but then again I also see spammers using it to cover their tracks. So just exactly what is removed\_email\_address@domain.invalid and why is it b…

---

## [REAL PLAYER is FREE and is considered the Best,Music Player](https://www.ruby-forum.com/t/real-player-is-free-and-is-considered-the-best-music-player/106823)

<div class="topic-metadata">

**Author:** [@niku](https://www.ruby-forum.com/u/niku)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/real-player-is-free-and-is-considered-the-best-music-player/106823 "2007-06-14T12:23:06Z")

</div>

Hi There, Real Player Update !! Now Real Player New Version is available for FREE. With Real Player, Transfer music to iPod and other portable media players… www.chulbul.com/real.htm Have Fun

---

## [Mail\_to tag](https://www.ruby-forum.com/t/mail-to-tag/106813)

<div class="topic-metadata">

**Author:** [@Mahendra](https://www.ruby-forum.com/u/Mahendra)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 11:33am UTC](https://www.ruby-forum.com/t/mail-to-tag/106813 "2007-06-14T11:33:10Z")

</div>

Hi, In my html i use textarea and on submit button i want to place textarea content in body of mailer opened using mail\_to tag. how it is possible. I am using the ruby code.

---

## [How do I set my database to production?](https://www.ruby-forum.com/t/how-do-i-set-my-database-to-production/106791)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 11:14am UTC](https://www.ruby-forum.com/t/how-do-i-set-my-database-to-production/106791 "2007-06-14T11:14:55Z")

</div>

I know how to set the paswords and database names in database.yml, but I haven’t found in my book where do I set rails to use the production database ? What will be different once I do that ? Is prod more secure and …

---

## [Displaying Date in ROR (.rhtml) files?](https://www.ruby-forum.com/t/displaying-date-in-ror-rhtml-files/106804)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [June 14, 2007, 10:47am UTC](https://www.ruby-forum.com/t/displaying-date-in-ror-rhtml-files/106804 "2007-06-14T10:47:52Z")

</div>

I know in PHP, it’s uses \<?php date(Y); ?\> to display the current year. How would I do it in an ROR’s .rthml file?

---

## [Mac Question: How to click on file ref in a log file and aut](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 9:23am UTC](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766 "2007-06-14T09:23:41Z")

</div>

Hi all, Does anyone know how to arrange on the Mac so that if I: (a) see a file reference in a Rails log file (see below for example) that I could then: (b) somehow highlight and hit a hot key combination such that …

---

## [Error while updating RubyGems](https://www.ruby-forum.com/t/error-while-updating-rubygems/106802)

<div class="topic-metadata">

**Author:** [@untz](https://www.ruby-forum.com/u/untz)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 9:06am UTC](https://www.ruby-forum.com/t/error-while-updating-rubygems/106802 "2007-06-14T09:06:39Z")

</div>

I got the following error message when I tried to update all my RubyGems on OS X Tiger (please notice that I did log as ‘root’ prior to this): Raven:/Users/untz root# gem update all --include-dependencies Updating in…

---

## [Unit Testing not working for some controllers](https://www.ruby-forum.com/t/unit-testing-not-working-for-some-controllers/106798)

<div class="topic-metadata">

**Author:** [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Replies:** 1\
**Last updated:** [June 14, 2007, 8:47am UTC](https://www.ruby-forum.com/t/unit-testing-not-working-for-some-controllers/106798 "2007-06-14T08:47:38Z")

</div>

Hai all, I am trying to unit test all my controllers (functional testing). All the actions in controllers which are accessed directly from the browser are working properly (i.e., the parameters I am passing from the …

---

## [Ajax Toggle Bar](https://www.ruby-forum.com/t/ajax-toggle-bar/106785)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 8:30am UTC](https://www.ruby-forum.com/t/ajax-toggle-bar/106785 "2007-06-14T08:30:36Z")

</div>

Hi Everybody, I am new to Ajax and wondering if it is possible to create Ajax component like following link in Rails. I am not sure how to call this kinds of widgets. It shows bars which you can dynamically show an…

---

## [On Deploy Files/Folders Also Created On Separate DB Server](https://www.ruby-forum.com/t/on-deploy-files-folders-also-created-on-separate-db-server/106737)

<div class="topic-metadata">

**Author:** [@jnunemaker](https://www.ruby-forum.com/u/jnunemaker)\
**Replies:** 2\
**Last updated:** [June 14, 2007, 8:03am UTC](https://www.ruby-forum.com/t/on-deploy-files-folders-also-created-on-separate-db-server/106737 "2007-06-14T08:03:35Z")

</div>

I have a web/app/svn server and a separate database server. Whenever I deploy my app, it treats the db server identical to the web/app server. By that, I mean it sets up the releases folder, etc. and deploys the entir…

---

## [Select changed event for collection\_select](https://www.ruby-forum.com/t/select-changed-event-for-collection-select/106797)

<div class="topic-metadata">

**Author:** [@bins](https://www.ruby-forum.com/u/bins)\
**Replies:** 0\
**Last updated:** [June 14, 2007, 7:59am UTC](https://www.ruby-forum.com/t/select-changed-event-for-collection-select/106797 "2007-06-14T07:59:34Z")

</div>

Hello, I’m using collection\_select method in one application as follows. \<%= collection\_select(“occupation”,“id”,@occupations,“id”,“name”)%\> Could you please tell how we can call a javascript function on a select cha…

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

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