# Rails

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

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

---

## [Restful search generator released](https://www.ruby-forum.com/t/restful-search-generator-released/159128)

<div class="topic-metadata">

**Author:** [@jzimmek](https://www.ruby-forum.com/u/jzimmek)\
**Replies:** 0\
**Last updated:** [February 1, 2009, 12:01am UTC](https://www.ruby-forum.com/t/restful-search-generator-released/159128 "2009-02-01T00:01:37Z")

</div>

i want to announce the availability of “restful\_search” generator. http://github.com/jzimmek/restful\_search\_generator take an activerecord model and let “restful\_search” generate a search functionality for it (includi…

---

## [Rails with apache virtual hosts, mongrel](https://www.ruby-forum.com/t/rails-with-apache-virtual-hosts-mongrel/159067)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 28\
**Last updated:** [January 31, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/rails-with-apache-virtual-hosts-mongrel/159067 "2009-01-31T23:39:18Z")

</div>

Under windows, I am able to set up one virtual host that works with mongrel no problem. The issue is when I set up additional ones I cannot get to them. I look in the log file of the first app and it is trying to go…

---

## [Constant redefinition warning](https://www.ruby-forum.com/t/constant-redefinition-warning/159113)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/constant-redefinition-warning/159113 "2009-01-31T23:29:19Z")

</div>

I get a redefinition warning : log warning =\> /Users/myself/Developpement/MyApp/vendor/plugins/globalize2/lib/myapp/ validations.rb:18: warning: already initialized constant RoleTranslation I am using the following …

---

## [Auto\_link issue with email address inside \<a\>](https://www.ruby-forum.com/t/auto-link-issue-with-email-address-inside-a/159122)

<div class="topic-metadata">

**Author:** [@rien](https://www.ruby-forum.com/u/rien)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 9:46pm UTC](https://www.ruby-forum.com/t/auto-link-issue-with-email-address-inside-a/159122 "2009-01-31T21:46:44Z")

</div>

I think there is a bug in auto\_link\_email\_addresses, if an e-mail address is already linked. This works fine: \<% p = “\<a href="mailto:removed\_email\_address@domain.invalid"\>removed\_email\_address@domain.invalid” %\> \<%=…

---

## [Guide to RESTful Rails?](https://www.ruby-forum.com/t/guide-to-restful-rails/159120)

<div class="topic-metadata">

**Author:** [@zero0x](https://www.ruby-forum.com/u/zero0x)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/guide-to-restful-rails/159120 "2009-01-31T21:15:34Z")

</div>

Hi, I’ve bought Peepcode’s RESTful Rails screencast. It’s pretty interesting - and there are a couple of things I didn’t know at all. Please where do I find some complex tutorial to RESTful Rails? In API? Or where? T…

---

## [Has\_many with different foreign key](https://www.ruby-forum.com/t/has-many-with-different-foreign-key/196890)

<div class="topic-metadata">

**Author:** [@sSshartles](https://www.ruby-forum.com/u/sSshartles)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/has-many-with-different-foreign-key/196890 "2009-01-31T19:49:00Z")

</div>

Hello, I am new to rails and am trying to get my associations straight. I have a User model and a Property model. I’d like to track who has updated a property record, so I added an integer field to the properties t…

---

## [Working with after\_create and Mailer Class](https://www.ruby-forum.com/t/working-with-after-create-and-mailer-class/159109)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/working-with-after-create-and-mailer-class/159109 "2009-01-31T18:39:57Z")

</div>

I am trying to setup sending confirmation emails after creating a new instance of Project. In my Project Model, I have an after\_create callback that calls the method send\_confirmation. This is working fine – the met…

---

## [Can I force a form to submit empty fields?](https://www.ruby-forum.com/t/can-i-force-a-form-to-submit-empty-fields/159060)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 4\
**Last updated:** [January 31, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/can-i-force-a-form-to-submit-empty-fields/159060 "2009-01-31T17:47:05Z")

</div>

I’ve seen some Java implementations but is there a simpler way to force a form to submit ALL fields even if some are empty? I need a consistent number of responses to tabulate the results, so having NULL or empty str…

---

## [Customizing Model Data -- Inside Model or View or Helper?](https://www.ruby-forum.com/t/customizing-model-data-inside-model-or-view-or-helper/159098)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 9\
**Last updated:** [January 31, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/customizing-model-data-inside-model-or-view-or-helper/159098 "2009-01-31T17:34:46Z")

</div>

Say I have to Models, Project and Creator, related to each other such that @project.creator is valid. Creator has two fields, first\_name and last\_name, for the creator’s name. Assuming that I want a quick way to dis…

---

## [How long do you take for each Development Cycle](https://www.ruby-forum.com/t/how-long-do-you-take-for-each-development-cycle/158824)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 8\
**Last updated:** [January 31, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/how-long-do-you-take-for-each-development-cycle/158824 "2009-01-31T16:40:48Z")

</div>

Hi guys, I don’t know if this question is proper to post here. But I think it is related to every developer, so I post. I am using RoR for developments more than a year. We are using Bugzilla. We do unit, funcitonal …

---

## [Fetching RSS feeds asynchronously in background](https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015)

<div class="topic-metadata">

**Author:** [@Lennart\_K](https://www.ruby-forum.com/u/Lennart_K)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/fetching-rss-feeds-asynchronously-in-background/159015 "2009-01-31T15:12:09Z")

</div>

Hello everyone, I want to fetch some (5-10) RSS feeds from another server. I plan to fetch the RSS feeds asynchronously and store them on the hard disk every 30 minutes so I can read them from there on every request. …

---

## [Dirty.rb - confused](https://www.ruby-forum.com/t/dirty-rb-confused/159088)

<div class="topic-metadata">

**Author:** [@Timbo](https://www.ruby-forum.com/u/Timbo)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/dirty-rb-confused/159088 "2009-01-31T14:24:22Z")

</div>

Hi Guys, I am working with Active Record 2.1.x and there is a file called dirty.rb. Now I might be missing something but within the function write\_attribute\_with\_dirty there is a call to write\_attribute\_without\_dirty…

---

## [Hash names with white spaces](https://www.ruby-forum.com/t/hash-names-with-white-spaces/159078)

<div class="topic-metadata">

**Author:** [@mex23](https://www.ruby-forum.com/u/mex23)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/hash-names-with-white-spaces/159078 "2009-01-31T13:12:32Z")

</div>

Hi all, I’ve got a simple problem and I am wondering if it can be solved. In my code I use Hash params name including white spaces (coming from legacy database). They works well in my View, but I am not able to prope…

---

## [Rails an MDA?](https://www.ruby-forum.com/t/rails-an-mda/159099)

<div class="topic-metadata">

**Author:** [@metafoo](https://www.ruby-forum.com/u/metafoo)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/rails-an-mda/159099 "2009-01-31T13:06:45Z")

</div>

Hi, I’m currently thinking of writing my bachelorthesis about the use of model driven architecture within webdevelopment. I’m now trying to figure out about the benefits of using MDA to generate Rails Code. So, whic…

---

## [Installing plugins... is git necessary?](https://www.ruby-forum.com/t/installing-plugins-is-git-necessary/158318)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 6\
**Last updated:** [January 31, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/installing-plugins-is-git-necessary/158318 "2009-01-31T12:52:10Z")

</div>

Hey Guys, I tried the following on my rails 2.1.1 project: script/plugin install acts\_as\_tree and I got the following error: Plugin not found: \[“acts\_as\_tree”\] This method of installing plugins worked months ago…

---

## [Has\_many with different foreign key](https://www.ruby-forum.com/t/has-many-with-different-foreign-key/159095)

<div class="topic-metadata">

**Author:** [@sSshartles](https://www.ruby-forum.com/u/sSshartles)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/has-many-with-different-foreign-key/159095 "2009-01-31T12:52:10Z")

</div>

Hello, I am new to rails and am trying to get my associations straight. I have a User model and a Property model. I’d like to track who has updated a property record, so I added an integer field to the properties t…

---

## [Where is #put functional test method documented?](https://www.ruby-forum.com/t/where-is-put-functional-test-method-documented/156679)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/where-is-put-functional-test-method-documented/156679 "2009-01-31T12:52:09Z")

</div>

I am trying to figure out why the following test case doesn’t work: def test\_should\_allow\_admin\_to\_become\_non\_admin put :update, :id =\> users(:quentin).id, :quentin =\> {:admin =\> false} assert users(:quentin).admin =…

---

## [Rename sessions table in rails](https://www.ruby-forum.com/t/rename-sessions-table-in-rails/158993)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/rename-sessions-table-in-rails/158993 "2009-01-31T12:50:59Z")

</div>

Dear all I want to rename my sessions table to xxx\_sessions in database. What should I do in my rails project so that it will point to the new table name (i.e. xxx\_sessions) Thank you very much Valentino

---

## [Save a cookie with unescaped content](https://www.ruby-forum.com/t/save-a-cookie-with-unescaped-content/159094)

<div class="topic-metadata">

**Author:** [@Alisson\_S](https://www.ruby-forum.com/u/Alisson_S)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/save-a-cookie-with-unescaped-content/159094 "2009-01-31T12:50:59Z")

</div>

Hi, i’m trying to save a cookie with some especial characters like this ‘diasnd190823===??//\<\<asddas’ But rails escape this characters. Anybody knows how can i do that? I’ve tried this ways without success: 1: cook…

---

## [Active Resource without Formatters](https://www.ruby-forum.com/t/active-resource-without-formatters/159089)

<div class="topic-metadata">

**Author:** [@objo](https://www.ruby-forum.com/u/objo)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/active-resource-without-formatters/159089 "2009-01-31T12:50:58Z")

</div>

I have installed the ExtensionlessFormat plugin but I am still not able to get the information I need from the resource. The resource has a RESTful API that looks like this: GET {host} /processdefinitions A …

---

## [Botprotection plugin?](https://www.ruby-forum.com/t/botprotection-plugin/159092)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/botprotection-plugin/159092 "2009-01-31T12:50:58Z")

</div>

Hello, do anyone know a rails plugin which protects against spambots? If a the same page would be opened several times in a short time a captcha request popup to verify that there is no bot surfing at the rails appli…

---

## [Openings for Ruby Developer at CA](https://www.ruby-forum.com/t/openings-for-ruby-developer-at-ca/159090)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/openings-for-ruby-developer-at-ca/159090 "2009-01-31T12:50:21Z")

</div>

Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and…

---

## [File descriptor leak in Mongrel server?](https://www.ruby-forum.com/t/file-descriptor-leak-in-mongrel-server/159087)

<div class="topic-metadata">

**Author:** [@psujohn](https://www.ruby-forum.com/u/psujohn)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/file-descriptor-leak-in-mongrel-server/159087 "2009-01-31T12:50:21Z")

</div>

Excuse my ignorance for I’m a RoR newby. We have a number of RoR applications running on a server with a cPanel installation. One of the clients sites went belly up with the error message: Errno::EMFILE Too many ope…

---

## [Time picker working in both rails and ajax](https://www.ruby-forum.com/t/time-picker-working-in-both-rails-and-ajax/159084)

<div class="topic-metadata">

**Author:** [@william](https://www.ruby-forum.com/u/william)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/time-picker-working-in-both-rails-and-ajax/159084 "2009-01-31T12:50:20Z")

</div>

Hi all, Am new to ruby on rails .I have some time pickers working alone in rails and when am using ajax it’s not working . Could any one please give me a good solution for this problem . Regards William S

---

## [Possible to set gems path?](https://www.ruby-forum.com/t/possible-to-set-gems-path/159086)

<div class="topic-metadata">

**Author:** [@johnny](https://www.ruby-forum.com/u/johnny)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/possible-to-set-gems-path/159086 "2009-01-31T12:50:20Z")

</div>

I’ve installed ruby and rubygems on leopard. when i install a gem successfully and run require “gemname” in irb it fails: irb(main):001:0\> require “P4” LoadError: no such file to load – P4 from (irb):1:in \`require’ …

---

## [Hotlink Prevention in Ruby?](https://www.ruby-forum.com/t/hotlink-prevention-in-ruby/157397)

<div class="topic-metadata">

**Author:** [@sunstalker](https://www.ruby-forum.com/u/sunstalker)\
**Replies:** 3\
**Last updated:** [January 31, 2009, 10:50am UTC](https://www.ruby-forum.com/t/hotlink-prevention-in-ruby/157397 "2009-01-31T10:50:15Z")

</div>

Hi, i am desperately seeking for a solution or at least a hint, for preventing non-authorized users of my social network app to access images, uploaded from registered users, without authentication. I already found t…

---

## [Is it possible to have file manage box in SciTE editor](https://www.ruby-forum.com/t/is-it-possible-to-have-file-manage-box-in-scite-editor/159080)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 9:25am UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-file-manage-box-in-scite-editor/159080 "2009-01-31T09:25:31Z")

</div>

Is it possible to have file manage box in SciTE editor, I have search but i am not getting proper idea. if any one have idea please share … Thanks.

---

## [Pagination on modal window](https://www.ruby-forum.com/t/pagination-on-modal-window/159071)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 0\
**Last updated:** [January 31, 2009, 6:40am UTC](https://www.ruby-forum.com/t/pagination-on-modal-window/159071 "2009-01-31T06:40:58Z")

</div>

Dear all, I have implemented a modal window for selection of user. How i can implement pagination for modal window. I have used the following controller method for displaying user in modal window def user\_search @us…

---

## [Paginating\_find repository missing?](https://www.ruby-forum.com/t/paginating-find-repository-missing/159044)

<div class="topic-metadata">

**Author:** [@Chad](https://www.ruby-forum.com/u/Chad)\
**Replies:** 2\
**Last updated:** [January 31, 2009, 4:31am UTC](https://www.ruby-forum.com/t/paginating-find-repository-missing/159044 "2009-01-31T04:31:14Z")

</div>

Am I totally crazy, is there a reason I can not find the paginating\_find plugin anywhere? Everyone points to cardboardrocket.com but that server has been down, apparently perm. I need to implement pagination and re…

---

## [Auto complete form](https://www.ruby-forum.com/t/auto-complete-form/159059)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [January 31, 2009, 3:00am UTC](https://www.ruby-forum.com/t/auto-complete-form/159059 "2009-01-31T03:00:42Z")

</div>

If I have table user (id, firstname, lastname, age, city) And form: textboxes for firstname, lastname, age and select for city Is it possible to auto complete form? Not only firstname or lastname, but full form? So i…

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

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