# Rails

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

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

---

## [Migrtion with data](https://www.ruby-forum.com/t/migrtion-with-data/145031)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 6:10am UTC](https://www.ruby-forum.com/t/migrtion-with-data/145031 "2008-08-06T06:10:25Z")

</div>

Hi I have created a model Category Then in its migration file I have def self.up create\_table :categories do |t| t.column :name, :string, :limit=\>80 end end def self.down drop\_table :categories end Here befor…

---

## [Multiple parameters with autocomplete](https://www.ruby-forum.com/t/multiple-parameters-with-autocomplete/145112)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 4:54am UTC](https://www.ruby-forum.com/t/multiple-parameters-with-autocomplete/145112 "2008-08-06T04:54:27Z")

</div>

Using rails 2.0.2 and the autocomplete plugin, with my site http://www.slangasaur.us, whenever i try to render an autocomplete request with two parameters, the second param shows up with a amp; infront of the paramete…

---

## [Rails 2.1 Bug in Route Globbing](https://www.ruby-forum.com/t/rails-2-1-bug-in-route-globbing/145092)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 3:05am UTC](https://www.ruby-forum.com/t/rails-2-1-bug-in-route-globbing/145092 "2008-08-06T03:05:43Z")

</div>

Given the route: map.connect ‘\*url’, :controller =\> ‘pages’, :method =\> :any, :action =\> ‘show’ map.connect ‘:controller/:action/:id’ map.connect ‘:controller/:action/:id.:format’ Given the path http://127.0.0.1:300…

---

