# Rails

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

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

---

## [Reverse\_proxy\_fix and Flex URLs](https://www.ruby-forum.com/t/reverse-proxy-fix-and-flex-urls/127334)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/reverse-proxy-fix-and-flex-urls/127334 "2008-01-28T12:47:30Z")

</div>

Hi, I’ve set up several “Production type” environments using the very promising beta book “Deploying Rails Applications”: Mongrel (x2) + Apache in Win XP and Mongrel (x2) + Apache + IIS in Win 2K3. Unfortunately, the…

---

## [Does an object have children - method](https://www.ruby-forum.com/t/does-an-object-have-children-method/127281)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 11:59am UTC](https://www.ruby-forum.com/t/does-an-object-have-children-method/127281 "2008-01-28T11:59:47Z")

</div>

Is there a technique/method that tells whether an object has a child or many children or no children? for example parent has\_many :children\_1 parent has\_many :children\_2 Given the parent, how do I get the two colle…

---

## [File Uploads](https://www.ruby-forum.com/t/file-uploads/127321)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 11:32am UTC](https://www.ruby-forum.com/t/file-uploads/127321 "2008-01-28T11:32:48Z")

</div>

Hi All. how can i write test cases for video and image uploads. I am using attachment\_fu plugin. Thanks Arpit

---

## [Mysql collation Error](https://www.ruby-forum.com/t/mysql-collation-error/126772)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 10:45am UTC](https://www.ruby-forum.com/t/mysql-collation-error/126772 "2008-01-28T10:45:32Z")

</div>

Hello, I am having following mysql error. ActiveRecord::StatementInvalid occurred in event#lg: Mysql::Error: Illegal mix of collations (latin1\_swedish\_ci,IMPLICIT) and (utf8\_general\_ci,COERCIBLE) for operation ‘=’…

---

## [Rails Deployment 101 Tutorials](https://www.ruby-forum.com/t/rails-deployment-101-tutorials/126911)

<div class="topic-metadata">

