# Rails

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

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

---

## [ActionController::RoutingError (No route matches](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-matches/157314)

<div class="topic-metadata">

**Author:** [@ruby](https://www.ruby-forum.com/u/ruby)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 10:33am UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-matches/157314 "2009-01-09T10:33:41Z")

</div>

Recently we came across the above problem. After digging in for about 1 day we found one solution which I will like to share. This error comes when you are using rails with flex and svn as repository. in this case try…

---

## [ActiveRecord handling of obj.dup vs obj.clone](https://www.ruby-forum.com/t/activerecord-handling-of-obj-dup-vs-obj-clone/157312)

<div class="topic-metadata">

**Author:** [@daudi](https://www.ruby-forum.com/u/daudi)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 10:33am UTC](https://www.ruby-forum.com/t/activerecord-handling-of-obj-dup-vs-obj-clone/157312 "2009-01-09T10:33:06Z")

</div>

AR seems to be handling model object dup and cloning differently from Ruby documented behavior. I’ve checked out both ways (as an AR model and not) and the behavior is different. I don’t see anything in the RAILS do…

---

## [Could not find \[gem\] locally or in a repository](https://www.ruby-forum.com/t/could-not-find-gem-locally-or-in-a-repository/153300)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 19\
**Last updated:** [January 9, 2009, 10:08am UTC](https://www.ruby-forum.com/t/could-not-find-gem-locally-or-in-a-repository/153300 "2009-01-09T10:08:36Z")

</div>

Hi, Every gem i tried to install i got the message: Error: Could not find locally or in a repository! please some help… remco

---

## [To get more understanding of REST](https://www.ruby-forum.com/t/to-get-more-understanding-of-rest/157297)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 8:20am UTC](https://www.ruby-forum.com/t/to-get-more-understanding-of-rest/157297 "2009-01-09T08:20:32Z")

</div>

Hi Could any body please explain the difference below map.resources :people map.resource :book # or books Also I would like to know why to specify member like map.resources :templates, :member =\> { :attach\_file\_j…

---

## [Using "eval" to display a summary](https://www.ruby-forum.com/t/using-eval-to-display-a-summary/157294)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 8:03am UTC](https://www.ruby-forum.com/t/using-eval-to-display-a-summary/157294 "2009-01-09T08:03:52Z")

</div>

Hi, Anyone can helps to display a summary list instead of a details list. Here is my code; recgroup = eval(tablename.fieldname) if !tablename.fieldname.nil? puts recgroup\[:textgroup\] + recgroup\[:countgroup\].inject(0…

---

## [How can I let plugin go through proxy](https://www.ruby-forum.com/t/how-can-i-let-plugin-go-through-proxy/157281)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 7:44am UTC](https://www.ruby-forum.com/t/how-can-i-let-plugin-go-through-proxy/157281 "2009-01-09T07:44:50Z")

</div>

I use script/plugin to install plugins. but how to configure the proxy hostname it uses?

---

## [Routes.rb question](https://www.ruby-forum.com/t/routes-rb-question/157274)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 6:29am UTC](https://www.ruby-forum.com/t/routes-rb-question/157274 "2009-01-09T06:29:26Z")

</div>

I’m trying to go to localhost/phrases/new where ‘phrases’ is my controller and ‘new’ is my action which will simply show my new.html.erb In my routes i have: map.connect ‘/:controller/:action’ Yet every time i go to…

---

## [Rails app with javasript](https://www.ruby-forum.com/t/rails-app-with-javasript/157284)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 6:26am UTC](https://www.ruby-forum.com/t/rails-app-with-javasript/157284 "2009-01-09T06:26:22Z")

</div>

i hav a problem… to fetch a correponding value of radio button. \</td\> \<td\> \<span class="ysmall"\> \<div id="Q1" class="yui-buttongroup"\> \<%= radio\_button :org\_review, :Q1, 5%\> \<%= radio\_button :org\_review, :Q1, 4%\> …

---

## [Validating a legal subdomain](https://www.ruby-forum.com/t/validating-a-legal-subdomain/155418)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 9, 2009, 5:43am UTC](https://www.ruby-forum.com/t/validating-a-legal-subdomain/155418 "2009-01-09T05:43:48Z")

</div>

I have a Rails app that uses subdomains as account keys. Users name their own subdomains. How can I validate those subdomains as legal?

---

## [Capistrano upload?](https://www.ruby-forum.com/t/capistrano-upload/156711)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 5:36am UTC](https://www.ruby-forum.com/t/capistrano-upload/156711 "2009-01-09T05:36:39Z")

</div>

How do I use the Capistrano upload function in a recipe? It seems simple enough, but I can’t get it to work. Here’s my recipe desc "Copy the development database to the staging database" task :copy\_db\_to\_staging, :ho…

---

## [ActiveRecord handling of obj.dup vs obj.clone](https://www.ruby-forum.com/t/activerecord-handling-of-obj-dup-vs-obj-clone/157283)

<div class="topic-metadata">

**Author:** [@dsaronin](https://www.ruby-forum.com/u/dsaronin)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 5:03am UTC](https://www.ruby-forum.com/t/activerecord-handling-of-obj-dup-vs-obj-clone/157283 "2009-01-09T05:03:16Z")

</div>

AR seems to be handling model object dup and cloning differently from Ruby documented behavior. I’ve checked out both ways (as an AR model and not) and the behavior is different. I don’t see anything in the RAILS do…

---

## [What is wrong with validates\_presence\_of :my\_association?](https://www.ruby-forum.com/t/what-is-wrong-with-validates-presence-of-my-association/157268)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 3:03am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-validates-presence-of-my-association/157268 "2009-01-09T03:03:29Z")

</div>

Category.has\_many :products Let’s say a product must belong to a category. I know it is recommended to do the following: class Product validates\_presence\_of :category\_id end But, as we all know, this is a pain for …

---

## [Authenticating users on different sources](https://www.ruby-forum.com/t/authenticating-users-on-different-sources/157179)

<div class="topic-metadata">

**Author:** [@jtibu](https://www.ruby-forum.com/u/jtibu)\
**Replies:** 4\
**Last updated:** [January 9, 2009, 2:26am UTC](https://www.ruby-forum.com/t/authenticating-users-on-different-sources/157179 "2009-01-09T02:26:35Z")

</div>

Hi there folks! I need to authenticate users on different sources (for instance, local database and Active Directory), and make registration (on local db) possible for users who don’t have an AD account… For the db …

---

## [Testing ActiveResource models with HttpMock](https://www.ruby-forum.com/t/testing-activeresource-models-with-httpmock/153709)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 2:22am UTC](https://www.ruby-forum.com/t/testing-activeresource-models-with-httpmock/153709 "2009-01-09T02:22:28Z")

</div>

Hi all, I have already spent (too) many hours trying to wire HttpMock in my test suite and I am stuck. I’m setting up my “remote fixtures” using a technique quite similar to what’s described here: but even the simp…

---

## [Binary Data over JSON/XML?](https://www.ruby-forum.com/t/binary-data-over-json-xml/157272)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 2:01am UTC](https://www.ruby-forum.com/t/binary-data-over-json-xml/157272 "2009-01-09T02:01:25Z")

</div>

Hello there, I am currently putting together a rails-based web application which will only serve and receive data via json and xml. However, some requirements contain the ability to upload binary data (images). Now t…

---

## [Link\_to within an HTML table](https://www.ruby-forum.com/t/link-to-within-an-html-table/157127)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 1:03am UTC](https://www.ruby-forum.com/t/link-to-within-an-html-table/157127 "2009-01-09T01:03:31Z")

</div>

I am using Rails 2.2.2 and put together a show.html.erb template to display relevant details of my model (model A). Model A has a one-to- many relationship to another model model B, and those details are displayed as…

---

## [NEWBIE: How come I don't see new database records?](https://www.ruby-forum.com/t/newbie-how-come-i-dont-see-new-database-records/157264)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 12:50am UTC](https://www.ruby-forum.com/t/newbie-how-come-i-dont-see-new-database-records/157264 "2009-01-09T00:50:03Z")

</div>

I just inherited a Ruby on Rails web site. I don’t know anything about this topic (I do VB.NET normally). I’m so confused that I’m about to either throw my laptop out the window or throw myself out the window… I conne…

---

## [Polymprphic == confusion](https://www.ruby-forum.com/t/polymprphic-confusion/157180)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 7\
**Last updated:** [January 9, 2009, 12:08am UTC](https://www.ruby-forum.com/t/polymprphic-confusion/157180 "2009-01-09T00:08:26Z")

</div>

I have been having trouble setting up some relations. I want to be able to do this: user.contact\_items # an array of addresses, websites, phone numbers, etc. user.addresses # an array of addresses user.we…

---

## [Dumb problem using BackgroundRb](https://www.ruby-forum.com/t/dumb-problem-using-backgroundrb/157214)

<div class="topic-metadata">

**Author:** [@fbrubacher](https://www.ruby-forum.com/u/fbrubacher)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 12:03am UTC](https://www.ruby-forum.com/t/dumb-problem-using-backgroundrb/157214 "2009-01-09T00:03:46Z")

</div>

i’m trying to use BackgroundRb but when I do worker = MiddleMan(:tag\_sending\_worker) in my controller i get "undefined method \`MiddleMan’ for #SchedulesController:0x25be080 , but when i do it from the console it wo…

---

## [Making display options sort](https://www.ruby-forum.com/t/making-display-options-sort/157260)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/making-display-options-sort/157260 "2009-01-08T23:32:07Z")

</div>

I’m doing some editing on an existing rails app and this view; \_tour\_listing.html.erb looks like this: \<% if @upcoming\_tour\_requests.blank? %\> No upcoming tour requests. \<% else %\> Group Name Contact Name Sta…

---

## [Problem with migration number](https://www.ruby-forum.com/t/problem-with-migration-number/157255)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/problem-with-migration-number/157255 "2009-01-08T22:13:36Z")

</div>

I have recently had to reload my computer. I don’t know if this if relevant at all to this problem, but wanted to mention it. I have an application that I’m needing to make some changes to. To prepare for it, I’m doin…

---

## [Using dom\_id to localize testing](https://www.ruby-forum.com/t/using-dom-id-to-localize-testing/157251)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/using-dom-id-to-localize-testing/157251 "2009-01-08T21:40:51Z")

</div>

I am trying to test a rails app using webrat. I have this sort of construct: Short Name ... Legal Name \<% for entity in @entities %\> \<%=h entity.entity\_name.titlecas…

---

## [Problem with disable\_with](https://www.ruby-forum.com/t/problem-with-disable-with/157239)

<div class="topic-metadata">

**Author:** [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/problem-with-disable-with/157239 "2009-01-08T21:39:54Z")

</div>

Hi Group, I have a registration.html.erb page with the following JavaScript at the top which I use to validate form fields: further down the page I have the form: \<% form\_tag({:action =\> ‘sendregistration’}, {:name …

---

## [How do I solve/debug "gem update" problem?](https://www.ruby-forum.com/t/how-do-i-solve-debug-gem-update-problem/157218)

<div class="topic-metadata">

**Author:** [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/how-do-i-solve-debug-gem-update-problem/157218 "2009-01-08T19:58:42Z")

</div>

I used InstantRails 2.0 to install RoR on Win XP SP3. It brought rails 2.0.2 and I am having problems updating to rails 2.2.2 After initial installation I run “gem update—system” w/o a problem. However the subsequent …

---

## [Passing information to the controller from view](https://www.ruby-forum.com/t/passing-information-to-the-controller-from-view/157138)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 6\
**Last updated:** [January 8, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/passing-information-to-the-controller-from-view/157138 "2009-01-08T19:52:46Z")

</div>

Hi everyone, I have a template called createFile.html.erb which has some ruby code in it. The ruby code pulls information from the database because i’m looping through some records. Is it possible to send all of the …

---

## [Strange Session Issue](https://www.ruby-forum.com/t/strange-session-issue/157240)

<div class="topic-metadata">

**Author:** [@EddM](https://www.ruby-forum.com/u/EddM)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/strange-session-issue/157240 "2009-01-08T19:45:01Z")

</div>

Hey Everyone, This is tricky. I’m having a very strange issue with a particular app which, we think, is related to sessions. I’m afraid it’s very hard to explain, so if you would like anything elaborated on then pleas…

---

## [Trying to sort results of one-to-many relationship find](https://www.ruby-forum.com/t/trying-to-sort-results-of-one-to-many-relationship-find/157225)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/trying-to-sort-results-of-one-to-many-relationship-find/157225 "2009-01-08T19:42:14Z")

</div>

Assuming I have two models: Order “belongs\_to :payee” Payee “has\_many :orders” In the orders table, I store the payee\_id. If I want to pull all orders and display the list alphabetically by the payees last name, wha…

---

## [There is already an object named 'schema\_migrations' in the database](https://www.ruby-forum.com/t/there-is-already-an-object-named-schema-migrations-in-the-database/157224)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 5\
**Last updated:** [January 8, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/there-is-already-an-object-named-schema-migrations-in-the-database/157224 "2009-01-08T19:22:02Z")

</div>

I’ve created a table in a SQL Server database using a migration, successfully. I’ve tried to change the name of a column in the table and got the error message above when running ‘rake db:migrate’. Previously I have …

---

## [SMF Forum + Rails - any experience?](https://www.ruby-forum.com/t/smf-forum-rails-any-experience/157236)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 7:06pm UTC](https://www.ruby-forum.com/t/smf-forum-rails-any-experience/157236 "2009-01-08T19:06:10Z")

</div>

Hi, I’m trying to see if I can get Simple Machines Forum (SMF) coexist with a Radiant CMS site. So far, I have only found this: http://railsforum.com/viewtopic.php?pid=49374 which gives some idea. Also, SMF exports o…

---

## [Randomly dropping sessions](https://www.ruby-forum.com/t/randomly-dropping-sessions/157055)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/randomly-dropping-sessions/157055 "2009-01-08T19:02:03Z")

</div>

Hey all, Most of our customers get through our shopping cart no problem so orders continue to flow. However we’ve recently (past 10 days) started receiving reports of people not being able to add items to their cart…

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

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