# Rails

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

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

---

## [TSOT Ruby on Rails Project Night returns April 8th, plus an opportunity to attend Obie Fernandez wo](https://www.ruby-forum.com/t/tsot-ruby-on-rails-project-night-returns-april-8th-plus-an-opportunity-to-attend-obie-fernandez-wo/133001)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 5:05pm UTC](https://www.ruby-forum.com/t/tsot-ruby-on-rails-project-night-returns-april-8th-plus-an-opportunity-to-attend-obie-fernandez-wo/133001 "2008-03-26T17:05:58Z")

</div>

On April 8th TSOT, Inc. returns with the fourth TSOT Ruby on Rails Project Night. The March event was highly successful, and you can now read all about past TSOT Ruby on Rails Project Nights on our website at www.tsot…

---

## [Cached models](https://www.ruby-forum.com/t/cached-models/132983)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 7\
**Last updated:** [March 26, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/cached-models/132983 "2008-03-26T16:52:25Z")

</div>

I seem to have @facilities = Facility.find(:all) in a lot of places in my application and my facilities model data rarely changes. How can I cache it so that I don’t have to hit the DB each time? Craig

---

## [To display query in the url?](https://www.ruby-forum.com/t/to-display-query-in-the-url/132996)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 4:19pm UTC](https://www.ruby-forum.com/t/to-display-query-in-the-url/132996 "2008-03-26T16:19:15Z")

</div>

I have simple search method in my posts controller. When I enter some keyword, it shows results at …posts/search URL. How can I make it display something like …posts/search?query=this ?

---

## [Missing Method defined in controllers/application.rb](https://www.ruby-forum.com/t/missing-method-defined-in-controllers-application-rb/132994)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/missing-method-defined-in-controllers-application-rb/132994 "2008-03-26T16:12:50Z")

</div>

I have this in my controllers/application.rb: class ApplicationController \< ActionController::Base … def datebalk! # set regexp for datebalks generated attributes c = /.\*\_\_dteblk/ # Remove datebalks generated attri…

---

## [Link\_to dynamic id problem](https://www.ruby-forum.com/t/link-to-dynamic-id-problem/132991)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/link-to-dynamic-id-problem/132991 "2008-03-26T15:37:31Z")

</div>

Hi. This works: \<%= link\_to “show”, {:action =\> “show”, :id =\> 1 }, {:title =\> @table.name } %\> This does not: \<%= link\_to “show”, {:action =\> “show”, :id =\> @table.id }, {:title =\> @table.name } %\> This is all wr…

---

## [Page/action caching across multiple machines](https://www.ruby-forum.com/t/page-action-caching-across-multiple-machines/132877)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/page-action-caching-across-multiple-machines/132877 "2008-03-26T15:24:36Z")

</div>

Does anyone have a preferred way of doing page/action caching across multiple machines? I know with fragment caching you can use memcached. But page caching usually goes in the document root, so it is not usually i…

---

## [How can I put that code in one line?](https://www.ruby-forum.com/t/how-can-i-put-that-code-in-one-line/132984)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/how-can-i-put-that-code-in-one-line/132984 "2008-03-26T15:11:32Z")

</div>

I have this checkbox. How can I put that code in one line? \<% if @repair\_ticket.send\_email == 1%\> \<%= check\_box\_tag “send\_email”, @repair\_ticket.send\_email, 1 , { :disabled =\> true } %\> \<% end %\> \<% if @repair\_ticke…

---

## [Minimum services for a Rails app](https://www.ruby-forum.com/t/minimum-services-for-a-rails-app/132986)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/minimum-services-for-a-rails-app/132986 "2008-03-26T14:32:34Z")

</div>

I have two different hosting services. My test systems are on SliceHost, and my production systems are on ServerBeach. The reason for the different hosts doesn’t matter here, but it does cause me to ask what are the m…

---

## [Ajax/forms confusion](https://www.ruby-forum.com/t/ajax-forms-confusion/132973)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 5\
**Last updated:** [March 26, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/ajax-forms-confusion/132973 "2008-03-26T13:47:37Z")

</div>

Some time ago I asked about the use of javascript “please wait” messages whilst a big query runs. Now I am back to working on this code I need to deal with this problem and have had no luck finding anything that work…

---

## [Selected items in a multiple select](https://www.ruby-forum.com/t/selected-items-in-a-multiple-select/132790)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/selected-items-in-a-multiple-select/132790 "2008-03-26T13:43:55Z")

</div>

I have the following line \<%= collection\_select\_with\_current("permissions", :permission, Permission.find(:all, :order =\> "name"), :id, :short, @page.permissions, {:multiple =\> true}) %\>\</label\>\</p\> This generates a sel…

---

## [Migration question](https://www.ruby-forum.com/t/migration-question/132976)

<div class="topic-metadata">

