# Rails

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

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

---

## [Rubygems version needed for Rails 2.1?](https://www.ruby-forum.com/t/rubygems-version-needed-for-rails-2-1/148858)

<div class="topic-metadata">

**Author:** [@actsasflinn](https://www.ruby-forum.com/u/actsasflinn)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/rubygems-version-needed-for-rails-2-1/148858 "2008-09-17T20:38:27Z")

</div>

Anyone know what version of Rubygems is needed for Rails 2.1? Thanks –flinn

---

## [mySQL Replication in Rails \>= 2.x](https://www.ruby-forum.com/t/mysql-replication-in-rails-2-x/148855)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/mysql-replication-in-rails-2-x/148855 "2008-09-17T19:55:23Z")

</div>

Hi all. We are using “Mysql Replication Adapter” with our Rails 1.2.5 app, and during the process of upgrading to Rails 2.1.1, there seem to be some incompatibilities. Are you successfully using “Mysql Replication Ad…

---

## [Edge rails config.cache\_classes = true breaks applications](https://www.ruby-forum.com/t/edge-rails-config-cache-classes-true-breaks-applications/147635)

<div class="topic-metadata">

**Author:** [@zecko](https://www.ruby-forum.com/u/zecko)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/edge-rails-config-cache-classes-true-breaks-applications/147635 "2008-09-17T19:23:47Z")

</div>

when using current edge rails, i am getting trouble when using the production environment – i tracked down the problem to the following line config.cache\_classes = true if i disable the class caching, everything work…

---

## [Validation problem](https://www.ruby-forum.com/t/validation-problem/148854)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/validation-problem/148854 "2008-09-17T19:18:27Z")

</div>

I’m having issues with the validation process. Some of it works fine and others don’t and I do not know why. in this case the last 3 validations below do not work at all. I’m I doing something wrong? this should be pr…

---

## [How to validate against a field that is not in the model?](https://www.ruby-forum.com/t/how-to-validate-against-a-field-that-is-not-in-the-model/148802)

<div class="topic-metadata">

**Author:** [@arifb](https://www.ruby-forum.com/u/arifb)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/how-to-validate-against-a-field-that-is-not-in-the-model/148802 "2008-09-17T18:36:01Z")

</div>

hello all, i have a model that has a field ‘votes’. users may only vote once per session and so i am using a session variable to track whether they have voted. i would like to use rails validation within the model to …

---

## [Rails project](https://www.ruby-forum.com/t/rails-project/148848)

<div class="topic-metadata">

**Author:** [@Chris\_Thomas](https://www.ruby-forum.com/u/Chris_Thomas)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/rails-project/148848 "2008-09-17T18:28:58Z")

</div>

I have a complete website developed in rails. At this time I have no money to work with but I am offering 20% of the company to a developer who can come in and change our pricing model to more of an upsell model, and …

---

## [Git and Instant Rails](https://www.ruby-forum.com/t/git-and-instant-rails/148840)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/git-and-instant-rails/148840 "2008-09-17T17:27:44Z")

</div>

I am developing on a windows machine and using Instant Rails. I installed git and it is available from the command prompt. However, I can not seem to install any plugins from a git repository. It executes the commands…

---

## [Expire cache from BackgroundRB async process?](https://www.ruby-forum.com/t/expire-cache-from-backgroundrb-async-process/148634)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/expire-cache-from-backgroundrb-async-process/148634 "2008-09-17T16:42:55Z")

</div>

I’m having some difficulty finding a way to expire the cache after executing an asynchronous BackgroundRB task. From a Rails controller I fire off an async worker which will handle importing of data from a file and, …

---

## [How to use frame in RoR](https://www.ruby-forum.com/t/how-to-use-frame-in-ror/148811)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/how-to-use-frame-in-ror/148811 "2008-09-17T16:13:08Z")

</div>

hello i want to use frame in RoR … how to create frame in RoR?

---

## [Functional test case and the setup method](https://www.ruby-forum.com/t/functional-test-case-and-the-setup-method/125606)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 5\
**Last updated:** [September 17, 2008, 4:11pm UTC](https://www.ruby-forum.com/t/functional-test-case-and-the-setup-method/125606 "2008-09-17T16:11:56Z")

</div>

I noticed that in my unit test case, i can define a setup method which gets called before all my unit tests. This does not work however for functional test cases. Is this intended, or do I have something screwed up?…

---

## [Require doesn't see a file](https://www.ruby-forum.com/t/require-doesnt-see-a-file/148826)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/require-doesnt-see-a-file/148826 "2008-09-17T15:49:16Z")

</div>

Hello! I have installed ruby-iconv port on FreeBSD and try to work with it in irb console: home# script/console Loading development environment (Rails 2.1.0) require ‘iconv’ =\> \[\] exit Works perfectly! But my…

---

## [Engines and Rails 2.1.1](https://www.ruby-forum.com/t/engines-and-rails-2-1-1/148700)

<div class="topic-metadata">

**Author:** [@Antonio\_Tapiador\_de](https://www.ruby-forum.com/u/Antonio_Tapiador_de)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/engines-and-rails-2-1-1/148700 "2008-09-17T15:28:04Z")

</div>

Are there any plans to release a Rails 2.1.1 compatible version of Engines soon? I could help if you are busy.

---

## [Using ajax effects properly](https://www.ruby-forum.com/t/using-ajax-effects-properly/148740)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/using-ajax-effects-properly/148740 "2008-09-17T15:11:35Z")

</div>

I’ve done a few ajax sites but I’ve never managed to get effects to work properly so I’ve decided to ask here. I’ve got a div, which on load, contains a title and a ‘View’ link. When the link is clicked, the div’s con…

---

## [Undefined method \`format\_and\_extension'](https://www.ruby-forum.com/t/undefined-method-format-and-extension/148832)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/undefined-method-format-and-extension/148832 "2008-09-17T15:10:05Z")

</div>

Hi, This is why I get in production, not in development: undefined method \`format\_and\_extension’ for ActionView::InlineTemplate:0xb790fd28 What does this mean, a search on this error didn’t bring any results. Thanks…

---

## [Id in form\_tag for update](https://www.ruby-forum.com/t/id-in-form-tag-for-update/148742)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [September 17, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/id-in-form-tag-for-update/148742 "2008-09-17T15:06:15Z")

</div>

I get an error saying Rails can’t find the post because I don’t have an id when doing the update. I have: \<% form\_tag ‘/meetings/update’, :id =\> @calendar.id, :onsubmit =\> ‘return ValidateMeeting()’ do %\> Is this wr…

---

## [Allowing Apache Indexes?](https://www.ruby-forum.com/t/allowing-apache-indexes/148783)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 2:58pm UTC](https://www.ruby-forum.com/t/allowing-apache-indexes/148783 "2008-09-17T14:58:37Z")

</div>

Rails 1.2.6 Apache 2.2.6 I want to allow Apache direct access to a folder inside /public to show a listing (i.e. /public/demo\_images/), but I can’t get that to work without Rails routing trying to intercept it. Norma…

---

## [Xls export](https://www.ruby-forum.com/t/xls-export/148820)

<div class="topic-metadata">

**Author:** [@seb](https://www.ruby-forum.com/u/seb)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/xls-export/148820 "2008-09-17T14:16:15Z")

</div>

how can i do xls export?plugin recquired?

---

## [Console reporting 2.0.1](https://www.ruby-forum.com/t/console-reporting-2-0-1/148827)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/console-reporting-2-0-1/148827 "2008-09-17T13:30:36Z")

</div>

I’ve got a rails app that’s grown up over some time… Problem I currently have in that the console reports version 2.0.1 (running ./script/console) but the app when I run ./script/server reports 2.1.0 any ideas why it…

---

## [Mysql::Error: #HY000Illegal mix of collations (latin1\_swedis](https://www.ruby-forum.com/t/mysql-hy000illegal-mix-of-collations-latin1-swedis/148825)

<div class="topic-metadata">

**Author:** [@neetinforum](https://www.ruby-forum.com/u/neetinforum)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/mysql-hy000illegal-mix-of-collations-latin1-swedis/148825 "2008-09-17T13:15:17Z")

</div>

while parsing the xml i try to read user name which having some Special charcter,so while parsing i got the error :-\> Mysql::Error: #HY000Illegal mix of collations (latin1\_swedish\_ci,IMPLICIT) and (utf8\_general\_ci,COE…

---

## [Layouts and content\_for](https://www.ruby-forum.com/t/layouts-and-content-for/148818)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/layouts-and-content-for/148818 "2008-09-17T13:14:57Z")

</div>

when i studied the tutorial about layouts & content\_for from railscast.I need a clarification as per their tutorial. url:#8 Layouts and content\_for - RailsCasts \<!- projects/index.rhtml → \<% content\_for :head do %\> \<…

---

## [Storing settings?](https://www.ruby-forum.com/t/storing-settings/148822)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/storing-settings/148822 "2008-09-17T12:28:18Z")

</div>

Hi, i’m building a blogging engine and it has a settings panel where the user set the blogs url, title, how many posts to display, how many in a feed, etc. These settings are stored in a table, in one record, which i’…

---

## [To get multiple check\_box values in controller](https://www.ruby-forum.com/t/to-get-multiple-check-box-values-in-controller/148798)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [September 17, 2008, 11:52am UTC](https://www.ruby-forum.com/t/to-get-multiple-check-box-values-in-controller/148798 "2008-09-17T11:52:19Z")

</div>

Hi I have \<% for language in @languages %\> \<%= language.language %\> \<%= check\_box(“user”,“language\_id”,{},checked\_value = “1”, unchecked\_value = “0”) %\> \<% end %\> What I am trying to do is if a user check more …

---

## [Uninitialized constant Hpricot::XChar](https://www.ruby-forum.com/t/uninitialized-constant-hpricot-xchar/148753)

<div class="topic-metadata">

**Author:** [@xavi](https://www.ruby-forum.com/u/xavi)\
**Replies:** 3\
**Last updated:** [September 17, 2008, 10:38am UTC](https://www.ruby-forum.com/t/uninitialized-constant-hpricot-xchar/148753 "2008-09-17T10:38:39Z")

</div>

Hello, I’m using Hpricot in a Rails app. I’m trying to modify how it parses non-breaking space entities ( ) so that they are converted into spaces when using Hpricot’s inner\_text (instead of being converted to the co…

---

## [Url\_for not working in model](https://www.ruby-forum.com/t/url-for-not-working-in-model/148814)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 10:37am UTC](https://www.ruby-forum.com/t/url-for-not-working-in-model/148814 "2008-09-17T10:37:18Z")

</div>

Hi, I am using ‘url\_for’ for constructing url in my model but it gives me error \<NoMethodError: undefined method \`url\_for’ for Xyz:Class\> how to access url\_for in model and it possible to call controller method in …

---

## [Ajax Problems](https://www.ruby-forum.com/t/ajax-problems/148805)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 10:29am UTC](https://www.ruby-forum.com/t/ajax-problems/148805 "2008-09-17T10:29:41Z")

</div>

Hello everyone, I’ve been pulling my hair out the last two days about what should be a really really simple fix for a website I’m upgrading. After recently upgrading it to Rails 2.1 I decided to start putting some aja…

---

## [Sortable\_column\_header](https://www.ruby-forum.com/t/sortable-column-header/148812)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 9:52am UTC](https://www.ruby-forum.com/t/sortable-column-header/148812 "2008-09-17T09:52:42Z")

</div>

Is there any way to make the plugin attach a class to its link? (mainly sort direction). This is rather ugly, looking for the purist way… \<%= link\_to 'Name', sort\_param('search', Directory, 'name'), { :class =\> sort\_p…

---

## [Rubygams](https://www.ruby-forum.com/t/rubygams/148747)

<div class="topic-metadata">

**Author:** [@krishna](https://www.ruby-forum.com/u/krishna)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 9:32am UTC](https://www.ruby-forum.com/t/rubygams/148747 "2008-09-17T09:32:56Z")

</div>

how to get rubygems freedownload and how install it ,i need details about how to use rubygems

---

## [Is there a way to drop into debug view mode after an exception?](https://www.ruby-forum.com/t/is-there-a-way-to-drop-into-debug-view-mode-after-an-exception/148809)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [September 17, 2008, 9:14am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-drop-into-debug-view-mode-after-an-exception/148809 "2008-09-17T09:14:33Z")

</div>

Hi, I know how to use Rails debugging via entering a “debugger” statement. Question - Is there a way however to drop into the debugger mode after an exception has occurred? and effectively back back one step just pr…

---

## [AR: add attribute to model](https://www.ruby-forum.com/t/ar-add-attribute-to-model/148803)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 2\
**Last updated:** [September 17, 2008, 9:09am UTC](https://www.ruby-forum.com/t/ar-add-attribute-to-model/148803 "2008-09-17T09:09:31Z")

</div>

Hi! Well, I thought this was easy, but for some reason it won’t work… Here is what I want to do: I am working on an API to a large database. The basic mapping is done, but I want to implement some convenience methods…

---

## [(strange) error on assert\_equal](https://www.ruby-forum.com/t/strange-error-on-assert-equal/148800)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 1\
**Last updated:** [September 17, 2008, 9:01am UTC](https://www.ruby-forum.com/t/strange-error-on-assert-equal/148800 "2008-09-17T09:01:02Z")

</div>

Hi all, I’m having error on all unit test. Even this one: hash = { :title =\> “recipe title”, :description =\> “recipe description”, :serving =\> 1, :directions =\> “do it” } recipe\_expected = Recipe.new(hash) recipe…

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

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