# Top

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

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

---

## [Instance and Related Class Methods](https://www.ruby-forum.com/t/instance-and-related-class-methods/65043)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 9:24pm UTC](https://www.ruby-forum.com/t/instance-and-related-class-methods/65043 "2006-08-15T21:24:59Z")

</div>

I have a class with a lot of instance methods which are related to class methods from within the same class. Example: class A def initialize(start\_date, end\_date) @start\_date, @end\_date = start\_date, end\_date end d…

---

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

<div class="topic-metadata">

**Author:** [@shweta](https://www.ruby-forum.com/u/shweta)\
**Replies:** 3\
**Last updated:** [June 27, 2006, 2:52pm UTC](https://www.ruby-forum.com/t/problem/96210 "2006-06-27T14:52:43Z")

</div>

Dear friends, i while working on ruby on rails … i have created form and it shows , SHOW, DELETES EDIt but when i click on that it is howing error “Couldn’t find TblAdgroup without an ID”… pls help me out shweta

---

## [Ruby don't surf](https://www.ruby-forum.com/t/ruby-dont-surf/63134)

<div class="topic-metadata">

**Author:** [@Charles\_FSMunat](https://www.ruby-forum.com/u/Charles_FSMunat)\
**Replies:** 3\
**Last updated:** [June 12, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/ruby-dont-surf/63134 "2006-06-12T18:48:59Z")

</div>

I’m getting the following error. I’ve looked all over, and have found mentions of it, but nothing I’ve tried has worked. (I’ve reinstalled everything several times now…) irb dyld: NSLinkModule() error dyld: Symbol n…

---

## [How I can check number?](https://www.ruby-forum.com/t/how-i-can-check-number/62193)

<div class="topic-metadata">

**Author:** [@ilyas](https://www.ruby-forum.com/u/ilyas)\
**Replies:** 3\
**Last updated:** [June 1, 2006, 1:30pm UTC](https://www.ruby-forum.com/t/how-i-can-check-number/62193 "2006-06-01T13:30:35Z")

</div>

How I can to check float value, with regular expression. Also need check a integer with float values.

---

## [MVC newbie question](https://www.ruby-forum.com/t/mvc-newbie-question/59911)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 3\
**Last updated:** [May 9, 2006, 12:41am UTC](https://www.ruby-forum.com/t/mvc-newbie-question/59911 "2006-05-09T00:41:20Z")

</div>

All, Is it possible for a view to call back to a controller method? If so, what is the syntax? === details I have a list view that I want to filter out inactive rows based on several table fields being zero, old, e…

---

## [@products\["car"\] is not being recognized in my tests! help](https://www.ruby-forum.com/t/products-car-is-not-being-recognized-in-my-tests-help/59576)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 3\
**Last updated:** [May 4, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/products-car-is-not-being-recognized-in-my-tests-help/59576 "2006-05-04T12:51:10Z")

</div>

@products\[“car”\] is not being recognized in my tests: class ProductsControllerTest \< Test::Unit::TestCase fixtures :products def test\_view\_product post :view\_product, :id=\>@products\[“car”\].id assert\_template “view\_p…

---

## [Ruby number crunching?](https://www.ruby-forum.com/t/ruby-number-crunching/59460)

<div class="topic-metadata">

**Author:** [@alex789](https://www.ruby-forum.com/u/alex789)\
**Replies:** 3\
**Last updated:** [May 3, 2006, 10:13pm UTC](https://www.ruby-forum.com/t/ruby-number-crunching/59460 "2006-05-03T22:13:49Z")

</div>

In my little Ruby and Rails learning experiment I’ve now come to the point where I need a library to do some number crunching, something similar to python Numeric or numarray. I head my browser to the mighty google …

---

## [Select boxe](https://www.ruby-forum.com/t/select-boxe/94208)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 3\
**Last updated:** [April 25, 2006, 5:40pm UTC](https://www.ruby-forum.com/t/select-boxe/94208 "2006-04-25T17:40:30Z")

</div>

yop, http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html ici j’ai vu qu’on pouvait gÃ©nÃ©rer des Ã©lÃ©ment d’un formulaire grÃ¢ce des mÃ©thodes. Apres quelque petite recherches j’ai trouvÃ© comment g…

---

## [Capistrano Issues](https://www.ruby-forum.com/t/capistrano-issues/57622)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 3\
**Last updated:** [April 12, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/capistrano-issues/57622 "2006-04-12T22:25:52Z")

</div>

Well I finnally bit the bullet and upgrade to capistrano and have run into several issues that I can’t seem to find a fix for. Switchtower worked perfectly but I can not get cap to work especially with the change to t…

---

## [Howto use rubyscript2exe to package some external applicatio](https://www.ruby-forum.com/t/howto-use-rubyscript2exe-to-package-some-external-applicatio/66321)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [February 13, 2006, 9:53am UTC](https://www.ruby-forum.com/t/howto-use-rubyscript2exe-to-package-some-external-applicatio/66321 "2006-02-13T09:53:39Z")

</div>

Dear all, I would like to distribute a Ruby application that calls an external application. So far, I give the potential user the opportunity to enter or change some Gnuplot code, which is sent to Gnuplot via Open…

---

## [Multiple items on 1 column](https://www.ruby-forum.com/t/multiple-items-on-1-column/60702)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 3\
**Last updated:** [January 10, 2006, 10:18am UTC](https://www.ruby-forum.com/t/multiple-items-on-1-column/60702 "2006-01-10T10:18:05Z")

</div>

Hello, I am trying to put multiple items in one column and can’t seem to get the syntax right. These are images and the image url’s are being pulled from a database. It seems that is the trigger to go onto the next…

---

## [How Can I solve this?](https://www.ruby-forum.com/t/how-can-i-solve-this/56159)

<div class="topic-metadata">

**Author:** [@Michael\_Mosser](https://www.ruby-forum.com/u/Michael_Mosser)\
**Replies:** 3\
**Last updated:** [January 4, 2006, 10:09pm UTC](https://www.ruby-forum.com/t/how-can-i-solve-this/56159 "2006-01-04T22:09:49Z")

</div>

this may be an easy question, but i am unable to solve it: i want to take the selected choice and process it in the controller: TEMPLATE: \<%=start\_form\_tag :action =\> ‘get\_article’ %\> \<%= options\_from\_collection\_for…

---

## [Another session question](https://www.ruby-forum.com/t/another-session-question/66608)

<div class="topic-metadata">

**Author:** [@Scott\_Phelps](https://www.ruby-forum.com/u/Scott_Phelps)\
**Replies:** 3\
**Last updated:** [December 15, 2005, 11:37pm UTC](https://www.ruby-forum.com/t/another-session-question/66608 "2005-12-15T23:37:06Z")

</div>

I want to give a user a form to create a new Product, but instead of persisting the product to the database I want to store it in a session first for category assignment, etc… (in other controllers) So when the user d…

---

## [To build GUI for Ruby](https://www.ruby-forum.com/t/to-build-gui-for-ruby/213355)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 2, 2011, 6:04am UTC](https://www.ruby-forum.com/t/to-build-gui-for-ruby/213355 "2011-11-02T06:04:00Z")

</div>

Please suggest me the best tool for building GUI for Ruby

---

## [Rails 3.1 authentication](https://www.ruby-forum.com/t/rails-3-1-authentication/212014)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 1, 2011, 4:35pm UTC](https://www.ruby-forum.com/t/rails-3-1-authentication/212014 "2011-10-01T16:35:11Z")

</div>

I have the rails 3.1 authentication set up, how do I get it to make sure I authenticate system wide?

---

## [User data in session or instance variable?](https://www.ruby-forum.com/t/user-data-in-session-or-instance-variable/209393)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 13, 2011, 5:19pm UTC](https://www.ruby-forum.com/t/user-data-in-session-or-instance-variable/209393 "2011-07-13T17:19:31Z")

</div>

Firstly I’m coming from a Java EE background and building up my Rails knowledge slowly in my (relatively limited!) free time, so apologies if this is rudimentary stuff. The common pattern for user sessions seems to be…

---

## [Newbie needs help](https://www.ruby-forum.com/t/newbie-needs-help/203602)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 23, 2011, 7:28pm UTC](https://www.ruby-forum.com/t/newbie-needs-help/203602 "2011-02-23T19:28:42Z")

</div>

Here are the basic instructions I was given from my teacher to complete a website… Create a web page (.html.erb extension) that displays the following: Current time and date obtained from the Time object. An image of…

---

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

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 8, 2011, 4:47am UTC](https://www.ruby-forum.com/t/no-subject/202828 "2011-02-08T04:47:40Z")

</div>

hi, i’m using solar server in my app, in my model class Resume \< ActiveRecord::Base require ‘rexml/document’ include REXML acts\_as\_solr :fields =\> \[:firstname, :lastname\] end but while reindexing ,having the follo…

---

## [First Gem -- What can I model after?](https://www.ruby-forum.com/t/first-gem-what-can-i-model-after/189913)

<div class="topic-metadata">

**Author:** [@ziggles](https://www.ruby-forum.com/u/ziggles)\
**Replies:** 4\
**Last updated:** [June 10, 2010, 5:50am UTC](https://www.ruby-forum.com/t/first-gem-what-can-i-model-after/189913 "2010-06-10T05:50:58Z")

</div>

Hi guys, I’m working to create my first gem which will be a super simple wrap of an API i find useful. I was wondering if someone could point me @ an existing gem that is considered to be structured/coded well? I’m …

---

## [Why can't I do a "to\_i?"](https://www.ruby-forum.com/t/why-cant-i-do-a-to-i/188084)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [May 5, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/why-cant-i-do-a-to-i/188084 "2010-05-05T15:29:53Z")

</div>

Hello, I keep getting an “undefined method \`to\_f’” for this simple script. Can someone help me? I’m interrogating jpeg graphics files and I need to log their widths and depths, in picas. Thanks a lot, Peter Dir.chd…

---

## [SQL query problem](https://www.ruby-forum.com/t/sql-query-problem/180351)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 4\
**Last updated:** [December 30, 2009, 2:46am UTC](https://www.ruby-forum.com/t/sql-query-problem/180351 "2009-12-30T02:46:12Z")

</div>

Please help me with finding a SQL select statement for the following problems. I have two classes: Site and Link Table Link has two columns: linking\_site\_id, and linked\_site\_id I would like to find all the links in t…

---

## [FileSet 0.1 Released](https://www.ruby-forum.com/t/fileset-0-1-released/180746)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 29, 2009, 10:37am UTC](https://www.ruby-forum.com/t/fileset-0-1-released/180746 "2009-12-29T10:37:02Z")

</div>

FileSet version 0.1 has been released! FileSet provides an API for accessing configuration and data files for your application, including the population of default values, and managing search paths. Written to enco…

---

## [Ruby & Physical Computing](https://www.ruby-forum.com/t/ruby-physical-computing/178894)

<div class="topic-metadata">

**Author:** [@omran\_n](https://www.ruby-forum.com/u/omran_n)\
**Replies:** 4\
**Last updated:** [November 27, 2009, 11:25am UTC](https://www.ruby-forum.com/t/ruby-physical-computing/178894 "2009-11-27T11:25:52Z")

</div>

Hello, I’ll keep this short(ish) and sweet. Can anyone give any advice on possible prototyping kits I can buy for my experiments that can be programmed using Ruby. So far I have found two ideal candidates. Both have …

---

## [Heart beat](https://www.ruby-forum.com/t/heart-beat/175143)

<div class="topic-metadata">

**Author:** [@ojaro](https://www.ruby-forum.com/u/ojaro)\
**Replies:** 4\
**Last updated:** [September 18, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/heart-beat/175143 "2009-09-18T21:10:27Z")

</div>

Hi all, Does anyone know how to implement heart beat when using Nginx for load balancing between web servers? Ideally I would like it to work, so that it checks the content for a web page and if that is not correct t…

---

## [Multiple projects - Apache](https://www.ruby-forum.com/t/multiple-projects-apache/173594)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 4\
**Last updated:** [August 12, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/multiple-projects-apache/173594 "2009-08-12T19:46:04Z")

</div>

Hi, I’m trying to configure Apache so I can create multiple rails projects without modifying httpd.conf everytime. Right now, I have one project setup and a apache virtualhost that points to it. Here is how I have it …

---

## [Weird WX scope problem](https://www.ruby-forum.com/t/weird-wx-scope-problem/149108)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 4\
**Last updated:** [September 22, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/weird-wx-scope-problem/149108 "2008-09-22T13:09:30Z")

</div>

Running the current SVN I’m having a problem with apps that display multiple scopes (usrp\_nbfm\_rcv.py) for example. What happens is that the application will update only a single scope at a time. One scope updates fo…

---

## [Paginate conditions](https://www.ruby-forum.com/t/paginate-conditions/144773)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [August 1, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/paginate-conditions/144773 "2008-08-01T23:43:05Z")

</div>

paginate :per\_page =\> 15, :page =\> page, :conditions =\> \[‘tags like ?’, “%#{search}%”\], :order =\> ‘created\_at DESC’ Hi, just wondering how I would change the conditions to include an extra like? I want to do: ‘tag…

---

## [Problem using attachment\_fu](https://www.ruby-forum.com/t/problem-using-attachment-fu/141298)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 4\
**Last updated:** [June 25, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/problem-using-attachment-fu/141298 "2008-06-25T12:08:53Z")

</div>

Hi, I use attachment\_fu plugin to upload a remote file to file system. It works fine with IE, If we use fire fox its coming out to login page throwing a exception “Filter chain halted as \[#\<ActionController::Filter…

---

## [How to Print A Document Only](https://www.ruby-forum.com/t/how-to-print-a-document-only/140398)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/how-to-print-a-document-only/140398 "2008-06-24T13:36:05Z")

</div>

I am using PDF::writer to convert text to pdf files for printing. What I would like to do is to be able to print it without allowing the user to be able to read the files in pdf. What options do I have ? If I send the…

---

## [Puts "\\\\".gsub("\\\\", "\\\\\\\\")](https://www.ruby-forum.com/t/puts-gsub/135710)

<div class="topic-metadata">

**Author:** [@martinus](https://www.ruby-forum.com/u/martinus)\
**Replies:** 4\
**Last updated:** [April 25, 2008, 5:15am UTC](https://www.ruby-forum.com/t/puts-gsub/135710 "2008-04-25T05:15:50Z")

</div>

Hello, I have a mini-ruby quiz. Guess what this line of code writes to the console, then try it for yourself: puts “\\”.gsub("\\", “\\\\”) Why is that so? Martin

---

## [(Yet another) Noob design question](https://www.ruby-forum.com/t/yet-another-noob-design-question/134396)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 4\
**Last updated:** [April 10, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/yet-another-noob-design-question/134396 "2008-04-10T15:11:07Z")

</div>

Hello All I am unsure how to handle the following in terms of the “Rails way”: The design requirement: A user may create a “goal” for themselves or (if they have sufficient permissions) they may create a goal for some…

---

## [Ruby performance gains on SPARC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 4\
**Last updated:** [March 15, 2008, 8:19am UTC](https://www.ruby-forum.com/t/ruby-performance-gains-on-sparc/131825 "2008-03-15T08:19:51Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B http://blogs.sun.com/d/entry/ruby\_performance\_gains\_on\_sparc e$B$K$h$k$He(BSPARCe$B$G$Oe(BEXEC\_TAGe$B$NA0$Ne(BFLUSH\_REGISTER\_WINDOWSe$B$OITMWe(B e$B$N$h$&$G$9!#$G!“$3$l$r\<B:\]$K9T$C$F$…

---

## [Leopard rails 2.0 hell](https://www.ruby-forum.com/t/leopard-rails-2-0-hell/123301)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 4\
**Last updated:** [December 17, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/leopard-rails-2-0-hell/123301 "2007-12-17T17:08:07Z")

</div>

I did something very silly tonight that I am now paying dearly for!! I updated my installation of rails on OS 10.5 leopard and broke the entire rails stack on this machine. Thank god I have a laptop which I hadn’t upg…

---

## [Ruby regexp Match](https://www.ruby-forum.com/t/ruby-regexp-match/122041)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 4\
**Last updated:** [December 4, 2007, 4:31am UTC](https://www.ruby-forum.com/t/ruby-regexp-match/122041 "2007-12-04T04:31:03Z")

</div>

I am trying to convert some old Perl scripts to Ruby and am stuck at a spot where my Perl script is doing a regular expression match on some text pulled from a webpage. In Perl, I was able to grab the text I wanted by…

---

## [Method added in plugin is not immediately avail.?](https://www.ruby-forum.com/t/method-added-in-plugin-is-not-immediately-avail/121291)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 26, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/method-added-in-plugin-is-not-immediately-avail/121291 "2007-11-26T23:20:04Z")

</div>

Hi all I have the following controller: class MemberController \< ApplicationController performs\_authentication :user\_model\_class =\> Member performs\_scaffolding :only =\> \[:show, :edit\], :model\_id =\> user.id … end T…

---

## [DEPRECATION WARNING -- fine, but I'm not doing that](https://www.ruby-forum.com/t/deprecation-warning-fine-but-im-not-doing-that/111460)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 4\
**Last updated:** [August 15, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/deprecation-warning-fine-but-im-not-doing-that/111460 "2007-08-15T12:50:13Z")

</div>

When I run my functional tests, I get (pasted from cygwin): Started .E…DEPRECATION WARNING: @flash is deprecated! Call flash.\[\] instead of @flash.\[ \]. Args: \[:note\] See Ruby on Rails — A web-app framework that inclu…

---

## [PRoblem with Mongrel](https://www.ruby-forum.com/t/problem-with-mongrel/111619)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 11:21am UTC](https://www.ruby-forum.com/t/problem-with-mongrel/111619 "2007-08-09T11:21:16Z")

</div>

Hi, I have a strange problem. I have a mongrel cluster and when i am trying to access my url, then it s failing 1 out of 10 times. Then we tried it by accessing the url by specifying the mongrel id and we found that…

---

## [Method(std).call and send(sth)](https://www.ruby-forum.com/t/method-std-call-and-send-sth/111171)

<div class="topic-metadata">

**Author:** [@bartek](https://www.ruby-forum.com/u/bartek)\
**Replies:** 4\
**Last updated:** [August 4, 2007, 3:32am UTC](https://www.ruby-forum.com/t/method-std-call-and-send-sth/111171 "2007-08-04T03:32:31Z")

</div>

I’ve got two Models. A and B. Model A has an attribute “name”. Model B has an attribute “title”. I can get the name by a.method(:name).call I can NOT get the title by b.method(:title).call. Send works in both cases (…

---

## [Find condition calculation](https://www.ruby-forum.com/t/find-condition-calculation/109198)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 4\
**Last updated:** [July 13, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/find-condition-calculation/109198 "2007-07-13T13:34:13Z")

</div>

I’m trying to do a find with a particular condition. I have a runs table with a n\_passed\_steps column and an n\_failed\_steps column. I’m trying to do a find, to find all records, limited to the last 10, ordered by des…

---

## [Transaction question](https://www.ruby-forum.com/t/transaction-question/78140)

<div class="topic-metadata">

**Author:** [@jeff\_cole](https://www.ruby-forum.com/u/jeff_cole)\
**Replies:** 4\
**Last updated:** [April 19, 2007, 8:59am UTC](https://www.ruby-forum.com/t/transaction-question/78140 "2007-04-19T08:59:29Z")

</div>

How does one set up a transaction for multiple models? For example, how do you wrap the entire logic below in one transaction? #begin transaction for bar in foo.bars bar.something += 1 bar.save end foo.something …

---

## [Small file upload](https://www.ruby-forum.com/t/small-file-upload/80909)

<div class="topic-metadata">

**Author:** [@dafydd](https://www.ruby-forum.com/u/dafydd)\
**Replies:** 4\
**Last updated:** [January 2, 2007, 2:02am UTC](https://www.ruby-forum.com/t/small-file-upload/80909 "2007-01-02T02:02:22Z")

</div>

Hi folks Searching the list, I notice this problem was introduced a while back but there was no reply. Anyhow, I’m now finding myself up against it: I’m trying to upload zip files and unzip them into a directory usin…

---

## [Benchmarking rails app](https://www.ruby-forum.com/t/benchmarking-rails-app/72225)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 4\
**Last updated:** [October 16, 2006, 7:51am UTC](https://www.ruby-forum.com/t/benchmarking-rails-app/72225 "2006-10-16T07:51:07Z")

</div>

I’ve been poking around at some benchmarking to see how my app is performing (mongrel cluster/pound). Currently, I’m using ab and httperf and collecting requests/second. I’m not convinced that I’m using realistic loa…

---

## [Need help with a simple IF/ELSE statement?](https://www.ruby-forum.com/t/need-help-with-a-simple-if-else-statement/72209)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [October 15, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/need-help-with-a-simple-if-else-statement/72209 "2006-10-15T19:16:51Z")

</div>

I’m using hivelogic’s email enkoder and need help with a simple if/else statement. If there is a value for participant.student.email I would like to create the hyperlink for the email address, if not I would just like…

---

## [Getting a list of possible actions from a controller](https://www.ruby-forum.com/t/getting-a-list-of-possible-actions-from-a-controller/70353)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [September 28, 2006, 7:22pm UTC](https://www.ruby-forum.com/t/getting-a-list-of-possible-actions-from-a-controller/70353 "2006-09-28T19:22:57Z")

</div>

I’m working on a role based authentication scheme. It defines roles, which are assigned to users. The roles are action-\>controller pairs, and if a user has a role containing an action/controller, they my access that p…

---

## [Does one-click install leave other installs intact?](https://www.ruby-forum.com/t/does-one-click-install-leave-other-installs-intact/101125)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 4\
**Last updated:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/does-one-click-install-leave-other-installs-intact/101125 "2006-08-03T14:23:29Z")

</div>

In the process of learning Ruby, so this is a newbie question… I used the one-click (windows) Ruby install to install Ruby 1.8.4 and afterwards I installed other Ruby classes such as OCI8 and Ruport. If I use the on…

---

## [Integer encoding challenge](https://www.ruby-forum.com/t/integer-encoding-challenge/98938)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [July 19, 2006, 7:27am UTC](https://www.ruby-forum.com/t/integer-encoding-challenge/98938 "2006-07-19T07:27:36Z")

</div>

Hey all, I need to come up with a way to encode an integer as a string so that it will sort correctly lexicographically. This is pretty easy when you have a fixed integer range but how do you do it with Ruby’s BigNums…

---

## [Two Date classes?](https://www.ruby-forum.com/t/two-date-classes/97787)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 4\
**Last updated:** [July 10, 2006, 11:50pm UTC](https://www.ruby-forum.com/t/two-date-classes/97787 "2006-07-10T23:50:45Z")

</div>

It seems that there is a Date class in the core library and the standard library. Is this correct? The following code core = Date.methods.sort require ‘date’ std = Date.methods.sort puts “methods in std Date that …

---

## [Newbie question on url friendliness](https://www.ruby-forum.com/t/newbie-question-on-url-friendliness/95554)

<div class="topic-metadata">

**Author:** [@kousen](https://www.ruby-forum.com/u/kousen)\
**Replies:** 4\
**Last updated:** [June 6, 2006, 1:27am UTC](https://www.ruby-forum.com/t/newbie-question-on-url-friendliness/95554 "2006-06-06T01:27:38Z")

</div>

If I wanted to use a friendly url, say, http://www.something.com/my-url, how would I go about doing that? I can’t define an action my-url, and I don’t want to clutter my routes up… Is there a way to do this?

---

## [Accessing overridden method](https://www.ruby-forum.com/t/accessing-overridden-method/55250)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 4\
**Last updated:** [March 19, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/accessing-overridden-method/55250 "2006-03-19T12:17:06Z")

</div>

I have two model classes: class Item \< ActiveRecord::Base belongs\_to :channel, :counter\_cache =\> true validates\_presence\_of :channel end class Channel \< ActiveRecord::Base has\_many :items, :dependent =\> true end I…

---

## [Too many components?](https://www.ruby-forum.com/t/too-many-components/54164)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 4\
**Last updated:** [February 28, 2006, 7:34am UTC](https://www.ruby-forum.com/t/too-many-components/54164 "2006-02-28T07:34:58Z")

</div>

okay. on /posts/show/13 i have show.rhtml, which does render\_component(:controller=\>‘comments’, :action=\>‘display\_comments’, :id=\>post.id) on comments/display\_comments i iterate through the comments and then, displ…

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

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