**Author:** [@Mark\_Milke](https://www.ruby-forum.com/u/Mark_Milke)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/migration-question/132976 "2008-03-26T13:31:59Z")

</div>

Hi everyone, is there a best practice for doing migrations of RoR Applications? Is there for instance a tool, that will allow me to see the difference between my development server and the production server and allow …

---

## [Need help with @template.content\_tag](https://www.ruby-forum.com/t/need-help-with-template-content-tag/132878)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/need-help-with-template-content-tag/132878 "2008-03-26T13:29:44Z")

</div>

Hi all I have my own FormBuilder. One of its functionalities is to group fields using the following method: def group\_fields(legend, options = {}, &block) concat(@template.content\_tag(‘fieldset’, @template.content\_t…

---

## [Upgrading to rails 2.0](https://www.ruby-forum.com/t/upgrading-to-rails-2-0/132982)

<div class="topic-metadata">

**Author:** [@jakattack](https://www.ruby-forum.com/u/jakattack)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/upgrading-to-rails-2-0/132982 "2008-03-26T13:27:15Z")

</div>

Hi, I’m trying to upgrade my application from rails 1.2.6 to rails 2.0. After upgrading I tried to launch webrick and I got the following error. Does anyone have any thoughts on how to proceed? I can’t find anything …

---

## [ActiveRecord::ConfigurationError in Rails 2.0](https://www.ruby-forum.com/t/activerecord-configurationerror-in-rails-2-0/132960)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 7\
**Last updated:** [March 26, 2008, 11:52am UTC](https://www.ruby-forum.com/t/activerecord-configurationerror-in-rails-2-0/132960 "2008-03-26T11:52:00Z")

</div>

Hi, I recently gathered guts and tried implementing the Rails 2.0.2 in one of my existing application that was running on Rails 1.2.3. I ran in to a strange issue. I have a model Post and a model Comment. They have …

---

## [Problems with stale sessions and cached pages](https://www.ruby-forum.com/t/problems-with-stale-sessions-and-cached-pages/132975)

<div class="topic-metadata">

**Author:** [@thehunfromoz](https://www.ruby-forum.com/u/thehunfromoz)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 11:30am UTC](https://www.ruby-forum.com/t/problems-with-stale-sessions-and-cached-pages/132975 "2008-03-26T11:30:26Z")

</div>

I’m using Apache+Mongrel with Ruby 1.86 and Rails 1.2.3. I’m using auth\_generator for user sessions, MySQL-based application sessions and comatose for my content mgmt system. Every now and again, auth\_generator gets…

---

## [What's the meaning of "\<\<"](https://www.ruby-forum.com/t/whats-the-meaning-of/132970)

<div class="topic-metadata">

**Author:** [@kran](https://www.ruby-forum.com/u/kran)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 11:09am UTC](https://www.ruby-forum.com/t/whats-the-meaning-of/132970 "2008-03-26T11:09:27Z")

</div>

\# File activerecord/lib/active\_record/validations.rb, line 327 327: def validate(\*methods, &block) 328: methods \<\< block if block\_given? 329: write\_inheritable\_set(:validate, methods) 330: …

---

## [RSS help](https://www.ruby-forum.com/t/rss-help/132972)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 10:59am UTC](https://www.ruby-forum.com/t/rss-help/132972 "2008-03-26T10:59:22Z")

</div>

I have my rss feed working pefectly but I was wondering if I could limit it to showing just the 5 most recently updated products. heres how my rss is coded xml.instruct! xml.rss “version” =\> “2.0”, “xmlns:dc” =\> “htt…

---

## [Check\_box submits both "1" and "0" when checked](https://www.ruby-forum.com/t/check-box-submits-both-1-and-0-when-checked/132958)

<div class="topic-metadata">

**Author:** [@brentsoderberg](https://www.ruby-forum.com/u/brentsoderberg)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 10:42am UTC](https://www.ruby-forum.com/t/check-box-submits-both-1-and-0-when-checked/132958 "2008-03-26T10:42:55Z")

</div>

Hi, I have a “Customer” model and a “Product” model, where a Customer “has many” Products. When editing a Customer, I also want to display the Products that person has at the bottom of the page, available for editing,…

---

## [Help! how can i get the position of the record in a query result](https://www.ruby-forum.com/t/help-how-can-i-get-the-position-of-the-record-in-a-query-result/132968)

<div class="topic-metadata">

**Author:** [@goldmine](https://www.ruby-forum.com/u/goldmine)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 10:10am UTC](https://www.ruby-forum.com/t/help-how-can-i-get-the-position-of-the-record-in-a-query-result/132968 "2008-03-26T10:10:15Z")

</div>

for example I use find method do a query, the result is a collection. is there any convenient way to know the position of each record in this collection?

---

## [Having a problem with acts\_as\_state\_machine](https://www.ruby-forum.com/t/having-a-problem-with-acts-as-state-machine/98207)

<div class="topic-metadata">

**Author:** [@Forrest\_C](https://www.ruby-forum.com/u/Forrest_C)\
**Replies:** 2\
**Last updated:** [March 26, 2008, 10:05am UTC](https://www.ruby-forum.com/t/having-a-problem-with-acts-as-state-machine/98207 "2008-03-26T10:05:30Z")

</div>

Hi all: Below is s a dump from script/console in development env. Am I not supposed to be able to find the record later and use the state machine functionality, or have I missed something? Thanks Forrest ts2 = T…

---

## [Passing object between actions](https://www.ruby-forum.com/t/passing-object-between-actions/132966)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 9:42am UTC](https://www.ruby-forum.com/t/passing-object-between-actions/132966 "2008-03-26T09:42:20Z")

</div>

Hi I have \<%= link\_to\_remote “Associate Knowledgebase”, :update =\> “show\_sd\_knowledgebase”, :url =\> { :controller =\> ‘service\_desk’,:action =\> :search\_knowledge\_base\_ui, :id =\> @sd\_ticket } %\> And this page is com…

---

## [Params\[:id\]](https://www.ruby-forum.com/t/params-id/226001)

<div class="topic-metadata">

**Author:** [@veil](https://www.ruby-forum.com/u/veil)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 9:24am UTC](https://www.ruby-forum.com/t/params-id/226001 "2008-03-26T09:24:36Z")

</div>

hi there, i’m very new in ruby. i need to solve this asap. im out of idea already. please help me. thank u. \[code=\]def egradebook end def monthlytest #will find all record of person wif id of the current user (teac…

---

## [Model problem](https://www.ruby-forum.com/t/model-problem/132939)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 9:15am UTC](https://www.ruby-forum.com/t/model-problem/132939 "2008-03-26T09:15:44Z")

</div>

because I am using Filemaker pro 9 and the Rfm extension I cannot use ActiveRecord. But of course I would like to use the models to have my database connection, selection things in. But I can’t manage to let this wo…

---

## [What it needs to be done to upgrade to 2.0?](https://www.ruby-forum.com/t/what-it-needs-to-be-done-to-upgrade-to-2-0/132954)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 8:43am UTC](https://www.ruby-forum.com/t/what-it-needs-to-be-done-to-upgrade-to-2-0/132954 "2008-03-26T08:43:17Z")

</div>

Hi, I had to left my project for some time to take care of some other stuff last December, i was using 1.2.5, everything works just fine then. when i tried to pick up my project and give 2.0 a try, everything seems …

---

## [User progress indicator suggestions?](https://www.ruby-forum.com/t/user-progress-indicator-suggestions/132965)

<div class="topic-metadata">

**Author:** [@gracei](https://www.ruby-forum.com/u/gracei)\
**Replies:** 0\
**Last updated:** [March 26, 2008, 8:28am UTC](https://www.ruby-forum.com/t/user-progress-indicator-suggestions/132965 "2008-03-26T08:28:34Z")

</div>

I have two applications that would benefit from some type of progress indicator. One is a survey with several screens. In another the user needs to complete several steps. I can do something brute force but this is…

---

## [Why use self. for a method?](https://www.ruby-forum.com/t/why-use-self-for-a-method/132947)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 8:26am UTC](https://www.ruby-forum.com/t/why-use-self-for-a-method/132947 "2008-03-26T08:26:48Z")

</div>

hi all. I had a problem with a methods and classes what i had for example was this: the controller: class AnimalsController \< ApplicationController def index @id =Animal.item end end the model: class Animal de…

---

## [Filter chain halted](https://www.ruby-forum.com/t/filter-chain-halted/121922)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 7:58am UTC](https://www.ruby-forum.com/t/filter-chain-halted/121922 "2008-03-26T07:58:48Z")

</div>

I have “Filter chain halted as \[#\<ActionController::Filters::ClassMethods::SymbolFilter:0x2606114 @filter=:index\>\] rendered\_or\_redirected.” development log. What does this mean? rails 1.99.1 OS X Leopard, Mongrel 1…

---

## [Check\_box problem](https://www.ruby-forum.com/t/check-box-problem/132835)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 7:31am UTC](https://www.ruby-forum.com/t/check-box-problem/132835 "2008-03-26T07:31:26Z")

</div>

I have used check\_box\_tag method to store the select value in the string data type attribute in database with multiple selection seperated by comma. My problem is that when I need to edit that object(row) how can I m…

---

## [Library loading while server start up](https://www.ruby-forum.com/t/library-loading-while-server-start-up/132881)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 7:20am UTC](https://www.ruby-forum.com/t/library-loading-while-server-start-up/132881 "2008-03-26T07:20:23Z")

</div>

Hai All, Today when I was starting my mongrel server i got one question its looks know answer but I am not clear… My Question is like …While starting server what are the things are loading??? If possible explain so…

---

## [Rails beginner how-to site](https://www.ruby-forum.com/t/rails-beginner-how-to-site/132931)

<div class="topic-metadata">

**Author:** [@Aaron\_Brown](https://www.ruby-forum.com/u/Aaron_Brown)\
**Replies:** 1\
**Last updated:** [March 26, 2008, 6:59am UTC](https://www.ruby-forum.com/t/rails-beginner-how-to-site/132931 "2008-03-26T06:59:10Z")

</div>

I’ve been writing up a step-by-step guide to implementing a sample RoR site and there’s enough online now to make the link worth sharing. http://railsdotnext.com/ The text is aimed at developers who are new to Rails, …

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

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