# Rails

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

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

---

## [Passing a function with arguments to another function with arguments that is a loop](https://www.ruby-forum.com/t/passing-a-function-with-arguments-to-another-function-with-arguments-that-is-a-loop/151973)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 2\
**Last updated:** [October 31, 2008, 11:24am UTC](https://www.ruby-forum.com/t/passing-a-function-with-arguments-to-another-function-with-arguments-that-is-a-loop/151973 "2008-10-31T11:24:52Z")

</div>

Hi, I am a noobie. I just want to know what is the standard or most effective way of doing this I have two functions def display\_price(grocery,batch) grocery\_price = grocery.send(batch).price if grocery\_price numbe…

---

## [Adding belongs\_to to an application model from an engine](https://www.ruby-forum.com/t/adding-belongs-to-to-an-application-model-from-an-engine/152142)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 4\
**Last updated:** [October 31, 2008, 10:33am UTC](https://www.ruby-forum.com/t/adding-belongs-to-to-an-application-model-from-an-engine/152142 "2008-10-31T10:33:47Z")

</div>

Hi, I have an Instance model in my application, to which I want to add a has\_many :web\_file\_attachment from the plugin. I tried putting this in my plugin’s app/model/instance.rb : class Instance \< ActiveRecord::Base …

---

## [HELPERS\_DIR is missing](https://www.ruby-forum.com/t/helpers-dir-is-missing/152205)

<div class="topic-metadata">

**Author:** [@boblu](https://www.ruby-forum.com/u/boblu)\
**Replies:** 4\
**Last updated:** [October 31, 2008, 9:59am UTC](https://www.ruby-forum.com/t/helpers-dir-is-missing/152205 "2008-10-31T09:59:45Z")

</div>

In my project, I have class ApplicationController \< ActionController::Base helper :all end module ApplicationHelper def use\_module ### ssss end end class B \< ApplicationController def efd call\_private() end p…

---

## [Get an object other than primary key ID](https://www.ruby-forum.com/t/get-an-object-other-than-primary-key-id/152208)

<div class="topic-metadata">

**Author:** [@karthik\_chigurupati](https://www.ruby-forum.com/u/karthik_chigurupati)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 9:24am UTC](https://www.ruby-forum.com/t/get-an-object-other-than-primary-key-id/152208 "2008-10-31T09:24:35Z")

</div>

Hello, i want to retrieve and object from a table other than primary key ID. eg: @sites.each do |@site| @site\_id = @site.id @tower = Tower.find(:all, :conditions =\> \[“site\_id =?”, @site\_id\]) Tower Belongs to S…

---

## [Re: Help with an RJS](https://www.ruby-forum.com/t/re-help-with-an-rjs/152204)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 9:21am UTC](https://www.ruby-forum.com/t/re-help-with-an-rjs/152204 "2008-10-31T09:21:03Z")

</div>

Sent from my iPhone On 30 Oct 2008, at 22:35, elioncho removed\_email\_address@domain.invalid wrote: I added the () but that’s not the problem. I added the next alert and it shows the events length. But if I remove ano…

---

## [OT: El Dorado, Substruct, Tracks and Beast, One-Click Deployment to Morph AppSpace](https://www.ruby-forum.com/t/ot-el-dorado-substruct-tracks-and-beast-one-click-deployment-to-morph-appspace/152200)

<div class="topic-metadata">

**Author:** [@Macel\_Legaspi](https://www.ruby-forum.com/u/Macel_Legaspi)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 7:49am UTC](https://www.ruby-forum.com/t/ot-el-dorado-substruct-tracks-and-beast-one-click-deployment-to-morph-appspace/152200 "2008-10-31T07:49:39Z")

</div>

Hello Rails developers, I wanted to let you know about our latest announcement. El Dorado, Substruct, Tracks and Beast – 4 open source Rails applications can now be readily deployed to Morph AppSpace by just clicking …

---

## [Advice on model design](https://www.ruby-forum.com/t/advice-on-model-design/151280)

<div class="topic-metadata">

**Author:** [@nickmc](https://www.ruby-forum.com/u/nickmc)\
**Replies:** 2\
**Last updated:** [October 31, 2008, 5:24am UTC](https://www.ruby-forum.com/t/advice-on-model-design/151280 "2008-10-31T05:24:07Z")

</div>

I’ve got an application with 2 related models. I want to search for data based on conditions in both models. I want to return items from the first model (Contract) grouped by conditions in the second (Status) At the …

---

## [Modularising and DRYing up code](https://www.ruby-forum.com/t/modularising-and-drying-up-code/152198)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 0\
**Last updated:** [October 31, 2008, 4:55am UTC](https://www.ruby-forum.com/t/modularising-and-drying-up-code/152198 "2008-10-31T04:55:28Z")

</div>

Hi there, My company (and product) Spike@School (www.spikeatschool.co.nz) is basically a CMS for schools. It allows you to add pages, links, blah, and more complicated things like podcasts and staff profiles to the s…

---

## [Capistrano question](https://www.ruby-forum.com/t/capistrano-question/152196)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 1\
**Last updated:** [October 31, 2008, 4:47am UTC](https://www.ruby-forum.com/t/capistrano-question/152196 "2008-10-31T04:47:52Z")

</div>

When configuring the ssh\_options\[:keys\] options. It says it should have a value of path/to/ssh/id\_rsa. Is that on my local machine or on the host machine?

---

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

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 6\
**Last updated:** [October 31, 2008, 4:10am UTC](https://www.ruby-forum.com/t/help-with-an-rjs/152187 "2008-10-31T04:10:25Z")

</div>

Hello, I have a code on a RJS where I want to check if an element in the DOM has child elements, if not, show a message. 1.page\["event\_"removed\_email\_address@domain.invalid\_s\].visual\_effect :fade #This works 2.page \<\< …

---

## [How to Pass a Large Array from one Action to Another](https://www.ruby-forum.com/t/how-to-pass-a-large-array-from-one-action-to-another/152152)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 2\
**Last updated:** [October 31, 2008, 2:47am UTC](https://www.ruby-forum.com/t/how-to-pass-a-large-array-from-one-action-to-another/152152 "2008-10-31T02:47:04Z")

</div>

Good morning everybody, how are you? Okay, this should be easy. I am generating a large array in one action, and I want to pass this array to another action when the user pushes a button. @problems is a large array …

---

## [Multiple Paginate](https://www.ruby-forum.com/t/multiple-paginate/152189)

<div class="topic-metadata">

**Author:** [@enzor](https://www.ruby-forum.com/u/enzor)\
**Replies:** 2\
**Last updated:** [October 31, 2008, 1:20am UTC](https://www.ruby-forum.com/t/multiple-paginate/152189 "2008-10-31T01:20:51Z")

</div>

Hi there! I’m just at the beginning of my development with ruby on rails, and yet i’m facing a problem. See, i got 4 dropdown lists on which give 4 different parameters for a single query to display a list of users (…

---

## [Help with Regex](https://www.ruby-forum.com/t/help-with-regex/152178)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/help-with-regex/152178 "2008-10-30T23:21:47Z")

</div>

page.body.scan(/\</tr\>\\n\</form\>\\n\<tr\>\\n(.)\</tr\>/mi) gets half the results page.body.scan(/\</tr\>\\n\<tr\>\\n(.)\</tr\>/mi) gets the other half I need help writing the reg ex that gets all the results. Thanks in advance.

---

## [Ruby Developer(s) Needed](https://www.ruby-forum.com/t/ruby-developer-s-needed/152186)

<div class="topic-metadata">

**Author:** [@UTours](https://www.ruby-forum.com/u/UTours)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/ruby-developer-s-needed/152186 "2008-10-30T23:15:56Z")

</div>

Our web development team has left us high and dry and we need a our website finished asap. Still a significant amount of work to be done. We then went and hired a php high level programmer and this was his response. "…

---

## [ActiveMerchant and Encrypted Paypal Standard Checkout](https://www.ruby-forum.com/t/activemerchant-and-encrypted-paypal-standard-checkout/152141)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 9\
**Last updated:** [October 30, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/activemerchant-and-encrypted-paypal-standard-checkout/152141 "2008-10-30T22:02:17Z")

</div>

Hi, Does any know about a good resource for using ActiveMerchant to create an encrypted button that will use Paypal’s Standard checkout mode? Best regards,

---

## [Freezing gems when dev OS != prod OS](https://www.ruby-forum.com/t/freezing-gems-when-dev-os-prod-os/152180)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/freezing-gems-when-dev-os-prod-os/152180 "2008-10-30T21:56:07Z")

</div>

My question arises from the fact that I’m developing on Windows but, in the short term, deploying to a shared, Linux-based host. I’m developing on Windows because that’s where the app will eventually be installed. Bu…

---

## [X is not missing constant Y](https://www.ruby-forum.com/t/x-is-not-missing-constant-y/152144)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 10\
**Last updated:** [October 30, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/x-is-not-missing-constant-y/152144 "2008-10-30T21:43:53Z")

</div>

Moving my app from rails 1.2 to rails 2.1, I stuck into this weird problem? X is not missing constant Y. The problem occurs when I use the join table association. X.find(1).y It works in (script/console) but not in …

---

## [New release of SCGI](https://www.ruby-forum.com/t/new-release-of-scgi/111968)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 8\
**Last updated:** [October 30, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/new-release-of-scgi/111968 "2008-10-30T21:27:43Z")

</div>

It’s been almost two years since the last release of Zed S.'s SCGI Rails Runner (0.4.3 in October 2005). I’ve been using it in production since then and have modified it to add some new features and remove some ones …

---

## [Xml file download prompt instead of displaying in browser?](https://www.ruby-forum.com/t/xml-file-download-prompt-instead-of-displaying-in-browser/150837)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 7\
**Last updated:** [October 30, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/xml-file-download-prompt-instead-of-displaying-in-browser/150837 "2008-10-30T21:00:53Z")

</div>

Hello all, I am trying to export some xml files on the web app as a download, but Firefox/chrome/ie/safari all just display the xml content on themselves. How can I have the download prompt? Like I am downloading a .…

---

## [Ruby on Rails Dev \[Latin America, Eastern Europe, India\]](https://www.ruby-forum.com/t/ruby-on-rails-dev-latin-america-eastern-europe-india/152176)

<div class="topic-metadata">

**Author:** [@decidestaffing](https://www.ruby-forum.com/u/decidestaffing)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-dev-latin-america-eastern-europe-india/152176 "2008-10-30T21:00:17Z")

</div>

Need to find experienced Ruby on Rails developers Key requirements: Speak English in an advance level 1 plus year of Rails experience on production project Could be available immediately or in next two weeks Experienc…

---

## [Error trying to create a static scaffold](https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174)

<div class="topic-metadata">

**Author:** [@deepa](https://www.ruby-forum.com/u/deepa)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 8:27pm UTC](https://www.ruby-forum.com/t/error-trying-to-create-a-static-scaffold/152174 "2008-10-30T20:27:16Z")

</div>

I’m a beginner. I get that error "wrong number of arguments (1 for 2). Please let me know why this is so. I’m copying the comand from the Agile Devpl. book. thanks, Deepa RubyScripts\\depot\>ruby script/generate scaffol…

---

## [Rails console](https://www.ruby-forum.com/t/rails-console/152155)

<div class="topic-metadata">

**Author:** [@Farrel](https://www.ruby-forum.com/u/Farrel)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/rails-console/152155 "2008-10-30T19:42:40Z")

</div>

I tried to create an addition to Enumerable called choose\_randomly that picks a random element from the Enumerable object. However when I define it and execute the code rand complains about the wrong number of argumen…

---

## [Non-index method doesn't display the viex correctly](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/non-index-method-doesnt-display-the-viex-correctly/152167 "2008-10-30T19:32:03Z")

</div>

Hi there. I have a problem with the view of the method related to the same controller. I have two methods in one controller: “index” and “causes”, which each one has a view. I make my “index” view with stylesheets, j…

---

## [\[JOBS\] SE London: Looking for a mid-level rails developer for a temporary contract](https://www.ruby-forum.com/t/jobs-se-london-looking-for-a-mid-level-rails-developer-for-a-temporary-contract/152166)

<div class="topic-metadata">

**Author:** [@tatyree](https://www.ruby-forum.com/u/tatyree)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/jobs-se-london-looking-for-a-mid-level-rails-developer-for-a-temporary-contract/152166 "2008-10-30T19:09:08Z")

</div>

We’re getting ready to launch our new social networking application and need some development/sysadmin help in the run up to release. We’ve got lots of small jobs, fixes and a few last second integrations to be done, …

---

## [What do you think about](https://www.ruby-forum.com/t/what-do-you-think-about/152165)

<div class="topic-metadata">

**Author:** [@ventura](https://www.ruby-forum.com/u/ventura)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/what-do-you-think-about/152165 "2008-10-30T18:31:01Z")

</div>

Is a javascript / template agnostic version of rails. We need suggestion and contributors!

---

## [Missing the Rails gem on ubuntu](https://www.ruby-forum.com/t/missing-the-rails-gem-on-ubuntu/152147)

<div class="topic-metadata">

**Author:** [@tatyree](https://www.ruby-forum.com/u/tatyree)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/missing-the-rails-gem-on-ubuntu/152147 "2008-10-30T18:16:23Z")

</div>

I’ve just deployed a second 2.1.0 app on to a long-running ubuntu 8.0.4 box. The first app, which lives in the same top level directory, runs fine. The new app, however, mostly refuses to run (mongrel will start, bu…

---

## [Need Help Convincing Java Developers To Use Rails](https://www.ruby-forum.com/t/need-help-convincing-java-developers-to-use-rails/152156)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 1\
**Last updated:** [October 30, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/need-help-convincing-java-developers-to-use-rails/152156 "2008-10-30T18:08:09Z")

</div>

I am working with two Java developers. We are developing a web app using the typical open source java libraries tapestry, hibernate, etc. I am trying to convince them to switch over to Rails. I was hoping to get som…

---

## [PostgreSQL schema\_search\_path ignores case](https://www.ruby-forum.com/t/postgresql-schema-search-path-ignores-case/152163)

<div class="topic-metadata">

**Author:** [@acras](https://www.ruby-forum.com/u/acras)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/postgresql-schema-search-path-ignores-case/152163 "2008-10-30T18:03:26Z")

</div>

Hi, I have to connect to a legacy DB wich has a schema called “Financeiro”. I setup my database.yml to: … schema\_search\_path: Financeiro … when activerecord tries to find something I get the following error: Acti…

---

## [Rails 2.1 Caching and time\_to\_live](https://www.ruby-forum.com/t/rails-2-1-caching-and-time-to-live/152160)

<div class="topic-metadata">

**Author:** [@Daly](https://www.ruby-forum.com/u/Daly)\
**Replies:** 0\
**Last updated:** [October 30, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/rails-2-1-caching-and-time-to-live/152160 "2008-10-30T17:43:29Z")

</div>

Hello all, We are using the action\_cache(http://craz8.com/svn/trunk/plugins/ action\_cache/) plugin for time based expiry of our RSS feeds. We upgraded to Rails 2.1, and now it fails because the plugin calls @actions.…

---

## [Rubygems-update 1.3.0 causing rake task problems?](https://www.ruby-forum.com/t/rubygems-update-1-3-0-causing-rake-task-problems/152009)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [October 30, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/rubygems-update-1-3-0-causing-rake-task-problems/152009 "2008-10-30T17:15:55Z")

</div>

I’m running into problems with some of my rake tasks and I think it’s since my host updated rubygems to v 1.3.0. Has anybody else seen this message? Gem::SourceIndex#search support for String patterns is deprecated .…

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

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