# Rails

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

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

---

## [RoR Developers Needed @ Yellowpages.com](https://www.ruby-forum.com/t/ror-developers-needed-yellowpages-com/196570)

<div class="topic-metadata">

**Author:** [@rorla](https://www.ruby-forum.com/u/rorla)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 5:28am UTC](https://www.ruby-forum.com/t/ror-developers-needed-yellowpages-com/196570 "2008-01-14T05:28:56Z")

</div>

YELLOWPAGES.COM is an exciting Internet Yellow Pages and local search company that creates and markets the latest products for online advertising, including state-of-the-art wireless, video and audio products. Weâ€™ve…

---

## [RoR Developers Needed (Glendale, Ca)](https://www.ruby-forum.com/t/ror-developers-needed-glendale-ca/125954)

<div class="topic-metadata">

**Author:** [@rorla](https://www.ruby-forum.com/u/rorla)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 5:27am UTC](https://www.ruby-forum.com/t/ror-developers-needed-glendale-ca/125954 "2008-01-14T05:27:06Z")

</div>

YELLOWPAGES.COM is an exciting Internet Yellow Pages and local search company that creates and markets the latest products for online advertising, including state-of-the-art wireless, video and audio products. Weâ€™ve…

---

## [Piston: anyone know how to convert existing checked in plugins?](https://www.ruby-forum.com/t/piston-anyone-know-how-to-convert-existing-checked-in-plugins/125373)

<div class="topic-metadata">

**Author:** [@tharrison](https://www.ruby-forum.com/u/tharrison)\
**Replies:** 5\
**Last updated:** [January 14, 2008, 2:59am UTC](https://www.ruby-forum.com/t/piston-anyone-know-how-to-convert-existing-checked-in-plugins/125373 "2008-01-14T02:59:40Z")

</div>

We’re moving to use the piston gem to manage our plugins, which is a nice alternative to the svn:externals approach to keeping your plugins up to date. We already have added the plugins we use to svn. Is there a (sim…

---

## [How do I globally switch the database connection?](https://www.ruby-forum.com/t/how-do-i-globally-switch-the-database-connection/125946)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 2:15am UTC](https://www.ruby-forum.com/t/how-do-i-globally-switch-the-database-connection/125946 "2008-01-14T02:15:52Z")

</div>

Hi, I’m trying to switch from one database to another. Current, I have this: def set\_database @client\_id = ‘production’ config = YAML.load( File.open(File.join(RAILS\_ROOT, ‘config/ database.yml’)) ) db = config\[@c…

---

## [Graceful way to handle execution expired and bad URI errors?](https://www.ruby-forum.com/t/graceful-way-to-handle-execution-expired-and-bad-uri-errors/125912)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 6\
**Last updated:** [January 14, 2008, 1:31am UTC](https://www.ruby-forum.com/t/graceful-way-to-handle-execution-expired-and-bad-uri-errors/125912 "2008-01-14T01:31:49Z")

</div>

Hello, I have a program that takes blog urls that our customers enter into their profiles. In some cases they enter bad feeds (IE html pages instead of atom or rss), and it throws these two errors: execution exp…

---

## [Stack level too deep](https://www.ruby-forum.com/t/stack-level-too-deep/125929)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 3\
**Last updated:** [January 14, 2008, 1:16am UTC](https://www.ruby-forum.com/t/stack-level-too-deep/125929 "2008-01-14T01:16:49Z")

</div>

I have a problem why do I get a stack level too deep error when I just add def new @speler = Speler.new end I try to figure it out but I’m after 2 days of searching out off options I run ruby 1.8.6 and rails 2.0.…

---

## [301](https://www.ruby-forum.com/t/topic/125942)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 0\
**Last updated:** [January 14, 2008, 1:15am UTC](https://www.ruby-forum.com/t/topic/125942 "2008-01-14T01:15:04Z")

</div>

How do I do a 301? I am trying to redirect pilotoutlook.com to www.pilotoutlook.com I have put map.connect … in routes.rb and it seems to be working fine, however, thats not a 301 Kindly let me know rajat

---

## [How to setup name in Mailer?](https://www.ruby-forum.com/t/how-to-setup-name-in-mailer/125886)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [January 14, 2008, 12:59am UTC](https://www.ruby-forum.com/t/how-to-setup-name-in-mailer/125886 "2008-01-14T00:59:53Z")

</div>

I use from ‘removed\_email\_address@domain.invalid’ and when it arrives in targeted inbox, it shows from ‘removed\_email\_address@domain.invalid’. I want to show from ‘This That’… like name of the sender. How to do that?

---

## [Script/generate module for-a-specify-class](https://www.ruby-forum.com/t/script-generate-module-for-a-specify-class/125934)

<div class="topic-metadata">

**Author:** [@bigme](https://www.ruby-forum.com/u/bigme)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/script-generate-module-for-a-specify-class/125934 "2008-01-13T23:54:46Z")

</div>

Hi guys, I’m a RoR newbie and I’ve a couple of mistakes about the shell command ruby script/generate model Class. I wish to generate a model for a specify table (then, I don’t want that a command such script/generate…

---

## [CMS - how to associate "pages" with controllers and routes](https://www.ruby-forum.com/t/cms-how-to-associate-pages-with-controllers-and-routes/125932)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/cms-how-to-associate-pages-with-controllers-and-routes/125932 "2008-01-13T23:05:03Z")

</div>

Hi, I’ve developed a simple CMS. I want to be able to create re-usable applications. One of them, a simple PayPal shop. In the backend, you can add “pages”. Very simple, a “code” and the “body”. The “code” is use as …

---

## [Amazing Java Developer Needs Help Getting Started](https://www.ruby-forum.com/t/amazing-java-developer-needs-help-getting-started/125869)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/amazing-java-developer-needs-help-getting-started/125869 "2008-01-13T22:57:21Z")

</div>

Hi guys, I need to learn Ruby on Rails as fast as possible and very much wish to start with 2.0. I’m really good at developing software with Java and its associated tools and frameworks. What is the best path for me …

---

## [Obtain selected value from collection\_select](https://www.ruby-forum.com/t/obtain-selected-value-from-collection-select/125931)

<div class="topic-metadata">

**Author:** [@abraham](https://www.ruby-forum.com/u/abraham)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/obtain-selected-value-from-collection-select/125931 "2008-01-13T22:53:57Z")

</div>

Hi Im trying to change the layout of a view depending on the value selected in a collection\_select box dynamically. Iow the value selected must be passed to the controller without any submit buttons beings pressed. U…

---

## [Basic Routes](https://www.ruby-forum.com/t/basic-routes/125866)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 10:52pm UTC](https://www.ruby-forum.com/t/basic-routes/125866 "2008-01-13T22:52:39Z")

</div>

I am trying to replace the default homepage (public/index.html) to one of my controllers. I deleted the file in ‘public/index.html’ created a controller called ‘site’ and added this line to my ‘routes.rb’ file… map.c…

---

## [New entry in table for each date between two dates?](https://www.ruby-forum.com/t/new-entry-in-table-for-each-date-between-two-dates/125853)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 3\
**Last updated:** [January 13, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/new-entry-in-table-for-each-date-between-two-dates/125853 "2008-01-13T22:42:08Z")

</div>

I’m having trouble wrapping my head around something I’m trying to do… Basically I’m trying to build a reservations system. I have my form populating the reservations table with the information I need, but also upon…

---

## [Stupid question. I'm in deadend](https://www.ruby-forum.com/t/stupid-question-im-in-deadend/125927)

<div class="topic-metadata">

**Author:** [@sublime](https://www.ruby-forum.com/u/sublime)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/stupid-question-im-in-deadend/125927 "2008-01-13T22:25:39Z")

</div>

I’m newbie. Please, help. I suppose it’s easy :slight\_smile: I have admin controller which is working ok and with usual controller I have trouble. This is app/controllers/team\_controller.rb class TeamController \< A…

---

## [Scaffolding w/ Rails 2.0 - Is there a way to do the models first?](https://www.ruby-forum.com/t/scaffolding-w-rails-2-0-is-there-a-way-to-do-the-models-first/125877)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 3\
**Last updated:** [January 13, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/scaffolding-w-rails-2-0-is-there-a-way-to-do-the-models-first/125877 "2008-01-13T22:24:21Z")

</div>

I was playing around with the new scaffold generator and I noticed that if I generated a model first (which creates a migration) and updated the migration for the model… and then tried to do a scaffold of the model, t…

---

## [Java install won't accept \<Ok\>? Desperate for help?](https://www.ruby-forum.com/t/java-install-wont-accept-ok-desperate-for-help/125913)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/java-install-wont-accept-ok-desperate-for-help/125913 "2008-01-13T21:03:13Z")

</div>

I’ve decided that I’m going to develop my Rails applications in Linux and keep hitting a BRICK WALL every time I try to install NetBeans or Java. I download all of the packages and come to a text screen that says “Pac…

---

## [Creating "sub" controllers through scaffolding problem](https://www.ruby-forum.com/t/creating-sub-controllers-through-scaffolding-problem/125921)

<div class="topic-metadata">

**Author:** [@thejag](https://www.ruby-forum.com/u/thejag)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/creating-sub-controllers-through-scaffolding-problem/125921 "2008-01-13T20:43:25Z")

</div>

I was creating an acp for my ruby app, but when i ran: ruby script\\generate scaffold ‘acp/user’ username:string hashed\_password:string password\_salt:string joined:datetime last\_visit:datetime business\_name:string given…

---

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

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/form-error/125897 "2008-01-13T20:06:22Z")

</div>

Dears I’m trying to get a form working in my application however I get the stack error for this in return. I allready found out that it’s situated in the def new declaration but have no clue how to solve this this is…

---

## [SEO url's with nesting pages](https://www.ruby-forum.com/t/seo-urls-with-nesting-pages/125918)

<div class="topic-metadata">

**Author:** [@stefan](https://www.ruby-forum.com/u/stefan)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/seo-urls-with-nesting-pages/125918 "2008-01-13T19:48:42Z")

</div>

In my current project we have a problem regarding to the prefered URLS and the routing which come with it. For now I have one model Page that acts\_as\_tree, thus has a belongs\_to and has\_many relations with itself. Thi…

---

## [Rake db:test:prepare causes error](https://www.ruby-forum.com/t/rake-dbprepare-causes-error/125914)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/rake-dbprepare-causes-error/125914 "2008-01-13T19:33:19Z")

</div>

I am a newbie to RoR and I’m having trouble getting testing up and running. I tried Googling my problem and haven’t found an answer that has worked. When I run rake db:test:prepare, I get the following error (I’m work…

---

## [Dependencies: excluding a constant from reloading](https://www.ruby-forum.com/t/dependencies-excluding-a-constant-from-reloading/125916)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/dependencies-excluding-a-constant-from-reloading/125916 "2008-01-13T19:12:47Z")

</div>

The Rails dependency mechanism tracks which constants are defined when anything is loaded automatically. In the development environment, these constants are undefined after each request, so that possibly changed versi…

---

## [ANN: ebay-shopping, a RubyonRails plugin library for the Ebay Shopping API](https://www.ruby-forum.com/t/ann-ebay-shopping-a-rubyonrails-plugin-library-for-the-ebay-shopping-api/125915)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 0\
**Last updated:** [January 13, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/ann-ebay-shopping-a-rubyonrails-plugin-library-for-the-ebay-shopping-api/125915 "2008-01-13T19:02:12Z")

</div>

Just a quick alert about the Rails plugin for the ebay Shopping API that I’ve done. It’s pretty straightforward to use, and is already in use on the classic car community website I run, http://autopendium.com. There’s…

---

## [Hiding Mongrel version from Server Header](https://www.ruby-forum.com/t/hiding-mongrel-version-from-server-header/125716)

<div class="topic-metadata">

**Author:** [@ole](https://www.ruby-forum.com/u/ole)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/hiding-mongrel-version-from-server-header/125716 "2008-01-13T18:13:21Z")

</div>

Does anybody know of a way to hide the version number from the server request header that Mongrel serves. This is what clients currently see: Server: Mongrel 1.1.3 I would prefer: Server: Mongrel for security reaso…

---

## [How to get all the records of previous week?](https://www.ruby-forum.com/t/how-to-get-all-the-records-of-previous-week/125888)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 5\
**Last updated:** [January 13, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/how-to-get-all-the-records-of-previous-week/125888 "2008-01-13T17:48:43Z")

</div>

I have a field in Post called updated\_at which of DATETIME type. I want to get all the posts which were updated last week. How do I do that? Thanks

---

## [Simple split function gives wrong output](https://www.ruby-forum.com/t/simple-split-function-gives-wrong-output/125902)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 5\
**Last updated:** [January 13, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/simple-split-function-gives-wrong-output/125902 "2008-01-13T17:34:13Z")

</div>

I want to make a simple IP check for values between 0-255 without using expressions, so I created the code below: (But c and d always gives first if -statement. Does not not split handle 4 integer split, or have I don…

---

## [Wrong number of arguments (0 for 1)](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1/125893)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 4\
**Last updated:** [January 13, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1/125893 "2008-01-13T17:11:07Z")

</div>

Hi, I got this error i got after i click the link to go to the product page where if it is the first time i enter this page, i will be able to save and when i enter the page the subsequent times i will be able to edit …

---

## [Assign counter to view......is it possible?](https://www.ruby-forum.com/t/assign-counter-to-view-is-it-possible/125676)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 3\
**Last updated:** [January 13, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/assign-counter-to-view-is-it-possible/125676 "2008-01-13T16:02:15Z")

</div>

Hi, I really want to know if it is possible to assign counter to the .rhtml page so that if counter=1, when the submit button is clicked, I will do the save/create action. If counter \>= 2, when the submit button is c…

---

## [Need help with nested resource and link\_to](https://www.ruby-forum.com/t/need-help-with-nested-resource-and-link-to/125900)

<div class="topic-metadata">

**Author:** [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Replies:** 1\
**Last updated:** [January 13, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/need-help-with-nested-resource-and-link-to/125900 "2008-01-13T15:44:17Z")

</div>

I’ve read all the posts, blogs, peepcode about nested resources but I can’t get link\_to to work. I know I’m missing something simple so I hope another set of eyes will help out. I have a pretty simple set up: deliver…

---

## [Problems with date field](https://www.ruby-forum.com/t/problems-with-date-field/125858)

<div class="topic-metadata">

**Author:** [@luizbiagi](https://www.ruby-forum.com/u/luizbiagi)\
**Replies:** 2\
**Last updated:** [January 13, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/problems-with-date-field/125858 "2008-01-13T15:21:24Z")

</div>

Hi, I’m creating a date type field to put birthdate, but the years on this field only go to 2003, what should I do??

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

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