# Rails

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

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

---

## [Memcached 1.6.5 (Rails 2.3) 10x slower](https://www.ruby-forum.com/t/memcached-1-6-5-rails-2-3-10x-slower/165374)

<div class="topic-metadata">

**Author:** [@whatcould](https://www.ruby-forum.com/u/whatcould)\
**Replies:** 6\
**Last updated:** [April 14, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/memcached-1-6-5-rails-2-3-10x-slower/165374 "2009-04-14T15:55:03Z")

</div>

The move to memcached\_client 1.6.5 in Rails 2.3 seems to have made the Rails cache about 10x slower. Since that’s the opposite effect I would expect, I was hoping somebody would explain where I’m misreading these num…

---

## ["map.resources " problem](https://www.ruby-forum.com/t/map-resources-problem/165486)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/map-resources-problem/165486 "2009-04-14T15:43:54Z")

</div>

Hi, I am new in rails 2.0 and above. I am using rails 2.2. I have a mapping “map.resources :accounts” in my routes.rb I am facing the following problem: I have following code in my erb file Photo 1 Whenever I am cl…

---

## [\[ANN\] The "Ruby Best Practices" Collaborative Blog](https://www.ruby-forum.com/t/ann-the-ruby-best-practices-collaborative-blog/165494)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/ann-the-ruby-best-practices-collaborative-blog/165494 "2009-04-14T15:18:01Z")

</div>

Hi folks, This is a one-time announcement about yet another blog project of mine… == What == A couple weeks ago I put out a call for volunteers to run a collaborative blog with me focused on best practices in Ruby. …

---

## [Beginner/ Filtering logged users](https://www.ruby-forum.com/t/beginner-filtering-logged-users/165493)

<div class="topic-metadata">

**Author:** [@fa00026](https://www.ruby-forum.com/u/fa00026)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/beginner-filtering-logged-users/165493 "2009-04-14T15:05:07Z")

</div>

I just had an idea of banning the user from posting a new message unless logged in, how to use the filter in that case, below is where I want to put the filter (it is part of my posts controller) I have tried to put t…

---

## [Unable to start rails after upgrade to 2.3.2](https://www.ruby-forum.com/t/unable-to-start-rails-after-upgrade-to-2-3-2/165488)

<div class="topic-metadata">

**Author:** [@mve](https://www.ruby-forum.com/u/mve)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/unable-to-start-rails-after-upgrade-to-2-3-2/165488 "2009-04-14T14:53:19Z")

</div>

Error: /usr/local/bin/rails:19:in \`load’: no such file to load – rails (LoadError) from /usr/local/bin/rails:19 Problem: Am unable to run the rails framework. Probable victim of a, self inflicted, GEM update run wi…

---

## [Routing method problem](https://www.ruby-forum.com/t/routing-method-problem/165489)

<div class="topic-metadata">

**Author:** [@jackyang](https://www.ruby-forum.com/u/jackyang)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/routing-method-problem/165489 "2009-04-14T14:52:44Z")

</div>

I have two named routes: map.edit\_setting ‘setting/:key’, :controller =\> ‘settings’, :action =\> ‘edit’, :method =\> :get map.update\_setting ‘setting/:key’, :controller =\> ‘settings’, :action =\> ‘update’, :method =\> …

---

## [Gem install Rails issue](https://www.ruby-forum.com/t/gem-install-rails-issue/165455)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 3\
**Last updated:** [April 14, 2009, 11:19am UTC](https://www.ruby-forum.com/t/gem-install-rails-issue/165455 "2009-04-14T11:19:01Z")

</div>

Im trying to install rails gem on OSX 10.5.6, but when i use the gem install rails command this message displays WARNING: Installing to ~/.gem since /usr/local/lib/ruby/gems/1.8 and /usr/local/bin aren’t both writab…

---

## [Routing method problem](https://www.ruby-forum.com/t/routing-method-problem/165472)

<div class="topic-metadata">

**Author:** [@jackyang](https://www.ruby-forum.com/u/jackyang)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 10:58am UTC](https://www.ruby-forum.com/t/routing-method-problem/165472 "2009-04-14T10:58:26Z")

</div>

I have two named routes: map.edit\_setting ‘setting/:key’, :controller =\> ‘settings’, :action =\> ‘edit’, :method =\> :get map.update\_setting ‘setting/:key’, :controller =\> ‘settings’, :action =\> ‘update’, :method =\> :…

---

## [Passing non-model members through remote form](https://www.ruby-forum.com/t/passing-non-model-members-through-remote-form/165462)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 7:42am UTC](https://www.ruby-forum.com/t/passing-non-model-members-through-remote-form/165462 "2009-04-14T07:42:19Z")

</div>

Hello, I have the following remote form: \<% remote\_form\_for :sms\_message, @the\_message, :loading =\> “”, :complete =\> “”, :html =\> { :method =\> :post}, :before =\> "if (!validate\_submit\_msg\_form()) {return false;} "…

---

## [Help with search query](https://www.ruby-forum.com/t/help-with-search-query/165463)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 6:37am UTC](https://www.ruby-forum.com/t/help-with-search-query/165463 "2009-04-14T06:37:51Z")

</div>

ok, here’s my dilemna…i have a site that has a list of item combinations (aka compounds) for a computer game. i’m having a hard time coming up with a good way to search a compounds result and the items that are contai…

---

## [Testing RESTful actions (put/post)](https://www.ruby-forum.com/t/testing-restful-actions-put-post/165347)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 5\
**Last updated:** [April 14, 2009, 6:00am UTC](https://www.ruby-forum.com/t/testing-restful-actions-put-post/165347 "2009-04-14T06:00:41Z")

</div>

I am trying to test my update method: put :update, {:id =\> topics(:one).id, :topics =\> {:title =\> ‘Updated Unique Title’}}, {:user =\> users(:admin).id, :user\_role =\> users(:admin).role.name} The above statement works…

---

## [New project in Merb or Rails?](https://www.ruby-forum.com/t/new-project-in-merb-or-rails/165229)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 14, 2009, 4:39am UTC](https://www.ruby-forum.com/t/new-project-in-merb-or-rails/165229 "2009-04-14T04:39:55Z")

</div>

Hi, I’m going to create a new web application. Currently I did all my applications with PHP/Zend Framework, but I want to explore new things, so I want to give Ruby and Rails/Merb a try. :slight\_smile: So I’ve lear…

---

## [About plugin install](https://www.ruby-forum.com/t/about-plugin-install/165450)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 3:47am UTC](https://www.ruby-forum.com/t/about-plugin-install/165450 "2009-04-14T03:47:19Z")

</div>

windows XP / ruby 1.8.6 / Rails 2.3.2 D:\\test\\rails\\my\_app\>ruby script/plugin install git://github.com/internuity/quick\_scopes.git =\> D:\\test\\rails\\my\_app\\vendor\\plugins\\quick\_scopes quick\_scopes directory is empty!! …

---

## [Referential integrity](https://www.ruby-forum.com/t/referential-integrity/165442)

<div class="topic-metadata">

**Author:** [@doughie](https://www.ruby-forum.com/u/doughie)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 3:14am UTC](https://www.ruby-forum.com/t/referential-integrity/165442 "2009-04-14T03:14:54Z")

</div>

I am starting out in rails and am loving it! Thanks to all the contributors! I made a web app that had about 7 models, with some referring to each other, eg a team had a member and so on. This relationship was not en…

---

## [Creating Methods in the Model?](https://www.ruby-forum.com/t/creating-methods-in-the-model/165368)

<div class="topic-metadata">

**Author:** [@nickfaraday](https://www.ruby-forum.com/u/nickfaraday)\
**Replies:** 4\
**Last updated:** [April 14, 2009, 2:54am UTC](https://www.ruby-forum.com/t/creating-methods-in-the-model/165368 "2009-04-14T02:54:54Z")

</div>

Hey Everyone. First day diving in to ROR and Ruby… My question is how do you define methods with in the model class and/or should I even be doing this? It is my understanding that you should put as much of the busine…

---

## [Hover Help](https://www.ruby-forum.com/t/hover-help/165440)

<div class="topic-metadata">

**Author:** [@Jillian](https://www.ruby-forum.com/u/Jillian)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 2:54am UTC](https://www.ruby-forum.com/t/hover-help/165440 "2009-04-14T02:54:27Z")

</div>

Hi, We are interested in using “hover help” in rails - that is, we want to be able to hover over a link and have a help bubble pop up. Using link\_to like so: \<%= link\_to “?”, “”, :title =\> "Select Language\</ center\>…

---

## [How to handle InvalidAuthenticityToken](https://www.ruby-forum.com/t/how-to-handle-invalidauthenticitytoken/165441)

<div class="topic-metadata">

**Author:** [@sprite](https://www.ruby-forum.com/u/sprite)\
**Replies:** 1\
**Last updated:** [April 14, 2009, 1:15am UTC](https://www.ruby-forum.com/t/how-to-handle-invalidauthenticitytoken/165441 "2009-04-14T01:15:40Z")

</div>

Scenario: Log in a user. Go to a page with a form. Open a new tab and log out the user. Go back to previous tab and submit form. It throws InvalidAuthenticityToken before getting to my login code. I need to redirect t…

---

## [Disabling layout in action disables rendering of action data](https://www.ruby-forum.com/t/disabling-layout-in-action-disables-rendering-of-action-data/165445)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 12:59am UTC](https://www.ruby-forum.com/t/disabling-layout-in-action-disables-rendering-of-action-data/165445 "2009-04-14T00:59:21Z")

</div>

Folks, I have a base layout (views/layouts/base.erb) included from ApplicationController – layout ‘base’ This seems to work fine and all controllers automatically include that layout. However I am now trying to disab…

---

## [Invalid byte sequence utf-8 OR best option to sanitize content brought in with net::http? single no](https://www.ruby-forum.com/t/invalid-byte-sequence-utf-8-or-best-option-to-sanitize-content-brought-in-with-net-http-single-no/165324)

<div class="topic-metadata">

**Author:** [@buddycat](https://www.ruby-forum.com/u/buddycat)\
**Replies:** 9\
**Last updated:** [April 14, 2009, 12:58am UTC](https://www.ruby-forum.com/t/invalid-byte-sequence-utf-8-or-best-option-to-sanitize-content-brought-in-with-net-http-single-no/165324 "2009-04-14T00:58:07Z")

</div>

hi all, platform: debian lenny, ruby1.91.p0, passenger/apache-multithread, rails2.3 in vendor/postres and sql server via odbc. all current gems. i have legacy asp content on win2k servers that i wrap in rails control…

---

## [Routing convention for updating multiple resources](https://www.ruby-forum.com/t/routing-convention-for-updating-multiple-resources/165444)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 0\
**Last updated:** [April 14, 2009, 12:54am UTC](https://www.ruby-forum.com/t/routing-convention-for-updating-multiple-resources/165444 "2009-04-14T00:54:37Z")

</div>

Hi, In my Rails apps I often have user interfaces that allow editing and updating of multiple records. I was wondering how developers generally implement this in terms of resources. I tend to do: map.resources :prod…

---

## [Targeting the public/images directory?](https://www.ruby-forum.com/t/targeting-the-public-images-directory/165433)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 12:16am UTC](https://www.ruby-forum.com/t/targeting-the-public-images-directory/165433 "2009-04-14T00:16:00Z")

</div>

I am altering the default scaffold.css inside of public/stylesheets to include this: td { /\* background-image:url(…/…/…/public/images/product\_bkgrnd1.png); / \* /\* background-image:url(…/public/images/product\_bkgrn…

---

## [AJAX: link\_to\_remote creates a post request](https://www.ruby-forum.com/t/ajax-link-to-remote-creates-a-post-request/165432)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 3\
**Last updated:** [April 14, 2009, 12:13am UTC](https://www.ruby-forum.com/t/ajax-link-to-remote-creates-a-post-request/165432 "2009-04-14T00:13:39Z")

</div>

I’ve tried googling this and simply can’t believe this problem hasn’t come up before but I’ll explain it as I’m getting it here. I’m using RESTful actions in my controllers and trying to introduce a little AJAX fun to…

---

## [Rails Nested Object Form \*\_attributes problem](https://www.ruby-forum.com/t/rails-nested-object-form-attributes-problem/165365)

<div class="topic-metadata">

**Author:** [@dmrolfs](https://www.ruby-forum.com/u/dmrolfs)\
**Replies:** 2\
**Last updated:** [April 14, 2009, 12:07am UTC](https://www.ruby-forum.com/t/rails-nested-object-form-attributes-problem/165365 "2009-04-14T00:07:48Z")

</div>

I’m using Rails 2.3.2, and trying to get a nested object form to work properly. I’ve narrowed my problem to the issue that Rails is not setting my nested form elements with the \*\_attributes required to initiate the ac…

---

## [Creating raw text from a TMail object](https://www.ruby-forum.com/t/creating-raw-text-from-a-tmail-object/165434)

<div class="topic-metadata">

**Author:** [@karl](https://www.ruby-forum.com/u/karl)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/creating-raw-text-from-a-tmail-object/165434 "2009-04-13T23:39:42Z")

</div>

I see many examples of converting a raw text email into a TMail object using the parse method, but how can I take an existing TMail object and convert it to raw text? In my case, I would like to dump the full text re…

---

## [Active Records with column privilages](https://www.ruby-forum.com/t/active-records-with-column-privilages/165422)

<div class="topic-metadata">

**Author:** [@gordons11](https://www.ruby-forum.com/u/gordons11)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/active-records-with-column-privilages/165422 "2009-04-13T22:38:05Z")

</div>

Hey I am making applications that has different DB roles to the same database. One is pretty much the admin access where the person can see all the columns in each table, then there is the regular joe DB role where I …

---

## [Re: Upgrade application from rails 2.2.2 to 2.3.2](https://www.ruby-forum.com/t/re-upgrade-application-from-rails-2-2-2-to-2-3-2/165424)

<div class="topic-metadata">

**Author:** [@zivavoda](https://www.ruby-forum.com/u/zivavoda)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/re-upgrade-application-from-rails-2-2-2-to-2-3-2/165424 "2009-04-13T22:31:46Z")

</div>

Hi, I’m dealing with a similar issue. What do you mean by ‘reset my databases’? thanks, martin Tam K. wrote: – View this message in context: http://www.nabble.com/Upgrade-application-from-rails-2.2.2-to-2.3.2-tp2…

---

## [Table\_name question](https://www.ruby-forum.com/t/table-name-question/165426)

<div class="topic-metadata">

**Author:** [@Daniyaruby](https://www.ruby-forum.com/u/Daniyaruby)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/table-name-question/165426 "2009-04-13T22:31:46Z")

</div>

Hello all! I want to dynamically change table name for some count of my models. I understand that may be it’s bad practice but I simply need it. I found some solution that works for somebody: application.rb: around\_…

---

## [Host to try out rails with minimal traffic](https://www.ruby-forum.com/t/host-to-try-out-rails-with-minimal-traffic/165244)

<div class="topic-metadata">

**Author:** [@anne001](https://www.ruby-forum.com/u/anne001)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 10:10pm UTC](https://www.ruby-forum.com/t/host-to-try-out-rails-with-minimal-traffic/165244 "2009-04-13T22:10:02Z")

</div>

I tried Hostgator, but their instructions date from 2004 and although they have clued me in on some problems, for example the rails address is domain/app/public, I am no longer making progress. I tried to create a dem…

---

## [Running tests against a non-test environment](https://www.ruby-forum.com/t/running-tests-against-a-non-test-environment/165404)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [April 13, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/running-tests-against-a-non-test-environment/165404 "2009-04-13T20:32:27Z")

</div>

I am certain that running: rake test RAILS\_ENV=\<some\_other\_env\_than\_test\> should work, assuming that I have a correct DB setup in config/database.yml. But this is not happening. It looks like rake test always is usi…

---

## [Configure a proxy with Scrubyt](https://www.ruby-forum.com/t/configure-a-proxy-with-scrubyt/165412)

<div class="topic-metadata">

**Author:** [@cesardiaz](https://www.ruby-forum.com/u/cesardiaz)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/configure-a-proxy-with-scrubyt/165412 "2009-04-13T19:17:01Z")

</div>

Hi, I am using scrubyt few days ago and I think itÂ´s great. I’ve used it to get some contents from several webs, but at this moment I need to do the same tasks that I was doing but with a connection that it is behin…

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

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