# Rails

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

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

---

## [Passing in lng and lat via URL, integers work but not floats](https://www.ruby-forum.com/t/passing-in-lng-and-lat-via-url-integers-work-but-not-floats/91609)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 5\
**Last updated:** [April 13, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/passing-in-lng-and-lat-via-url-integers-work-but-not-floats/91609 "2007-04-13T22:28:20Z")

</div>

Using the following gode I am able to get an response when the lng and lat are integers, but not when they are floats. http://localhost:3000/section/query/43,-90 # works! http://localhost:3000/section/query/43.005,-9…

---

## [Mongrel server keeps shutting down](https://www.ruby-forum.com/t/mongrel-server-keeps-shutting-down/91231)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/mongrel-server-keeps-shutting-down/91231 "2007-04-13T22:10:19Z")

</div>

(sorry for the cross-post, I accidentally posted this to the rails forum) I’m on a VPS running CentOS. I startup my server with: mongrel\_rails start -d -p 3000 -e production and it runs for a while. But later I rec…

---

## [Put comments before/after each render call automatically?](https://www.ruby-forum.com/t/put-comments-before-after-each-render-call-automatically/91964)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/put-comments-before-after-each-render-call-automatically/91964 "2007-04-13T21:23:14Z")

</div>

Hello, I find putting comment tags before and after rendering a partial is not very DRY, and I would like to have this programmatically handled. Where can I hook into rails to override render? Thanks. -Chris

---

## [Inplace editor and textarea](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943)

<div class="topic-metadata">