**Author:** [@Brian\_Moschel](https://www.ruby-forum.com/u/Brian_Moschel)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 9:43am UTC](https://www.ruby-forum.com/t/rails-deployment-101-tutorials/126911 "2008-01-28T09:43:44Z")

</div>

Just wanted to point out a link to some tutorials on deploying Rails with Mongrel, Apache, and Capistrano. I’ve included solutions to many of the common issues that you’ll run into when using this deployment pattern. …

---

## [Reading oracle data type char in radio\_button](https://www.ruby-forum.com/t/reading-oracle-data-type-char-in-radio-button/126949)

<div class="topic-metadata">

**Author:** [@backz](https://www.ruby-forum.com/u/backz)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 9:36am UTC](https://www.ruby-forum.com/t/reading-oracle-data-type-char-in-radio-button/126949 "2008-01-28T09:36:05Z")

</div>

Hi, I am having problem when I read oracle char data type on edit form(after saving the form and go to edit page again, all the radio buttons are unchecked). text\_field works fine for char data type. Is there any spe…

---

## [Selection and button](https://www.ruby-forum.com/t/selection-and-button/127327)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 9:30am UTC](https://www.ruby-forum.com/t/selection-and-button/127327 "2008-01-28T09:30:03Z")

</div>

I have selection like ã‚·ãƒ•ãƒˆè¡¨CSVå‡ºåŠ›l template\_of\_roster1.xml template\_of\_roster2.xml template\_of\_roster3.xml and also one button. I want to write a condition like if I choose option id==tmp1 when I …

---

## [How I changed my mobile into cash?](https://www.ruby-forum.com/t/how-i-changed-my-mobile-into-cash/196581)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 8:24am UTC](https://www.ruby-forum.com/t/how-i-changed-my-mobile-into-cash/196581 "2008-01-28T08:24:50Z")

</div>

Join US and get, Latest offerings on your fingertips. Information of the latest product in tune with your interest. Up-to-date news on upcoming gizmos and gadgets. Check them at your leisure. On top of it all, effor…

---

## [100 Free Ruby On Rails hosting a/cs](https://www.ruby-forum.com/t/100-free-ruby-on-rails-hosting-a-cs/126720)

<div class="topic-metadata">

**Author:** [@NeevaaN](https://www.ruby-forum.com/u/NeevaaN)\
**Replies:** 4\
**Last updated:** [January 28, 2008, 8:20am UTC](https://www.ruby-forum.com/t/100-free-ruby-on-rails-hosting-a-cs/126720 "2008-01-28T08:20:42Z")

</div>

hi, I can give some 100, “100MB a/cs for RoR developers”. Please mail me offlist. Neevaan

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/127304)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [January 28, 2008, 6:44am UTC](https://www.ruby-forum.com/t/newbie-question/127304 "2008-01-28T06:44:28Z")

</div>

I am running through this tutorial: I have created the forms and the input form is working to create books and they are in the database but when I go to list.rhml it keeps telling me there are no books. Here is the c…

---

## [Webrick fails to start under eclipse 3.3/windows xp](https://www.ruby-forum.com/t/webrick-fails-to-start-under-eclipse-3-3-windows-xp/126178)

<div class="topic-metadata">

**Author:** [@daveh0](https://www.ruby-forum.com/u/daveh0)\
**Replies:** 3\
**Last updated:** [January 28, 2008, 5:57am UTC](https://www.ruby-forum.com/t/webrick-fails-to-start-under-eclipse-3-3-windows-xp/126178 "2008-01-28T05:57:06Z")

</div>

I’ve installed Eclipse 3.3 and associated radrails plugins on windows xp. i’m unable to start the webrick server after creating a new rails project. The error is An internal error occurred during: “Starting server”. …

---

## [Validates\_uniqueness\_of customization](https://www.ruby-forum.com/t/validates-uniqueness-of-customization/127246)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 4:53am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-customization/127246 "2008-01-28T04:53:10Z")

</div>

Hey, I have a simple web app where I would like users to sign up with a maximum of two accounts per email address. What would be the rails way of accomplishing this. Is there anyway of modifying validates\_uniqueness\_…

---

## [Problems connecting Rails to Oracle](https://www.ruby-forum.com/t/problems-connecting-rails-to-oracle/126319)

<div class="topic-metadata">

**Author:** [@cgarada](https://www.ruby-forum.com/u/cgarada)\
**Replies:** 7\
**Last updated:** [January 28, 2008, 4:20am UTC](https://www.ruby-forum.com/t/problems-connecting-rails-to-oracle/126319 "2008-01-28T04:20:51Z")

</div>

Hi I’m hoping someone can assist me with a problem I’m having connecting to a local Oracle database: Running Windows XP Pro. I have Oracle 816 and Oracle 92 clients as well as Oracle 10g Express DB. Downloaded Bitna…

---

## [How do I make an Ajax call when a page loads?](https://www.ruby-forum.com/t/how-do-i-make-an-ajax-call-when-a-page-loads/127312)

<div class="topic-metadata">

**Author:** [@Henry\_Collingridge](https://www.ruby-forum.com/u/Henry_Collingridge)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 4:00am UTC](https://www.ruby-forum.com/t/how-do-i-make-an-ajax-call-when-a-page-loads/127312 "2008-01-28T04:00:56Z")

</div>

Hi all, I have a view in which periodically\_call\_remote is updating a partial every 5 seconds. Actually, the updating is getting done in an rjs which also calls effect.highlight (via visual\_effect :highlight) on tabl…

---

## [How to test Goldberg as a plugin?](https://www.ruby-forum.com/t/how-to-test-goldberg-as-a-plugin/127313)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 3:51am UTC](https://www.ruby-forum.com/t/how-to-test-goldberg-as-a-plugin/127313 "2008-01-28T03:51:33Z")

</div>

I created a new Rails app and installed Goldberg. Now I want to run the unit tests that come with Goldberg. I notice the database tables are all prefixed with goldberg\_, while the fixture and unit test files do not ha…

---

## [Esquema Public in Postgres](https://www.ruby-forum.com/t/esquema-public-in-postgres/127310)

<div class="topic-metadata">

**Author:** [@jarrouj](https://www.ruby-forum.com/u/jarrouj)\
**Replies:** 0\
**Last updated:** [January 28, 2008, 3:33am UTC](https://www.ruby-forum.com/t/esquema-public-in-postgres/127310 "2008-01-28T03:33:03Z")

</div>

Hello People, I am working with Postgres as BD and want to create a scheme that is not public. Since I can do to construct the controller.

---

## [Problems with submitting](https://www.ruby-forum.com/t/problems-with-submitting/127303)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 3:11am UTC](https://www.ruby-forum.com/t/problems-with-submitting/127303 "2008-01-28T03:11:03Z")

</div>

Hi, I am trying to save only one field out of the five in the form(All these five fields belongs to the same table). Can someone please help me achieve that? Thanks

---

## [Link\_to question](https://www.ruby-forum.com/t/link-to-question/127301)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 1\
**Last updated:** [January 28, 2008, 2:38am UTC](https://www.ruby-forum.com/t/link-to-question/127301 "2008-01-28T02:38:46Z")

</div>

I’m a noob trying to learn 2.0 via the AWDR 1.2 book. What I’m doing is the depot app and I’m trying to follow the admin/store controller way. So right now I have a Product model and I ditched the products\_controlle…

---

## [Mysqladmin - command not found](https://www.ruby-forum.com/t/mysqladmin-command-not-found/127222)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 3\
**Last updated:** [January 28, 2008, 12:40am UTC](https://www.ruby-forum.com/t/mysqladmin-command-not-found/127222 "2008-01-28T00:40:48Z")

</div>

I have just installed MySQL on my Leopard notebook (clean install) and when I tried to use the sqlmyadmin command in the console, it returned the message “command not found”. Does this mean that MySQL has not yet been…

---

## [Will paginate - how to display ... and restrict number of pages?](https://www.ruby-forum.com/t/will-paginate-how-to-display-and-restrict-number-of-pages/127297)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 1\
**Last updated:** [January 27, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/will-paginate-how-to-display-and-restrict-number-of-pages/127297 "2008-01-27T23:05:37Z")

</div>

I want the digg style pagination which looks like this: http://www.strangerstudios.com/sandbox/pagination/diggstyle.php Does anyone know how to make the will\_paginate plugin to restrict the number of page links betwee…

---

## [Assigning wrong data type to attribute: how to trap error](https://www.ruby-forum.com/t/assigning-wrong-data-type-to-attribute-how-to-trap-error/127265)

<div class="topic-metadata">

**Author:** [@Kip](https://www.ruby-forum.com/u/Kip)\
**Replies:** 2\
**Last updated:** [January 27, 2008, 10:03pm UTC](https://www.ruby-forum.com/t/assigning-wrong-data-type-to-attribute-how-to-trap-error/127265 "2008-01-27T22:03:00Z")

</div>

A model has only one column, a numeric and the class definition has no constraints define.: create\_table "examples"do |t| t.integer “numberid” end in IRB I create a row, save it, and then attempt to assign “abcd” to …

---

## [Auto\_complete\_field and ENTER](https://www.ruby-forum.com/t/auto-complete-field-and-enter/127285)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 4\
**Last updated:** [January 27, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/auto-complete-field-and-enter/127285 "2008-01-27T21:35:10Z")

</div>

I use auto-complete to help with tag entry and a few other areas. Some example code is: Tags (ex: “sales compliance”, marketing, fast)\</ label\> \<%= form.text\_field :tag\_list, :maxlength =\> 255, :id =\> ‘f\_r\_tags’, :…

---

## [Using acts\_as\_list, acts\_as\_tree, and STI in one model](https://www.ruby-forum.com/t/using-acts-as-list-acts-as-tree-and-sti-in-one-model/127289)

<div class="topic-metadata">

**Author:** [@marko](https://www.ruby-forum.com/u/marko)\
**Replies:** 0\
**Last updated:** [January 27, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/using-acts-as-list-acts-as-tree-and-sti-in-one-model/127289 "2008-01-27T21:22:18Z")

</div>

Check it out y’all: http://rafb.net/p/NJg5U147.html (pastie was down) I’m trying to make a tree which belongs\_to another model, where you can have sections or items as children, and sections can have sections or ite…

---

## [Acceed the parent in nested function](https://www.ruby-forum.com/t/acceed-the-parent-in-nested-function/127286)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [January 27, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/acceed-the-parent-in-nested-function/127286 "2008-01-27T21:03:54Z")

</div>

hi, how can i acceed the parent in nested function. ex: user.reviews.count i want to acceed user object in count function. I tried with scoped\_methods but it doesn’t work in this case. is there another, a better way? …

---

## [Changing the database from mysql to sqlite3 - need help](https://www.ruby-forum.com/t/changing-the-database-from-mysql-to-sqlite3-need-help/127284)

<div class="topic-metadata">

**Author:** [@truetype](https://www.ruby-forum.com/u/truetype)\
**Replies:** 1\
**Last updated:** [January 27, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/changing-the-database-from-mysql-to-sqlite3-need-help/127284 "2008-01-27T20:43:54Z")

</div>

As far as I know, the only thing you need to change is database.yaml. So I set up it, changing adapter from mysql to sqlite and pointing to the file, which should play a role of database. Now when I try to run rake db…

---

## [AJAX Maps](https://www.ruby-forum.com/t/ajax-maps/96542)

<div class="topic-metadata">

**Author:** [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Replies:** 11\
**Last updated:** [January 27, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/ajax-maps/96542 "2008-01-27T18:11:27Z")

</div>

Hi, I would like to know if there is a library that provides an API to support map scrolling, like the one available in google maps. This is, I would like to create a user interface where the user is able to see a sm…

---

## [Hidden inputs fields are always strings(chars)?](https://www.ruby-forum.com/t/hidden-inputs-fields-are-always-strings-chars/127269)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [January 27, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/hidden-inputs-fields-are-always-strings-chars/127269 "2008-01-27T18:08:54Z")

</div>

Hi, I am trying to implement wizard for my application. I am doing it with hidden divs. For navigation purposes: I am using hidden input fields such as: So that when someone presses next, i can increment the curr…

---

## [ActiveRecord diff?](https://www.ruby-forum.com/t/activerecord-diff/127243)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 1\
**Last updated:** [January 27, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/activerecord-diff/127243 "2008-01-27T17:17:40Z")

</div>

Hi- I have a situation where I would like to get the difference of the last 2 records in each column in my DB. So, lets say I have col1 and col2, with values below. col1 = 1, 2 col2 = 3, 4 What I would like to do i…

---

## [RSS Feeds](https://www.ruby-forum.com/t/rss-feeds/127275)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 0\
**Last updated:** [January 27, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/rss-feeds/127275 "2008-01-27T17:17:32Z")

</div>

I tried to use the episode 87 (#87 Generating RSS Feeds - RailsCasts) but it didn’t run. When I call articles.rss, the browser (IE or firefox) show error 406 can’t read the format. How can I solve the problem? Thanks…

---

## [Income Opportunities without Investment](https://www.ruby-forum.com/t/income-opportunities-without-investment/127271)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [January 27, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/income-opportunities-without-investment/127271 "2008-01-27T16:03:29Z")

</div>

Hello, Advertisement Clicks (Every site pays you for clicking advertisements in their site coming on daily basis and also you will get paid for the clicks made by your referrals and also Sign up bonus and bonus for a…

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

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