# Rails

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

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

---

## [Resources; how to rename nested url path?](https://www.ruby-forum.com/t/resources-how-to-rename-nested-url-path/123667)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 10:54am UTC](https://www.ruby-forum.com/t/resources-how-to-rename-nested-url-path/123667 "2007-12-21T10:54:50Z")

</div>

Hi, I’ve got some nested resources. I have a model called Feature, and FeatureRelation. When I created the standard routes for nesting (:has\_many on Feature), I get a path like: features/1234/feature\_relations What …

---

## [How do I fix broken gems in Leopard?](https://www.ruby-forum.com/t/how-do-i-fix-broken-gems-in-leopard/123184)

<div class="topic-metadata">

**Author:** [@shirt](https://www.ruby-forum.com/u/shirt)\
**Replies:** 10\
**Last updated:** [December 21, 2007, 9:34am UTC](https://www.ruby-forum.com/t/how-do-i-fix-broken-gems-in-leopard/123184 "2007-12-21T09:34:38Z")

</div>

/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError) This is what I get when I try to run anything like “sudo gem update rails” I tried to upgrade my 1.2.6 rails install running on Leopard. I think the…

---

## [Search with more then one argument](https://www.ruby-forum.com/t/search-with-more-then-one-argument/123794)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 9:32am UTC](https://www.ruby-forum.com/t/search-with-more-then-one-argument/123794 "2007-12-21T09:32:57Z")

</div>

I’am trying to create a search sytem with two arguments When one argument is choosen it needs find all the objects with that argument and when two choosen it needs to find all objects with both arguments. In my view …

---

## [Ruby/Rails: too good to be true?](https://www.ruby-forum.com/t/ruby-rails-too-good-to-be-true/123706)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 9\
**Last updated:** [December 21, 2007, 9:15am UTC](https://www.ruby-forum.com/t/ruby-rails-too-good-to-be-true/123706 "2007-12-21T09:15:51Z")

</div>

I’ve never touched ruby/rails before, but after visiting ruby-lang.org a couple of days ago my interest in Ruby has exploded. This is among other things because of the beautiful syntax and the fact that everything is …

---

## [Admin's interface - the best way to implement](https://www.ruby-forum.com/t/admins-interface-the-best-way-to-implement/123340)

<div class="topic-metadata">

**Author:** [@truetype](https://www.ruby-forum.com/u/truetype)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 8:14am UTC](https://www.ruby-forum.com/t/admins-interface-the-best-way-to-implement/123340 "2007-12-21T08:14:58Z")

</div>

One way is to create admin’s part within project’s folder using namespaces so that admin controllers are stored in app/controllers/ admin/ and restrict access to these controllers for mere mortals using authentication…

---

## [Website/application administration patterns \[in Rails\]](https://www.ruby-forum.com/t/website-application-administration-patterns-in-rails/119899)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 8:02am UTC](https://www.ruby-forum.com/t/website-application-administration-patterns-in-rails/119899 "2007-12-21T08:02:40Z")

</div>

Hello! One topic that seemed very simple in the beginning but ended up by being kind of complex (as more complex and bigger project came towards me) is the admin aspect of a web application/site. I couldn’t find many…

---

## [Self-referential has\_and\_belong\_to\_many](https://www.ruby-forum.com/t/self-referential-has-and-belong-to-many/123846)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 7:55am UTC](https://www.ruby-forum.com/t/self-referential-has-and-belong-to-many/123846 "2007-12-21T07:55:39Z")

</div>

Im having trouble developing the database structure for the following scenario. I have a table that only contains 2 fields for each object. It has a admirer\_id and an admired\_id. There is also a user table. Now al…

---

## [Rails command](https://www.ruby-forum.com/t/rails-command/123791)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 4\
**Last updated:** [December 21, 2007, 5:53am UTC](https://www.ruby-forum.com/t/rails-command/123791 "2007-12-21T05:53:33Z")

</div>

Hi experts, right now i’ve rails version 1.2.6 and 2.0.1 but when i try to give command rails “projectname” it says like this /usr/local/lib/site\_ruby/ 1.8/rubygems.rb:377:in report\_activate\_error': RubyGem version er…

---

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

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 7\
**Last updated:** [December 21, 2007, 4:35am UTC](https://www.ruby-forum.com/t/routing-nested-resources/123833 "2007-12-21T04:35:15Z")

</div>

I’ve noticed that nested resources are also available via the default route: In my application I have many gamers and want to give them a singleton profile resource (example.com/gamers/3/profile). So my config.routes …

---

## [Juggernaut Push Server with RoR + Flex (Flash)](https://www.ruby-forum.com/t/juggernaut-push-server-with-ror-flex-flash/123834)

<div class="topic-metadata">

**Author:** [@athind](https://www.ruby-forum.com/u/athind)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 4:20am UTC](https://www.ruby-forum.com/t/juggernaut-push-server-with-ror-flex-flash/123834 "2007-12-21T04:20:03Z")

</div>

Hello, Just starting to evaluate juggernaut to implement push technology to my RoR/Flex application. Has anyone tried this before? Is this possible or the front end has to be in JavaScript? My Flex application talks…

---

## [Conditional Validation and restful\_authentication](https://www.ruby-forum.com/t/conditional-validation-and-restful-authentication/123826)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 13\
**Last updated:** [December 21, 2007, 3:59am UTC](https://www.ruby-forum.com/t/conditional-validation-and-restful-authentication/123826 "2007-12-21T03:59:01Z")

</div>

I’m using the restful\_authentication plugin/generator to user access control in an app I’m working on. I added on to the user model for things like male/female. I have two methods on the user model male? and female?…

---

## [2 associations to same table](https://www.ruby-forum.com/t/2-associations-to-same-table/123786)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 9\
**Last updated:** [December 21, 2007, 3:33am UTC](https://www.ruby-forum.com/t/2-associations-to-same-table/123786 "2007-12-21T03:33:50Z")

</div>

I have a problem with this find. I want include the association of forum\_messages for last message and for first\_message. is possible set 2 associations to 1 table with dinstict roles? ForumTopic.find(:all,:include=\>\[…

---

## [Novo! Respostas da prova PMP respondidas e comentadas pelo autor do Blog](https://www.ruby-forum.com/t/novo-respostas-da-prova-pmp-respondidas-e-comentadas-pelo-autor-do-blog/123832)

<div class="topic-metadata">

**Author:** [@malvadomx](https://www.ruby-forum.com/u/malvadomx)\
**Replies:** 0\
**Last updated:** [December 21, 2007, 3:32am UTC](https://www.ruby-forum.com/t/novo-respostas-da-prova-pmp-respondidas-e-comentadas-pelo-autor-do-blog/123832 "2007-12-21T03:32:05Z")

</div>

Novo! Respostas da prova PMP respondidas e comentadas pelo autor do Blog.

---

## [Bdb xml](https://www.ruby-forum.com/t/bdb-xml/95615)

<div class="topic-metadata">

**Author:** [@levent](https://www.ruby-forum.com/u/levent)\
**Replies:** 1\
**Last updated:** [December 21, 2007, 3:09am UTC](https://www.ruby-forum.com/t/bdb-xml/95615 "2007-12-21T03:09:13Z")

</div>

Anybody have any pointers for using BDB XML and Ruby on Rails? I am developing on Windows XP pro… I have installed Berkeley DB XML on my system I have tried gem install rdbxml - this failed at first due to no nmake I…

---

## [Mapping Table Names to Human Names for Display](https://www.ruby-forum.com/t/mapping-table-names-to-human-names-for-display/123818)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 8\
**Last updated:** [December 21, 2007, 1:57am UTC](https://www.ruby-forum.com/t/mapping-table-names-to-human-names-for-display/123818 "2007-12-21T01:57:20Z")

</div>

Using Scaffolding, in SHOWING data, it shows the table name (called the human name) and valve, when showing data. I would like alter the table/human name. Is there an easy way to do this, or should i make my own mapp…

---

## [Migrations + Teams + possible SVN Conflicts](https://www.ruby-forum.com/t/migrations-teams-possible-svn-conflicts/123762)

<div class="topic-metadata">

**Author:** [@adityasanghi](https://www.ruby-forum.com/u/adityasanghi)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 12:37am UTC](https://www.ruby-forum.com/t/migrations-teams-possible-svn-conflicts/123762 "2007-12-21T00:37:15Z")

</div>

Hi Guys, I’ve got a team of people working on a Rails Project. They work independently on various different modules. Each sub team/developer creates relevant migrations for the component they work on and then check-i…

---

## [Img in layout disappears when controller renders view](https://www.ruby-forum.com/t/img-in-layout-disappears-when-controller-renders-view/123823)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 2\
**Last updated:** [December 20, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/img-in-layout-disappears-when-controller-renders-view/123823 "2007-12-20T23:57:00Z")

</div>

I have a application level layout and no other layouts. The layout consists of a static image wrapped in a div tag and my controllers render scaffold generated views into the “yield” statement after the header div. M…

---

## [Object.send problem within ActiveRecord](https://www.ruby-forum.com/t/object-send-problem-within-activerecord/123814)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/object-send-problem-within-activerecord/123814 "2007-12-20T23:54:41Z")

</div>

I am using the send method in one of my active records … executing a method without any parameters works fine… but when it comes to parameters it says ArgumentError: wrong number of arguments (1 for 0) u = User.new #…

---

## [Form validation](https://www.ruby-forum.com/t/form-validation/123816)

<div class="topic-metadata">

**Author:** [@kilo](https://www.ruby-forum.com/u/kilo)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/form-validation/123816 "2007-12-20T23:49:11Z")

</div>

Why Rails 2 doesn’t mark by class=“invalid” inputs wherei is en error?

---

## [\[ANN\] RubyGems 1.0.0](https://www.ruby-forum.com/t/ann-rubygems-1-0-0/123825)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/ann-rubygems-1-0-0/123825 "2007-12-20T23:35:23Z")

</div>

Eric H. has released Rubygems 1.0.0. To upgrade type gem update –system. More information here: http://blog.segment7.net/articles/2007/12/20/rubygems-1-0-0 – Ryan B.

---

## [Getting an error when using routing navigator plugin - any ideas?](https://www.ruby-forum.com/t/getting-an-error-when-using-routing-navigator-plugin-any-ideas/123692)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/getting-an-error-when-using-routing-navigator-plugin-any-ideas/123692 "2007-12-20T23:04:18Z")

</div>

Hi everyone, I’m getting the following error after installing and using the routing navigator plugin. undefined method \`template\_root=’ for RoutingNavigatorController:Class is anyone else seing the same problem? I t…

---

## [Jan. 8th - TSOT Inc. Ruby on Rails Project Night with MC Joey deVilla](https://www.ruby-forum.com/t/jan-8th-tsot-inc-ruby-on-rails-project-night-with-mc-joey-devilla/123822)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/jan-8th-tsot-inc-ruby-on-rails-project-night-with-mc-joey-devilla/123822 "2007-12-20T23:01:22Z")

</div>

TSOT, Inc. is launching a Ruby on Rails Project Night starting Tuesday January 8th, 2008 - all are invited to listen to our MC Joey deVilla, as well as presenters Andrew Burke and the Unspace group at this fun event f…

---

## [\[ANN\] Join us for Vancouver's 1st RubyCamp @ WorkSpace on January 26th, 2008](https://www.ruby-forum.com/t/ann-join-us-for-vancouvers-1st-rubycamp-workspace-on-january-26th-2008/123821)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/ann-join-us-for-vancouvers-1st-rubycamp-workspace-on-january-26th-2008/123821 "2007-12-20T22:47:20Z")

</div>

Hello Railers and Rubyists, You are invited to RubyCamp 2008 in Vancouver on Saturday, January 26th. RubyCamp is an one-day gathering for Rubyists and Railers. When and Where: WorkSpace in downtown Vancouver, B.C., …

---

## [SWFupload2 and Rails2 session cookie store](https://www.ruby-forum.com/t/swfupload2-and-rails2-session-cookie-store/123789)

<div class="topic-metadata">

**Author:** [@SSSSSbastien\_Gruhie](https://www.ruby-forum.com/u/SSSSSbastien_Gruhie)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/swfupload2-and-rails2-session-cookie-store/123789 "2007-12-20T22:19:15Z")

</div>

Hi, Is anyone succeed to use the new SWFUpload2 with Rails2 using session cookie store?, Thanks

---

## [Belongs to ... belongs to.. :through](https://www.ruby-forum.com/t/belongs-to-belongs-to-through/123798)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 2\
**Last updated:** [December 20, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/belongs-to-belongs-to-through/123798 "2007-12-20T22:13:11Z")

</div>

I have A that belongs to B that belongs to C In my model of A, can i do… belongs\_to :B belongs\_to :C, :through :B thanks for any tips…

---

## [Amazon S3 as Database Backend?](https://www.ruby-forum.com/t/amazon-s3-as-database-backend/123779)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 3\
**Last updated:** [December 20, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/amazon-s3-as-database-backend/123779 "2007-12-20T22:02:51Z")

</div>

Examples I have seen of S3 involve storing files. I wonder if S3 can be used as a database backend. Or I wonder if there is a hosted service offering database storage and services in simple pay-as-you-go- and-use term…

---

## [How to set a ror application environment for production?](https://www.ruby-forum.com/t/how-to-set-a-ror-application-environment-for-production/123806)

<div class="topic-metadata">

**Author:** [@art](https://www.ruby-forum.com/u/art)\
**Replies:** 2\
**Last updated:** [December 20, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/how-to-set-a-ror-application-environment-for-production/123806 "2007-12-20T21:58:37Z")

</div>

Hi all, I would like to know how to set the production environment in a ruby on rails application in the real server? Thanks in advance and best regards, Art

---

## [Custom Boolean Definition](https://www.ruby-forum.com/t/custom-boolean-definition/123809)

<div class="topic-metadata">

**Author:** [@timo](https://www.ruby-forum.com/u/timo)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/custom-boolean-definition/123809 "2007-12-20T21:58:11Z")

</div>

Greetings. I have a legacy database that cannot be changed. The true/false values in the database are true = -1, false = 0 (Thank you very much VB…) Unfortunately, when I interact with these, rails/ruby sees everythin…

---

## [Problem when empty string is being passed to update\_attributes](https://www.ruby-forum.com/t/problem-when-empty-string-is-being-passed-to-update-attributes/123792)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 2\
**Last updated:** [December 20, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/problem-when-empty-string-is-being-passed-to-update-attributes/123792 "2007-12-20T21:56:25Z")

</div>

Hi, I have the following problem: I have a page where users can update their passwords. When users just leave the password and password\_confirmation fields blank, rails will not raise an error when I do @user.update…

---

## [Prefered way to deny access](https://www.ruby-forum.com/t/prefered-way-to-deny-access/123754)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 6\
**Last updated:** [December 20, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/prefered-way-to-deny-access/123754 "2007-12-20T21:28:17Z")

</div>

Lets say I have a session based login system: username = session\[:username\] (jochen) userid = session\[:userid\] (1) Now I want to book a room: http://127.0.0.1:3000/guests/1/bookings/new (works) But when I type …

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

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