# Rails

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

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

---

## [Show Query Results](https://www.ruby-forum.com/t/show-query-results/126767)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 2:43am UTC](https://www.ruby-forum.com/t/show-query-results/126767 "2008-01-22T02:43:14Z")

</div>

Hello, This is a simple question, but I’m very new to Ruby and I can’t seem to find anything good in my Ruby book… How can I ask my model to display results of a particular table? For example, like find\_all in the tab…

---

## [Mysql::Error: Lock wait timeout exceeded;](https://www.ruby-forum.com/t/mysql-lock-wait-timeout-exceeded/126673)

<div class="topic-metadata">

**Author:** [@stanislavb](https://www.ruby-forum.com/u/stanislavb)\
**Replies:** 2\
**Last updated:** [January 22, 2008, 2:14am UTC](https://www.ruby-forum.com/t/mysql-lock-wait-timeout-exceeded/126673 "2008-01-22T02:14:12Z")

</div>

Hi, My application throws some “Mysql::Error: Lock wait timeout” from time to time. I think it coincides with the upgrade of Rails to version 2.0.2 . The exact error is this: Mysql::Error: Lock wait timeout exceeded;…

---

## [InstantRails 2.0 and Mongrel Server](https://www.ruby-forum.com/t/instantrails-2-0-and-mongrel-server/126770)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 2:13am UTC](https://www.ruby-forum.com/t/instantrails-2-0-and-mongrel-server/126770 "2008-01-22T02:13:40Z")

</div>

I am puzzled as to why the following screen-shot displays the IP address of localhost as 0.0.0.0 instead of 127.0.0.1? C:\\InstantRails20\\rails\_apps\\blog\>ruby script/server =\> Booting Mongrel (use ‘script/server webric…

---

## [Everybody's doing the thumb thing](https://www.ruby-forum.com/t/everybodys-doing-the-thumb-thing/126769)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 1:40am UTC](https://www.ruby-forum.com/t/everybodys-doing-the-thumb-thing/126769 "2008-01-22T01:40:50Z")

</div>

You know how on Youtube and many other sites you can either Thumbs Up or Thumbs Down - a news story or comment. Okay, well I want to do this. I have a Model, Controller, Etc, for it, but I will use it for all of this…

---

## [RailsDB 0.2 Release](https://www.ruby-forum.com/t/railsdb-0-2-release/126728)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 2\
**Last updated:** [January 22, 2008, 1:36am UTC](https://www.ruby-forum.com/t/railsdb-0-2-release/126728 "2008-01-22T01:36:45Z")

</div>

Hello, This post is to announce the latest 0.2 release of RailsDB: Q. What? A. RailsDB is a web application written in Ruby using the Ruby on Rails web framework. RailsDB provides a generic interface to popular open…

---

## [Javascript talks to rails](https://www.ruby-forum.com/t/javascript-talks-to-rails/126653)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 4\
**Last updated:** [January 22, 2008, 12:34am UTC](https://www.ruby-forum.com/t/javascript-talks-to-rails/126653 "2008-01-22T00:34:29Z")

</div>

i am trying to do this: var name =“Some Value” mygrid.getCombo(2).get(value); alert(encodeURIComponent(’\<%=Product.find\_by\_name(’+name+’)%\>’)); all the code is good, the problem is that var name seems that is not se…

---

## [Mysql collations error](https://www.ruby-forum.com/t/mysql-collations-error/126758)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 1\
**Last updated:** [January 22, 2008, 12:31am UTC](https://www.ruby-forum.com/t/mysql-collations-error/126758 "2008-01-22T00:31:12Z")

</div>

Hello, I am having this mysql error in my ruby on rails application. ActiveRecord::StatementInvalid occurred in event#lg: Mysql::Error: Illegal mix of collations (latin1\_swedish\_ci,IMPLICIT) and (utf8\_general\_ci,CO…

---

## [ActionMailer and \*nix Fork Question](https://www.ruby-forum.com/t/actionmailer-and-nix-fork-question/126763)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 0\
**Last updated:** [January 22, 2008, 12:30am UTC](https://www.ruby-forum.com/t/actionmailer-and-nix-fork-question/126763 "2008-01-22T00:30:37Z")

</div>

Hello all - I’m working on a project for a newsletter and customer contact management system that will be responsible for sending a large number of (non-spam) e-mails to customers. In the past, I put together a quic…

---

## [Multiple ids on restful action](https://www.ruby-forum.com/t/multiple-ids-on-restful-action/126711)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/multiple-ids-on-restful-action/126711 "2008-01-21T23:51:22Z")

</div>

Hi, I know this question has come up before, but I couldn’t find a satisfying answer. Maybe I didn’t look well enough, so any pointers to old messages regarding this subject would be welcome too. I need some way to …

---

## [Librmpd & rails](https://www.ruby-forum.com/t/librmpd-rails/126745)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/librmpd-rails/126745 "2008-01-21T23:42:20Z")

</div>

Hi all! I’m trying to create a mpd ruby on rails client. librmpd supports callbacks. For example the “CURRENT\_SONG\_CALLBACK” callback. But If there’s no request for a rails webpage, the callback isn’t triggered (of c…

---

## [What's a simpler way of doing this form collection?](https://www.ruby-forum.com/t/whats-a-simpler-way-of-doing-this-form-collection/126755)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/whats-a-simpler-way-of-doing-this-form-collection/126755 "2008-01-21T23:30:15Z")

</div>

This code works, but I think the solution is ugly, please advise. User updates a standard form\_for, the form is re-rendered with checkboxes next to each updated line. The user is expected to select up to 3 checkboxes…

---

## [How can I put a sidebar in a f.selec?](https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/how-can-i-put-a-sidebar-in-a-f-selec/126741 "2008-01-21T22:31:38Z")

</div>

How can I put a sidebar\_here? Client \<% @clients.each do |client| %\> \> \<%= client.name%\> \<% end %\>

---

## [ActionController majic gone bad](https://www.ruby-forum.com/t/actioncontroller-majic-gone-bad/126734)

<div class="topic-metadata">

**Author:** [@keynan](https://www.ruby-forum.com/u/keynan)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/actioncontroller-majic-gone-bad/126734 "2008-01-21T22:19:53Z")

</div>

Overriding method missing in ActionController destroys magic even when passed back ie. def method\_missing(method, \*args) if some\_condition do\_something else #let rails handle it normally super(method,args) end …

---

## [VectorDesigner](https://www.ruby-forum.com/t/vectordesigner/126709)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/vectordesigner/126709 "2008-01-21T22:19:18Z")

</div>

For those of you who are designing your Rails apps by yourself, take a look at the latest MacHeist: https://www.macheist.com/buy/invite/92490 There’s only 2 days left to get almost $500.00 worth of software for only …

---

## [Rake rails:update for older version](https://www.ruby-forum.com/t/rake-rails-update-for-older-version/126739)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/rake-rails-update-for-older-version/126739 "2008-01-21T22:07:28Z")

</div>

I’ve been running 1.2.3 for a long time and just the other day installed 1.2.6 to prepare for an eventual upgrade to 2.x. While I was at it, I installed 2.0.2 which I plan to use for a new app I’m writing. I figure …

---

## [Rss filtering](https://www.ruby-forum.com/t/rss-filtering/126744)

<div class="topic-metadata">

**Author:** [@tresero](https://www.ruby-forum.com/u/tresero)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/rss-filtering/126744 "2008-01-21T21:26:44Z")

</div>

I am looking to see if anyone has implemented a filtered rss reader. Basically, I want to gather feeds for display on a site which are related to certain topics (i.e. not everything in the feed).

---

## [Undefined method for array](https://www.ruby-forum.com/t/undefined-method-for-array/126662)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/undefined-method-for-array/126662 "2008-01-21T21:14:53Z")

</div>

I’m getting the following error: undefined method \`base\_amount’ for \[\]:Array It’s talking about line 6 1: def pay\_commission 2: @product = Product.find(params\[:id\]) 3: pay = PayRate.find(:all, 4: :select…

---

## [No Method Error](https://www.ruby-forum.com/t/no-method-error/93524)

<div class="topic-metadata">

**Author:** [@alana](https://www.ruby-forum.com/u/alana)\
**Replies:** 5\
**Last updated:** [January 21, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/no-method-error/93524 "2008-01-21T21:01:23Z")

</div>

This is the error that keeps appearing. I don’t understand why “@tblusers” is not correct. Can anyone help? NoMethodError in Tblregisteredphone#new Showing app/views/tblregisteredphone/new.rhtml where line #20 raised: …

---

## [Help with pagintate](https://www.ruby-forum.com/t/help-with-pagintate/126740)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/help-with-pagintate/126740 "2008-01-21T20:50:35Z")

</div>

I have this code in Repair\_Tickets\_controller: @repair\_tickets = RepairTicket.paginate :per\_page =\> 10, :page =\> params\[:page\], :conditions =\> \[‘ID like ?’, “%#{params\[:search\]}%”\], :order =\> ‘id DESC’ And this cod…

---

## [\[ANN\] FATdrive.tv launch - new Rails site](https://www.ruby-forum.com/t/ann-fatdrive-tv-launch-new-rails-site/126732)

<div class="topic-metadata">

**Author:** [@Long](https://www.ruby-forum.com/u/Long)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/ann-fatdrive-tv-launch-new-rails-site/126732 "2008-01-21T19:40:46Z")

</div>

We’ve just launch a new site today! FATdrive.tv combines online file storage and social-networking to help our members connect and share information effectively. Among the features is the ability to play back music a…

---

## [Type error in unit test](https://www.ruby-forum.com/t/type-error-in-unit-test/125523)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/type-error-in-unit-test/125523 "2008-01-21T19:35:30Z")

</div>

Hi, I ve got a really strange issue with one of my test unit files… When I run that test unit I get a Type Error: test\_planned\_records\_with\_done\_records(RindTod): TypeError: {:rind=\>#\<Rind:0x4bdcfc8 @unsaved=false, …

---

## [RESTFul, Net::HTTP Delete?](https://www.ruby-forum.com/t/restful-net-http-delete/126730)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/restful-net-http-delete/126730 "2008-01-21T19:34:19Z")

</div>

for GET I am using Net::HTTP.get(URI(url)) for POST I am using resp, data = Net::HTTP.post\_form(url, post\_args.merge! (post\_args1).merge!) what should I use for DELETE ? I tried result = Net::HTTP::Delete.new(URI(…

---

## [Creating multiple objects on the same page](https://www.ruby-forum.com/t/creating-multiple-objects-on-the-same-page/126510)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/creating-multiple-objects-on-the-same-page/126510 "2008-01-21T19:18:48Z")

</div>

Hi, I want to have a very simple ordering page where users type in what they want. They have a maximum of ten items to enter and must enter at least one. The item table has these columns: id integer unsigned auto\_i…

---

## [Error: Helper Module in a subdirectory - RESTful route used](https://www.ruby-forum.com/t/error-helper-module-in-a-subdirectory-restful-route-used/126727)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/error-helper-module-in-a-subdirectory-restful-route-used/126727 "2008-01-21T18:39:16Z")

</div>

I am using a namespace map.namespace :admin do |admin| admin.resources :repairs end which puts my repairs\_controller.rb and my repairs views into admin subdirectory when I use an Helper method repaired\_tables(@…

---

## [Simplify the search in the Prototype documentation](https://www.ruby-forum.com/t/simplify-the-search-in-the-prototype-documentation/126726)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/simplify-the-search-in-the-prototype-documentation/126726 "2008-01-21T18:36:26Z")

</div>

Prototype is a great javascript library but the documentation is not intuitive. Sometimes you look for the description of a method you don’t know the parent Object. So here is a Ruby script that solves this problem by…

---

## [Has\_many :through with self-referencial AND polymorphism](https://www.ruby-forum.com/t/has-many-through-with-self-referencial-and-polymorphism/126487)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/has-many-through-with-self-referencial-and-polymorphism/126487 "2008-01-21T17:34:23Z")

</div>

Hello, despite many readings I still don’t understand how to solve my problem. I have Publication, Picture, File classes A Publication can be related (a one way relation, like a www link) with another Publication, Pi…

---

## [Which taggable library do people use?](https://www.ruby-forum.com/t/which-taggable-library-do-people-use/126622)

<div class="topic-metadata">

**Author:** [@visage](https://www.ruby-forum.com/u/visage)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/which-taggable-library-do-people-use/126622 "2008-01-21T17:28:29Z")

</div>

I’d like to add taggability to a model in the site I’m working on, and I wanted to get an idea of what people are using. I keep seeing that acts\_as\_taggable is deprecated, so I tried the acts\_as\_taggable\_on\_steroids. …

---

## [Using Amazon SimpleDB with Ruby on Rails via ActiveResource](https://www.ruby-forum.com/t/using-amazon-simpledb-with-ruby-on-rails-via-activeresource/126712)

<div class="topic-metadata">

**Author:** [@martinr](https://www.ruby-forum.com/u/martinr)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/using-amazon-simpledb-with-ruby-on-rails-via-activeresource/126712 "2008-01-21T16:23:37Z")

</div>

Just in case anybody want’s to give Amazon’s new (currently in closed beta) SimpleDB web service a test drive with Rails… I just finished work on a Proxy Server bridging the APIs. It’s available as a Rails Plugin: ht…

---

## [ActiveRecord save problem](https://www.ruby-forum.com/t/activerecord-save-problem/126676)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 9\
**Last updated:** [January 21, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/activerecord-save-problem/126676 "2008-01-21T15:54:43Z")

</div>

Hey I have a problem with saving data to my sqlite db using active record. when i query an object from the db, update a property and save it using the active record save command it returns true, but nothing happens in …

---

## [From rails 1.1.6 to rails 2.0.1](https://www.ruby-forum.com/t/from-rails-1-1-6-to-rails-2-0-1/126705)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/from-rails-1-1-6-to-rails-2-0-1/126705 "2008-01-21T15:45:51Z")

</div>

Hello Friends, Actually working on a very big project the problem is that currently we are using rails 1.1.6 but now planning to shift on rails 2.0.1, tried but it seems that there is no limit for error. one after ano…

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

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