# Rails

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

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

---

## [Capistrano and mongrel\_cluster.yml](https://www.ruby-forum.com/t/capistrano-and-mongrel-cluster-yml/89898)

<div class="topic-metadata">

**Author:** [@raul](https://www.ruby-forum.com/u/raul)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/capistrano-and-mongrel-cluster-yml/89898 "2007-03-23T18:25:57Z")

</div>

Hey everyone! Hope you guys are all doing good. I was wondering how anyone here might be handling their mongrel\_cluster.yml file with capistrano on multiple environments. I have my team, 3 of us with our own local d…

---

## [Merging multiple AR result hashes into one for view loop](https://www.ruby-forum.com/t/merging-multiple-ar-result-hashes-into-one-for-view-loop/89848)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/merging-multiple-ar-result-hashes-into-one-for-view-loop/89848 "2007-03-23T18:00:56Z")

</div>

Need some opinions about the best way to go about this. I know :include does something similar, though I’m not sure if thats what I need. I have a Users model which :has\_many of several other models, we’ll call them…

---

## [Can anyone see what is wrong with this code?](https://www.ruby-forum.com/t/can-anyone-see-what-is-wrong-with-this-code/89894)

<div class="topic-metadata">

**Author:** [@RJRJRJ](https://www.ruby-forum.com/u/RJRJRJ)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/can-anyone-see-what-is-wrong-with-this-code/89894 "2007-03-23T17:24:43Z")

</div>

Using find by sql to get some results. The error is: wrong number of arguments (0 for 1) #{RAILS\_ROOT}/app/models/result.rb:24:in \`find\_by\_sql’ def self.get\_tests\_run(project) @project = Project.find(project) @build…

---

## [Validation problem](https://www.ruby-forum.com/t/validation-problem/89878)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/validation-problem/89878 "2007-03-23T16:28:03Z")

</div>

Hi, I am having a problem validating some fields in my model. When I run the regular expression through the interpreter (irb) it seems to work properly, but when I try to save through the view, the regular expressio…

---

## [Assign events on creation of a new user](https://www.ruby-forum.com/t/assign-events-on-creation-of-a-new-user/89770)

<div class="topic-metadata">

**Author:** [@kinneyjd](https://www.ruby-forum.com/u/kinneyjd)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/assign-events-on-creation-of-a-new-user/89770 "2007-03-23T16:21:02Z")

</div>

Hello everyone, I am developing a web app that is being used to track users and their associated events. Events could be like ‘getting married’, ‘having a baby’, ‘buying a car’, etc. and each event has a median age as…

---

## [Catching requests for non-existing controllers and actions](https://www.ruby-forum.com/t/catching-requests-for-non-existing-controllers-and-actions/89896)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/catching-requests-for-non-existing-controllers-and-actions/89896 "2007-03-23T16:17:01Z")

</div>

Hey :slight\_smile: I’m trying to achieve CMS-like functionality with pages, content\_slots and content\_providers. Basically, there are a number of “static” pages in the application, “static” meaning there are controll…

---

## [Helper method nav\_path not working](https://www.ruby-forum.com/t/helper-method-nav-path-not-working/89863)

<div class="topic-metadata">

**Author:** [@Christoph\_O](https://www.ruby-forum.com/u/Christoph_O)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/helper-method-nav-path-not-working/89863 "2007-03-23T15:59:58Z")

</div>

Hi there, is there any explanation for the following strange behaviour that occured to me: I created a helper method in application\_helper.rb called “nav\_path”, that is supposed to be returning an array to me. For s…

---

## [Strange bug in date\_select?](https://www.ruby-forum.com/t/strange-bug-in-date-select/88890)

<div class="topic-metadata">

**Author:** [@Joram](https://www.ruby-forum.com/u/Joram)\
**Replies:** 9\
**Last updated:** [March 23, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/strange-bug-in-date-select/88890 "2007-03-23T15:54:57Z")

</div>

Hi, I’m having a very strange error when using the date\_select. This is de code in my view: \<%= date\_select :user, :birthdate , :order =\> \[:day, :month, :year\], :start\_year =\> Time.now.year-120, :end\_year =\> Time.now…

---

## [Relationship breaks Validation](https://www.ruby-forum.com/t/relationship-breaks-validation/89881)

<div class="topic-metadata">

**Author:** [@oem](https://www.ruby-forum.com/u/oem)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/relationship-breaks-validation/89881 "2007-03-23T14:37:03Z")

</div>

Heya people, this is my first post here so if I forget some relevant info (like logs or something) please tell me. Ok to my problem: I have a fairly simple rails app so far, a “products”-table that belongs to categori…

---

## [Link\_to\_remote not hitting controller](https://www.ruby-forum.com/t/link-to-remote-not-hitting-controller/89862)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/link-to-remote-not-hitting-controller/89862 "2007-03-23T14:30:47Z")

</div>

Hi. I have a link\_to\_remote that should call a function in controller that updates the page using rjs. The links are not hitting the controller. I click on the link and nothing happens in the log file. I suspect it …

---

## [Can \[ruby\] on rails do this --- crazy request](https://www.ruby-forum.com/t/can-ruby-on-rails-do-this-crazy-request/89636)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 5\
**Last updated:** [March 23, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/can-ruby-on-rails-do-this-crazy-request/89636 "2007-03-23T13:13:13Z")

</div>

Hi all, Loving the Ruby on Rails world so far. My web app needs to browse the local file system for file names and directories to build lists for processing with a commercial application. I realize this is a no no fo…

---

## [Functional test and flash with an error](https://www.ruby-forum.com/t/functional-test-and-flash-with-an-error/89802)

<div class="topic-metadata">

**Author:** [@solidariti](https://www.ruby-forum.com/u/solidariti)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/functional-test-and-flash-with-an-error/89802 "2007-03-23T13:07:31Z")

</div>

I’m getting this error thats moaning about expected tag, but no tag found matching {:content=\>“User James Apps was successfully created.”, :attributes=\>{:id=\>“notice”}, :tag=\>“div”} in the file application.rb. I tried…

---

## [Default Values](https://www.ruby-forum.com/t/default-values/89854)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/default-values/89854 "2007-03-23T13:05:16Z")

</div>

Hello. I have a problem with rails. I have a filed in a table that is of double type. When I show the view, a default value is shown, but there is no default value in the database. How can I override this? Thanks

---

## [Two branch nested includes](https://www.ruby-forum.com/t/two-branch-nested-includes/89865)

<div class="topic-metadata">

**Author:** [@RJRJRJ](https://www.ruby-forum.com/u/RJRJRJ)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/two-branch-nested-includes/89865 "2007-03-23T12:39:27Z")

</div>

Hi all. I have a project which has two “trees” branching out from it in terms of children. Currently I am nested including one branch: @projects = Project.find(:all, :include =\> \[:component =\> {:category =\> :testcase…

---

## [New Application Advice](https://www.ruby-forum.com/t/new-application-advice/89849)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 9:18am UTC](https://www.ruby-forum.com/t/new-application-advice/89849 "2007-03-23T09:18:42Z")

</div>

I think it’s time for me to learn more things about RoR and finally move on to Rails 1.2. So, I’ve got my InstantRails 1.6 ready to go and am looking at an application to use for playing with. I would like to design …

---

## [Ruby still strange to me... ;-)](https://www.ruby-forum.com/t/ruby-still-strange-to-me/89808)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 9\
**Last updated:** [March 23, 2007, 8:21am UTC](https://www.ruby-forum.com/t/ruby-still-strange-to-me/89808 "2007-03-23T08:21:43Z")

</div>

Hi all Always when I begin to think that I’m getting better and better in mastering Ruby I stumble upon some strange behavior that I don’t understand… :wink: class Country \< ActiveRecord::Base validates\_presence\_of …

---

## [Export to a CSV or XLS file](https://www.ruby-forum.com/t/export-to-a-csv-or-xls-file/100480)

<div class="topic-metadata">

**Author:** [@vasu](https://www.ruby-forum.com/u/vasu)\
**Replies:** 9\
**Last updated:** [March 23, 2007, 7:19am UTC](https://www.ruby-forum.com/t/export-to-a-csv-or-xls-file/100480 "2007-03-23T07:19:57Z")

</div>

hello everyone, Any idea how can i export a resultset from a database to a CSV or XLS file from the application ? would like the user to have the option to export selected data to a CSV/XLS file. Any plugins or libra…

---

## [Capistrano run problem](https://www.ruby-forum.com/t/capistrano-run-problem/89841)

<div class="topic-metadata">

**Author:** [@Radu\_S](https://www.ruby-forum.com/u/Radu_S)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 6:12am UTC](https://www.ruby-forum.com/t/capistrano-run-problem/89841 "2007-03-23T06:12:53Z")

</div>

I am trying to use run to reload a small program in after\_deploy, it goes something like this: run \<\<-CMD if \[\[ -f #{shared\_path}/pids/program.pid \]\]; then pid=$(cat #{shared\_path}/p…

---

## [Need help with rjs for captcha? simple for you not for me!](https://www.ruby-forum.com/t/need-help-with-rjs-for-captcha-simple-for-you-not-for-me/89840)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [March 23, 2007, 4:17am UTC](https://www.ruby-forum.com/t/need-help-with-rjs-for-captcha-simple-for-you-not-for-me/89840 "2007-03-23T04:17:19Z")

</div>

is this correct? my page after the action calls…shows html in my browser… details/detail\_view.rhtml \<%= error\_messages\_for 'post' %\> \<%= form\_remote\_tag :url =\> { :action =\> ‘checkcaptcha’ }, :html =\> { :id =\> ‘p…

---

## [Scalability](https://www.ruby-forum.com/t/scalability/89695)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 4:00am UTC](https://www.ruby-forum.com/t/scalability/89695 "2007-03-23T04:00:45Z")

</div>

could ror support a service on the scale of myspace? i’ve been reading about problems with the types of databses that ruby can work with?

---

## [Creation and validation of object instances with has\_many an](https://www.ruby-forum.com/t/creation-and-validation-of-object-instances-with-has-many-an/89833)

<div class="topic-metadata">

**Author:** [@jens](https://www.ruby-forum.com/u/jens)\
**Replies:** 0\
**Last updated:** [March 23, 2007, 1:01am UTC](https://www.ruby-forum.com/t/creation-and-validation-of-object-instances-with-has-many-an/89833 "2007-03-23T01:01:35Z")

</div>

Hello everybody, I am slowly beginning to understand some principles behind Ruby and Rails and am working on my first project. It’s basically this: Users register for an event, with personal information, preferences …

---

## [Locomotive + RadRails Installation help](https://www.ruby-forum.com/t/locomotive-radrails-installation-help/89818)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [March 23, 2007, 12:44am UTC](https://www.ruby-forum.com/t/locomotive-radrails-installation-help/89818 "2007-03-23T00:44:34Z")

</div>

Hi guys, Im having trouble getting RadRails and Locomotive to hook up! (Im obviously on OSX hence Locomotive) Ive tried setting locomotive.app as a interpreter, but it doesnt seem to accept it? Im defently having som…

---

## [Censor Search Queries](https://www.ruby-forum.com/t/censor-search-queries/89664)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 8\
**Last updated:** [March 22, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/censor-search-queries/89664 "2007-03-22T23:24:23Z")

</div>

No, I don’t want to censor what people are querying, I want to censor the searches I display. I display the last 5 queries entered in the search box on my website. I do not want to display offensive terms - such as, t…

---

## [Specify session id in url params](https://www.ruby-forum.com/t/specify-session-id-in-url-params/89804)

<div class="topic-metadata">

**Author:** [@Alex\_MacCaw](https://www.ruby-forum.com/u/Alex_MacCaw)\
**Replies:** 3\
**Last updated:** [March 22, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/specify-session-id-in-url-params/89804 "2007-03-22T23:04:51Z")

</div>

I’m wondering if it’s possible to specify a user’s session id in the url parameters.

---

## [Use Mysql.new() without DB data](https://www.ruby-forum.com/t/use-mysql-new-without-db-data/89778)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/use-mysql-new-without-db-data/89778 "2007-03-22T22:49:43Z")

</div>

How can I use MySQL.new() inside one of my models without specifying the specifics of the database connection? So in one of my models I have something like: m = Mysql.new(“localhost”,“myuser”,“mypass”,“mydb”) r = m.q…

---

## [Theme\_support plugin and Rails 1.2.2](https://www.ruby-forum.com/t/theme-support-plugin-and-rails-1-2-2/89817)

<div class="topic-metadata">

**Author:** [@mamatux](https://www.ruby-forum.com/u/mamatux)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/theme-support-plugin-and-rails-1-2-2/89817 "2007-03-22T22:43:42Z")

</div>

Hello, I have been a happy user of the theme\_support plugin for a long time using Rails 1.1.6. But I needed the new bells’n’whistles so I started upgrading my software to Rails 1.2.2. It has been a smooth transition,…

---

## [Google maps, rails, and ajax](https://www.ruby-forum.com/t/google-maps-rails-and-ajax/89813)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/google-maps-rails-and-ajax/89813 "2007-03-22T22:05:59Z")

</div>

i have a question about embedding a form\_remote\_tag inside a tabbed window on a google map. i am trying to include such a tag in tab, but am finding that the form just goes to where the destination of the form is… i …

---

## [Enumerable sum oddity](https://www.ruby-forum.com/t/enumerable-sum-oddity/89742)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/enumerable-sum-oddity/89742 "2007-03-22T22:04:32Z")

</div>

Hi. In this setup “account has\_many :consultations”. Can anyone explain the following behaviour to me? Rails 1.2.2. The “sum” method should return 0 for an empty array. a = Account.find(1) =\> #\<Account:0x39c80a8 @…

---

## [Accessing my "homemade" rails server](https://www.ruby-forum.com/t/accessing-my-homemade-rails-server/89805)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 2\
**Last updated:** [March 22, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/accessing-my-homemade-rails-server/89805 "2007-03-22T21:56:30Z")

</div>

Hi, I have instant rails installed and am messing around with Ruby/Rails. I’m pretty new to this, but how do I access what I’ve made from other internet connected computers. Server is running on port 3000 (i hope tha…

---

## [Capistrano help!](https://www.ruby-forum.com/t/capistrano-help/246509)

<div class="topic-metadata">

**Author:** [@theremix](https://www.ruby-forum.com/u/theremix)\
**Replies:** 0\
**Last updated:** [March 22, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/capistrano-help/246509 "2007-03-22T21:32:38Z")

</div>

I’ve had this problem for over 2 weeks: i’m following a tutorial on how to use capistrano on dreamhost servers here http://wiki.dreamhost.com/index.php/Capistrano it’s not very well writ, so i’m assuming i do all the…

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

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