# Rails

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

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

---

## [Ruby Chinese Community Open-Sourcing Project Management Syst](https://www.ruby-forum.com/t/ruby-chinese-community-open-sourcing-project-management-syst/109971)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/ruby-chinese-community-open-sourcing-project-management-syst/109971 "2007-07-20T20:09:54Z")

</div>

Very glad to announce that Ruby Chinese Community Open-Sourcing Project Management System has been lauched successfully. Ruby Chinese Community was dedicated to furthering Ruby language become popular in China. Recen…

---

## [Acts\_as\_list :scope with habtm](https://www.ruby-forum.com/t/acts-as-list-scope-with-habtm/109691)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/acts-as-list-scope-with-habtm/109691 "2007-07-20T19:40:52Z")

</div>

Hello, I have a problem with a little more complex DB-schema. My target are and sorted trees like this: 1 One 1.1 One.One 1.2 One.Two 2 Two I use for it two models: top: This an item, with the name and position a…

---

## [Sticky Forms](https://www.ruby-forum.com/t/sticky-forms/109949)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/sticky-forms/109949 "2007-07-20T18:42:36Z")

</div>

Hi all, I am trying to create a log-in page where the person logs in and based on where or not they entered the correct format for a password and email address, they may proceed to the next page. If, however, the chec…

---

## [Marshal data too short - when user id = 51](https://www.ruby-forum.com/t/marshal-data-too-short-when-user-id-51/109961)

<div class="topic-metadata">

