# Rails

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

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

---

## [One mongrel, multiple apps?](https://www.ruby-forum.com/t/one-mongrel-multiple-apps/110811)

<div class="topic-metadata">

**Author:** [@LemmingJoel](https://www.ruby-forum.com/u/LemmingJoel)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 7:44am UTC](https://www.ruby-forum.com/t/one-mongrel-multiple-apps/110811 "2007-07-31T07:44:36Z")

</div>

Hi all, Is it possible to have one mogrel (or mongrel cluster) serve more than one rails application? I have quite a few low-traffic rails applications and I just don’t like the idea of having one or more processes r…

---

## [\[ANN\] memcache-client 1.4.0 Released](https://www.ruby-forum.com/t/ann-memcache-client-1-4-0-released/110807)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:20am UTC](https://www.ruby-forum.com/t/ann-memcache-client-1-4-0-released/110807 "2007-07-31T06:20:32Z")

</div>

memcache-client version 1.4.0 has been released! http://seattlerb.org/memcache-client memcache-client is a client for Danga Interactive’s memcached. Changes: 1.4.0 Fix bug #10371, #set does not check response for…

---

## [semi-RESTful routes user problem](https://www.ruby-forum.com/t/semi-restful-routes-user-problem/110806)

<div class="topic-metadata">

**Author:** [@Kip](https://www.ruby-forum.com/u/Kip)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 5:55am UTC](https://www.ruby-forum.com/t/semi-restful-routes-user-problem/110806 "2007-07-31T05:55:29Z")

</div>

I am extending my application to provide output in either html or xml for most actions. Following the guidance of the default routes.rb I modified my index route from: map.index ‘/index/:action’, :controller =\> ‘ind…

---

## [Accessing values of the form](https://www.ruby-forum.com/t/accessing-values-of-the-form/110745)

<div class="topic-metadata">

**Author:** [@capi](https://www.ruby-forum.com/u/capi)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 4:56am UTC](https://www.ruby-forum.com/t/accessing-values-of-the-form/110745 "2007-07-31T04:56:25Z")

</div>

Hello. Im new on rails, and i’m trying to make a page that will invoque a webservice. But since im new on rails, i’m trying to make a simple thing, trying to pass the values of a form to a new page. I’ve got this fo…

---

## [Question about form\_tag : Error uninitialized constant Chapt](https://www.ruby-forum.com/t/question-about-form-tag-error-uninitialized-constant-chapt/110767)

<div class="topic-metadata">

**Author:** [@Pawan](https://www.ruby-forum.com/u/Pawan)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 4:50am UTC](https://www.ruby-forum.com/t/question-about-form-tag-error-uninitialized-constant-chapt/110767 "2007-07-31T04:50:25Z")

</div>

Hello, I am trying to pass the argument in form\_tag but having some issue. This is what I have index.rhtml \<%= form\_tag :action =\> “process\_login”%\> User name: \<%= text\_field “user”, “username” %\> Password: \<%= pa…

---

## [Show only notes for current user](https://www.ruby-forum.com/t/show-only-notes-for-current-user/110786)

<div class="topic-metadata">

**Author:** [@jag](https://www.ruby-forum.com/u/jag)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 4:48am UTC](https://www.ruby-forum.com/t/show-only-notes-for-current-user/110786 "2007-07-31T04:48:25Z")

</div>

hi, i’ve written an app but failing on one pivotal part, i have a user model built, and a notes model built now, once the user navigates to the notes view they can create notes and they will only be available to that …

---

## [Multiple Many-to-Many relationship on same both modles?](https://www.ruby-forum.com/t/multiple-many-to-many-relationship-on-same-both-modles/110793)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 4:47am UTC](https://www.ruby-forum.com/t/multiple-many-to-many-relationship-on-same-both-modles/110793 "2007-07-31T04:47:25Z")

</div>

Hi i am still very new to ROR, i hope you can help me with this problem. i have two modles, Place and User users plant to go to places users have been to places users live in the places these are 3 relationships. h…

---

## [Disabling/cachine SHOW FIELDS FROM](https://www.ruby-forum.com/t/disabling-cachine-show-fields-from/110788)

<div class="topic-metadata">

**Author:** [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 4:32am UTC](https://www.ruby-forum.com/t/disabling-cachine-show-fields-from/110788 "2007-07-31T04:32:23Z")

</div>

I ask if this is possible with hopes I can squeeze every last ounce of optimization from my database(s). Is there any way to tell rails to cache or not inspect tables with all of these “SHOW FIELDS FROM” queries? I’…

---

## [Using the 404 for Missing Routes and Actions](https://www.ruby-forum.com/t/using-the-404-for-missing-routes-and-actions/110698)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 3:08am UTC](https://www.ruby-forum.com/t/using-the-404-for-missing-routes-and-actions/110698 "2007-07-31T03:08:18Z")

</div>

I’ve tried searching the list for this but I’m not really sure what Rails would call it. Basically what I’m wanting to do is to help against users changing the URL string, or to help users with expired bookmarks from…

---

## [Rails adding junk into db](https://www.ruby-forum.com/t/rails-adding-junk-into-db/110526)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 16\
**Last updated:** [July 31, 2007, 12:51am UTC](https://www.ruby-forum.com/t/rails-adding-junk-into-db/110526 "2007-07-31T00:51:20Z")

</div>

I am having a problem where I am getting data from a form and when it get puts into the database there is extra unwanted junk there, and I don’t know why it is doing it. Has anyone had any problems like this?

---

## [ActiveRecord Validation not working](https://www.ruby-forum.com/t/activerecord-validation-not-working/110787)

<div class="topic-metadata">

**Author:** [@ronb722](https://www.ruby-forum.com/u/ronb722)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 12:09am UTC](https://www.ruby-forum.com/t/activerecord-validation-not-working/110787 "2007-07-31T00:09:06Z")

</div>

I am have trouble trying to figure out how validation is suppose to work. here is what I have: validates\_length\_of :emailOptionTwo, :within =\> 1…11 When I submit my form with a value the is outside the with, I do not …

---

## [Render :alert](https://www.ruby-forum.com/t/render-alert/110784)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/render-alert/110784 "2007-07-30T23:54:04Z")

</div>

Is there a render :alert to make a popup box display from the controller? Or anything similiar? Just grasping at straws. I know there has to be a way to do this. I am trying to get a popup box to show if a validation …

---

## [STI and model loading question](https://www.ruby-forum.com/t/sti-and-model-loading-question/110778)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/sti-and-model-loading-question/110778 "2007-07-30T22:49:56Z")

</div>

when trying to figure out STI i’ve hit a problem… in my address.rb file i have the following: class Address \< ActiveRecord::Base validates\_presence\_of :name, :address\_1, :city, :state, :zip belongs\_to :order end cl…

---

## [Rake Task not working](https://www.ruby-forum.com/t/rake-task-not-working/110773)

<div class="topic-metadata">

**Author:** [@hozer](https://www.ruby-forum.com/u/hozer)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/rake-task-not-working/110773 "2007-07-30T22:38:54Z")

</div>

I’ve written a custom task named update\_fbml.rake as follows: namespace :remote do task :update\_fbml =\> :environment do require “application” controller = ApplicationController.new controller.mass\_update\_fbml # scr…

---

## [Mongrel installed, but "command not found"](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696 "2007-07-30T22:18:26Z")

</div>

Hi, I just installed mongrel on my server, but can’t use it. I am using debian server. I installed mongrel by “gem install mongrel”, and everything worked fine, I’ve seen “Successfully installed mongrel-1.0.1”. But w…

---

## [Is this a bug or expected behavior?](https://www.ruby-forum.com/t/is-this-a-bug-or-expected-behavior/110770)

<div class="topic-metadata">

**Author:** [@bluengreen](https://www.ruby-forum.com/u/bluengreen)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/is-this-a-bug-or-expected-behavior/110770 "2007-07-30T21:33:37Z")

</div>

Just wondering if anybody has had this “problem” or feature with Rails apps. I noticed that if I drop a .rhtml file in the views folder for a controller I can render that template by action name even though I have not…

---

## [.rjs files](https://www.ruby-forum.com/t/rjs-files/110782)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/rjs-files/110782 "2007-07-30T21:18:58Z")

</div>

I have a form that calls the method add\_airline\_table. I would like a with the appriate id to highlight when a certain action is performed, by using a .rjs file. To make and use this .rjs file all I have to do is giv…

---

## [Co-Tech Ruby CoFounder for Concept-advance Social Venture St](https://www.ruby-forum.com/t/co-tech-ruby-cofounder-for-concept-advance-social-venture-st/110777)

<div class="topic-metadata">

**Author:** [@davidvGoliath](https://www.ruby-forum.com/u/davidvGoliath)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/co-tech-ruby-cofounder-for-concept-advance-social-venture-st/110777 "2007-07-30T20:44:29Z")

</div>

NOTE: Please do not send form letter. Please follow To Apply Instructions (4Questions you can simply cut and paste into your cover letter) at the end of this. TITLE: This would be commensurate with experience and com…

---

## [NoMethodError in action\_view/helpers/form\_helper.rb:302:in \`](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086)

<div class="topic-metadata">

**Author:** [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086 "2007-07-30T20:35:29Z")

</div>

Hello everyone I have this rather strange problem. After updating rails from 1.1.6 to 1.2.2 I get these errors when using check\_box and radio\_button. Before everything was peachy… System: OS X (10.4.10), MySQL, Ruby …

---

## [Help needed to DRY helpers and proper MVC with Ruby](https://www.ruby-forum.com/t/help-needed-to-dry-helpers-and-proper-mvc-with-ruby/110592)

<div class="topic-metadata">

**Author:** [@RubyTechie](https://www.ruby-forum.com/u/RubyTechie)\
**Replies:** 8\
**Last updated:** [July 30, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/help-needed-to-dry-helpers-and-proper-mvc-with-ruby/110592 "2007-07-30T19:27:19Z")

</div>

Hello. I’m still fumbling learning RoR, so I apologize in advance. I’ve got working code, but I don’t think that it’s done properly so any help to make this more efficient and most of all, correct, would be so very …

---

## [Calculated fixtures](https://www.ruby-forum.com/t/calculated-fixtures/110769)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 1\
**Last updated:** [July 30, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/calculated-fixtures/110769 "2007-07-30T19:16:17Z")

</div>

Hello, I want to prepare fixtures to insert into the table. but one column needs to be calculated before inserting. For example, the password field must be recorded as MD5(password) (MD5 of password). how can i do thi…

---

## [How to add custom properties to image file?](https://www.ruby-forum.com/t/how-to-add-custom-properties-to-image-file/110714)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 5\
**Last updated:** [July 30, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/how-to-add-custom-properties-to-image-file/110714 "2007-07-30T19:05:16Z")

</div>

Hello, I want to add custom properties to image files using RMagick, and these properties will embed into the image file directly. And later, I can retrieve those information back. Any idea, appreciate… Thanks

---

## [Question about SVN over WebDAV security](https://www.ruby-forum.com/t/question-about-svn-over-webdav-security/110641)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/question-about-svn-over-webdav-security/110641 "2007-07-30T18:43:21Z")

</div>

Hello friends, After reading a lot about different methods of Subversion access, I still don’t understand if it’s possible to have HTTPS access (meaning Apache+WebDAV) access to the repository, but in a way that would…

---

## [Test](https://www.ruby-forum.com/t/test/110766)

<div class="topic-metadata">

**Author:** [@Pawan](https://www.ruby-forum.com/u/Pawan)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/test/110766 "2007-07-30T18:42:14Z")

</div>

dfasf

---

## [Erb with -%\> from command line?](https://www.ruby-forum.com/t/erb-with-from-command-line/110752)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/erb-with-from-command-line/110752 "2007-07-30T18:39:14Z")

</div>

I can’t seem to google this one effectively: Can someone tell me how to invoke erb in such a way that the -%\> sequence kills newlines as it does in rails? I’ve tried everything I can think of, effectively for i in 0…

---

## [How to know the current Controller](https://www.ruby-forum.com/t/how-to-know-the-current-controller/110760)

<div class="topic-metadata">

**Author:** [@pmatos](https://www.ruby-forum.com/u/pmatos)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/how-to-know-the-current-controller/110760 "2007-07-30T18:33:01Z")

</div>

How can I get in the …\\layouts\\application.rhtml the “name” of the current Controller? //I need to set the var page\_id: \<% @page\_id = “…current\_controler”%\> //to build correctly the menu \<%= menu\_builder(@page\_…

---

## [Prompt](https://www.ruby-forum.com/t/prompt/110762)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/prompt/110762 "2007-07-30T18:23:17Z")

</div>

I would like to add a prompt to a membership validation method that I have which basically validates a number that the user enters. If the number is validated, their info is saved to a database, but if not, a prompt p…

---

## [Setting AR attribute from date\_select values?](https://www.ruby-forum.com/t/setting-ar-attribute-from-date-select-values/110761)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [July 30, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/setting-ar-attribute-from-date-select-values/110761 "2007-07-30T18:16:58Z")

</div>

I have a date select: \<%= form\_fields.date\_select :birthday\_on, :order =\> \[:month, :day, :year\], :start\_year =\> 1900 %\> In my controller I want to set the individual attribute. How do I do this? user.birthday\_on = p…

---

## [WEBrick - What am I doing wrong?](https://www.ruby-forum.com/t/webrick-what-am-i-doing-wrong/110680)

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 4\
**Last updated:** [July 30, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/webrick-what-am-i-doing-wrong/110680 "2007-07-30T17:55:07Z")

</div>

I can start the WEBrick web server fine. But, when I try to access http://0.0.0.0:3000, I get the follow: \[WEBrick\] $ script/server =\> Booting WEBrick… \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Strange problem when using crypt](https://www.ruby-forum.com/t/strange-problem-when-using-crypt/110750)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 30, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/strange-problem-when-using-crypt/110750 "2007-07-30T17:50:06Z")

</div>

Hi there, I’m trying to utilise the crypt/rijndael algorithm in rails. I’ve written a small script separate from rails that takes a string and using a specified key encrypts it and saves it to a file. I then would li…

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

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