# Rails

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

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

---

## [How to make mongrel\_cluster start when system boot up?](https://www.ruby-forum.com/t/how-to-make-mongrel-cluster-start-when-system-boot-up/90721)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 2\
**Last updated:** [March 31, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/how-to-make-mongrel-cluster-start-when-system-boot-up/90721 "2007-03-31T15:57:47Z")

</div>

I set up my mongrel by following this article http://mongrel.rubyforge.org/docs/mongrel\_cluster.html, Now the website works fine(at least I think so, It’s at:http://www.jobherenow.com) The problem is that the mongrel w…

---

## [Link\_to best practice](https://www.ruby-forum.com/t/link-to-best-practice/90408)

<div class="topic-metadata">

**Author:** [@kapslok](https://www.ruby-forum.com/u/kapslok)\
**Replies:** 5\
**Last updated:** [March 31, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/link-to-best-practice/90408 "2007-03-31T15:38:47Z")

</div>

I’m looking for best practice for creating a hyperlink which has both an icon and text. I am currently using this in my view: \<%= link\_to image\_tag(‘icons/add.png’, { :align =\> ‘absmiddle’, :border =\> 0, :size =\> ‘16…

---

## [BBCode editor](https://www.ruby-forum.com/t/bbcode-editor/90726)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/bbcode-editor/90726 "2007-03-31T15:24:39Z")

</div>

Does anybody know of a free BBCode editor that can be easily integrated in a Rails project? Thanks. Kind regards, Nick Compare Rails hosting companies

---

## [Help moving code into model... get row, modify contents, ret](https://www.ruby-forum.com/t/help-moving-code-into-model-get-row-modify-contents-ret/90703)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 31, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/help-moving-code-into-model-get-row-modify-contents-ret/90703 "2007-03-31T15:07:20Z")

</div>

This is probably a total noob question, but I can’t figure it out from any of my available resources… I’m trying to move some code into the model. I want to fetch a row from the database, modify some of the contents,…

---

## [Routing problem with controllers in other dirs](https://www.ruby-forum.com/t/routing-problem-with-controllers-in-other-dirs/90724)

<div class="topic-metadata">

**Author:** [@enc](https://www.ruby-forum.com/u/enc)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/routing-problem-with-controllers-in-other-dirs/90724 "2007-03-31T14:39:14Z")

</div>

Hi all I have a problem with mapping url to controller which is deeper in controller directory (not root directory). I wanted to move acts\_as\_authenticated account\_controller deeper to directory (let’s call it Foo) a…

---

## [Rails overlap dialog solution](https://www.ruby-forum.com/t/rails-overlap-dialog-solution/90719)

<div class="topic-metadata">

**Author:** [@huangye177](https://www.ruby-forum.com/u/huangye177)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/rails-overlap-dialog-solution/90719 "2007-03-31T13:27:08Z")

</div>

Hi, All: I wanna add overlap interaction dialog effect for my rails application. But i am a littile puzzled while looking for options, lightbox or redbox or something else? Can some one give me some suggestion? Than…

---

## [Polymorphic Associations and Validation](https://www.ruby-forum.com/t/polymorphic-associations-and-validation/90716)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 11:50am UTC](https://www.ruby-forum.com/t/polymorphic-associations-and-validation/90716 "2007-03-31T11:50:58Z")

</div>

Hi! I want to validate values from a form. That wouldn’t be very difficult, but the model I want to polulate is in a polymorphic association! Here are my models: Document (created\_at, autor, resource\_id, resource\_t…

---

## [Discussion on are-you-in-christ-and-prayer-language](https://www.ruby-forum.com/t/discussion-on-are-you-in-christ-and-prayer-language/90717)

<div class="topic-metadata">

**Author:** [@DyingToLearn](https://www.ruby-forum.com/u/DyingToLearn)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 11:03am UTC](https://www.ruby-forum.com/t/discussion-on-are-you-in-christ-and-prayer-language/90717 "2007-03-31T11:03:54Z")

</div>

What does this have to do with ruby on rails?

---

## [Resume The Upload](https://www.ruby-forum.com/t/resume-the-upload/90708)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 9:34am UTC](https://www.ruby-forum.com/t/resume-the-upload/90708 "2007-03-31T09:34:48Z")

</div>

Hi everyone, I’ve been doing some searching but I get results about resumes (for jobs). If possible at all, are there any tutorials out there that teach you how to make a file uploader that resumes just in case the u…

---

## [Javascript and rails?](https://www.ruby-forum.com/t/javascript-and-rails/90707)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 8:39am UTC](https://www.ruby-forum.com/t/javascript-and-rails/90707 "2007-03-31T08:39:14Z")

</div>

Hi everyone I’m trying to learn ruby on rails and have some questions to ask about combining rails and javascript Right now I’m in a situation where I’m have my ror app and another javasciprt library that I’m using. …

---

## [Ruby variable and java script array?](https://www.ruby-forum.com/t/ruby-variable-and-java-script-array/90609)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 2\
**Last updated:** [March 31, 2007, 8:30am UTC](https://www.ruby-forum.com/t/ruby-variable-and-java-script-array/90609 "2007-03-31T08:30:43Z")

</div>

Hi everyone, I am in a situation where I have a ruby var x and I like to pass that var x to javascript array at index x Is there a way of doing such a thing?

---

## [Between to\_image and link\_to with image\_tag](https://www.ruby-forum.com/t/between-to-image-and-link-to-with-image-tag/90706)

<div class="topic-metadata">

**Author:** [@foxiness](https://www.ruby-forum.com/u/foxiness)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 8:10am UTC](https://www.ruby-forum.com/t/between-to-image-and-link-to-with-image-tag/90706 "2007-03-31T08:10:44Z")

</div>

if i use one of this two line: \<%= link\_to\_image product.image\_url, :action =\> :add\_to\_cart, :id =\> product %\> \<%= link\_to image\_tag product.image\_url, :action =\> :add\_to\_cart, :id =\> product %\> i think it will …

---

## [Deprec and Net-sftp](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479)

<div class="topic-metadata">

**Author:** [@pdg](https://www.ruby-forum.com/u/pdg)\
**Replies:** 2\
**Last updated:** [March 31, 2007, 7:53am UTC](https://www.ruby-forum.com/t/deprec-and-net-sftp/84479 "2007-03-31T07:53:46Z")

</div>

Hi my name’s Paul, I’m trying to deploy from a windows xp machine, to an ubuntu server I own. I have tried deprec, but am having issues with net sftp connecting. I can connect automatically on putty, but net-sftp is …

---

## [Lift = Rails alternative?](https://www.ruby-forum.com/t/lift-rails-alternative/89904)

<div class="topic-metadata">

**Author:** [@wooyay](https://www.ruby-forum.com/u/wooyay)\
**Replies:** 12\
**Last updated:** [March 31, 2007, 6:58am UTC](https://www.ruby-forum.com/t/lift-rails-alternative/89904 "2007-03-31T06:58:40Z")

</div>

At Lambda the Ultimate there is an entry about Lift, a new java servlet based web framework that claims to kick some asses. Has anyone taken a look at it? Article: http://lambda-the-ultimate.org/node/2147 Lift homep…

---

## [Is there a way to store items in a hash, yet refer to them a](https://www.ruby-forum.com/t/is-there-a-way-to-store-items-in-a-hash-yet-refer-to-them-a/90667)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 31, 2007, 6:03am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-store-items-in-a-hash-yet-refer-to-them-a/90667 "2007-03-31T06:03:36Z")

</div>

Hi, Many of the view helpers require an object with accessor methods as parameters. There are times however, when I want to store a collection of variables in a hash, and yet be able to use these helpers. Look at t…

---

## [Foreign key not working](https://www.ruby-forum.com/t/foreign-key-not-working/90697)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 2:14am UTC](https://www.ruby-forum.com/t/foreign-key-not-working/90697 "2007-03-31T02:14:25Z")

</div>

Hello, I’m using InstantRails 1.6 on Windows XP with Mysql 5.0.27, Rails 1.2.2, and Ruby 1.8.5. The following foreign key is not working. class FkLibriid \< ActiveRecord::Migration def self.up execute “alter table m…

---

## [How to route /app/name to /name?](https://www.ruby-forum.com/t/how-to-route-app-name-to-name/90677)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 5\
**Last updated:** [March 31, 2007, 2:13am UTC](https://www.ruby-forum.com/t/how-to-route-app-name-to-name/90677 "2007-03-31T02:13:25Z")

</div>

Hi, From the rail recipe book, I found that it is possible to set up route rule so that the url can parsed and map differently. However, what I am trying to accomplish is that if /abc is typed and the controller abc …

---

## [Re: How to Create Records in Rails App Database using Inboun](https://www.ruby-forum.com/t/re-how-to-create-records-in-rails-app-database-using-inboun/90694)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 1:45am UTC](https://www.ruby-forum.com/t/re-how-to-create-records-in-rails-app-database-using-inboun/90694 "2007-03-31T01:45:23Z")

</div>

Richard, I think this is really close to what I need. I am not sure which method of integrating with the mail server will be best for me, since I am working from a Dreamhost server. I am thinking I just want to per…

---

## [Storing an order object in a cookie based session](https://www.ruby-forum.com/t/storing-an-order-object-in-a-cookie-based-session/90695)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 0\
**Last updated:** [March 31, 2007, 1:42am UTC](https://www.ruby-forum.com/t/storing-an-order-object-in-a-cookie-based-session/90695 "2007-03-31T01:42:24Z")

</div>

I have a simple e-commerce store and am running into a problem with the edge rails cookie based sessions. What I am trying to do is make the customer fill in their info, and click “Review my Order”. The order object …

---

## [Always passing the same params](https://www.ruby-forum.com/t/always-passing-the-same-params/90650)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [March 30, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/always-passing-the-same-params/90650 "2007-03-30T22:35:54Z")

</div>

Hi, I’m building an application that have many types of search requests like simple search, search within results, sort results, sort the displaying fields, show/hide fields… To do this I’m using several params\[:X\] va…

---

## [Nested restful resources without controller name in the url](https://www.ruby-forum.com/t/nested-restful-resources-without-controller-name-in-the-url/90669)

<div class="topic-metadata">

**Author:** [@panto](https://www.ruby-forum.com/u/panto)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/nested-restful-resources-without-controller-name-in-the-url/90669 "2007-03-30T21:41:48Z")

</div>

hi, first, sorry for my english. i have this resources in routes.rb: map.resources :artists, :path\_prefix =\> ‘/music’ do |artists| Â artists.resources :albums do |albums| Â Â albums.resources :tracks Â end end …

---

## [How to clear a session variable?](https://www.ruby-forum.com/t/how-to-clear-a-session-variable/90672)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 2\
**Last updated:** [March 30, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/how-to-clear-a-session-variable/90672 "2007-03-30T21:38:47Z")

</div>

I’m sorry if this is really dumb, but I can’t find the answer. How do I clear (or unset) a session variable? Not the whole session, just one item. I tried treating the session as a hash, but session.delete(:mykey) …

---

## [How to substitute my class method for rails' version](https://www.ruby-forum.com/t/how-to-substitute-my-class-method-for-rails-version/90591)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/how-to-substitute-my-class-method-for-rails-version/90591 "2007-03-30T21:14:32Z")

</div>

I’m putting together a plugin and it has to monkey-patch some of ActionMailer. A good deal of AM’s magic is class methods, and I’m wanting to do something like: module ActionMailer class Base class \<\< self def cre…

---

## [Agile 2](https://www.ruby-forum.com/t/agile-2/90665)

<div class="topic-metadata">

**Author:** [@longinos](https://www.ruby-forum.com/u/longinos)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/agile-2/90665 "2007-03-30T21:09:41Z")

</div>

Agile web developmente with ruby on rails, it’s for version 1.2 can I use the last realeases of rails, ruby gems, and ruby ? or does it have to be with the same ones used on the book ?

---

## [GetText doesn't work in ActionMailer](https://www.ruby-forum.com/t/gettext-doesnt-work-in-actionmailer/102253)

<div class="topic-metadata">

**Author:** [@Stephane\_JAIS](https://www.ruby-forum.com/u/Stephane_JAIS)\
**Replies:** 24\
**Last updated:** [March 30, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/gettext-doesnt-work-in-actionmailer/102253 "2007-03-30T20:21:36Z")

</div>

Hi, I’m using gettext 1.7.0 and rails 1.1.4. Gettext won’t translate: the subject line of my e-mail the view that renders its body. I have followed the integration guide at: http://manuals.rubyonrails.org/read/chap…

---

## [Dynamically uploading a list that's already in a form](https://www.ruby-forum.com/t/dynamically-uploading-a-list-thats-already-in-a-form/86774)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/dynamically-uploading-a-list-thats-already-in-a-form/86774 "2007-03-30T20:10:35Z")

</div>

I have the classic case of: Posts, and Categories. When the user submits a post, he has a drop-down list of categories. I want to put a “Add category” link next to the list of categories. This is already inside a form…

---

## [Rolling up validates\_associated error messages into parent](https://www.ruby-forum.com/t/rolling-up-validates-associated-error-messages-into-parent/90663)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/rolling-up-validates-associated-error-messages-into-parent/90663 "2007-03-30T20:06:00Z")

</div>

All, I really dig using validates\_associated on my models to automatically validate their associated objects. However, I find that I would prefer that the associated object’s error messages were propagated up to the …

---

## [Skipping filters according to request format](https://www.ruby-forum.com/t/skipping-filters-according-to-request-format/90660)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/skipping-filters-according-to-request-format/90660 "2007-03-30T19:37:32Z")

</div>

I’m trying to set up my RESTful controllers to allow public reading of data only when they are requesting XML. I’m using acts\_as\_authenticated for my authentication, and am basically trying to do something like this: …

---

## [\[Slightly OT\] Secure file delete utility](https://www.ruby-forum.com/t/slightly-ot-secure-file-delete-utility/90659)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [March 30, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/slightly-ot-secure-file-delete-utility/90659 "2007-03-30T19:31:31Z")

</div>

I want to move to secure file deletes in my Rails app. My hosting service has said they’d install Wipe for me (I mentioned it by name) but I would very much like to use a utility that supports an asynchronous mode so…

---

## [Q&A about REST, namespaced controllers, authentication and a](https://www.ruby-forum.com/t/q-a-about-rest-namespaced-controllers-authentication-and-a/86560)

<div class="topic-metadata">

**Author:** [@diegal](https://www.ruby-forum.com/u/diegal)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/q-a-about-rest-namespaced-controllers-authentication-and-a/86560 "2007-03-30T19:29:31Z")

</div>

Ok, so… this is gonna be a long read. I’d obviously appreciate you read it all, but I’ll understand if you just mark it as read without doing so. First, let me clarify that I DID my previous research which helped me …

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

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