**Author:** [@Joe\_Val](https://www.ruby-forum.com/u/Joe_Val)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/inplace-editor-and-textarea/91943 "2007-04-13T21:21:48Z")

</div>

Hi, I have an inplace editor and I can access the innerHTML value of the created form. However the innerHTML gives “… …” How can I access the textarea value? I tried to do innerHTML.textarea.value but it didn’t work…

---

## [Completely confused and overwhelmed ! :(](https://www.ruby-forum.com/t/completely-confused-and-overwhelmed/91811)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 9\
**Last updated:** [April 13, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/completely-confused-and-overwhelmed/91811 "2007-04-13T21:07:12Z")

</div>

Hi, I’ve been looking into deployment for a rails app for a week and I have to say I’m totally overwhelmed by the options! The main problem is I can’t use Apache 2.2, only 2.0. I’m sold on mongrel and clustering with…

---

## [3 questions](https://www.ruby-forum.com/t/3-questions/91956)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/3-questions/91956 "2007-04-13T20:06:07Z")

</div>

validates\_format\_of :name, :with =\> /\\A(\\w(?:\[/’ -.\])?)\*\\Z/i What does the ‘i’ do at the end of the regular expression? Should I do validation for attributes that are not from a form? def self.up create…

---

## [CSV::Writer and Rails 1.2.3](https://www.ruby-forum.com/t/csv-writer-and-rails-1-2-3/91952)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [April 13, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/csv-writer-and-rails-1-2-3/91952 "2007-04-13T20:01:00Z")

</div>

This seems to no longer work… http://www.ruby-doc.org/core/classes/CSV/Writer.html from my console session (lifting code from my application) @qm\_monitorings = QmMonitoring.find(:all) =\> \[#\<QmMonitoring:0xb74d72b…

---

## [Full text search - acts\_as\_ferret, mysql](https://www.ruby-forum.com/t/full-text-search-acts-as-ferret-mysql/91957)

<div class="topic-metadata">

**Author:** [@jimache](https://www.ruby-forum.com/u/jimache)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/full-text-search-acts-as-ferret-mysql/91957 "2007-04-13T19:26:58Z")

</div>

Hi everyone, I started developing an app that at some point will recevive as input param a file containing an article (txt, .doc … not sure yet). And based on some predifined words, sentences, phrases (stored in a tab…

---

## [Globalize newbie](https://www.ruby-forum.com/t/globalize-newbie/72098)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 4\
**Last updated:** [April 13, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/globalize-newbie/72098 "2007-04-13T19:21:44Z")

</div>

hey all, I’ve just installed globalize, I did the svn checkout and the rake globalize:setup command. Now I want to translate some of the string in my views, as an example \<%= “some strings”.t %\> but I don’t know how…

---

## [Listing, restricting attributes on Single Table Inheritance](https://www.ruby-forum.com/t/listing-restricting-attributes-on-single-table-inheritance/91953)

<div class="topic-metadata">

**Author:** [@tgiridhar](https://www.ruby-forum.com/u/tgiridhar)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/listing-restricting-attributes-on-single-table-inheritance/91953 "2007-04-13T18:50:21Z")

</div>

Hi Gurus, I am new to rails/ruby and have a simple question. I have single table inheritence implemented for different equipment. Each equipment has some common attributes such as equipment name, id, name of inspector…

---

## [How to write a page to the cache from a cache sweeper](https://www.ruby-forum.com/t/how-to-write-a-page-to-the-cache-from-a-cache-sweeper/91949)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-write-a-page-to-the-cache-from-a-cache-sweeper/91949 "2007-04-13T18:44:55Z")

</div>

I’ve got an expensive page which I want to store in the page cache. The conditions under which it needs to be updated are such that it requires use of a sweeper object, no challenge there. The wrinkle is this: instead…

---

## [Help putting this code into plugin](https://www.ruby-forum.com/t/help-putting-this-code-into-plugin/91946)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/help-putting-this-code-into-plugin/91946 "2007-04-13T18:29:40Z")

</div>

Hi, I have the following code that allows me to call before\_validation :acts\_as\_tagless in my models. I would like to put this into aplugin so I can do somthing like acts\_as\_tagless :fieldName, :fieldName, :etc any …

---

## [How to get the content of text\_area](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area/91940)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/how-to-get-the-content-of-text-area/91940 "2007-04-13T18:02:51Z")

</div>

dear all, how can I get the content of text\_area, if I dont due to the submit of form? (ex. a link\_to outside the form) thanks

---

## [SQL Server stored procs w/multiple result sets?](https://www.ruby-forum.com/t/sql-server-stored-procs-w-multiple-result-sets/91497)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/sql-server-stored-procs-w-multiple-result-sets/91497 "2007-04-13T17:59:59Z")

</div>

All, I have a legacy database that I’m dealing with and a stored procedure that I need to call. I found this and it’s great for calling a SP that returns only one result set - However, this SP returns several resul…

---

## [Global (accessible anywhere), but per-request variable](https://www.ruby-forum.com/t/global-accessible-anywhere-but-per-request-variable/91926)

<div class="topic-metadata">

**Author:** [@jendaperl](https://www.ruby-forum.com/u/jendaperl)\
**Replies:** 6\
**Last updated:** [April 13, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/global-accessible-anywhere-but-per-request-variable/91926 "2007-04-13T17:41:35Z")

</div>

Is there any way to create a variable (or something) that’s global in the sense that it can be accessed from any method of any class withoug having to be passed around, but that’s not shared between requests? $variabl…

---

## [Drag image and paste it in droppable](https://www.ruby-forum.com/t/drag-image-and-paste-it-in-droppable/91933)

<div class="topic-metadata">

**Author:** [@shrikant](https://www.ruby-forum.com/u/shrikant)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/drag-image-and-paste-it-in-droppable/91933 "2007-04-13T16:03:56Z")

</div>

I want to drag an image and place in the droppable, after dropping the image should be on the both the droppable and where I have dragged from(reverting.)

---

## [RoR contractor needed](https://www.ruby-forum.com/t/ror-contractor-needed/91925)

<div class="topic-metadata">

**Author:** [@cantankerous](https://www.ruby-forum.com/u/cantankerous)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 3:43pm UTC](https://www.ruby-forum.com/t/ror-contractor-needed/91925 "2007-04-13T15:43:35Z")

</div>

Hi, I’ll be looking for a RoR contractor to produce a small proof of concept site in a couple of weeks time, does anyone know a site to find such individuals or can you recommend someone? rgds/alex

---

## [Firefox won't let me send '&' with AJAX!](https://www.ruby-forum.com/t/firefox-wont-let-me-send-with-ajax/57563)

<div class="topic-metadata">

**Author:** [@Sebastian\_von\_Conra](https://www.ruby-forum.com/u/Sebastian_von_Conra)\
**Replies:** 26\
**Last updated:** [April 13, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/firefox-wont-let-me-send-with-ajax/57563 "2007-04-13T15:32:34Z")

</div>

Hi everyone, I’ve encountered a HUGE problem, which may not be RoR-oriented, but there might be a workaround somehow. See, at this moment, I’m unable to send AJAX requests back and forth when the information contains…

---

## [Sudden NameError after things were working](https://www.ruby-forum.com/t/sudden-nameerror-after-things-were-working/91931)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/sudden-nameerror-after-things-were-working/91931 "2007-04-13T15:29:34Z")

</div>

Hi, I am using BackgrounDRb, and have one worker class, parser\_worker.rb. I generated this, added code to the do\_work method, and was creating the workers succesfully from within my rails app. Then I changed a bit o…

---

## [RJS - replacing html for multiple entries](https://www.ruby-forum.com/t/rjs-replacing-html-for-multiple-entries/91889)

<div class="topic-metadata">

**Author:** [@el-gato](https://www.ruby-forum.com/u/el-gato)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/rjs-replacing-html-for-multiple-entries/91889 "2007-04-13T15:26:34Z")

</div>

I have some elements that could show up on the same page multiple times. Can anyone recommend a good way to do a replace\_html in this case? I may have, for example, 3 posts that have been repeated on a page, all with…

---

## [Session timeout](https://www.ruby-forum.com/t/session-timeout/91916)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/session-timeout/91916 "2007-04-13T14:46:28Z")

</div>

hi friends, what is the default session timeout in ruby? i m creating session variables by session\[:var\_name\]=some value but when i m trying to retrive value from session variables, sometimes it gives me null . but …

---

## [Managing joins](https://www.ruby-forum.com/t/managing-joins/91922)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/managing-joins/91922 "2007-04-13T14:27:23Z")

</div>

Hi there, Another rails newbie here, trying to get started on some many to many :through structures (solid background in dB, php and asp). On the database and model side of things, everything is relatively clear. H…

---

## [Programmer Career](https://www.ruby-forum.com/t/programmer-career/91923)

<div class="topic-metadata">

**Author:** [@Jessica](https://www.ruby-forum.com/u/Jessica)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/programmer-career/91923 "2007-04-13T14:10:02Z")

</div>

Find Many Programming Job Vacancy and resources here → http://www.jobbankdata.com/job-programming.htm

---

## [Language version of rhtml templates](https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292)

<div class="topic-metadata">

**Author:** [@braver](https://www.ruby-forum.com/u/braver)\
**Replies:** 1\
**Last updated:** [April 13, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/language-version-of-rhtml-templates/91292 "2007-04-13T13:33:58Z")

</div>

I have a rails app, the lovely opinion forum, I’d like to globalize – it uses a bunch of rhtml templates with hard-coded English text. Should I change all the embedded text into the ugly \<%= ‘Msg’.t %\> references with…

---

## [Database relation using RoR](https://www.ruby-forum.com/t/database-relation-using-ror/91911)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 4\
**Last updated:** [April 13, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/database-relation-using-ror/91911 "2007-04-13T12:39:33Z")

</div>

Hi This is probably quite a simple problem for someone (but not for me!), what is the best way to solve the following? I have 3 tables: users, friends and names. The table formats are (I have cut out the irrelevant p…

---

## [Captcha Rules](https://www.ruby-forum.com/t/captcha-rules/91919)

<div class="topic-metadata">

**Author:** [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/captcha-rules/91919 "2007-04-13T12:32:34Z")

</div>

Hi Everyone out there, Can anybody tell me what are the rules for designing captcha. That is, should it have only limited number of letters and things like that… THNX, Jazzzzzzzzzzzy,

---

## [Rails 1.2 or edge? what to use?](https://www.ruby-forum.com/t/rails-1-2-or-edge-what-to-use/91917)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/rails-1-2-or-edge-what-to-use/91917 "2007-04-13T12:07:52Z")

</div>

Hi, Hoping someone can shed some light on the best way forward here. Over the last year I have been using rails 1.1 to develop applications, but am now about to start a new project. What version should I use for this…

---

## [How to add lang\_code to fragment-cache pattern?](https://www.ruby-forum.com/t/how-to-add-lang-code-to-fragment-cache-pattern/91914)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 11:56am UTC](https://www.ruby-forum.com/t/how-to-add-lang-code-to-fragment-cache-pattern/91914 "2007-04-13T11:56:56Z")

</div>

Hi there! I’m looking for a way to achieve a language-depending fragment cache. Since GLoc itself does not provide a solution for this, I’m looking for a way to change the pattern that is used for storing the fragment…

---

## [Radrails and date in mysql problem](https://www.ruby-forum.com/t/radrails-and-date-in-mysql-problem/91864)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 3\
**Last updated:** [April 13, 2007, 10:58am UTC](https://www.ruby-forum.com/t/radrails-and-date-in-mysql-problem/91864 "2007-04-13T10:58:40Z")

</div>

Hi, Im using radrails and mysql database, im using DATE in mysql for a date of birth column, When i use this in Radrails the date shows as dropdown lists, the days and month are fine but the year list only shows 2002…

---

## [Ruby on Rails on managed hosting environment](https://www.ruby-forum.com/t/ruby-on-rails-on-managed-hosting-environment/91910)

<div class="topic-metadata">

**Author:** [@satyam](https://www.ruby-forum.com/u/satyam)\
**Replies:** 0\
**Last updated:** [April 13, 2007, 10:32am UTC](https://www.ruby-forum.com/t/ruby-on-rails-on-managed-hosting-environment/91910 "2007-04-13T10:32:31Z")

</div>

Hi all, My app is deployed on a managed hositng server. So there are many applicaion servers running my app. The maximum no. of database connections that can be used is 50. The problem is that due to fastcgi caching …

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

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