# Rails

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

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

---

## [How to obtain field named 'action' from a POSTed form?](https://www.ruby-forum.com/t/how-to-obtain-field-named-action-from-a-posted-form/110109)

<div class="topic-metadata">

**Author:** [@koulikoff](https://www.ruby-forum.com/u/koulikoff)\
**Replies:** 0\
**Last updated:** [July 23, 2007, 10:43am UTC](https://www.ruby-forum.com/t/how-to-obtain-field-named-action-from-a-posted-form/110109 "2007-07-23T10:43:09Z")

</div>

My application is posted with a form that contained a field named ‘action’. In the controller this parameter is overwritten with a controller method. How can I read the form’s value?

---

## [Any restful client other than active\_resource?](https://www.ruby-forum.com/t/any-restful-client-other-than-active-resource/110108)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 0\
**Last updated:** [July 23, 2007, 10:42am UTC](https://www.ruby-forum.com/t/any-restful-client-other-than-active-resource/110108 "2007-07-23T10:42:12Z")

</div>

Hi, I am trying to consume a restful resource. I tried active\_resource with rails 1.2.3, but it doesn’t work. so I assume that it only works with Edge Rails. Is there any other ruby-based restful client available? T…

---

## [Problem with page.insert\_html and page.select.().first](https://www.ruby-forum.com/t/problem-with-page-insert-html-and-page-select-first/110106)

<div class="topic-metadata">

**Author:** [@Solid](https://www.ruby-forum.com/u/Solid)\
**Replies:** 0\
**Last updated:** [July 23, 2007, 10:33am UTC](https://www.ruby-forum.com/t/problem-with-page-insert-html-and-page-select-first/110106 "2007-07-23T10:33:43Z")

</div>

Hello RoR community, I have a problem with the helpers in Rails 1.2.3. HTML: # Question name Class Type Level Question text …

---

## [Single table inheritance problem](https://www.ruby-forum.com/t/single-table-inheritance-problem/196404)

<div class="topic-metadata">

**Author:** [@migo](https://www.ruby-forum.com/u/migo)\
**Replies:** 1\
**Last updated:** [July 23, 2007, 9:59am UTC](https://www.ruby-forum.com/t/single-table-inheritance-problem/196404 "2007-07-23T09:59:18Z")

</div>

Hallo, I am having a very strange Problem with STI in my application. setup: two tables one called “wikis” on called “categories” with a hbtm relationship. the wikis table is the sti one with a model PageWiki being …

---

## [Copyright (c) symbol, mysql and utf8](https://www.ruby-forum.com/t/copyright-c-symbol-mysql-and-utf8/110104)

<div class="topic-metadata">

**Author:** [@Kip](https://www.ruby-forum.com/u/Kip)\
**Replies:** 0\
**Last updated:** [July 23, 2007, 6:59am UTC](https://www.ruby-forum.com/t/copyright-c-symbol-mysql-and-utf8/110104 "2007-07-23T06:59:33Z")

</div>

I extracted metadata from my image files and stored them in a mysql table using the default .yml configuration. The meta data includes a lot of “Copyright © Kip 2007 blah blah blah” (only with the real symbol \\251). …

---

## [How to do link\_to with query parameter AND css class](https://www.ruby-forum.com/t/how-to-do-link-to-with-query-parameter-and-css-class/110100)

<div class="topic-metadata">

**Author:** [@sbellware](https://www.ruby-forum.com/u/sbellware)\
**Replies:** 1\
**Last updated:** [July 23, 2007, 5:07am UTC](https://www.ruby-forum.com/t/how-to-do-link-to-with-query-parameter-and-css-class/110100 "2007-07-23T05:07:30Z")

</div>

Folks, I’ve been trying to get a number of variations of the following line of template code to work: \<%= link\_to ‘Show contact details’, :controller =\> ‘people’, :action =\> ‘show’, :class =\> ‘actionLink’, :id =\> per…

---

## [Need Volunteers: New Rails Shopping Cart](https://www.ruby-forum.com/t/need-volunteers-new-rails-shopping-cart/109781)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 11\
**Last updated:** [July 23, 2007, 2:37am UTC](https://www.ruby-forum.com/t/need-volunteers-new-rails-shopping-cart/109781 "2007-07-23T02:37:38Z")

</div>

Greetings, I’m a long time Java programmer and I’m considering switching my consulting business to Rails. The only shopping cart solution out there I could find is Substruct. Substruct is ok but it differs signific…

---

## [Attachment\_fu problem](https://www.ruby-forum.com/t/attachment-fu-problem/110088)

<div class="topic-metadata">

**Author:** [@Acroterra](https://www.ruby-forum.com/u/Acroterra)\
**Replies:** 1\
**Last updated:** [July 23, 2007, 1:31am UTC](https://www.ruby-forum.com/t/attachment-fu-problem/110088 "2007-07-23T01:31:48Z")

</div>

Rails noob here, I am having trouble getting a simple attachment\_fu file upload form to work. I am using Mike C.'s tutorial on attachment\_fu - http://clarkware.com/cgi/blosxom/2007/02/24 . My code is the same as the …

---

## ["selected" in form.select](https://www.ruby-forum.com/t/selected-in-form-select/106093)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [July 23, 2007, 12:42am UTC](https://www.ruby-forum.com/t/selected-in-form-select/106093 "2007-07-23T00:42:20Z")

</div>

I have a search form in my navbar where a user can select in which area he wants to search. After clicking the submit-button the results get rendered but the previous selected area is no longer selected. \<%= form.sel…

---

## [Undefined method \`stringify\_keys'](https://www.ruby-forum.com/t/undefined-method-stringify-keys/110087)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 2\
**Last updated:** [July 23, 2007, 12:38am UTC](https://www.ruby-forum.com/t/undefined-method-stringify-keys/110087 "2007-07-23T00:38:17Z")

</div>

Hello I have a view for user registration but when i try to view this page i get this error: undefined method \`stringify\_keys’ for “username”:String Here’s my registration.rhtml: \<% form\_tag :controller =\> :user, :a…

---

## [Routing to the welcome page](https://www.ruby-forum.com/t/routing-to-the-welcome-page/110061)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 2\
**Last updated:** [July 22, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/routing-to-the-welcome-page/110061 "2007-07-22T23:23:44Z")

</div>

Hello I want to setup the welcome page as the default page. so, i added the last line belove to my config/routes.rb file but nothing changes. ActionController::Routing::Routes.draw do |map| map.connect ‘:controller/:…

---

## [NoMethodError in StoreController#add\_to\_cart](https://www.ruby-forum.com/t/nomethoderror-in-storecontroller-add-to-cart/109473)

<div class="topic-metadata">

**Author:** [@kapil\_kaushik](https://www.ruby-forum.com/u/kapil_kaushik)\
**Replies:** 4\
**Last updated:** [July 22, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-storecontroller-add-to-cart/109473 "2007-07-22T22:55:09Z")

</div>

Hi I am new to Rails, and I was trying to follow the “Agile Web D. With Rails” textbook. As I was trying to create the “Add\_to\_cart” application, I found that when I clicked the “Add to Cart” link on my http://localh…

---

## [Class level variables in Mongrel](https://www.ruby-forum.com/t/class-level-variables-in-mongrel/110082)

<div class="topic-metadata">

**Author:** [@kris](https://www.ruby-forum.com/u/kris)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/class-level-variables-in-mongrel/110082 "2007-07-22T21:05:01Z")

</div>

I’m trying to use a class level variable @@count as a counter between requests to the server. So for example I initialize it @@count = 0 at the top of the class and in a method I have @@count = @@count+1. It seems t…

---

## [Migrating data to multiple tables?](https://www.ruby-forum.com/t/migrating-data-to-multiple-tables/110012)

<div class="topic-metadata">

**Author:** [@zbadone](https://www.ruby-forum.com/u/zbadone)\
**Replies:** 2\
**Last updated:** [July 22, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/migrating-data-to-multiple-tables/110012 "2007-07-22T20:55:35Z")

</div>

Hello, I’m trying to create a data migration for a new project I’m working on. I have numerous tables and would like to be able to populate the MySql db with test data. I get the data to appear in the tables but the…

---

## [Object of instance with "'''''''NULL'''''''" default value i](https://www.ruby-forum.com/t/object-of-instance-with-null-default-value-i/110047)

<div class="topic-metadata">

**Author:** [@StSSSSphane\_Wirtel](https://www.ruby-forum.com/u/StSSSSphane_Wirtel)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/object-of-instance-with-null-default-value-i/110047 "2007-07-22T20:33:59Z")

</div>

Hi all, I have a model with not null columns, but when I create a new instance of this model, i get a default value “’’’’’’’’’’‘NULL’’’’’’’’’’’’’’” in each column with the NN constraint. How can I remove it, because …

---

## [Many to Many relationship entry insert bug?](https://www.ruby-forum.com/t/many-to-many-relationship-entry-insert-bug/110050)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/many-to-many-relationship-entry-insert-bug/110050 "2007-07-22T20:31:56Z")

</div>

Hi, I have a many to many relationship setup for two tables. I’m using Rails 1.2.3 with mySQL 5. It is specifying the id column when it shouldn’t be. The details: I’m using the Multiple Select Helper(ruido-blanco.ne…

---

## [Knowledge management in OSS communities](https://www.ruby-forum.com/t/knowledge-management-in-oss-communities/110077)

<div class="topic-metadata">

**Author:** [@zilia](https://www.ruby-forum.com/u/zilia)\
**Replies:** 0\
**Last updated:** [July 22, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/knowledge-management-in-oss-communities/110077 "2007-07-22T18:33:53Z")

</div>

Dear Ruby on Rails members/developers, In June I sent my request regarding completing my questionnaire to this discussion board. I received many responses. Thank you very much. The result of the survey will be emailed…

---

## [Does anyone know how to write an additional attribute to the](https://www.ruby-forum.com/t/does-anyone-know-how-to-write-an-additional-attribute-to-the/110035)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 22, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/does-anyone-know-how-to-write-an-additional-attribute-to-the/110035 "2007-07-22T16:12:33Z")

</div>

I’m enjoying using acts\_as\_taggable and am trying many ways to write an addtional integer key field to the tag.rb so it can in turn belong\_to a parent table. I’ve tried opening up the acts\_as\_taggable.rb trying to fin…

---

## [Best way to support rails and shared hosting on my dedicated](https://www.ruby-forum.com/t/best-way-to-support-rails-and-shared-hosting-on-my-dedicated/109956)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 2\
**Last updated:** [July 22, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/best-way-to-support-rails-and-shared-hosting-on-my-dedicated/109956 "2007-07-22T15:24:57Z")

</div>

Hi All, A partner and I recently purchased a dedicated FreeBSD box. We’re currently using Plesk (blech!) to manage client domains and such. I’m curious though as to what the best (most manageable) setup/mechanism i…

---

## [Single table inheritance problem](https://www.ruby-forum.com/t/single-table-inheritance-problem/110068)

<div class="topic-metadata">

**Author:** [@migo](https://www.ruby-forum.com/u/migo)\
**Replies:** 0\
**Last updated:** [July 22, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-problem/110068 "2007-07-22T14:39:07Z")

</div>

Hallo, I am having a very strange Problem with STI in my application. setup: two tables one called “wikis” on called “categories” with a hbtm relationship. the wikis table is the sti one with a model PageWiki being …

---

## [Manging rescues](https://www.ruby-forum.com/t/manging-rescues/110021)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 3\
**Last updated:** [July 22, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/manging-rescues/110021 "2007-07-22T13:00:29Z")

</div>

What’s the recommended way to catch errors like this: NoMethodError in Register#confirm Showing app/views/register/confirm.rhtml where line #4 raised: undefined method \`namen’ for nil:NilClass I get this error when s…

---

## [Html.erb and textmate. Cant get snippets to work](https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/html-erb-and-textmate-cant-get-snippets-to-work/110063 "2007-07-22T12:36:59Z")

</div>

Hello! I moved to html.erb but the snippets fail to work. eg .rhtml lia(tab) gives me link\_to .html.erb lia with a tab after it =) I have tried the comment suggested here: http://ryandaigle.com/articles/2007/2/2…

---

## [Question on the "common way" to code](https://www.ruby-forum.com/t/question-on-the-common-way-to-code/110054)

<div class="topic-metadata">

**Author:** [@nemesis256](https://www.ruby-forum.com/u/nemesis256)\
**Replies:** 5\
**Last updated:** [July 22, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/question-on-the-common-way-to-code/110054 "2007-07-22T12:23:17Z")

</div>

So I posted last week asking about new learning resources. I watched the lynda.com RoR videos, and now I just started reading the Ruby for Rails book. Both of these sources code in different ways, and I was wonderin…

---

## [A good reference guide?](https://www.ruby-forum.com/t/a-good-reference-guide/109455)

<div class="topic-metadata">

**Author:** [@wings](https://www.ruby-forum.com/u/wings)\
**Replies:** 3\
**Last updated:** [July 22, 2007, 11:59am UTC](https://www.ruby-forum.com/t/a-good-reference-guide/109455 "2007-07-22T11:59:15Z")

</div>

Hi everyone. I’m just starting on ROR, have done some basic programming at Uni. Been told ROR is fairly straight forward, so thought to give it a go. Could anyone recommend a easy to read reference guide with all the …

---

## [Newbie Rails/DB questions](https://www.ruby-forum.com/t/newbie-rails-db-questions/110043)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 22, 2007, 10:30am UTC](https://www.ruby-forum.com/t/newbie-rails-db-questions/110043 "2007-07-22T10:30:38Z")

</div>

I am new to rails, new to programming and am currently reading the “Agile Web D. with Rails” book from Pragmatic. I was trying to follow the book by entering in the depot demo and I got hung up trying to create the ta…

---

## [Setting session variable with a checkbox](https://www.ruby-forum.com/t/setting-session-variable-with-a-checkbox/109975)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 10:14am UTC](https://www.ruby-forum.com/t/setting-session-variable-with-a-checkbox/109975 "2007-07-22T10:14:34Z")

</div>

Hi: Is there a way to set a session variable in a check box that’s not in a form nor linked to a controller? The checkbox value would also be the value of the session variable I want it to set. I assume I have to p…

---

## [Two controllers](https://www.ruby-forum.com/t/two-controllers/109967)

<div class="topic-metadata">

**Author:** [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Replies:** 1\
**Last updated:** [July 22, 2007, 5:52am UTC](https://www.ruby-forum.com/t/two-controllers/109967 "2007-07-22T05:52:19Z")

</div>

Hi, I created one controller first and did some routing and it worked fine. Later I added new controller. But when I try that controller, I get and error 'uninitialized constant ’ and singular name. What could be tha…

---

## [Re: pretty-print and cleanse RHTML?](https://www.ruby-forum.com/t/re-pretty-print-and-cleanse-rhtml/110044)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [July 22, 2007, 12:58am UTC](https://www.ruby-forum.com/t/re-pretty-print-and-cleanse-rhtml/110044 "2007-07-22T00:58:00Z")

</div>

Suppose someone gave us fresh HTML to import as eRB (.rhtml). Such as from an obsolete PHP project. We ought to upgrade, cleanse, and pretty-print that HTML like this… tidy -i -asxhtml old.html \> new.rhtml Below my…

---

## [Easy Eclipse](https://www.ruby-forum.com/t/easy-eclipse/110028)

<div class="topic-metadata">

**Author:** [@fred](https://www.ruby-forum.com/u/fred)\
**Replies:** 4\
**Last updated:** [July 22, 2007, 12:17am UTC](https://www.ruby-forum.com/t/easy-eclipse/110028 "2007-07-22T00:17:01Z")

</div>

Is it just me or does anyone else find ‘Easy Eclipse Rad Rails’ more of a hinderance than a help? I remember when IDEs made things easier not harder. Turbo C where are you now? Fred

---

## [Pretty-print and cleanse RHTML?](https://www.ruby-forum.com/t/pretty-print-and-cleanse-rhtml/110045)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [July 21, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/pretty-print-and-cleanse-rhtml/110045 "2007-07-21T23:01:40Z")

</div>

Thanks’ y’all for the answer to an easy question - ri. Now here’s a sick one. HTML Tidy is an excellent program and system (by Dave Raggett) that cleans and pretty-prints HTML. Below my sig is an assertion that uses …

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

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