# Rails

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

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

---

## [Can you use a mixin to add action methods to an ActionContro](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104727)

<div class="topic-metadata">

**Author:** [@pacred](https://www.ruby-forum.com/u/pacred)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104727 "2007-05-21T23:00:11Z")

</div>

I am trying to use a module to define a common interface between several ActiveRecord model classes, but I am having trouble setting the instance variable in the mixin functions. For example, I have a function, def s…

---

## [Options\_for\_select and setting css class values](https://www.ruby-forum.com/t/options-for-select-and-setting-css-class-values/104726)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/options-for-select-and-setting-css-class-values/104726 "2007-05-21T22:46:09Z")

</div>

Hi, i’m not sure if this is possible using erb (at the very least, I can’t figure it out by googling or via searching this board), so here goes… i’m using erb to make a select box with several hundred values it lo…

---

## [Anyone else noticing the last message in each thread not sho](https://www.ruby-forum.com/t/anyone-else-noticing-the-last-message-in-each-thread-not-sho/104710)

<div class="topic-metadata">

**Author:** [@dasil003](https://www.ruby-forum.com/u/dasil003)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/anyone-else-noticing-the-last-message-in-each-thread-not-sho/104710 "2007-05-21T21:49:00Z")

</div>

This is a secret text to be revealed when someone responds.

---

## [Using rails without a database](https://www.ruby-forum.com/t/using-rails-without-a-database/104709)

<div class="topic-metadata">

**Author:** [@isopaleocopria](https://www.ruby-forum.com/u/isopaleocopria)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/using-rails-without-a-database/104709 "2007-05-21T21:46:59Z")

</div>

I want to try writing a rails app, using edge rails, all models of which will extend ActiveResource. In other words, I don’t need a database. How do I configure my app so that rails doesn’t look for an RDBMS and data…

---

## [Routing question](https://www.ruby-forum.com/t/routing-question/104719)

<div class="topic-metadata">

**Author:** [@RailsToPerl](https://www.ruby-forum.com/u/RailsToPerl)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/routing-question/104719 "2007-05-21T21:12:55Z")

</div>

In routing.rb, what is the purpose of the following piece of code: class Regexp def number\_of\_captures Regexp.new("|#{source}").match(’’).captures.length end Does this method not always return 0? It’s always going …

---

## [How to get the disk space details](https://www.ruby-forum.com/t/how-to-get-the-disk-space-details/104674)

<div class="topic-metadata">

**Author:** [@mallikarjun](https://www.ruby-forum.com/u/mallikarjun)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/how-to-get-the-disk-space-details/104674 "2007-05-21T21:07:54Z")

</div>

Hi, For my application, i want to now the size of the disks. ex(c:\\ or d:). can any one help me to get the disk space used and disk space remaining in C: drive Thanks in advance mallikarjun

---

## [Rails Routing - what's this do?](https://www.ruby-forum.com/t/rails-routing-whats-this-do/104717)

<div class="topic-metadata">

**Author:** [@RailsToPerl](https://www.ruby-forum.com/u/RailsToPerl)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/rails-routing-whats-this-do/104717 "2007-05-21T20:58:53Z")

</div>

Does anyone know what the point of the following bit of code (from routing.rb) does? class Regexp #:nodoc: def number\_of\_captures Regexp.new("|#{source}").match(’’).captures.length end end Does this not always ret…

---

## [Re: Rails Conf 2007 webcasts?](https://www.ruby-forum.com/t/re-rails-conf-2007-webcasts/104715)

<div class="topic-metadata">

**Author:** [@vasu](https://www.ruby-forum.com/u/vasu)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/re-rails-conf-2007-webcasts/104715 "2007-05-21T20:42:51Z")

</div>

Hello Every one !! Any info on where I can find web-casts for Rails Conference 2007 ? Keynote ? sessions ? Thank you. -VS

---

## [Add to Current Value in DB](https://www.ruby-forum.com/t/add-to-current-value-in-db/104712)

<div class="topic-metadata">

**Author:** [@valeriem](https://www.ruby-forum.com/u/valeriem)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/add-to-current-value-in-db/104712 "2007-05-21T20:28:50Z")

</div>

I have a column in my database called activity\_value and activity\_time for a blogging system How do I add to the current value in a field. ex active\_value = value.current + @new\_value I could do this easily in PHP bu…

---

## [Get $1 Million A Month In Google Pay-Per-Click Ads Free!](https://www.ruby-forum.com/t/get-1-million-a-month-in-google-pay-per-click-ads-free/104711)

<div class="topic-metadata">

**Author:** [@jack\_nicole](https://www.ruby-forum.com/u/jack_nicole)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/get-1-million-a-month-in-google-pay-per-click-ads-free/104711 "2007-05-21T20:17:48Z")

</div>

Get $1 Million A Month In Google Pay-Per-Click Ads Free! New Secret By New York Doctor Who Made $300 Million! - http://cbnk.biz/HLFGO276377ZTPYJEK

---

## [:something =\> {:foo =\> 1, :bar =\> 2} in a GET request](https://www.ruby-forum.com/t/something-foo-1-bar-2-in-a-get-request/104687)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/something-foo-1-bar-2-in-a-get-request/104687 "2007-05-21T20:07:47Z")

</div>

Hi, it seems that there is a bug in RoR 1.2.3 url\_for(:controller =\> ‘cont’, :action =\> ‘edit’, :id =\> 10, :something =\> {:foo =\> 1, :bar =\> 2}) produces a wrong result /cont/edit/10?something=a1b2 instead of /cont…

---

## [Block of text method to make "..."](https://www.ruby-forum.com/t/block-of-text-method-to-make/104647)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 4\
**Last updated:** [May 21, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/block-of-text-method-to-make/104647 "2007-05-21T19:37:40Z")

</div>

What action view method turns this: asdf asdf aslkj flkjasdfljf lkasdf asdlfkjsd flkajsdf ldkffljasf aslkfj asldfkjasdf nlfkajlskf lasdfkjaslfdj asl;fkaslf asdlfsalf Into this: asdf asdf aslkj flkjasdfljf lkasdf … …

---

## [Onchange does not work for select helper](https://www.ruby-forum.com/t/onchange-does-not-work-for-select-helper/104705)

<div class="topic-metadata">

**Author:** [@desertpenguin](https://www.ruby-forum.com/u/desertpenguin)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/onchange-does-not-work-for-select-helper/104705 "2007-05-21T19:35:44Z")

</div>

The select helper for fields\_for does not properly handle settings for onchange. In other words, x.select fails to add any onchange options, but x.text\_field does e.g. \<%= c.text\_field :carrier, :size=\>“30”, :onchan…

---

## [Call or Send SMS to any phone anywhere in the world Free!](https://www.ruby-forum.com/t/call-or-send-sms-to-any-phone-anywhere-in-the-world-free/104700)

<div class="topic-metadata">

**Author:** [@jack\_nicole](https://www.ruby-forum.com/u/jack_nicole)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/call-or-send-sms-to-any-phone-anywhere-in-the-world-free/104700 "2007-05-21T18:54:34Z")

</div>

Call or Send SMS to any phone anywhere in the world Free! - http://offr.biz/HLGB7276377ZTPYJEK

---

## [ActionWebService table -\> xml mapping questions](https://www.ruby-forum.com/t/actionwebservice-table-xml-mapping-questions/104699)

<div class="topic-metadata">

**Author:** [@Mark\_Nyon](https://www.ruby-forum.com/u/Mark_Nyon)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/actionwebservice-table-xml-mapping-questions/104699 "2007-05-21T18:47:04Z")

</div>

Hi, I’m using ActionWebService to make an XML document representing a business object available over XML-RPC. The XML representation does not map directly to our model in a couple of ways: XML element titles do not …

---

## [Multiple Rails Heads](https://www.ruby-forum.com/t/multiple-rails-heads/104697)

<div class="topic-metadata">

**Author:** [@Mark\_Friedgan](https://www.ruby-forum.com/u/Mark_Friedgan)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/multiple-rails-heads/104697 "2007-05-21T18:13:29Z")

</div>

I started a discussion with David (it’s below) he suggested I address the group so I am going to add further questions here. Is there a way to put the different modules on different hostnames that isn’t just web serv…

---

## [CRM packages on Rails](https://www.ruby-forum.com/t/crm-packages-on-rails/104695)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/crm-packages-on-rails/104695 "2007-05-21T17:59:05Z")

</div>

A client of mine just asked me to recommend some lead tracking/CRM packages built on Rails. He’s just looked at SugarCRM and seemed to be impressed with it for whatever that’s worth. So far, I’ve found: Highrise fro…

---

## [Dictionary Service](https://www.ruby-forum.com/t/dictionary-service/104694)

<div class="topic-metadata">

**Author:** [@Kesav](https://www.ruby-forum.com/u/Kesav)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/dictionary-service/104694 "2007-05-21T17:39:25Z")

</div>

Hi We want to use dictionary service in our ROR project. Can you prescribe best Dictionary service? We don’t mind buying third party if it can integrate with RoR. Thanks in Advance. –Kesh

---

## [Getting named parameters from routes](https://www.ruby-forum.com/t/getting-named-parameters-from-routes/104685)

<div class="topic-metadata">

**Author:** [@Jonathan\_Stott](https://www.ruby-forum.com/u/Jonathan_Stott)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/getting-named-parameters-from-routes/104685 "2007-05-21T17:30:24Z")

</div>

I’m trying nested resources for a RESTful rails application. So, I set my routes up like so: map.resources :articles do |article| article.resources :comments end and when I “GET /articles/1”, the 1 is assigned to pa…

---

## [Memcached with failover for session store?](https://www.ruby-forum.com/t/memcached-with-failover-for-session-store/104691)

<div class="topic-metadata">

**Author:** [@mlemos](https://www.ruby-forum.com/u/mlemos)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/memcached-with-failover-for-session-store/104691 "2007-05-21T16:47:23Z")

</div>

Gents, It seems that its clear that memcached by itself for session storage has one weakness when it came to long lasting sessions (lets say, days, weeks or months). What happens is that is delete stored objects to se…

---

## [Capistrano Deployment to Multiple App Servers w/Mongrel](https://www.ruby-forum.com/t/capistrano-deployment-to-multiple-app-servers-w-mongrel/104690)

<div class="topic-metadata">

**Author:** [@Dave\_Troy](https://www.ruby-forum.com/u/Dave_Troy)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/capistrano-deployment-to-multiple-app-servers-w-mongrel/104690 "2007-05-21T16:27:17Z")

</div>

Hey folks, I have an app deployed across multiple app servers with Capistrano as follows: role :web, “app1.domain.com”, :primary =\> true role :app, “app1.domain.com”, “app2.domain.com” role :db, “db1.domain.com”, :…

---

## [{$}{$}{$}{$} your home is your castle {$}{$}{$}{$}](https://www.ruby-forum.com/t/your-home-is-your-castle/104689)

<div class="topic-metadata">

**Author:** [@Best\_Money\_Way](https://www.ruby-forum.com/u/Best_Money_Way)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/your-home-is-your-castle/104689 "2007-05-21T16:07:09Z")

</div>

Your home is your castle – and sometimes it’s also your bank. The equity in your home – the current appraised value minus the amount owed on the house – can be tapped through loans at lower interest rates than credit …

---

## [Has\_many relationship](https://www.ruby-forum.com/t/has-many-relationship/104196)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 5\
**Last updated:** [May 21, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/has-many-relationship/104196 "2007-05-21T16:03:43Z")

</div>

I have a basic forum where users can leave messages for other users. I did this using a has\_many relationship. I’m able have a user access their messages, but I want to be able to display the name of the user who sent…

---

## [How to comment a block of code in RHTML file](https://www.ruby-forum.com/t/how-to-comment-a-block-of-code-in-rhtml-file/104650)

<div class="topic-metadata">

**Author:** [@Lalit](https://www.ruby-forum.com/u/Lalit)\
**Replies:** 4\
**Last updated:** [May 21, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/how-to-comment-a-block-of-code-in-rhtml-file/104650 "2007-05-21T15:57:07Z")

</div>

Hi Group. I am just starting with Ruby on Rails. I have been stuck up (not exactly stuck up but I need to figure this out). I need to comment a block of code with HTML and RUBY code. Is there any way of commenting an…

---

## [How to get dynamic ajaxified calendar similar to one in high](https://www.ruby-forum.com/t/how-to-get-dynamic-ajaxified-calendar-similar-to-one-in-high/90871)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-get-dynamic-ajaxified-calendar-similar-to-one-in-high/90871 "2007-05-21T15:21:01Z")

</div>

While creating a task in Highrise if you choose ''specify date and time" then a calendar appears. Attached is a screen shot. I have an app where this type of solution would be perfect . How do I get this type of cale…

---

## [Precision problem in float data type](https://www.ruby-forum.com/t/precision-problem-in-float-data-type/104680)

<div class="topic-metadata">

**Author:** [@ruby](https://www.ruby-forum.com/u/ruby)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/precision-problem-in-float-data-type/104680 "2007-05-21T15:14:58Z")

</div>

Hi there, I have been facing problem in displaying the value of the column which is of type float. by default it displays only single digit after decimal point so how can I set the precision while displaying the value…

---

## [Acts\_as\_ferret and UTF-8](https://www.ruby-forum.com/t/acts-as-ferret-and-utf-8/104678)

<div class="topic-metadata">

**Author:** [@Art\_S](https://www.ruby-forum.com/u/Art_S)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-utf-8/104678 "2007-05-21T14:06:49Z")

</div>

Hello Does anybody know how to configure acts\_as\_ferret to use UTF-8. All works fine with english , but when I use russian symbols in query rails hangs. I am using: ferret - 0.11.4-=mswin32 Rails 1.2.3 mysql 5.0.…

---

## [Save the current article id](https://www.ruby-forum.com/t/save-the-current-article-id/104614)

<div class="topic-metadata">

**Author:** [@mex23](https://www.ruby-forum.com/u/mex23)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/save-the-current-article-id/104614 "2007-05-21T14:02:08Z")

</div>

Hi guys, I want to save the current article id, but I don’t know how. someone have an example? Ex. I click on “show article”, after that I click “edit article”. When the editing is finished I want to click “back” and …

---

## [Why does scaffold ignores some fields?](https://www.ruby-forum.com/t/why-does-scaffold-ignores-some-fields/104666)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 2:00pm UTC](https://www.ruby-forum.com/t/why-does-scaffold-ignores-some-fields/104666 "2007-05-21T14:00:10Z")

</div>

Hello, somehow the ‘scaffold’ method does not emits HTML fields for all the fields of my models. For example, this simple controller: class CatalogController \< ApplicationController scaffold :fact end and a model …

---

## [backgrounDRb: problem with saving files within the worker](https://www.ruby-forum.com/t/backgroundrb-problem-with-saving-files-within-the-worker/104679)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/backgroundrb-problem-with-saving-files-within-the-worker/104679 "2007-05-21T13:52:42Z")

</div>

Hi, in my rails app I’m using BackgrounDRb and I have problems with saving the generated files into the temp directory within the do\_work method of my worker. Despite the fact that in log the are written paths to all…

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

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