## [After\_filter and partials](https://www.ruby-forum.com/t/after-filter-and-partials/145101)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 8\
**Last updated:** [August 6, 2008, 2:57am UTC](https://www.ruby-forum.com/t/after-filter-and-partials/145101 "2008-08-06T02:57:01Z")

</div>

Hello ! I’d like to use a filter to add something like the following script to all views rendered by my application : The goal is to update a div with some flash content, systematically, without needing to write cod…

---

## [CalendarDateSelect](https://www.ruby-forum.com/t/calendardateselect/145072)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 2:41am UTC](https://www.ruby-forum.com/t/calendardateselect/145072 "2008-08-06T02:41:21Z")

</div>

\<%= calendar\_date\_select\_tag “e\_date” %\> I just stumbled upon this plugin, wondering how I send the value of the input field for the calendarDateSelect via a non-model form. \<% form\_tag %\> \<%= calendar\_date\_select\_ta…

---

## [Has many and link\_to](https://www.ruby-forum.com/t/has-many-and-link-to/145091)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 2:29am UTC](https://www.ruby-forum.com/t/has-many-and-link-to/145091 "2008-08-06T02:29:40Z")

</div>

Ok so I am building a directory that is organized by state, county, city, zip. I created tables for each of them, so i have a table for states, counties, cities, and zips. Also in each table I have a title column and…

---

## [Undefined local variable or method](https://www.ruby-forum.com/t/undefined-local-variable-or-method/145093)

<div class="topic-metadata">

**Author:** [@gwendydd](https://www.ruby-forum.com/u/gwendydd)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 12:24am UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method/145093 "2008-08-06T00:24:32Z")

</div>

This is probably something pretty simple, but I’m new to Rails, so I’m stumped. I am trying to implement an “edit” form on a simple rails application, so that users can update a record that already exists. Here is my…

---

## [Select\_tag helper. How do I edit collection values?](https://www.ruby-forum.com/t/select-tag-helper-how-do-i-edit-collection-values/145087)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/select-tag-helper-how-do-i-edit-collection-values/145087 "2008-08-05T22:23:56Z")

</div>

Hi everyone, I am using a collection in a select\_tag to select categories (uses) for my object (item). I have sub categories so I want some way to distinguish between the parent and child categories in the select lis…

---

## [MySQL Text field: breaks/paragraphs missing in view](https://www.ruby-forum.com/t/mysql-text-field-breaks-paragraphs-missing-in-view/145085)

<div class="topic-metadata">

**Author:** [@Leerlaufprozess](https://www.ruby-forum.com/u/Leerlaufprozess)\
**Replies:** 4\
**Last updated:** [August 5, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/mysql-text-field-breaks-paragraphs-missing-in-view/145085 "2008-08-05T21:45:29Z")

</div>

Hi everyone, I’m currently trying to learn rails and I’m writing my first test application. I’ve got a MySQL Database with the field “the\_quote” (the field type is “text”) and I’ve inserted some values via scaffold. T…

---

## [3rd cascaded Dropdown - help](https://www.ruby-forum.com/t/3rd-cascaded-dropdown-help/145077)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/3rd-cascaded-dropdown-help/145077 "2008-08-05T20:01:06Z")

</div>

Hi, i have 2 Dropdowns, and they depend from each other(has\_many). i used collection\_select, observe\_field to create the second dropdown, which gets populated correctly. Now i would like to have the 3rd one, which is …

---

## [Which Ruby flavor should I prefer?](https://www.ruby-forum.com/t/which-ruby-flavor-should-i-prefer/145047)

<div class="topic-metadata">

**Author:** [@Pedro\_Carneiro\_Jr](https://www.ruby-forum.com/u/Pedro_Carneiro_Jr)\
**Replies:** 6\
**Last updated:** [August 5, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/which-ruby-flavor-should-i-prefer/145047 "2008-08-05T19:49:27Z")

</div>

Hi, all. Which RoR flavor (Ruby 1.8.7, YARV http://en.wikipedia.org/wiki/YARV, JRuby http://en.wikipedia.org/wiki/JRuby, Rubiniushttp://en.wikipedia.org/wiki/Rubinius, IronRuby http://en.wikipedia.org/wiki/IronRuby, …

---

## [Installation problem with mysql gem](https://www.ruby-forum.com/t/installation-problem-with-mysql-gem/145076)

<div class="topic-metadata">

**Author:** [@jalotta](https://www.ruby-forum.com/u/jalotta)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/installation-problem-with-mysql-gem/145076 "2008-08-05T19:37:45Z")

</div>

Hi, Can someone help with my install of mysql gem? This is the error I have been getting. When I did the gem install of mysql there was no error. If you want to see the entire log of the install I will send it. T…

---

## [Extending acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/extending-acts-as-taggable-on-steroids/145074)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/extending-acts-as-taggable-on-steroids/145074 "2008-08-05T19:23:41Z")

</div>

I’m extending acts\_as\_taggable\_on\_steroids to allow me to give a value to each tag. I’ve got a User table, a Tag table, and a Value table. I want each Value to refer to a specific tag and a specific user. Like so: c…

---

## [Using layout of different controller](https://www.ruby-forum.com/t/using-layout-of-different-controller/145064)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 7:19pm UTC](https://www.ruby-forum.com/t/using-layout-of-different-controller/145064 "2008-08-05T19:19:00Z")

</div>

How could I use the layout of a different controller? Thanks

---

## [Silence the logger during tests](https://www.ruby-forum.com/t/silence-the-logger-during-tests/145071)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/silence-the-logger-during-tests/145071 "2008-08-05T19:12:00Z")

</div>

Hello, I have some tests that generate a lot of NOTICE messages from the logger and I’d like to silence them for certain sections of the tests. I’ve tried using… RAILS\_DEFAULT\_LOGGER.silence { } but that seems to ha…

---

## [Problem linking tables and accessing relationship heirarchy](https://www.ruby-forum.com/t/problem-linking-tables-and-accessing-relationship-heirarchy/145062)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 4\
**Last updated:** [August 5, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/problem-linking-tables-and-accessing-relationship-heirarchy/145062 "2008-08-05T18:52:27Z")

</div>

I’m reposting this her as somebody suggested I posted in the wrong forum before. I’m not quite understanding this relationship thing between models and tables. What I am trying to do within my view is get the price i…

---

## [Easy: text\_field\_tag](https://www.ruby-forum.com/t/easy-text-field-tag/145066)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/easy-text-field-tag/145066 "2008-08-05T18:45:33Z")

</div>

\<%= text\_field\_tag :search, params\[:search\], :id=\>“search\_field”, :value=\>params\[:search\] %\> I found this, and I’m just wondering what the first parameter, :search, is exactly. And does the second parameter mean param…

---

## [Link\_to tag in Rails2.0](https://www.ruby-forum.com/t/link-to-tag-in-rails2-0/145048)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/link-to-tag-in-rails2-0/145048 "2008-08-05T18:45:01Z")

</div>

Hi, I am not understanding the “link\_to” tag construction in rails 2.0. I have this code \<%= link\_to ‘To me’, member\_notes\_path(@current\_user) %\> but I am not understanding “member\_notes\_path” at all? What type of UR…

---

## [\[ANN\] Omaha Rails User Group](https://www.ruby-forum.com/t/ann-omaha-rails-user-group/145067)

<div class="topic-metadata">

**Author:** [@aantix](https://www.ruby-forum.com/u/aantix)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/ann-omaha-rails-user-group/145067 "2008-08-05T18:33:36Z")

</div>

The Omaha Rails User Group will have it’s first meeting on August 20th, 7pm at the AIM Institute’s training lab (412 S. 19th Street). If you’re in the Omaha area and have a passion for cutting edge web development an…

---

## [Please ignore the -r 3072](https://www.ruby-forum.com/t/please-ignore-the-r-3072/145065)

<div class="topic-metadata">

**Author:** [@playalpha](https://www.ruby-forum.com/u/playalpha)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/please-ignore-the-r-3072/145065 "2008-08-05T18:12:46Z")

</div>

that was a remnant of the subversion variation I tried. Command output is unchanged without it.

---

## [Missing? has\_and\_belongs\_to\_many with a has\_one relationship----the tool/helper](https://www.ruby-forum.com/t/missing-has-and-belongs-to-many-with-a-has-one-relationship-the-tool-helper/145019)

<div class="topic-metadata">

**Author:** [@shawn](https://www.ruby-forum.com/u/shawn)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/missing-has-and-belongs-to-many-with-a-has-one-relationship-the-tool-helper/145019 "2008-08-05T18:01:03Z")

</div>

In a dual boot computer the hardware has\_and\_belongs\_to\_many OS’s, each os has only 1 set of hardware–how ever this is not has\_many, belongs\_to as the OS does not belong to the hardware, it serves only as the conduit. …

---

## [Link\_to\_remote problem](https://www.ruby-forum.com/t/link-to-remote-problem/145060)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/link-to-remote-problem/145060 "2008-08-05T17:55:47Z")

</div>

view: \<%= link\_to\_remote “#{post.title}”, :url =\> { :controller=\>:threads, :action=\>:show\_content, :id=\>post.id} %\> controller: def show\_content @post = Post.find\_by\_id params\[:id\] respond\_to do |format| format.ht…

---

## [Reference Through records in a has many through join](https://www.ruby-forum.com/t/reference-through-records-in-a-has-many-through-join/145059)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/reference-through-records-in-a-has-many-through-join/145059 "2008-08-05T17:51:03Z")

</div>

I have 2 tables (toms and dicks) joined with has\_many through a third table (harries). @tom = Tom.find(1) How do you reference all the related records in harries. If I do: @tom.dicks\[1\].harries I get records for al…

---

## [About content\_type](https://www.ruby-forum.com/t/about-content-type/144952)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 7\
**Last updated:** [August 5, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/about-content-type/144952 "2008-08-05T17:50:56Z")

</div>

Hello: I defined a mehod in a model like this: def file=(file\_field)#virtual attri is not same as access method unless file\_field=="" #manage not upload image if file\_field.content\_type=~/^image/ && ensure\_uniq\_img(…

---

## [Responds\_to\_parent](https://www.ruby-forum.com/t/responds-to-parent/145045)

<div class="topic-metadata">

**Author:** [@valeno](https://www.ruby-forum.com/u/valeno)\
**Replies:** 1\
**Last updated:** [August 5, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/responds-to-parent/145045 "2008-08-05T17:49:52Z")

</div>

I use responds\_to\_parent plugin I don’t want to connect uploaded file with any model. I want to save uploaded file just in server\_dir. How does the controller look like?

---

## [Display website content in multilanguage](https://www.ruby-forum.com/t/display-website-content-in-multilanguage/144926)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/display-website-content-in-multilanguage/144926 "2008-08-05T17:44:01Z")

</div>

Hi, how to display the website content in multilanguage… for example french and english… etc plz reply if you know any solution …

---

## [Previewing localhost:3000 in IE6 in Parallels](https://www.ruby-forum.com/t/previewing-localhost-3000-in-ie6-in-parallels/144901)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/previewing-localhost-3000-in-ie6-in-parallels/144901 "2008-08-05T17:35:49Z")

</div>

How do I view localhost:3000 in Internet Explorer 6 in Parallels? I found instructions for Tiger, but nothing for Leopard. Any advice?

---

## [Form\_tag cause error on production](https://www.ruby-forum.com/t/form-tag-cause-error-on-production/145038)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [August 5, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/form-tag-cause-error-on-production/145038 "2008-08-05T17:35:49Z")

</div>

dear, I just deployed my first rails application and it failed when I checked the log file on the server, i got the following ActionView::TemplateError (wrong argument type FalseClass (expected Proc)) on line #13 of d…

---

## [Forcing full stack dump in script/runner](https://www.ruby-forum.com/t/forcing-full-stack-dump-in-script-runner/145056)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 0\
**Last updated:** [August 5, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/forcing-full-stack-dump-in-script-runner/145056 "2008-08-05T16:49:31Z")

</div>

I have a cronjob invoking Rails via script/runner. Occasionally there is an exception thrown, and of course my code in is the “… 31 levels …” section of the traceback. How can I force it to do a complete stack trac…

---

## [Order by distantly related table](https://www.ruby-forum.com/t/order-by-distantly-related-table/145043)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/order-by-distantly-related-table/145043 "2008-08-05T15:44:18Z")

</div>

I have 2 tables (toms and dicks) joined with has\_many through a third table (harries). Table tunnels is related to table dicks (table tunnels has many dicks). I would like to select a record from toms with all relat…

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

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