# Top

**URL:** https://www.ruby-forum.com/top.md?page=1180

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

---

## [Named scope in named scope?](https://www.ruby-forum.com/t/named-scope-in-named-scope/195497)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 6\
**Last updated:** [September 28, 2010, 10:39am UTC](https://www.ruby-forum.com/t/named-scope-in-named-scope/195497 "2010-09-28T10:39:53Z")

</div>

Hi, I would like to return a combination of named scopes in a named scope : For example, I have a named scope filter and I want to add a named scope eval\_filters like Product.eval\_filters(\[‘x’,‘y’,‘z’\]) is equivalen…

---

## [Query](https://www.ruby-forum.com/t/query/189687)

<div class="topic-metadata">

**Author:** [@Srinivas\_G](https://www.ruby-forum.com/u/Srinivas_G)\
**Replies:** 6\
**Last updated:** [June 6, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/query/189687 "2010-06-06T19:44:56Z")

</div>

‘Teacher’ is a table in a database. Based on that information, explain what the following query is searching for in the table: Teacher.find(:all, :condition =\> { :grade =\> 9…12})

---

## [Validates\_timeliness plugin installation](https://www.ruby-forum.com/t/validates-timeliness-plugin-installation/188729)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 6\
**Last updated:** [May 17, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/validates-timeliness-plugin-installation/188729 "2010-05-17T18:45:30Z")

</div>

I’m trying to install the validates\_timeliness plugin: on Ubuntu lucid in my rails project directory: sudo ./script/plugin install git://github.com/adzap/validates\_timeliness.git ./script/plugin: command not found o…

---

## [SQL result to String conversion](https://www.ruby-forum.com/t/sql-result-to-string-conversion/185241)

<div class="topic-metadata">

**Author:** [@rohits](https://www.ruby-forum.com/u/rohits)\
**Replies:** 6\
**Last updated:** [March 16, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/sql-result-to-string-conversion/185241 "2010-03-16T21:28:44Z")

</div>

Hello All, I am very new to Ruby on Rails and I have a quick question for you all, which is as follows: I have this following line of code in an partial that renders itself on the posts/index view: Created By (User)…

---

## [Small feature request for memcached module](https://www.ruby-forum.com/t/small-feature-request-for-memcached-module/180462)

<div class="topic-metadata">

**Author:** [@jay\_edwards](https://www.ruby-forum.com/u/jay_edwards)\
**Replies:** 6\
**Last updated:** [December 19, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/small-feature-request-for-memcached-module/180462 "2009-12-19T15:25:44Z")

</div>

I would really like to be able to to : “set $memcached\_key\_sha1 $request\_uri;” And the then module should lookup using the hashed key instead of “$memcached\_key”. I guess this would be a minute hack for anyone that h…

---

## [All the core function are buit-in?](https://www.ruby-forum.com/t/all-the-core-function-are-buit-in/175414)

<div class="topic-metadata">

**Author:** [@freekickr](https://www.ruby-forum.com/u/freekickr)\
**Replies:** 6\
**Last updated:** [September 13, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/all-the-core-function-are-buit-in/175414 "2009-09-13T16:37:28Z")

</div>

Before posting, I went thru the offical doc and some searching forum, still hvn’t found how to view the ruby core component source code. For example, I’d like to know how the Enumerable implemented the iterator, from …

---

## [Redirecting from a View](https://www.ruby-forum.com/t/redirecting-from-a-view/166942)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 6\
**Last updated:** [May 2, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/redirecting-from-a-view/166942 "2009-05-02T18:01:14Z")

</div>

I’d sure like to be able to insert a redirect\_to within a rescue clause of a view. Anyone have any ideas how I might be able to do that? Thanks for any input. ... doug

---

## [Alias not working on 0.7.35](https://www.ruby-forum.com/t/alias-not-working-on-0-7-35/164325)

<div class="topic-metadata">

**Author:** [@Glen\_L](https://www.ruby-forum.com/u/Glen_L)\
**Replies:** 6\
**Last updated:** [April 3, 2009, 8:06am UTC](https://www.ruby-forum.com/t/alias-not-working-on-0-7-35/164325 "2009-04-03T08:06:22Z")

</div>

I tried to put this configuration on my nginx.conf location /default/ { alias /home/myhome/content/; } location ~ \\.flv$ { flv; } But it doesn’t work. When opening a FLV files, it always p…

---

## [InstantRails and new gems](https://www.ruby-forum.com/t/instantrails-and-new-gems/163610)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 6\
**Last updated:** [March 27, 2009, 1:35am UTC](https://www.ruby-forum.com/t/instantrails-and-new-gems/163610 "2009-03-27T01:35:32Z")

</div>

Folks, I’m not sure this is the best place to ask the following question, but someone might still know the answer. I currently can’t install anything on this computer (hence no ruby interpreter), I thought about gett…

---

## [Count array keys possible?](https://www.ruby-forum.com/t/count-array-keys-possible/196900)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 6\
**Last updated:** [February 25, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/count-array-keys-possible/196900 "2009-02-25T18:09:01Z")

</div>

Hi, newbie question(i guess) a = Bookings.find(:all, :conditions =\> \[3.days.ago\]) a = \[id : 1, departure : ‘AMS’, arrival =\> ‘NY’\],\[id : 2, departure : ‘AMS’, arrival =\> ‘BCN’\],\[id : 3, departure : ‘AMS’, arrival =\> …

---

## [Unable to set the replay-to in ActionMailer](https://www.ruby-forum.com/t/unable-to-set-the-replay-to-in-actionmailer/161160)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [February 24, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/unable-to-set-the-replay-to-in-actionmailer/161160 "2009-02-24T22:01:09Z")

</div>

Hi, Users can contact me through a form that sends emails through ActionMailer, the problem is that I can’t set “reply\_to”, and the “from” is actually set to my account on the server which sends the email, so I have …

---

## [Bug or not a bug? array\*=int](https://www.ruby-forum.com/t/bug-or-not-a-bug-array-int/152059)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 6\
**Last updated:** [October 30, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/bug-or-not-a-bug-array-int/152059 "2008-10-30T13:23:50Z")

</div>

So I’m wondering, is this a bug, or not a bug, or a type-o in the docs? According to class Array - RDoc Documentation array\*int “\[R\]eturns a new array built by concatenating the int copies of self.” Copies should be…

---

## [Update \_attribtutes fails to update, please help!](https://www.ruby-forum.com/t/update-attribtutes-fails-to-update-please-help/151237)

<div class="topic-metadata">

**Author:** [@rvruby](https://www.ruby-forum.com/u/rvruby)\
**Replies:** 6\
**Last updated:** [October 18, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/update-attribtutes-fails-to-update-please-help/151237 "2008-10-18T22:36:08Z")

</div>

I am trying to update a leave but the update does not work. Please let me know where I am making the mistake.(Looked in to the log, id in the update SQL statment shows NULL) View Editing Leaves \<% form\_for :leaves, @…

---

## [Ruby on rails newbie please help cgi problem](https://www.ruby-forum.com/t/ruby-on-rails-newbie-please-help-cgi-problem/150828)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 6\
**Last updated:** [October 16, 2008, 2:50am UTC](https://www.ruby-forum.com/t/ruby-on-rails-newbie-please-help-cgi-problem/150828 "2008-10-16T02:50:53Z")

</div>

Hi Just wondering I installed rails but cant seem to get any CGI scripts running i created a directory in the railsproject/public directory called cgi-bin which I gave Options +ExecCGI. Furthermore, I cant get any .rh…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/148398)

<div class="topic-metadata">

**Author:** [@Manuel\_GonzSSSSlez\_S](https://www.ruby-forum.com/u/Manuel_GonzSSSSlez_S)\
**Replies:** 6\
**Last updated:** [September 12, 2008, 6:36pm UTC](https://www.ruby-forum.com/t/no-subject/148398 "2008-09-12T18:36:31Z")

</div>

tlf:615167909 body:ping mort test ping con espacios

---

## [Complicated class initialization/instantiation problem](https://www.ruby-forum.com/t/complicated-class-initialization-instantiation-problem/143189)

<div class="topic-metadata">

**Author:** [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Replies:** 6\
**Last updated:** [July 16, 2008, 1:43pm UTC](https://www.ruby-forum.com/t/complicated-class-initialization-instantiation-problem/143189 "2008-07-16T13:43:51Z")

</div>

I’ve been trying to crack this nut on my own for the past week or so, but can’t get a solution that doesn’t suck. I’d appreciate any assistance that could be tossed my way by some of the more expert Ruby users. The …

---

## [Why the class variable doesn't work correctly?](https://www.ruby-forum.com/t/why-the-class-variable-doesnt-work-correctly/135618)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 24, 2008, 6:32am UTC](https://www.ruby-forum.com/t/why-the-class-variable-doesnt-work-correctly/135618 "2008-04-24T06:32:44Z")

</div>

Hi there, I am new in Ruby. I got a question, maybe it’s stupid. There is controller named ‘home’, and a action named ‘test’ existed. And I defined a class variable named ‘@@total’ looks like this: class HomeControl…

---

## [Ruby on Crack](https://www.ruby-forum.com/t/ruby-on-crack/133549)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 6\
**Last updated:** [April 2, 2008, 1:33am UTC](https://www.ruby-forum.com/t/ruby-on-crack/133549 "2008-04-02T01:33:38Z")

</div>

After several months of keeping it under wraps, I’m happy to officially announce my own web framework to the world. It’s called Ruby on Crack and will be released by RailsConf 2008. The name of the framework was chose…

---

## [Avvio di ruby in automatico](https://www.ruby-forum.com/t/avvio-di-ruby-in-automatico/131553)

<div class="topic-metadata">

**Author:** [@globalace](https://www.ruby-forum.com/u/globalace)\
**Replies:** 6\
**Last updated:** [March 12, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/avvio-di-ruby-in-automatico/131553 "2008-03-12T23:53:11Z")

</div>

Salve avevo aperto un post precedentemente(Sessione e running ruby) ma mi sono trovato alcune risposte inerenti ad un’altra discussione (Builder)!! Pertanto riformulo la domanda : Vorrei che ogni volta che riparte il…

---

## [Sharing specs in a subclass](https://www.ruby-forum.com/t/sharing-specs-in-a-subclass/126891)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 6\
**Last updated:** [January 24, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/sharing-specs-in-a-subclass/126891 "2008-01-24T16:26:00Z")

</div>

Hi I’ve spec’d a class and they pass. Now I’d like to assure that any subclass of this class also passes the same specs. Any suggestions for a clever way to handle this? I’d prefer to keep the existing specs as is (…

---

## [Rdoc on c and cpp files](https://www.ruby-forum.com/t/rdoc-on-c-and-cpp-files/103567)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 6\
**Last updated:** [May 8, 2007, 2:16am UTC](https://www.ruby-forum.com/t/rdoc-on-c-and-cpp-files/103567 "2007-05-08T02:16:30Z")

</div>

Can I use rdoc to generate documentation for c and C++ sources? If so, how do I mark the comments? /\* ??? \*/ void main() { … }

---

## [ZenTest/autotest - Problem with controller modules?](https://www.ruby-forum.com/t/zentest-autotest-problem-with-controller-modules/71583)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 6\
**Last updated:** [October 11, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/zentest-autotest-problem-with-controller-modules/71583 "2006-10-11T20:52:34Z")

</div>

Using rake, my tests all passed. And using autotest they all passed, until I implemented this test: def test\_vote count = Item.find(1).vote\_count get :vote, :id=\>1, :vote=\>5 @item = Item.find(1) assert\_equal @item.…

---

## [Threads and system calls](https://www.ruby-forum.com/t/threads-and-system-calls/101566)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 6\
**Last updated:** [August 6, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/threads-and-system-calls/101566 "2006-08-06T14:08:22Z")

</div>

I’m curious how ruby threads would do for a threaded network server. Will reading/writing sockets in one thread block other threads? In this application clients connect to the server via ssl and a simple line protoco…

---

## [What is the scope of this object](https://www.ruby-forum.com/t/what-is-the-scope-of-this-object/100585)

<div class="topic-metadata">

**Author:** [@SchSSS\_le\_Daniel](https://www.ruby-forum.com/u/SchSSS_le_Daniel)\
**Replies:** 6\
**Last updated:** [July 31, 2006, 1:15am UTC](https://www.ruby-forum.com/t/what-is-the-scope-of-this-object/100585 "2006-07-31T01:15:57Z")

</div>

Hi all, irb(main):001:0\> irb(main):002:0\* class A irb(main):003:1\> def secret;“you found me”;end irb(main):004:1\> end =\> nil irb(main):005:0\> class BlackHole irb(main):006:1\> a=A.new irb(main):007:1\> end =\> #\<A:…

---

## [Scaffold.css](https://www.ruby-forum.com/t/scaffold-css/94024)

<div class="topic-metadata">

**Author:** [@newbie](https://www.ruby-forum.com/u/newbie)\
**Replies:** 6\
**Last updated:** [April 18, 2006, 9:47am UTC](https://www.ruby-forum.com/t/scaffold-css/94024 "2006-04-18T09:47:21Z")

</div>

Hi there, I have been working on Rails applications for sometime and lately trying my hands on beautification of the same. Now the problem that I am facing in here is whatever design or layout I try to apply to a par…

---

## [Oracle Problem. Maybe driver](https://www.ruby-forum.com/t/oracle-problem-maybe-driver/56824)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 6\
**Last updated:** [April 7, 2006, 6:21am UTC](https://www.ruby-forum.com/t/oracle-problem-maybe-driver/56824 "2006-04-07T06:21:22Z")

</div>

EVerything runs ok on my local machine but when i copy my app to our solaris server everything is fine until i try updating/inserting something into the DB. This is the error message : wrong number of arguments (1 fo…

---

## [Spawning](https://www.ruby-forum.com/t/spawning/71482)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 6\
**Last updated:** [December 18, 2005, 1:45pm UTC](https://www.ruby-forum.com/t/spawning/71482 "2005-12-18T13:45:39Z")

</div>

Hi all, My umenu program has a utility called ufork.pl, whose job it is to run an X program in the background in such a way that even if the process that ran it is killed, the X program continues to live. I want to t…

---

## [Object#to\_b](https://www.ruby-forum.com/t/object-to-b/67427)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 6\
**Last updated:** [November 17, 2005, 6:09pm UTC](https://www.ruby-forum.com/t/object-to-b/67427 "2005-11-17T18:09:24Z")

</div>

Currently, as far as I know, if' andunless’ merely check if an object is of either types NilClass or FalseClass. This seems to contradict the duck-typing paradigm. I propose that we implement a method Object#to\_b that…

---

## [Newcomer in the GNU Radio World](https://www.ruby-forum.com/t/newcomer-in-the-gnu-radio-world/252814)

<div class="topic-metadata">

**Author:** [@upt1000](https://www.ruby-forum.com/u/upt1000)\
**Replies:** 0\
**Last updated:** [July 31, 2019, 2:21pm UTC](https://www.ruby-forum.com/t/newcomer-in-the-gnu-radio-world/252814 "2019-07-31T14:21:53Z")

</div>

Hello, I am a newbie in the GNU Radio. I use Windows 10 as an operating system and I have downloaded the GNU Radio Companion application, and I also have an RTL-SDR antenna and dongle that can be connected into a USB por…

---

## [Are there plans for a WIN64OLE library?](https://www.ruby-forum.com/t/are-there-plans-for-a-win64ole-library/243441)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [October 31, 2015, 8:26am UTC](https://www.ruby-forum.com/t/are-there-plans-for-a-win64ole-library/243441 "2015-10-31T08:26:44Z")

</div>

WIN32OLE for use with MS OFFICE products is great but it seems there are a lot of posts on the web about issues with it when using the 64bit version of OFFICE (and/or 64bit Windows). I do not yet have 64bit OFFICE but…

---

## [Number format helpers - standalone?](https://www.ruby-forum.com/t/number-format-helpers-standalone/205365)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [April 5, 2011, 10:21am UTC](https://www.ruby-forum.com/t/number-format-helpers-standalone/205365 "2011-04-05T10:21:45Z")

</div>

Hey, just a question out of interest: I recently created a sinatra project and used ruby-i18n in it. I noticed that there are yaml files for date formats (and also numbers) in the rails-i18n project. They worked out …

---

## [Meta is not a plural of metum](https://www.ruby-forum.com/t/meta-is-not-a-plural-of-metum/47749)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 0\
**Last updated:** [November 13, 2005, 3:56pm UTC](https://www.ruby-forum.com/t/meta-is-not-a-plural-of-metum/47749 "2005-11-13T15:56:49Z")

</div>

although data is a plural of datum but Rails is insisting that it is… as usage of “meta” to refer to ancilliary information is fairly common, I’m sure others are going to run into it Thomas

---

## [Upstream least\_conn behavior irregularity](https://www.ruby-forum.com/t/upstream-least-conn-behavior-irregularity/227604)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 5\
**Last updated:** [March 21, 2013, 9:02pm UTC](https://www.ruby-forum.com/t/upstream-least-conn-behavior-irregularity/227604 "2013-03-21T21:02:19Z")

</div>

Was investigating some issues today when we noticed that least\_conn wasn’t behaving as expected. upstream backend { least\_conn; server unix:/tmp/sock-1.sock; server unix:/tmp/sock-2.sock; server unix:/tmp/sock-3.s…

---

## [Security fix CVE-2012-5664 exists in rails 2.3.15](https://www.ruby-forum.com/t/security-fix-cve-2012-5664-exists-in-rails-2-3-15/226891)

<div class="topic-metadata">

**Author:** [@Ariel\_Tal](https://www.ruby-forum.com/u/Ariel_Tal)\
**Replies:** 5\
**Last updated:** [February 25, 2013, 2:39pm UTC](https://www.ruby-forum.com/t/security-fix-cve-2012-5664-exists-in-rails-2-3-15/226891 "2013-02-25T14:39:16Z")

</div>

Hello, I was looking to migrate the patch described in this linkhttps://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/DCNTNp\_qjFM ( Redirecting to Google Groups) to the rails 2.3 branch, but when …

---

## [Newbie: I just want to exclude two attributes when I call update\_attributes](https://www.ruby-forum.com/t/newbie-i-just-want-to-exclude-two-attributes-when-i-call-update-attributes/225621)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [January 21, 2013, 1:17am UTC](https://www.ruby-forum.com/t/newbie-i-just-want-to-exclude-two-attributes-when-i-call-update-attributes/225621 "2013-01-21T01:17:23Z")

</div>

I have two virtual attributes in my model. Let’s call them “hours\_worked” and “minutes\_worked”. I use them to calculate “work\_time”, which is an integer I store – it’s the total minutes worked (e.g. 3.5 hours is 210)…

---

## [How to learn of decimation rate in general\_work()?](https://www.ruby-forum.com/t/how-to-learn-of-decimation-rate-in-general-work/215932)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [February 9, 2012, 1:14am UTC](https://www.ruby-forum.com/t/how-to-learn-of-decimation-rate-in-general-work/215932 "2012-02-09T01:14:10Z")

</div>

I am using stream tags to get the timestamp of its corresponding sample in general\_work(). Now, if I want to calculate the time of an arbitrary sample in the incoming sample stream I need to know the decimation rate. …

---

## [Unable to launch a application with mysql](https://www.ruby-forum.com/t/unable-to-launch-a-application-with-mysql/212956)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 19, 2011, 3:27am UTC](https://www.ruby-forum.com/t/unable-to-launch-a-application-with-mysql/212956 "2011-10-19T03:27:30Z")

</div>

I am new in ruby development and in the first lines, shit happens :smiley: Normaly we pass trhougt the “Hello World”,but. See i typed this lines to create and run my first project having a mysql server installed on my…

---

## [Can't find web page](https://www.ruby-forum.com/t/cant-find-web-page/208986)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [July 1, 2011, 8:51pm UTC](https://www.ruby-forum.com/t/cant-find-web-page/208986 "2011-07-01T20:51:29Z")

</div>

I am trying to find http://gnuradio.org/redmine/wiki/1/ubuntuInstall Can anyone help? Thanks, Frank

---

## [Switching between Rails 3 and Rails 2](https://www.ruby-forum.com/t/switching-between-rails-3-and-rails-2/186304)

<div class="topic-metadata">

**Author:** [@smarter](https://www.ruby-forum.com/u/smarter)\
**Replies:** 5\
**Last updated:** [April 9, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/switching-between-rails-3-and-rails-2/186304 "2010-04-09T17:16:44Z")

</div>

Hi there: Any docs that show best ways (preferably on Mac) to switch between Rails 3 and Rails2…that is Upgrade and Downgrade both?

---

## [Define a string as a Model object](https://www.ruby-forum.com/t/define-a-string-as-a-model-object/182984)

<div class="topic-metadata">

**Author:** [@Frank\_in\_Tennessee](https://www.ruby-forum.com/u/Frank_in_Tennessee)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/define-a-string-as-a-model-object/182984 "2010-02-05T23:22:54Z")

</div>

Good morning, I’m trying to dynamically define models. This method #1 works: model\_name = User @Model = model\_name @Model.find(params\[:id\]).name This method #2 doesn’t: model\_name = “User” @Model = model\_name @M…

---

## [Background on why Ruby doesn't support ++](https://www.ruby-forum.com/t/background-on-why-ruby-doesnt-support/173677)

<div class="topic-metadata">

**Author:** [@b1gtuna](https://www.ruby-forum.com/u/b1gtuna)\
**Replies:** 5\
**Last updated:** [August 13, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/background-on-why-ruby-doesnt-support/173677 "2009-08-13T16:13:26Z")

</div>

Hi All, I’m a big Ruby fan and I’m not trying to complain. I’m just curious as to why Ruby doesn’t support the ++ or – operators. Is there some syntactical ambiguity that’s associated with it or something. Anyone kn…

---

## [Qtruby overrides "to\_s" depending on user's LOCALES](https://www.ruby-forum.com/t/qtruby-overrides-to-s-depending-on-users-locales/173097)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [August 2, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/qtruby-overrides-to-s-depending-on-users-locales/173097 "2009-08-02T17:07:11Z")

</div>

Hi, is it an appropiate list for asking about QtRuby? Note the following issue: ~# export LANG=es\_ES.UTF-8 ~# irb1.8 irb\> require “Qt4” irb\> num = 1.1 irb\> puts num 1.1 irb\> app = Qt::Application.new(ARGV) #\<Qt…

---

## [Problem understanding scaffolds](https://www.ruby-forum.com/t/problem-understanding-scaffolds/172691)

<div class="topic-metadata">

**Author:** [@iggybaseball](https://www.ruby-forum.com/u/iggybaseball)\
**Replies:** 5\
**Last updated:** [July 26, 2009, 6:43pm UTC](https://www.ruby-forum.com/t/problem-understanding-scaffolds/172691 "2009-07-26T18:43:44Z")

</div>

Hey everyone, I am new to ROR. I have been reading “Begininng Ruby on Rails” by Steven Holznewr and “Ruby on Rails for Dummies” by Barry B… I have been going through this a lot slower than I would like, because many o…

---

## [Analizzazione delle query eseguite](https://www.ruby-forum.com/t/analizzazione-delle-query-eseguite/171447)

<div class="topic-metadata">

**Author:** [@dbozz](https://www.ruby-forum.com/u/dbozz)\
**Replies:** 5\
**Last updated:** [July 3, 2009, 11:05am UTC](https://www.ruby-forum.com/t/analizzazione-delle-query-eseguite/171447 "2009-07-03T11:05:13Z")

</div>

Tutte le query eseguite dalla applicazione rubyonrail vengono memorizzate nei rispettivi file log (development, production …) E’ possibile salvare tali dati su database, o meglio salvare le query eseguite da ogni azio…

---

## ["10,000" -\> 10000](https://www.ruby-forum.com/t/10-000-10000/170193)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 5\
**Last updated:** [June 14, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/10-000-10000/170193 "2009-06-14T23:47:44Z")

</div>

Rubies: Besides .gsub(’,’, ‘’).to\_i, what’s a good way to un-delimit a big number? Ideally, it should be the reverse of Rails’s number\_with\_delimiter…

---

## [Sending vars from Flash to Rails - how to use auth\_token](https://www.ruby-forum.com/t/sending-vars-from-flash-to-rails-how-to-use-auth-token/168366)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 20, 2009, 8:47pm UTC](https://www.ruby-forum.com/t/sending-vars-from-flash-to-rails-how-to-use-auth-token/168366 "2009-05-20T20:47:45Z")

</div>

OK I finally am able to get a filereference uploader to send files to rails from Flash. I had to turn the auth\_token off using: skip\_before\_filter :verify\_authenticity\_token, :only =\> ‘upload\_photo’ But, for security …

---

## [Find :all using :group](https://www.ruby-forum.com/t/find-all-using-group/163646)

<div class="topic-metadata">

**Author:** [@brazov](https://www.ruby-forum.com/u/brazov)\
**Replies:** 5\
**Last updated:** [March 23, 2009, 11:26pm UTC](https://www.ruby-forum.com/t/find-all-using-group/163646 "2009-03-23T23:26:49Z")

</div>

hello, I need to group Users depending on their operating systems field “os”, so I tried User.find(:all, :group =\> :os) however, the result is an array having only one user for each os group. I’d like to have ALL th…

---

## [Validate not occurring transactionally](https://www.ruby-forum.com/t/validate-not-occurring-transactionally/156682)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 1, 2009, 10:01am UTC](https://www.ruby-forum.com/t/validate-not-occurring-transactionally/156682 "2009-01-01T10:01:30Z")

</div>

I’m running into a strange problem with transactions. I am seeing rare duplicate entries in the DB that should be prevented by my validations. Here is some sample code: class Review \< ActiveRecord::Base has\_one :me…

---

## [Unable to install old gems](https://www.ruby-forum.com/t/unable-to-install-old-gems/149700)

<div class="topic-metadata">

**Author:** [@mitkok](https://www.ruby-forum.com/u/mitkok)\
**Replies:** 5\
**Last updated:** [November 28, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/unable-to-install-old-gems/149700 "2008-11-28T23:52:17Z")

</div>

Hi, guys. Today I preinstalled Mac OS X and want to get rid of the old rails gems, but it gives me an error : \[quote\]bash-3.2# gem uninstall activesupport ERROR: While executing gem … (Gem::InstallError) Unknown ge…

---

## ['$' placeholder naming can confuse your runner](https://www.ruby-forum.com/t/placeholder-naming-can-confuse-your-runner/143236)

<div class="topic-metadata">

**Author:** [@paolodona](https://www.ruby-forum.com/u/paolodona)\
**Replies:** 5\
**Last updated:** [July 20, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/placeholder-naming-can-confuse-your-runner/143236 "2008-07-20T14:48:28Z")

</div>

Hi guys, I’m facing a strange behavior that smells like a bug. consider this scenario: Scenario: I’m cool Given that I am cool 4 times out of 7 and this step: Given(“that I am cool $n times out of $n\_total”) do |n, …

[Previous page](https://www.ruby-forum.com/top.md?page=1179&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1181&per_page=50)
