# Rails

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

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

---

## [Restful routes question](https://www.ruby-forum.com/t/restful-routes-question/156319)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/restful-routes-question/156319 "2008-12-24T15:03:22Z")

</div>

Hi all, This is something I puzzle for quite a while. I need just one more controller method just like index, that doesn’t need another parameter when used with redirect\_to (not like show). For that I define in confi…

---

## [Incompatibility in behaviour of "rake test" and "ruby -Itest](https://www.ruby-forum.com/t/incompatibility-in-behaviour-of-rake-test-and-ruby-itest/156323)

<div class="topic-metadata">

**Author:** [@evgeny-cd](https://www.ruby-forum.com/u/evgeny-cd)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/incompatibility-in-behaviour-of-rake-test-and-ruby-itest/156323 "2008-12-24T14:30:31Z")

</div>

Hello everybody, I had a following problem today. My test that I used to run successfully with “ruby -Itest” is failing when it is run with “rake test:integration”. I can’t understand why. Could you please check bel…

---

## [Beginner Layouts and Partials question](https://www.ruby-forum.com/t/beginner-layouts-and-partials-question/156257)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 10\
**Last updated:** [December 24, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/beginner-layouts-and-partials-question/156257 "2008-12-24T14:18:00Z")

</div>

Hello - very new to rails and MVC, I’m trying to figure out how layouts/partials co-exist. My basic layout (application.html.erb) looks like this: \<%= render :partial =\> "main/header" %\> \<%= render …

---

## [Is there plan for rails 3.0 based on merb?](https://www.ruby-forum.com/t/is-there-plan-for-rails-3-0-based-on-merb/153700)

<div class="topic-metadata">

**Author:** [@sliu](https://www.ruby-forum.com/u/sliu)\
**Replies:** 5\
**Last updated:** [December 24, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/is-there-plan-for-rails-3-0-based-on-merb/153700 "2008-12-24T13:09:18Z")

</div>

Sorry for my rudeness. I really appreciate rails core team who bring and maintain the great rails framework. I learned and benefited a lot and a lot. as merb is coming out, its purpose and strategy overlaps with rails …

---

## [Trouble installing mysql gem](https://www.ruby-forum.com/t/trouble-installing-mysql-gem/156227)

<div class="topic-metadata">

**Author:** [@bdude](https://www.ruby-forum.com/u/bdude)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/trouble-installing-mysql-gem/156227 "2008-12-24T12:58:57Z")

</div>

Hello, I’m having trouble installing the mysql gem, here is the error I am getting: Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. …

---

## [Gsub](https://www.ruby-forum.com/t/gsub/156318)

<div class="topic-metadata">

**Author:** [@mjayakumar2k6](https://www.ruby-forum.com/u/mjayakumar2k6)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/gsub/156318 "2008-12-24T12:57:47Z")

</div>

hi , I have a string with “”. how can i gsub the string? i tried “”.gsub(’’,’’) but it is giving error. thanks in advance JK

---

## [Problem with rake solr:start](https://www.ruby-forum.com/t/problem-with-rake-solr-start/156320)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/problem-with-rake-solr-start/156320 "2008-12-24T12:54:38Z")

</div>

Hi, I am trying to use solr in a rails application.This is my first experience with both Ruby on rails and solr.I I am following the documents available on net, but ,noe is completely satifactory.So I dont have a goo…

---

## [Auto completion for dynamically created input fields](https://www.ruby-forum.com/t/auto-completion-for-dynamically-created-input-fields/144016)

<div class="topic-metadata">

**Author:** [@klickverbot](https://www.ruby-forum.com/u/klickverbot)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/auto-completion-for-dynamically-created-input-fields/144016 "2008-12-24T12:41:37Z")

</div>

While working on a small application for a friend of mine, I stumbled upon a particularly tricky problem. But first a few lines about my general setup: Among other things, my application is managing Employees, each of…

---

## [Error switching to mysql database](https://www.ruby-forum.com/t/error-switching-to-mysql-database/156286)

<div class="topic-metadata">

**Author:** [@suman\_gurung](https://www.ruby-forum.com/u/suman_gurung)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 10:07am UTC](https://www.ruby-forum.com/t/error-switching-to-mysql-database/156286 "2008-12-24T10:07:39Z")

</div>

Hi All, This is a rather trivial question, but i am sure this works for most of you but it just doesnot work for me. I am using Rails 2.2.2 on ubuntu. I created a rails app and i wanted to change the development data…

---

## [Display signup form to enter admin account details](https://www.ruby-forum.com/t/display-signup-form-to-enter-admin-account-details/156253)

<div class="topic-metadata">

**Author:** [@amita0204](https://www.ruby-forum.com/u/amita0204)\
**Replies:** 6\
**Last updated:** [December 24, 2008, 9:46am UTC](https://www.ruby-forum.com/t/display-signup-form-to-enter-admin-account-details/156253 "2008-12-24T09:46:00Z")

</div>

I would like to display a user account signup form if no user is present. The signup form will then create a new user account with admin privileges. Right now I am creating a pre-defined / hard coded admin account. W…

---

## [Running a rails project in another folder](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209)

<div class="topic-metadata">

**Author:** [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Replies:** 4\
**Last updated:** [December 24, 2008, 9:21am UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209 "2008-12-24T09:21:25Z")

</div>

Hi all, I want to transfer a rails project (still under development) from my aptop to my pc. I copied the project folder into the ruby directory on my pc and ran it with mongrel (ran successfully). However, when I try …

---

## [Rails 2.2 connection to MySQL](https://www.ruby-forum.com/t/rails-2-2-connection-to-mysql/156284)

<div class="topic-metadata">

**Author:** [@geneeyuss](https://www.ruby-forum.com/u/geneeyuss)\
**Replies:** 2\
**Last updated:** [December 24, 2008, 5:57am UTC](https://www.ruby-forum.com/t/rails-2-2-connection-to-mysql/156284 "2008-12-24T05:57:32Z")

</div>

I have been trying to connect to MySQL thru rails. Initially I had rails 2.1.2 and upgraded to rails 2.2 to use RestAPI in sproutcore. Once I have upgraded my rails version to 2.2, I have been getting this error. All …

---

## [New plugin: rrdtool](https://www.ruby-forum.com/t/new-plugin-rrdtool/156299)

<div class="topic-metadata">

**Author:** [@Lennart\_K](https://www.ruby-forum.com/u/Lennart_K)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 5:16am UTC](https://www.ruby-forum.com/t/new-plugin-rrdtool/156299 "2008-12-24T05:16:28Z")

</div>

Hey everyone, I just wanted to let you know that I am working on a Ruby On Rails plugin for rrdtool. It’s called Colored: http://lennartkoopmann.github.com/colored/ (“Colored” is a really nasty combination of “red”/r…

---

## [How to use set\_primary\_key?](https://www.ruby-forum.com/t/how-to-use-set-primary-key/156219)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [December 24, 2008, 5:11am UTC](https://www.ruby-forum.com/t/how-to-use-set-primary-key/156219 "2008-12-24T05:11:12Z")

</div>

We are trying to use set\_primary\_key to cause an existing rails db to use a different primary key. This works find for accessing existing data, but gives an error when we try to add a new record, as it seems to still …

---

## [Dynamic drop down list submission problem](https://www.ruby-forum.com/t/dynamic-drop-down-list-submission-problem/155956)

<div class="topic-metadata">

**Author:** [@junsha](https://www.ruby-forum.com/u/junsha)\
**Replies:** 5\
**Last updated:** [December 24, 2008, 4:08am UTC](https://www.ruby-forum.com/t/dynamic-drop-down-list-submission-problem/155956 "2008-12-24T04:08:04Z")

</div>

hi all, i got a little problem here. with my code below, what i am trying to do is to select the value from drop down list, and then updating the value of the text field. However, after updating the value of the text…

---

## [The changes are becoming reality! What do you expect from Rails + Merb aka Rails 3.0?](https://www.ruby-forum.com/t/the-changes-are-becoming-reality-what-do-you-expect-from-rails-merb-aka-rails-3-0/156295)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 0\
**Last updated:** [December 24, 2008, 2:44am UTC](https://www.ruby-forum.com/t/the-changes-are-becoming-reality-what-do-you-expect-from-rails-merb-aka-rails-3-0/156295 "2008-12-24T02:44:58Z")

</div>

Hey guys, What do you expect? What you suggest? What’s we need to consolidate “Rails 3.0”? Help to answer this questions and ask too! – Regards, Luiz Vitor Martinez C. cel.: (11) 8187-8662 blog: rubz.org engine…

---

## [Authentication Plugins](https://www.ruby-forum.com/t/authentication-plugins/156200)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 5\
**Last updated:** [December 24, 2008, 1:24am UTC](https://www.ruby-forum.com/t/authentication-plugins/156200 "2008-12-24T01:24:51Z")

</div>

Just wondering what people would recommend - restful\_authentication, acts\_as\_authenticated … or something else? cheers, DAZ

---

## [Server won't start!](https://www.ruby-forum.com/t/server-wont-start/156287)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [December 24, 2008, 12:24am UTC](https://www.ruby-forum.com/t/server-wont-start/156287 "2008-12-24T00:24:22Z")

</div>

Hello, I’ve got an InstantRails 1.7 app (ruby 1.86, rails 2.1.0) that will no longer start since I rebooted my windows server 2003 machine to complete some windows updates. However, I also deleted some gems earlier to…

---

## [Calendar icon for date selection functionality](https://www.ruby-forum.com/t/calendar-icon-for-date-selection-functionality/156110)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 5\
**Last updated:** [December 23, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/calendar-icon-for-date-selection-functionality/156110 "2008-12-23T23:25:52Z")

</div>

Hello. I would like to add date selection functionality using a calendar icon. Is there a tutorial anywhere I could use? Thanks in advance. Pepe

---

## [Subselects and associations(:include)](https://www.ruby-forum.com/t/subselects-and-associations-include/156207)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 10:44pm UTC](https://www.ruby-forum.com/t/subselects-and-associations-include/156207 "2008-12-23T22:44:51Z")

</div>

Hi. Is there a way to stop rails from tokenizing a mysql query? I have an association where I need to change :select to: :select =\> “\*, (select count(something\_id) from second\_table where second\_table.something\_id …

---

## [Populating associations](https://www.ruby-forum.com/t/populating-associations/156229)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 1\
**Last updated:** [December 23, 2008, 10:40pm UTC](https://www.ruby-forum.com/t/populating-associations/156229 "2008-12-23T22:40:45Z")

</div>

Hi all, I have a Message class which has\_many Message\_Users, Message\_User is basically a join table with an attribute, and belongs\_to a User. so it kinda looks like the following: Message has\_many :message\_users Mes…

---

## [Help with authlogin gem](https://www.ruby-forum.com/t/help-with-authlogin-gem/156266)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [December 23, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/help-with-authlogin-gem/156266 "2008-12-23T22:29:11Z")

</div>

I am puzzled over how to normalize the login value provided by the user to authlogic to validate the existence of that user. I have threaded my way through the code and tried to understand what it and the examples a…

---

## [Rails 2.2 - Eager loading not working?](https://www.ruby-forum.com/t/rails-2-2-eager-loading-not-working/156270)

<div class="topic-metadata">

**Author:** [@Adriano](https://www.ruby-forum.com/u/Adriano)\
**Replies:** 4\
**Last updated:** [December 23, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/rails-2-2-eager-loading-not-working/156270 "2008-12-23T19:49:40Z")

</div>

Hi, I’m using Rails 2.2 with SQlite. Eager loading doesn’t seem to be working, instead of a join two selects are executed: class Category \< ActiveRecord::Base has\_many :tools end class Tool \< ActiveRecord::Base be…

---

## [Rake doc:guides error](https://www.ruby-forum.com/t/rake-doc-guides-error/156234)

<div class="topic-metadata">

**Author:** [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/rake-doc-guides-error/156234 "2008-12-23T18:31:46Z")

</div>

I have Rails 2.2.2 installed and get the following message when I try to generate the rails guides: Family-iMac:expences Dad$ rake doc:guides (in /Users/Dad/Documents/Rails/Apps/expences) rake aborted! Don’t know ho…

---

## [Setting up a Subscriptions service](https://www.ruby-forum.com/t/setting-up-a-subscriptions-service/156268)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 0\
**Last updated:** [December 23, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/setting-up-a-subscriptions-service/156268 "2008-12-23T18:07:08Z")

</div>

Hello everyone, I am currently setting up SaaS kit integration with my app. Can anyone guide me in which is the best way to do this. Here’s a couple of doubts: Should I set up a new database to hold the tables relate…

---

## [Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)](https://www.ruby-forum.com/t/upgrade-to-rails-2-problem-with-save-mysql-boolean-issue/156086)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [December 23, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/upgrade-to-rails-2-problem-with-save-mysql-boolean-issue/156086 "2008-12-23T17:50:41Z")

</div>

I have been working through an upgrade of my 1.2.6 application to 2.2.2. I am almost there but I have hit a problem with ActiveRecord. Before the upgrade, the following code was working fine. def create\_root(administ…

---

## [NoMethodError in Book#show\_subjects](https://www.ruby-forum.com/t/nomethoderror-in-book-show-subjects/156260)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 2\
**Last updated:** [December 23, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-book-show-subjects/156260 "2008-12-23T16:25:13Z")

</div>

Hi, I am quite new to ROR.I am trying to create a rails simple application that has informations about Books and Subjects.Srangely, I finished creating a basic application, and it worked fine. But then , I just tried…

---

## [Find with polymorphic associations](https://www.ruby-forum.com/t/find-with-polymorphic-associations/156254)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 1\
**Last updated:** [December 23, 2008, 3:41pm UTC](https://www.ruby-forum.com/t/find-with-polymorphic-associations/156254 "2008-12-23T15:41:00Z")

</div>

I have an Order model which has\_many Shipments and has\_many Creditcards. In my controller I’m trying to process various search parameters so that I can search on a customer name. I’d like to match on the name in any…

---

## [Problem with FCKeditor](https://www.ruby-forum.com/t/problem-with-fckeditor/156255)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 2\
**Last updated:** [December 23, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/problem-with-fckeditor/156255 "2008-12-23T15:31:23Z")

</div>

Please i need some help !!! i’m trying to upload image with fckeditor but the server it is sending me this error The server didn’t send back a proper XML response. Please contact your system administrator. XML reque…

---

## [Test messages showing up on rake tasks](https://www.ruby-forum.com/t/test-messages-showing-up-on-rake-tasks/156250)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 4\
**Last updated:** [December 23, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/test-messages-showing-up-on-rake-tasks/156250 "2008-12-23T15:16:16Z")

</div>

Hello guys, Recently an application started to print these nasty messaes everytime I try to run a rake task: ===== Loaded suite /usr/bin/rake Started Finished in 0.000235 seconds. 0 tests, 0 assertions, 0 failure…

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

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