# Rails

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

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

---

## [Many to many in separate has\_one controller](https://www.ruby-forum.com/t/many-to-many-in-separate-has-one-controller/164505)

<div class="topic-metadata">

**Author:** [@mark\_d](https://www.ruby-forum.com/u/mark_d)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/many-to-many-in-separate-has-one-controller/164505 "2009-04-02T14:16:23Z")

</div>

Hi. I have a problem deciding the best way to manage a many\_to\_many relationship. It define the relationships as so: \[code\] models student model student has\_many subjects :through =\> :enrollments subject model subj…

---

## [Connecting model to singular named table](https://www.ruby-forum.com/t/connecting-model-to-singular-named-table/164549)

<div class="topic-metadata">

**Author:** [@vaibhav](https://www.ruby-forum.com/u/vaibhav)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/connecting-model-to-singular-named-table/164549 "2009-04-02T14:15:12Z")

</div>

Dear group, I have th problem while accessing the allready created tables in oracle. sence the rails convension is to call the plural named tables as the model name but, my tables are allready crated with no plural n…

---

## [Ajax call from CalendarDateSelect](https://www.ruby-forum.com/t/ajax-call-from-calendardateselect/164550)

<div class="topic-metadata">

**Author:** [@rmswarna](https://www.ruby-forum.com/u/rmswarna)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/ajax-call-from-calendardateselect/164550 "2009-04-02T14:13:06Z")

</div>

Hi all, I am new to Rails platform. I was working with ruby and now with ajax based functionalities.I am struggling with an issue for past two days. If anyone could help me, it will be very supportive. I have a form …

---

## [Conditional root in routes.rb](https://www.ruby-forum.com/t/conditional-root-in-routes-rb/164478)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/conditional-root-in-routes-rb/164478 "2009-04-02T14:09:38Z")

</div>

I am trying to setup role based routing in my application. Something similar to the following: map.root :controller =\> (authorize\_admin? ? ‘prospects’ : ‘welcome’) I am getting an error that authorize\_admin? is not d…

---

## ["can't modify frozen string" error in Ajax.Updater](https://www.ruby-forum.com/t/cant-modify-frozen-string-error-in-ajax-updater/164535)

<div class="topic-metadata">

**Author:** [@Heath](https://www.ruby-forum.com/u/Heath)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/cant-modify-frozen-string-error-in-ajax-updater/164535 "2009-04-02T14:07:34Z")

</div>

I’ve just deployed my RoR app to a host that uses dispatch.cgi instead of Mongrel and came across this issue when using AJAX. The same issue has been highlighted a year ago, (on this list) \<http:// groups.google.com/g…

---

## [Convert to rails](https://www.ruby-forum.com/t/convert-to-rails/164537)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/convert-to-rails/164537 "2009-04-02T12:57:15Z")

</div>

how to convert this on rails

---

## [Fckeditor\_textarea](https://www.ruby-forum.com/t/fckeditor-textarea/154194)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 4\
**Last updated:** [April 2, 2009, 11:22am UTC](https://www.ruby-forum.com/t/fckeditor-textarea/154194 "2009-04-02T11:22:55Z")

</div>

hi, i am currently using rails version 2.2.2. and using fckeditor\_textarea. here is the code: \<%= fckeditor\_textarea(:emailcontent,:body, {:toolbarSet =\> ‘Basic’, :width =\> ‘100%’, :height =\> ‘100%’}) %\> where email…

---

## [How can I upload images to another server by FileColumn?](https://www.ruby-forum.com/t/how-can-i-upload-images-to-another-server-by-filecolumn/164426)

<div class="topic-metadata">

**Author:** [@HeChian](https://www.ruby-forum.com/u/HeChian)\
**Replies:** 5\
**Last updated:** [April 2, 2009, 10:46am UTC](https://www.ruby-forum.com/t/how-can-i-upload-images-to-another-server-by-filecolumn/164426 "2009-04-02T10:46:47Z")

</div>

Hi, I have a big trouble… :frowning: I have two hosts. One is private, another is public. Administrators will upload images in private host, but the images will not be place in the public host. I use FileColumn to b…

---

## [Error about will\_paginate plug in](https://www.ruby-forum.com/t/error-about-will-paginate-plug-in/164529)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 10\
**Last updated:** [April 2, 2009, 10:21am UTC](https://www.ruby-forum.com/t/error-about-will-paginate-plug-in/164529 "2009-04-02T10:21:32Z")

</div>

Hello , i stall will\_paginate plug in by using mkdir vendor/plugins/will\_paginate wget -nv http://github.com/mislav/will\_paginate/tarball/master -O- | \\tar xzv -C vendor/plugins/will\_paginate --strip 1 i get this …

---

## [How to eliminate replace\_html alert pop-up in RJS](https://www.ruby-forum.com/t/how-to-eliminate-replace-html-alert-pop-up-in-rjs/164523)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 10:18am UTC](https://www.ruby-forum.com/t/how-to-eliminate-replace-html-alert-pop-up-in-rjs/164523 "2009-04-02T10:18:00Z")

</div>

Hello, I’m using RJS for AJAX call. Something like: page\[“edit\_single\_client\_div” + params\[“client\_id”\]\].replace\_html :partial =\> ‘client\_single\_display’, :locals =\> {:the\_client =\> SmsClient.valid.find\_by\_id(params\[…

---

## [Mongrel\_proctitle in production environment... good idea?](https://www.ruby-forum.com/t/mongrel-proctitle-in-production-environment-good-idea/164532)

<div class="topic-metadata">

**Author:** [@Peter\_Vandenberk](https://www.ruby-forum.com/u/Peter_Vandenberk)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 10:08am UTC](https://www.ruby-forum.com/t/mongrel-proctitle-in-production-environment-good-idea/164532 "2009-04-02T10:08:03Z")

</div>

Hi all, \[apologies for the crossposting: I originally tried to post this message to the mongrel mailing list where it belongs, but it is stuck in “moderator approval”\] I am considering using mongrel\_proctitle to get …

---

## [Sphinx Cannot search Chinese but English](https://www.ruby-forum.com/t/sphinx-cannot-search-chinese-but-english/164524)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 7:57am UTC](https://www.ruby-forum.com/t/sphinx-cannot-search-chinese-but-english/164524 "2009-04-02T07:57:16Z")

</div>

I set up the sphinx and can search any english string by the command in my controller: Ultrasphinx::Search.new(:query=\> params\[:word\_input\]).run.results However, I can search none of the Chinese characters. I checked…

---

## [Sub controllers?](https://www.ruby-forum.com/t/sub-controllers/164433)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 7:04am UTC](https://www.ruby-forum.com/t/sub-controllers/164433 "2009-04-02T07:04:08Z")

</div>

I’m pretty new to Rails and have an issue which I can’t quite get my head around as to the architecturally ‘correct’ way of doing it. Problem relates to what I kinda call sub-controllers. The scenario is this: I have…

---

## [Simplest way to encrypt / decrypt a string?](https://www.ruby-forum.com/t/simplest-way-to-encrypt-decrypt-a-string/106957)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 5\
**Last updated:** [April 2, 2009, 6:54am UTC](https://www.ruby-forum.com/t/simplest-way-to-encrypt-decrypt-a-string/106957 "2009-04-02T06:54:11Z")

</div>

I have done multiple google searches and searched the mailing list. All of the solutions I found seemed kind of heavy / complicated. I just want a very simple way to encrypt and decrypt a string. Something like: encry…

---

## [Data structure for "linked list"](https://www.ruby-forum.com/t/data-structure-for-linked-list/164476)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 3\
**Last updated:** [April 2, 2009, 6:03am UTC](https://www.ruby-forum.com/t/data-structure-for-linked-list/164476 "2009-04-02T06:03:48Z")

</div>

Folks, I’m trying to figure out the best approach to creating a linked list conceptually in RoR. This is what I’m looking at doing and want to know if there is a best practice approach to this already (my search didn…

---

## [Packaging Rails App as Standalone EXE](https://www.ruby-forum.com/t/packaging-rails-app-as-standalone-exe/164390)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 5:54am UTC](https://www.ruby-forum.com/t/packaging-rails-app-as-standalone-exe/164390 "2009-04-02T05:54:56Z")

</div>

Hi, Does anyone know what is currently the proper way to distribute a Rails app as a windows exe (NT Service, how to package, …). I know there was Distributing Rails Applications - A Tutorial, but it’s pretty old. T…

---

## [Ask net-ping](https://www.ruby-forum.com/t/ask-net-ping/164514)

<div class="topic-metadata">

**Author:** [@vgenjr](https://www.ruby-forum.com/u/vgenjr)\
**Replies:** 2\
**Last updated:** [April 2, 2009, 4:47am UTC](https://www.ruby-forum.com/t/ask-net-ping/164514 "2009-04-02T04:47:43Z")

</div>

hi, can anybody help me? i wanna create a RoR monitoring application for my project. i have a database with table named nodes in that nodes i have id and ipadd. here’s my code: #nodes\_controller.rb require ‘net/pi…

---

## [How to Sort by a column from another table](https://www.ruby-forum.com/t/how-to-sort-by-a-column-from-another-table/164513)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 4:36am UTC](https://www.ruby-forum.com/t/how-to-sort-by-a-column-from-another-table/164513 "2009-04-02T04:36:51Z")

</div>

I need to create a list of users sorted by division. How do I sort User table by Division name? I can only get it to sorted by division\_id. Part of my code is shown below: sort = case params\[‘sort’\] when “id” then…

---

## [Permission denied errors with rake db:migrate](https://www.ruby-forum.com/t/permission-denied-errors-with-rake-db-migrate/164498)

<div class="topic-metadata">

**Author:** [@craigtmackenzie](https://www.ruby-forum.com/u/craigtmackenzie)\
**Replies:** 4\
**Last updated:** [April 2, 2009, 12:54am UTC](https://www.ruby-forum.com/t/permission-denied-errors-with-rake-db-migrate/164498 "2009-04-02T00:54:34Z")

</div>

I am at a loss here and hoping for some advise on where to begin looking with a series of errors I am suddenly getting when trying to rake: “anything goes here” … lil-loco:/rails/cem craigmartin$ rake db:migrate (in …

---

## [Amazon S3-like service?](https://www.ruby-forum.com/t/amazon-s3-like-service/164508)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://www.ruby-forum.com/u/hubertlepicki)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 12:32am UTC](https://www.ruby-forum.com/t/amazon-s3-like-service/164508 "2009-04-02T00:32:00Z")

</div>

Hi guys, I need to have S3-like service that I can store files to. It’s critical that files stay on my servers, so can’t use S3. I have found “Park Place” project by whytheluckystiff - but I’d love to use OAuth and i…

---

## [Create entry using another entry](https://www.ruby-forum.com/t/create-entry-using-another-entry/164503)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 0\
**Last updated:** [April 2, 2009, 12:27am UTC](https://www.ruby-forum.com/t/create-entry-using-another-entry/164503 "2009-04-02T00:27:54Z")

</div>

I’m wondering what the best practice way to do this is. Basically, I have a Snippet model containing a text field of type text and a Story model also with a text field of type text. At some point, I want to make a sto…

---

## [Change the Web Challenge](https://www.ruby-forum.com/t/change-the-web-challenge/163908)

<div class="topic-metadata">

**Author:** [@Emily\_K](https://www.ruby-forum.com/u/Emily_K)\
**Replies:** 1\
**Last updated:** [April 2, 2009, 12:20am UTC](https://www.ruby-forum.com/t/change-the-web-challenge/163908 "2009-04-02T00:20:16Z")

</div>

Hi everyone - I wanted to let you all know about Social Actions’ Change the Web Challenge, a contest for creating new web applications & widgets that promote opportunities to take action all over the web, with cash p…

---

## [Installing passenger on a 20-node farm; tool for automation?](https://www.ruby-forum.com/t/installing-passenger-on-a-20-node-farm-tool-for-automation/164400)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 6\
**Last updated:** [April 2, 2009, 12:20am UTC](https://www.ruby-forum.com/t/installing-passenger-on-a-20-node-farm-tool-for-automation/164400 "2009-04-02T00:20:15Z")

</div>

Hi there. I am installing passenger across our cluster, but this question applies to software management in general across a farm. Can you recommend a tool for installing/upgrading software (e.g. passenger, apache, m…

---

## [Storing requested uri in session](https://www.ruby-forum.com/t/storing-requested-uri-in-session/164437)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/storing-requested-uri-in-session/164437 "2009-04-01T23:53:53Z")

</div>

hi i want to store the requested url in session. here is the requirement say suppose i have page abc on which i have bidding option which calls bid/id but for that i m required to login. so first i will be redirected…

---

## [How to pass HTML Field value to Ruby code in view](https://www.ruby-forum.com/t/how-to-pass-html-field-value-to-ruby-code-in-view/164415)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/how-to-pass-html-field-value-to-ruby-code-in-view/164415 "2009-04-01T23:52:07Z")

</div>

Hello, I need to get a value of HTML Hidden field inside my Ruby Code in view: I’m storing session variable name inside hidden field which I need to access from different blocks of Ruby code: \<% if sessions\[VAR\_NAME\]…

---

## [Find\_or\_create\_by\_foo\_and\_bar error (duplicate entry)](https://www.ruby-forum.com/t/find-or-create-by-foo-and-bar-error-duplicate-entry/164458)

<div class="topic-metadata">

**Author:** [@klochner](https://www.ruby-forum.com/u/klochner)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/find-or-create-by-foo-and-bar-error-duplicate-entry/164458 "2009-04-01T23:32:46Z")

</div>

I’m throwing sql errors on a User.find\_or\_create\_by\_foo\_and\_email call. I created an index with the following: add\_index “users”, \[“foo\_id”, “email”\], :name =\> “by\_foo\_email”, :unique =\> true Then in a class foo ins…

---

## [Erro de update no rails 2.3.2](https://www.ruby-forum.com/t/erro-de-update-no-rails-2-3-2/164472)

<div class="topic-metadata">

**Author:** [@WilsOnRails](https://www.ruby-forum.com/u/WilsOnRails)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/erro-de-update-no-rails-2-3-2/164472 "2009-04-01T23:29:51Z")

</div>

Pessoal, estou precisando de ajuda… Estou usando o rails 2.3.2. Quando tento fazer qualquer update (método save em um registro existente), recebo o erro abaixo: ArgumentError in RequisicaosController#enviar\_rede wro…

---

## [Upload/download office documents like \*.doc, \*.pdf](https://www.ruby-forum.com/t/upload-download-office-documents-like-doc-pdf/164486)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 11:25pm UTC](https://www.ruby-forum.com/t/upload-download-office-documents-like-doc-pdf/164486 "2009-04-01T23:25:45Z")

</div>

Hi Ruby community, I search a HowTo or plugin which help me to store documents like \*.doc, \*.pdf etc. into a database blob-column. The most plugins I detected in www, like UploadColumn, PaperClip are focused on imag…

---

## [How Rails-core-team manages its code on github?](https://www.ruby-forum.com/t/how-rails-core-team-manages-its-code-on-github/164495)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 0\
**Last updated:** [April 1, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/how-rails-core-team-manages-its-code-on-github/164495 "2009-04-01T22:45:35Z")

</div>

People, I’m curious if somewhere I might find a document about how the Rails- core-team manages its code on github. Anyone know anything about this? I’m interested in learning about the naming of tags and the flow of …

---

## [ActiveRecord::StatementInvalid could not find table](https://www.ruby-forum.com/t/activerecord-statementinvalid-could-not-find-table/164452)

<div class="topic-metadata">

**Author:** [@willem](https://www.ruby-forum.com/u/willem)\
**Replies:** 1\
**Last updated:** [April 1, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-could-not-find-table/164452 "2009-04-01T20:37:34Z")

</div>

Hi, Have searched and searched the group and the net with no joy on this… I have set up users table and am trying to insert newly registered users with the following code from: class UserController \< ApplicationCont…

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

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