**Author:** [@leei](https://www.ruby-forum.com/u/leei)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/marshal-data-too-short-when-user-id-51/109961 "2007-07-20T18:24:43Z")

</div>

When a session is created ( disk based not active record ) and the id of the user record is 21 I get marshal data too short. I am not the only one by the looks of this http://wiki.rubyonrails.org/rails/pages/MarshalDa…

---

## [Count by group optimization](https://www.ruby-forum.com/t/count-by-group-optimization/109849)

<div class="topic-metadata">

**Author:** [@Solid](https://www.ruby-forum.com/u/Solid)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/count-by-group-optimization/109849 "2007-07-20T18:23:03Z")

</div>

Hello RoR people, First time here. I have a question about calculations in rails. For example i have two tables: categories id name and questions: id category\_id name How I can count questions in each category…

---

## [Errno::EBADF in ClassifiedController#list](https://www.ruby-forum.com/t/errno-ebadf-in-classifiedcontroller-list/109947)

<div class="topic-metadata">

**Author:** [@mxruby](https://www.ruby-forum.com/u/mxruby)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/errno-ebadf-in-classifiedcontroller-list/109947 "2007-07-20T17:42:43Z")

</div>

Hi I was working with a tutorial from a book yesterday and I got to a point where I configuered the routing and it was working fine. And didnt make any changes to it except for debuging. But today I get the followin…

---

## [What are they, kind of method invoking?](https://www.ruby-forum.com/t/what-are-they-kind-of-method-invoking/108904)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/what-are-they-kind-of-method-invoking/108904 "2007-07-20T17:22:33Z")

</div>

We do(declare?) fields validations like this: class Dream \< ActiveRecord::Base validates\_presence\_of :title, :description validates\_length\_of :description, :minimum =\> 10 end I know how to use them, and have already…

---

## [Get 5$ cash for free in your paypal account](https://www.ruby-forum.com/t/get-5-cash-for-free-in-your-paypal-account/109954)

<div class="topic-metadata">

**Author:** [@newbar](https://www.ruby-forum.com/u/newbar)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/get-5-cash-for-free-in-your-paypal-account/109954 "2007-07-20T17:17:31Z")

</div>

get 5$ cash for free in your paypal account check it !!! http://www.cash-dreams.biz

---

## [Collection\_select not selecting item, unless](https://www.ruby-forum.com/t/collection-select-not-selecting-item-unless/109926)

<div class="topic-metadata">

**Author:** [@atraeyu](https://www.ruby-forum.com/u/atraeyu)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/collection-select-not-selecting-item-unless/109926 "2007-07-20T17:12:31Z")

</div>

I’m fairly new to Rails, so this could just be my stupidity rather than Rails. My app has two simple models: record (id, category\_id, …) and category (id, name). In my generated scaffold \_form.html for the record mod…

---

## [Transform URLs from: "url.com/Bob+Doe" to "url.com/bob\_doe"](https://www.ruby-forum.com/t/transform-urls-from-url-com-bob-doe-to-url-com-bob-doe/109899)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/transform-urls-from-url-com-bob-doe-to-url-com-bob-doe/109899 "2007-07-20T17:09:31Z")

</div>

Is that possible, and would you know how I can do that? I’m creating individual pages for users based on their first and last names. In my routes.rb, I have: map.client ‘:user\_full\_name’, :controller =\> ‘user’, :acti…

---

## [Downloading Rails w/o Gems](https://www.ruby-forum.com/t/downloading-rails-w-o-gems/109948)

<div class="topic-metadata">

**Author:** [@Water\_Cooler\_v2](https://www.ruby-forum.com/u/Water_Cooler_v2)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/downloading-rails-w-o-gems/109948 "2007-07-20T17:06:31Z")

</div>

There was a great post on one of the ruby/RoR related newsgroups, perhaps this one itself, probably by Dave T. and Andy H., or by someone else, about installing rails as separate gems, without the gems package manager…

---

## [Errno::EBADF in ClassifiedController#list](https://www.ruby-forum.com/t/errno-ebadf-in-classifiedcontroller-list/109950)

<div class="topic-metadata">

**Author:** [@mxruby](https://www.ruby-forum.com/u/mxruby)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/errno-ebadf-in-classifiedcontroller-list/109950 "2007-07-20T17:06:00Z")

</div>

Anyone know what the following erro message means ? Errno::EBADF in ClassifiedController#list Bad file descriptor - connect(2) RAILS\_ROOT: ./script/…/config/…

---

## [RJS and Nokia N800](https://www.ruby-forum.com/t/rjs-and-nokia-n800/109952)

<div class="topic-metadata">

**Author:** [@esti](https://www.ruby-forum.com/u/esti)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/rjs-and-nokia-n800/109952 "2007-07-20T17:03:30Z")

</div>

Hello! I need to make sure that an application I’ve built with Ruby on Rails works properly in a Nokia N800. Everything goes well until I hit an action whose response is RJS where, even if the request gets to the ser…

---

## [Url\_for and routes.rb](https://www.ruby-forum.com/t/url-for-and-routes-rb/109942)

<div class="topic-metadata">

**Author:** [@janeden](https://www.ruby-forum.com/u/janeden)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/url-for-and-routes-rb/109942 "2007-07-20T15:33:46Z")

</div>

I am still struggling with url\_for and routing. This is what I do: \<%= url\_for :controller =\> ‘pages’, :action =\> ‘index’, :id =\> 8 %\> This one is never used by url\_for, although it works fine when requesting http://m…

---

## [Licenses and doing the right thing](https://www.ruby-forum.com/t/licenses-and-doing-the-right-thing/109939)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/licenses-and-doing-the-right-thing/109939 "2007-07-20T13:54:29Z")

</div>

Hi all, There are appear to be several licenses available for ROR, Ruby etc so any guidance is appreciated. I did search on the topic and seemed to get a variety of answers…some conflicting. My original read on my si…

---

## [Simple things like duplicating a record in rails?](https://www.ruby-forum.com/t/simple-things-like-duplicating-a-record-in-rails/109933)

<div class="topic-metadata">

**Author:** [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/simple-things-like-duplicating-a-record-in-rails/109933 "2007-07-20T13:40:05Z")

</div>

Maybe I am totally waisted after a long nights work with my admin interface filters but how the heck can I duplicate records? Scenario: My client will enter hundreds maybe thousands of products into their new nice e-…

---

## [Find\_all on an array of ActiveRecords](https://www.ruby-forum.com/t/find-all-on-an-array-of-activerecords/109935)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/find-all-on-an-array-of-activerecords/109935 "2007-07-20T13:09:01Z")

</div>

In my project, an account has\_many entries and an entry has\_and\_belongs\_to\_many tags. I want to find all of the entries for an account which are tagged with “some specific tag” The code which I thought would do this …

---

## [Mozzila Logout back button issue](https://www.ruby-forum.com/t/mozzila-logout-back-button-issue/109931)

<div class="topic-metadata">

**Author:** [@mhinton](https://www.ruby-forum.com/u/mhinton)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/mozzila-logout-back-button-issue/109931 "2007-07-20T12:35:55Z")

</div>

Hello, I have recently created an application in Rails which makes use of a login and logout system. I have a user controller and model as well as a login controller. My login controller performs my logout and login …

---

## [About transaction method](https://www.ruby-forum.com/t/about-transaction-method/109928)

<div class="topic-metadata">

**Author:** [@vishal](https://www.ruby-forum.com/u/vishal)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/about-transaction-method/109928 "2007-07-20T12:14:28Z")

</div>

The transaction method is executed within the context of the active record class for the excution of the all transactions. Ex Account.transaction do account1.deposit(100) account2.withdraw(100) end But i want to e…

---

## [Help with a simple search form](https://www.ruby-forum.com/t/help-with-a-simple-search-form/109824)

<div class="topic-metadata">

**Author:** [@Acroterra](https://www.ruby-forum.com/u/Acroterra)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/help-with-a-simple-search-form/109824 "2007-07-20T12:02:26Z")

</div>

Hi, I am working on a project that needs a simple search feature but I have hit a roadblock. I need to design a search form that searches a lodging database for certain criteria such as lodge town and lodge amenities …

---

## [How to implement doc/literal webservice with RoR?](https://www.ruby-forum.com/t/how-to-implement-doc-literal-webservice-with-ror/109927)

<div class="topic-metadata">

**Author:** [@brianwang](https://www.ruby-forum.com/u/brianwang)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 11:01am UTC](https://www.ruby-forum.com/t/how-to-implement-doc-literal-webservice-with-ror/109927 "2007-07-20T11:01:20Z")

</div>

I implemented a service use RPC. But I think doc/literal service is more useful to me. Where can I find some library to support doc/literal? Thank you.

---

## [Turning logging on while fixtures load?](https://www.ruby-forum.com/t/turning-logging-on-while-fixtures-load/109634)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 10:45am UTC](https://www.ruby-forum.com/t/turning-logging-on-while-fixtures-load/109634 "2007-07-20T10:45:17Z")

</div>

How do I get maximal logging while fixtures load? Or at least during the tests? I have added this to test/test\_helper.rb :- def logger RAILS\_DEFAULT\_LOGGER.level = Logger::INFO RAILS\_DEFAULT\_LOGGER end so that I…

---

## [Focus on text\_field](https://www.ruby-forum.com/t/focus-on-text-field/109923)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 9:30am UTC](https://www.ruby-forum.com/t/focus-on-text-field/109923 "2007-07-20T09:30:08Z")

</div>

I use ajax to dynamically display a form under a div, so i can’t put a javascript function to body’s onload. Is there any other method to focus a text\_field? – http://rubyforge.org/projects/ropenwiki/

---

## [Mysterious local server issue (running locomotive on osx)](https://www.ruby-forum.com/t/mysterious-local-server-issue-running-locomotive-on-osx/109917)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 0\
**Last updated:** [July 20, 2007, 8:01am UTC](https://www.ruby-forum.com/t/mysterious-local-server-issue-running-locomotive-on-osx/109917 "2007-07-20T08:01:59Z")

</div>

Hello: I’m new to RoR and have run into an issue that I can’t find in any faq. I was following through a guidebook project implementing some ajax effects when I tested a link to edit a row and the application seemed t…

---

## [Routing question, nested resources](https://www.ruby-forum.com/t/routing-question-nested-resources/109861)

<div class="topic-metadata">

**Author:** [@cidol](https://www.ruby-forum.com/u/cidol)\
**Replies:** 2\
**Last updated:** [July 20, 2007, 7:29am UTC](https://www.ruby-forum.com/t/routing-question-nested-resources/109861 "2007-07-20T07:29:48Z")

</div>

Hey all, love the RoRTalk group This might just be a general Ruby question, but I ran into the problem in Rails so I’ll put it out here. I’m trying to re-use some routing code. this\_and\_that = proc { |a\_resource| a\_…

---

## [Plugins problem - can't install haml or any other plugin!](https://www.ruby-forum.com/t/plugins-problem-cant-install-haml-or-any-other-plugin/109855)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [July 20, 2007, 6:49am UTC](https://www.ruby-forum.com/t/plugins-problem-cant-install-haml-or-any-other-plugin/109855 "2007-07-20T06:49:46Z")

</div>

I wanted to have a look at haml so i’m doing what the site recommends, ie entering ruby script\\plugin install http://svn.hamptoncatlin.com/haml/tags/stable) at the command line in my main rails apps folder. But, all…

---

## [Where to store encryption keys?](https://www.ruby-forum.com/t/where-to-store-encryption-keys/109914)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 5:20am UTC](https://www.ruby-forum.com/t/where-to-store-encryption-keys/109914 "2007-07-20T05:20:39Z")

</div>

I have a model that has inside of it a few bits of data I would like to encrypt. I’m using ezcrypto to do the encrypting, but was wondering what your opinions are for what is the best way or place to store the encryp…

---

## [Use helper method in controller?](https://www.ruby-forum.com/t/use-helper-method-in-controller/109858)

<div class="topic-metadata">

**Author:** [@b0rdslide](https://www.ruby-forum.com/u/b0rdslide)\
**Replies:** 4\
**Last updated:** [July 20, 2007, 4:35am UTC](https://www.ruby-forum.com/t/use-helper-method-in-controller/109858 "2007-07-20T04:35:49Z")

</div>

I created a helper method in person\_helper.rb, and want to use this method in person\_controller#list, but I get the error “undefined method \`filter\_sql’ for #PersonController:0x872dec4”. Here is the helper class (pers…

---

## [Mongrel on Windows XP: Slower than Webrick?!?](https://www.ruby-forum.com/t/mongrel-on-windows-xp-slower-than-webrick/109889)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 3\
**Last updated:** [July 20, 2007, 4:29am UTC](https://www.ruby-forum.com/t/mongrel-on-windows-xp-slower-than-webrick/109889 "2007-07-20T04:29:34Z")

</div>

I just installed mongrel using “gem install mongrel –include-dependencies”, and it installed. However, the page load times are now reporting to take almost twice as long, according to the server logs. Any idea what …

---

## [Request parsing and params hash](https://www.ruby-forum.com/t/request-parsing-and-params-hash/109870)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 5\
**Last updated:** [July 20, 2007, 4:26am UTC](https://www.ruby-forum.com/t/request-parsing-and-params-hash/109870 "2007-07-20T04:26:33Z")

</div>

If I submit a request that ends in: ?foo=bar&foo=baz Then my assumption would be that params\[:foo\] would have an array in it: \[‘bar’, ‘baz’\]. But it doesn’t. It only has the first value, ‘bar’, and the ‘baz’ is appar…

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

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