# Rails

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

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

---

## [Backgroundrb monit config](https://www.ruby-forum.com/t/backgroundrb-monit-config/117110)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 2\
**Last updated:** [November 3, 2007, 12:58am UTC](https://www.ruby-forum.com/t/backgroundrb-monit-config/117110 "2007-11-03T00:58:33Z")

</div>

I did some googling and found a post where Ezra said he monitors backgroundrb for memory/cpu/uptime. Just wondering what some reasonable starting points would be. Pat

---

## [Rfacebook: iFrame vs FBML Question](https://www.ruby-forum.com/t/rfacebook-iframe-vs-fbml-question/118779)

<div class="topic-metadata">

**Author:** [@raghus](https://www.ruby-forum.com/u/raghus)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/rfacebook-iframe-vs-fbml-question/118779 "2007-11-02T23:53:07Z")

</div>

I’d like for URLs like Log into Facebook to map to http://mysite.com/foo/bar/1. Is this at all possible if my site is running as an iFrame? Or is this possible only with FBML?

---

## [HTML::Selector syntax help](https://www.ruby-forum.com/t/html-selector-syntax-help/119088)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/html-selector-syntax-help/119088 "2007-11-02T23:46:05Z")

</div>

I’m trying to do something like “label=Something+span#id” where ‘Something’ is the text of the label, but can’t figure out how to do it. I tried using an attribute along the lines of \[text=Something\], but that didn’t…

---

## [How to edit many-to-many -- rhtml setup?](https://www.ruby-forum.com/t/how-to-edit-many-to-many-rhtml-setup/119087)

<div class="topic-metadata">

**Author:** [@olie](https://www.ruby-forum.com/u/olie)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/how-to-edit-many-to-many-rhtml-setup/119087 "2007-11-02T23:43:19Z")

</div>

I’ve got two tables: “colors” has a color and id column and rows “red”, “green”, blue". “cars” has maker and id columns and rows for “ford”, “chevy”, “dodge”. I’ve got a 3rd table, inventory. It’s got columns for c…

---

## [Offline Documetntation](https://www.ruby-forum.com/t/offline-documetntation/119070)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [November 2, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/offline-documetntation/119070 "2007-11-02T23:31:21Z")

</div>

I tried to create local rails documentation in a new rails project using: $ rake doc:rails And all I get is this: $ rake doc:rails --trace (in /home/byrnejb/Software/Development/testbed) \*\* Invoke doc:rails (first\_…

---

## [Attachment\_fu + SWFupload via activeupload](https://www.ruby-forum.com/t/attachment-fu-swfupload-via-activeupload/115460)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/attachment-fu-swfupload-via-activeupload/115460 "2007-11-02T23:18:43Z")

</div>

hi there, I am using the activeupload http://code.google.com/p/activeupload/ plugin with attachment\_fu and keep getting “406 Not Acceptable” errors when I try and upload a file, is there anything magic I need to do …

---

## [Paginator within a paginator](https://www.ruby-forum.com/t/paginator-within-a-paginator/119080)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/paginator-within-a-paginator/119080 "2007-11-02T22:17:02Z")

</div>

Hello, Within an action called “view” that is associated with a view of product listings, I render a product partial based on a product object that that looks like this: @product\_pages, @products = paginate(:products…

---

## [Mailr setup](https://www.ruby-forum.com/t/mailr-setup/119079)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/mailr-setup/119079 "2007-11-02T22:17:02Z")

</div>

Hi there! I’m trying to setup the Mailr engine to handle webmail at a site I’m building, but there seems to be a little problem. It complains about the method “bindtextdomain” to be undefined. That method is part of g…

---

## [Question about environments and rake](https://www.ruby-forum.com/t/question-about-environments-and-rake/119069)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/question-about-environments-and-rake/119069 "2007-11-02T21:55:57Z")

</div>

Hi, Short version: How do I specify an environment (as in, development, production, or in my case, a custom environment) to the command ‘rake db:migrate?’ Long version: A friend and I are putting together a web app …

---

## [Stress and Performance testing for Rails](https://www.ruby-forum.com/t/stress-and-performance-testing-for-rails/119065)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/stress-and-performance-testing-for-rails/119065 "2007-11-02T21:17:56Z")

</div>

Hi, Is there any tool like Grinder tool (Java based), that can help perform stress testing and performance testing? Say, if i want to simulate 10,000 concurrent users? Regards, Sandeep G

---

## [Upgrading from old gems/engines to new. MyApp won't start](https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/upgrading-from-old-gems-engines-to-new-myapp-wont-start/119064 "2007-11-02T19:32:34Z")

</div>

All, I have a working Rails program with some older gems and it uses engines. (Rails 1.1.6 in particular). The initial controller is very simple: class IntranetController \< ApplicationController def index # if…

---

## [Schema design](https://www.ruby-forum.com/t/schema-design/119053)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/schema-design/119053 "2007-11-02T19:06:46Z")

</div>

Hey guys, im quite new to Rails, and have been so far trying to design my schema.rb file using migrations manually, from looking at my design in DB Designer. It there an easier way to design the schema rather than d…

---

## [Update/update\_attribute questions](https://www.ruby-forum.com/t/update-update-attribute-questions/119057)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/update-update-attribute-questions/119057 "2007-11-02T18:17:55Z")

</div>

Hi! In my view I’ve got a thing like this, that is a list with checkboxes for visibility. \<% form\_tag :action =\> ‘update\_entries’ do%\> \<% @entries.each do |e| -%\> \<% @e=e -%\> \<%= e.date -%\> \<%= e.title -%\> \<%= e…

---

## [Executig a script from a page](https://www.ruby-forum.com/t/executig-a-script-from-a-page/119044)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/executig-a-script-from-a-page/119044 "2007-11-02T18:10:37Z")

</div>

HEy, How would you go around putting a link on the rails page to execute a ruby script that isn’t in the rails app folder on my development box? Any suggestions?

---

## [Rails on openSuSE 10.3](https://www.ruby-forum.com/t/rails-on-opensuse-10-3/118758)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 2, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/rails-on-opensuse-10-3/118758 "2007-11-02T17:58:17Z")

</div>

Rails 1.2.3 used to run just fine on openSuSE 10.2 (x86\_64) I recently upgraded to openSuSE 10.3 and I cannot get neither mongrel nor webrick up. I tried various combinations of mongrel (0.31, 1.01, 1.03, 1.04), ruby …

---

## [SCGI, Rails and Apache](https://www.ruby-forum.com/t/scgi-rails-and-apache/118304)

<div class="topic-metadata">

**Author:** [@fishman2001](https://www.ruby-forum.com/u/fishman2001)\
**Replies:** 8\
**Last updated:** [November 2, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/scgi-rails-and-apache/118304 "2007-11-02T17:15:37Z")

</div>

Hello, I have a rails project going with SCGI running to speed it up. This normally works fine and is very quick compared to rails on its own. But there are times when I may be try (during testing) to upload or downl…

---

## [Embed JS/RJS from remote](https://www.ruby-forum.com/t/embed-js-rjs-from-remote/119056)

<div class="topic-metadata">

**Author:** [@Matthew\_Swasey](https://www.ruby-forum.com/u/Matthew_Swasey)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/embed-js-rjs-from-remote/119056 "2007-11-02T17:12:06Z")

</div>

I’m trying to make a widget for a page, that will go on other people’s pages if they choose to do so. What I am wanting to do, is have a resource like map.resource :widget So that localhost/widget is mapped to :contr…

---

## [Customisable WebParts type interface in Rails?](https://www.ruby-forum.com/t/customisable-webparts-type-interface-in-rails/119054)

<div class="topic-metadata">

**Author:** [@mjs](https://www.ruby-forum.com/u/mjs)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/customisable-webparts-type-interface-in-rails/119054 "2007-11-02T16:57:27Z")

</div>

Hello all, I have been tasked with creating a web front end that is composed of relatively independent block of functionality, much like ASP.NET’s web parts or Google gadgets on the iGoogle page. The blocks should be …

---

## [Functional testing and controller ivars](https://www.ruby-forum.com/t/functional-testing-and-controller-ivars/119052)

<div class="topic-metadata">

**Author:** [@kevin\_cline](https://www.ruby-forum.com/u/kevin_cline)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/functional-testing-and-controller-ivars/119052 "2007-11-02T16:46:56Z")

</div>

I have just realized that if a functional test calls multiple actions, the controller instance variables will not be reset between actions, making the test behave differently than the application. What is the standar…

---

## [Uninitialized constant CreateDatabase](https://www.ruby-forum.com/t/uninitialized-constant-createdatabase/119051)

<div class="topic-metadata">

**Author:** [@verifier](https://www.ruby-forum.com/u/verifier)\
**Replies:** 0\
**Last updated:** [November 2, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-createdatabase/119051 "2007-11-02T16:38:16Z")

</div>

I’m trying to run db:migrate and get the error below. What’s wrong? (in C:/projects/rails/admin) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Execute environment \*\* Execute db:migrate ra…

---

## [Shopping cart help](https://www.ruby-forum.com/t/shopping-cart-help/118888)

<div class="topic-metadata">

**Author:** [@dehlan](https://www.ruby-forum.com/u/dehlan)\
**Replies:** 3\
**Last updated:** [November 2, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/shopping-cart-help/118888 "2007-11-02T16:26:26Z")

</div>

I’m in the process of learning rails, and am trying to implement something kind of like a shopping cart in my application. Basically, I want users to be able to kind of have a “wish list” of the products in the store…

---

## [Generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generat](https://www.ruby-forum.com/t/generating-xml-tags-with-a-period-in-the-tag-name-generating-xml-tags-with-a-period-in-generat/119017)

<div class="topic-metadata">

**Author:** [@Usha\_Murali](https://www.ruby-forum.com/u/Usha_Murali)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/generating-xml-tags-with-a-period-in-the-tag-name-generating-xml-tags-with-a-period-in-generat/119017 "2007-11-02T15:41:21Z")

</div>

Hi all, In ruby language, while generating xml tags with a period(.) in the tag name as given below, the xml builder gives me error, without the period it works fine Could anyone suggest me the solution. My rxml fil…

---

## [Querying and returning an array rather than an object?](https://www.ruby-forum.com/t/querying-and-returning-an-array-rather-than-an-object/119047)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/querying-and-returning-an-array-rather-than-an-object/119047 "2007-11-02T15:38:23Z")

</div>

I’m trying to write an application where people can vote on things, and I want to make sure a person can’t vote twice. Pretend ‘user’ is voting on various objects. I was thinking about something like this: v = user.v…

---

## [CSV Upload Problem](https://www.ruby-forum.com/t/csv-upload-problem/118994)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/csv-upload-problem/118994 "2007-11-02T14:49:13Z")

</div>

Hey all, I’m running into some problems uploading a CSV file. I have another app that uploads photos that works fine, but for some reason this doesn’t work at all. The basic setup: View: Upload Survey \<% form\_tag …

---

## [Generating a mysql call across table](https://www.ruby-forum.com/t/generating-a-mysql-call-across-table/118927)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 11\
**Last updated:** [November 2, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/generating-a-mysql-call-across-table/118927 "2007-11-02T13:54:40Z")

</div>

Is there a way to write active record which actually calls the following SQL command (without actually entering the SQL command myself) SELECT student\_id, score, type FROM event, score WHERE event.event\_id = score.e…

---

## [Collection assignment to a has\_many :through](https://www.ruby-forum.com/t/collection-assignment-to-a-has-many-through/102205)

<div class="topic-metadata">

**Author:** [@cinek](https://www.ruby-forum.com/u/cinek)\
**Replies:** 7\
**Last updated:** [November 2, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/collection-assignment-to-a-has-many-through/102205 "2007-11-02T13:47:03Z")

</div>

I’m working on a simple photo gallery in rails, it seems to be a good project for a newbie. I have photos and categories, many-to-many association. It worked well with HABTM. Then I decided that it would be good to be…

---

## [Uninitialized constant ActAsAuthenticated](https://www.ruby-forum.com/t/uninitialized-constant-actasauthenticated/119037)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actasauthenticated/119037 "2007-11-02T13:41:45Z")

</div>

Hi, I followed the installation guide on http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated, but db:migrate fails: $ rake db:migrate --trace \*\* Invoke db:migrate (first\_time) \*\* Invoke environment …

---

## [Easy Enumeration Classes](https://www.ruby-forum.com/t/easy-enumeration-classes/118979)

<div class="topic-metadata">

**Author:** [@eboss](https://www.ruby-forum.com/u/eboss)\
**Replies:** 1\
**Last updated:** [November 2, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/easy-enumeration-classes/118979 "2007-11-02T13:10:43Z")

</div>

I’m wondering what approaches people take to creating enumeration type classes like Gender or State. At Rapleaf we wrote our own gem (with accompanying rails plug-in, so the instances can easily be used as attributes …

---

## [Opposite of h()](https://www.ruby-forum.com/t/opposite-of-h/119015)

<div class="topic-metadata">

**Author:** [@Matthew\_Swasey](https://www.ruby-forum.com/u/Matthew_Swasey)\
**Replies:** 2\
**Last updated:** [November 2, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/opposite-of-h/119015 "2007-11-02T13:01:20Z")

</div>

Is there an opposite to the function h()? or html()? Something that takes escaped html and turns it back into html? I suppose I could do it myself with a few gsubs, but i’d rather use a built-in function if there is o…

---

## [Complicated controller find with lots of has\_one and boolean filters](https://www.ruby-forum.com/t/complicated-controller-find-with-lots-of-has-one-and-boolean-filters/118969)

<div class="topic-metadata">

**Author:** [@thoraxe](https://www.ruby-forum.com/u/thoraxe)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/complicated-controller-find-with-lots-of-has-one-and-boolean-filters/118969 "2007-11-02T12:52:33Z")

</div>

Hi! OK… here is some background. I’m creating a directory of stables and things and I’m now trying to build the search portion of it. I know that I can hack about using the filters and lots of logic to reduce the r…

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

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