# Top

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

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

---

## [How do i define and access custom function in model](https://www.ruby-forum.com/t/how-do-i-define-and-access-custom-function-in-model/188452)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 3\
**Last updated:** [May 12, 2010, 10:54am UTC](https://www.ruby-forum.com/t/how-do-i-define-and-access-custom-function-in-model/188452 "2010-05-12T10:54:27Z")

</div>

i need to define a custom finction in model which is named as “count\_remaked\_users”. when i try to access that function from view (\< %=User.count\_remaked\_users%\>) i’m getting “undefined method” error. any clue for th…

---

## [Rails form field to ask for directory to download to](https://www.ruby-forum.com/t/rails-form-field-to-ask-for-directory-to-download-to/187163)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 3\
**Last updated:** [April 19, 2010, 1:04am UTC](https://www.ruby-forum.com/t/rails-form-field-to-ask-for-directory-to-download-to/187163 "2010-04-19T01:04:12Z")

</div>

Hi all, I need a way to ask a user to supply a directory on their computer (i.e. client) to which to download a series of files. So in other words, the user is asked: Please indicate directory to download to: … And …

---

## ["We're sorry, but something went wrong"](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong/186589)

<div class="topic-metadata">

**Author:** [@Kameron\_Hinton](https://www.ruby-forum.com/u/Kameron_Hinton)\
**Replies:** 3\
**Last updated:** [April 14, 2010, 6:21am UTC](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong/186589 "2010-04-14T06:21:52Z")

</div>

can anyone help with this??? /!\\ FAILSAFE /!\\ Thu Apr 08 16:58:27 -0700 2010 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in initialize' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:i…

---

## [Unitialized constant](https://www.ruby-forum.com/t/unitialized-constant/186117)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [March 31, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/unitialized-constant/186117 "2010-03-31T21:54:31Z")

</div>

I installed this plugin GitHub - loudpixel/highcharts-rails: A plugin for displaying Highcharts graphs in Rails and I put this code in my controller: def panels @ui\_panels = Highchart.pie({ :chart =\> { :renderTo =\> …

---

## [Input of DDC?](https://www.ruby-forum.com/t/input-of-ddc/182884)

<div class="topic-metadata">

**Author:** [@chandu](https://www.ruby-forum.com/u/chandu)\
**Replies:** 3\
**Last updated:** [February 4, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/input-of-ddc/182884 "2010-02-04T20:07:19Z")

</div>

What is the default input signal frequency of DDC of USRP(1). how I and Q are given to DDC?I Q to same DDC?I Q to two different DDC’s among 4 DDC’s?two ADC outputs to single DDC? how to give IF or only real signal to …

---

## [Regarding form\_for and fields-for content variable](https://www.ruby-forum.com/t/regarding-form-for-and-fields-for-content-variable/182317)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [January 26, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/regarding-form-for-and-fields-for-content-variable/182317 "2010-01-26T22:41:07Z")

</div>

I am trying to understand what I am working with when I deal with Rails forms\_for and fields\_for constructors. Given model has\_many associations belongs\_to dependency and dependency has\_many associations belongs\_to …

---

## [Send\_file errors out with nil.update](https://www.ruby-forum.com/t/send-file-errors-out-with-nil-update/181649)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 3\
**Last updated:** [January 15, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/send-file-errors-out-with-nil-update/181649 "2010-01-15T16:20:04Z")

</div>

Hey everyone, I’ve got a basic setup via an apache2 server, virtualhost ect. At the moment I’m just trying to use the send\_file function of rails (actionpack I believe?) but it continues to error out. Here is the bre…

---

## [Feezing mysql gem + unitiliazed constant MysqlCompat::Mysql](https://www.ruby-forum.com/t/feezing-mysql-gem-unitiliazed-constant-mysqlcompat-mysql/180199)

<div class="topic-metadata">

**Author:** [@renatojf](https://www.ruby-forum.com/u/renatojf)\
**Replies:** 3\
**Last updated:** [December 15, 2009, 1:16am UTC](https://www.ruby-forum.com/t/feezing-mysql-gem-unitiliazed-constant-mysqlcompat-mysql/180199 "2009-12-15T01:16:00Z")

</div>

I need to freeze the mysql gem inside my app, since it’s no longer bundled with rails. So, I installed the mysql 2.8.1 gem and got that “uninitialized constant MysqlCompat::MysqlRes” error when I’m trying to deploy my…

---

## [USRP2 firmware + cross compiled GNU Radio question](https://www.ruby-forum.com/t/usrp2-firmware-cross-compiled-gnu-radio-question/179577)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 3, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/usrp2-firmware-cross-compiled-gnu-radio-question/179577 "2009-12-03T22:55:01Z")

</div>

Hi, I’ve been working on cross compiling the latest stable GNU Radio release, 3.2.1, onto the TI Davinci DM6446 board using OpenEmbedded as my build environment and Angstrom as my Linux Distro. I’ve managed to cross …

---

## [How to control application on Windows](https://www.ruby-forum.com/t/how-to-control-application-on-windows/177032)

<div class="topic-metadata">

**Author:** [@ZWZWZW](https://www.ruby-forum.com/u/ZWZWZW)\
**Replies:** 3\
**Last updated:** [October 10, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/how-to-control-application-on-windows/177032 "2009-10-10T12:11:27Z")

</div>

Hi Gurus I have an application running on Windows XP. How do I or can I accomplish this or is it better to use python for such activities I like to be able to use ruby script to send mouse clicks at a certain locat…

---

## [Multiple ssl vhosts](https://www.ruby-forum.com/t/multiple-ssl-vhosts/176276)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 3\
**Last updated:** [September 28, 2009, 2:20pm UTC](https://www.ruby-forum.com/t/multiple-ssl-vhosts/176276 "2009-09-28T14:20:29Z")

</div>

Hi, I know SSL by itself won’t work with multiple vhosts on the same ip/port, but is there anything i can do to circumvert this? If not, and having to use multiple ssl ports, how can i make that as transparent to the…

---

## [String replace](https://www.ruby-forum.com/t/string-replace/174707)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/string-replace/174707 "2009-08-31T18:55:00Z")

</div>

I wondering if there is a string replace function. I have a string that looks something like: 2YP/P:\[CTYCODE\]B/\[W\_PHONE\]/F/\[W\_FAX\]/R/\[H\_PHONE\] and what I am looking to do is to replace the \[W\_PHONE\], for example, wit…

---

## [Default form name in form\_for](https://www.ruby-forum.com/t/default-form-name-in-form-for/169168)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 3\
**Last updated:** [May 30, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/default-form-name-in-form-for/169168 "2009-05-30T20:11:06Z")

</div>

Does anyone know the default name given to a form created with form\_for ? Thanks, JB

---

## [HABTM: AND on associated table records](https://www.ruby-forum.com/t/habtm-and-on-associated-table-records/167656)

<div class="topic-metadata">

**Author:** [@serpico](https://www.ruby-forum.com/u/serpico)\
**Replies:** 3\
**Last updated:** [May 11, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/habtm-and-on-associated-table-records/167656 "2009-05-11T17:52:03Z")

</div>

In my application i have the following models: Item - has\_and\_belongs\_to\_many :orders Order - has\_and\_belongs\_to\_many :items This is a basic setup for a small shopping app, I can successfully add/remove/edit a list o…

---

## [Need help converting SQL query to find or AR association](https://www.ruby-forum.com/t/need-help-converting-sql-query-to-find-or-ar-association/164218)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [March 30, 2009, 10:14am UTC](https://www.ruby-forum.com/t/need-help-converting-sql-query-to-find-or-ar-association/164218 "2009-03-30T10:14:14Z")

</div>

I have 3 models comments(user\_id, title) followings(user\_id, follower\_id) users(email) I need to find all comments made by people that a user is following, which in effect is this simple SQL query: select comments.…

---

## [How can I forward to different pages for different account](https://www.ruby-forum.com/t/how-can-i-forward-to-different-pages-for-different-account/163806)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [March 28, 2009, 4:32am UTC](https://www.ruby-forum.com/t/how-can-i-forward-to-different-pages-for-different-account/163806 "2009-03-28T04:32:00Z")

</div>

My web site has a login feature. What I want to do is to design different page for different account. But in an action, I couldn’t use redirect\_to more than one time. I am looking for a way like this: if account == “a…

---

## [How #{} works](https://www.ruby-forum.com/t/how-works/163584)

<div class="topic-metadata">

**Author:** [@zerohalo](https://www.ruby-forum.com/u/zerohalo)\
**Replies:** 3\
**Last updated:** [March 22, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/how-works/163584 "2009-03-22T20:01:14Z")

</div>

Can anyone explain this? a = \[“b”\] =\> \[“b”\] a == “b” =\> false “#{a}” == “b” =\> true Since a is an array, how come the last statement evaluates as true?

---

## [UG MÃ¼nchen: Vortragsvideos / Ra ilsMagazin.de](https://www.ruby-forum.com/t/ug-ma-nchen-vortragsvideos-ra-ilsmagazin-de/162041)

<div class="topic-metadata">

**Author:** [@roland](https://www.ruby-forum.com/u/roland)\
**Replies:** 0\
**Last updated:** [March 5, 2009, 7:01am UTC](https://www.ruby-forum.com/t/ug-ma-nchen-vortragsvideos-ra-ilsmagazin-de/162041 "2009-03-05T07:01:42Z")

</div>

Hallo! Vom Februar-Treffen der Münchner Ruby on Rails User Group (http://www.munich-on-rails.com/) bei Autoscout24 (Danke, Bernd & Team!) haben wir Videos von Vorträgen online gestellt (inkl. Slides): RSpec - Marco …

---

## [Newbie config not catching virtual host](https://www.ruby-forum.com/t/newbie-config-not-catching-virtual-host/161513)

<div class="topic-metadata">

**Author:** [@Nuno\_MagalhSSSSes](https://www.ruby-forum.com/u/Nuno_MagalhSSSSes)\
**Replies:** 3\
**Last updated:** [February 27, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/newbie-config-not-catching-virtual-host/161513 "2009-02-27T16:10:55Z")

</div>

Greetings, I’ve just set up a domain name and i can’t get nginx to parse to the correct subfolder. I think this is related to fastcgi, caused by an error between my chair and keyboard. I have /var/www/nginx-default/…

---

## [Picolena OSX](https://www.ruby-forum.com/t/picolena-osx/160473)

<div class="topic-metadata">

**Author:** [@tobinharris](https://www.ruby-forum.com/u/tobinharris)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/picolena-osx/160473 "2009-02-16T20:37:06Z")

</div>

Hi folks I’ve been trying for hours to get Picolena working on OSX 10.5, but no cigar. Picolena uses Ferret behind the scenes, but I get all sorts of errors, even when running with a single thread. I was wondering if…

---

## [How to create a file](https://www.ruby-forum.com/t/how-to-create-a-file/157566)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 1:42am UTC](https://www.ruby-forum.com/t/how-to-create-a-file/157566 "2009-01-16T01:42:04Z")

</div>

I use this code to write to a file: File.new(@FILE\_NAME,“w”). If the file name doesn’t exist, I will get “No such file” error. How can I create the file if it doesn’t exist? thanks.

---

## [Upgrade from 2.4 or move to WordPress](https://www.ruby-forum.com/t/upgrade-from-2-4-or-move-to-wordpress/156821)

<div class="topic-metadata">

**Author:** [@arvind\_s\_grover](https://www.ruby-forum.com/u/arvind_s_grover)\
**Replies:** 0\
**Last updated:** [January 3, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/upgrade-from-2-4-or-move-to-wordpress/156821 "2009-01-03T15:58:54Z")

</div>

I’ve got a Typo 2.4 blog running that I desperately need to upgrade, or chuck for WordPress. I am willing to pay someone to help, but really want to maintain all my articles, their URL’s, and the comments. Please cont…

---

## [\[JOBS\] Looking for a ROR Programmer](https://www.ruby-forum.com/t/jobs-looking-for-a-ror-programmer/155532)

<div class="topic-metadata">

**Author:** [@SEMG](https://www.ruby-forum.com/u/SEMG)\
**Replies:** 3\
**Last updated:** [December 14, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-a-ror-programmer/155532 "2008-12-14T15:05:13Z")

</div>

Sorry if this posted twice. I’m all new to this :slight\_smile: I am looking for a ROR Programmer to build a CMS. We are an entertainment/pop culture site and use the CMS for managing articles, creating and editing, im…

---

## [Order by scoring, pagination and AR conditions don't work together](https://www.ruby-forum.com/t/order-by-scoring-pagination-and-ar-conditions-dont-work-together/154846)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/order-by-scoring-pagination-and-ar-conditions-dont-work-together/154846 "2008-12-04T13:22:16Z")

</div>

Hi all I’m having a problem with aaf - i want to do a search and order the results by the ferret score. I also want to paginate the results (20 per page), and to complicate matters further i have an array of ‘allow…

---

## [$request\_time in logging](https://www.ruby-forum.com/t/request-time-in-logging/154624)

<div class="topic-metadata">

**Author:** [@Marlon\_de\_Boer](https://www.ruby-forum.com/u/Marlon_de_Boer)\
**Replies:** 3\
**Last updated:** [December 2, 2008, 11:01am UTC](https://www.ruby-forum.com/t/request-time-in-logging/154624 "2008-12-02T11:01:42Z")

</div>

Hi all, Does $request\_time includes the socket operations (accept(), read(), send() and close()) or only the local processing time? I’m curious because I wrote some rrdtool stats based on this log feature and seeing …

---

## [Error\_messages\_for question](https://www.ruby-forum.com/t/error-messages-for-question/151274)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/error-messages-for-question/151274 "2008-10-20T14:04:46Z")

</div>

Hi I got a question about error\_messages\_for helper method in rails. I read that keeping it in the view helps report validation failure. I have used as follows in checkout.rhtml: checkout.rhtml: \<%=error\_messages\_fo…

---

## [Help me to better understand modules](https://www.ruby-forum.com/t/help-me-to-better-understand-modules/150598)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 3\
**Last updated:** [October 11, 2008, 8:25am UTC](https://www.ruby-forum.com/t/help-me-to-better-understand-modules/150598 "2008-10-11T08:25:22Z")

</div>

Hello, I would like to use ruby modules for the first time. I understand theirs principle for a basic usage but get quite unsure for the present situation : I want to put some code in a library (railsapp/lib) to lig…

---

## [Marshaling an object destroys dynamically created methods](https://www.ruby-forum.com/t/marshaling-an-object-destroys-dynamically-created-methods/146344)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/marshaling-an-object-destroys-dynamically-created-methods/146344 "2008-08-21T12:45:14Z")

</div>

I noticed this this afternoon: Unmarshaling a marshaled object, makes all dynamically created methods private. #Here’s a class that dynamically creates the method MyPage#print() class MyPage def initialize MyPage.c…

---

## [Reference Through records in a has many through join](https://www.ruby-forum.com/t/reference-through-records-in-a-has-many-through-join/145059)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 3\
**Last updated:** [August 5, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/reference-through-records-in-a-has-many-through-join/145059 "2008-08-05T17:51:03Z")

</div>

I have 2 tables (toms and dicks) joined with has\_many through a third table (harries). @tom = Tom.find(1) How do you reference all the related records in harries. If I do: @tom.dicks\[1\].harries I get records for al…

---

## [Constants in modules](https://www.ruby-forum.com/t/constants-in-modules/138979)

<div class="topic-metadata">

**Author:** [@luis21\_futur](https://www.ruby-forum.com/u/luis21_futur)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/constants-in-modules/138979 "2008-05-29T23:20:17Z")

</div>

Hello, I need to do something like this (this is a simplified version of some other code, of course, but I don’t want to get you lost in details unrelated to the problem): module M CONST\_A = { ‘k1’ =\> ‘v1’, ‘k2’ =\> …

---

## [Is this possible with Ruby on Rails?](https://www.ruby-forum.com/t/is-this-possible-with-ruby-on-rails/137986)

<div class="topic-metadata">

**Author:** [@FurrNak](https://www.ruby-forum.com/u/FurrNak)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 1:47am UTC](https://www.ruby-forum.com/t/is-this-possible-with-ruby-on-rails/137986 "2008-05-20T01:47:02Z")

</div>

Hi All, I wonder if you could help me, I have a project for a web site which will allow users to log in, complete a questionnaire and then submit it. It will have a MySQL DB to store user details and data etc… all s…

---

## [Cleanup RubyForge](https://www.ruby-forum.com/t/cleanup-rubyforge/132990)

<div class="topic-metadata">

**Author:** [@Chris\_Chandler](https://www.ruby-forum.com/u/Chris_Chandler)\
**Replies:** 3\
**Last updated:** [March 26, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/cleanup-rubyforge/132990 "2008-03-26T18:43:00Z")

</div>

There are a lot of bugs on the rubyforge tracker system, as well as patches for some, and some that have been found invalid. Can we cleanup rubyforge tracker/patches? Is the tracker being used internally by the IronR…

---

## [Subject: jig 0.1.2 Released](https://www.ruby-forum.com/t/subject-jig-0-1-2-released/130525)

<div class="topic-metadata">

**Author:** [@pfharlock](https://www.ruby-forum.com/u/pfharlock)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 12:53am UTC](https://www.ruby-forum.com/t/subject-jig-0-1-2-released/130525 "2008-02-29T00:53:05Z")

</div>

jig version 0.1.2 has been released! http://jig.rubyforge.org A jig is an ordered sequence of objects (usually strings) and named gaps. When rendered as a string by Jig#to\_s, the objects are rendered calling #to\_s …

---

## [Challenge: Can you solve the game of Munch/Chomp?](https://www.ruby-forum.com/t/challenge-can-you-solve-the-game-of-munch-chomp/129089)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 3\
**Last updated:** [February 14, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/challenge-can-you-solve-the-game-of-munch-chomp/129089 "2008-02-14T17:51:13Z")

</div>

http://www.philipbrocoum.com/munch/ I think the game is really fun, especially since the comp will whoop your butt. Anyway, I solved it in my own, ridiculously newb-ish way using Ruby (I’m a math guy, not a programmi…

---

## [We WILL be removing gr.flow\_graph from the trunk soon](https://www.ruby-forum.com/t/we-will-be-removing-gr-flow-graph-from-the-trunk-soon/127856)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 3\
**Last updated:** [February 1, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/we-will-be-removing-gr-flow-graph-from-the-trunk-soon/127856 "2008-02-01T23:47:58Z")

</div>

We said this back in December, but we really mean it now… Those of you who are using the trunk and haven’t converted to the new top\_block/hier\_block2 way of doing things should either do so now, or switch to the 3.1 s…

---

## [Validating if record exists by name](https://www.ruby-forum.com/t/validating-if-record-exists-by-name/127262)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 3\
**Last updated:** [January 27, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/validating-if-record-exists-by-name/127262 "2008-01-27T15:02:59Z")

</div>

hey guys, i have looked alot of places and seen screencasts on validation but i still dont understand how to go about validating a form to check if the record exists by the name entered in. lets say a project, has us…

---

## [Controllers don't seemed to be released at the end of a request](https://www.ruby-forum.com/t/controllers-dont-seemed-to-be-released-at-the-end-of-a-request/126953)

<div class="topic-metadata">

**Author:** [@baldmountain](https://www.ruby-forum.com/u/baldmountain)\
**Replies:** 3\
**Last updated:** [January 24, 2008, 1:25pm UTC](https://www.ruby-forum.com/t/controllers-dont-seemed-to-be-released-at-the-end-of-a-request/126953 "2008-01-24T13:25:46Z")

</div>

Controllers seem to be leaked in 1.2.6 but not in 2.0.2. I created an empty rails app with nothing but the following controller: class HomeController \< ApplicationController def index @contents = \[\] 1.upto(2000) { @…

---

## [Pushing things Arrays](https://www.ruby-forum.com/t/pushing-things-arrays/125141)

<div class="topic-metadata">

**Author:** [@Wally\_Terrible](https://www.ruby-forum.com/u/Wally_Terrible)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/pushing-things-arrays/125141 "2008-01-06T14:28:55Z")

</div>

I’ve been learning Ruby and have done a couple of the quizes on the rubyquiz.com web site and written a couple of my own. Recently, I was surfing and stumbled on Graham King’s credit card generator \< http://www.darkc…

---

## [Error installing gems](https://www.ruby-forum.com/t/error-installing-gems/123860)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/error-installing-gems/123860 "2007-12-21T19:03:03Z")

</div>

Hi all. While installing gems i am getting an error: ERROR: Error installing gem xml-simple-1.0.11.gem\[.gem\]: install directory thname:e:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.11\> not absolute …

---

## [Admin's interface - the best way to implement](https://www.ruby-forum.com/t/admins-interface-the-best-way-to-implement/123340)

<div class="topic-metadata">

**Author:** [@truetype](https://www.ruby-forum.com/u/truetype)\
**Replies:** 3\
**Last updated:** [December 21, 2007, 8:14am UTC](https://www.ruby-forum.com/t/admins-interface-the-best-way-to-implement/123340 "2007-12-21T08:14:58Z")

</div>

One way is to create admin’s part within project’s folder using namespaces so that admin controllers are stored in app/controllers/ admin/ and restrict access to these controllers for mere mortals using authentication…

---

## [Nested/not-nested resources](https://www.ruby-forum.com/t/nested-not-nested-resources/122992)

<div class="topic-metadata">

**Author:** [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Replies:** 3\
**Last updated:** [December 16, 2007, 1:27am UTC](https://www.ruby-forum.com/t/nested-not-nested-resources/122992 "2007-12-16T01:27:10Z")

</div>

Hi all, Suppose I’ve got two resources: “customers” and “bills”. Each “bill” belongs to a “customer”. It seems clear to me that the routes.rb must contain something like this: map.resources :customers do |customer| …

---

## [Transactional/Rollback problems](https://www.ruby-forum.com/t/transactional-rollback-problems/122862)

<div class="topic-metadata">

**Author:** [@sthorpe](https://www.ruby-forum.com/u/sthorpe)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/transactional-rollback-problems/122862 "2007-12-12T23:13:55Z")

</div>

I’m having a rollback problem with rspec trunk. It doesn’t seem like rollbacks are happening quite as often as they should be. It appears as though the rollbacks are NOT occurring on the first description block in …

---

## [Story problem if parenthesis used in Given, When, Then or And](https://www.ruby-forum.com/t/story-problem-if-parenthesis-used-in-given-when-then-or-and/120093)

<div class="topic-metadata">

**Author:** [@sinclair\_bain](https://www.ruby-forum.com/u/sinclair_bain)\
**Replies:** 3\
**Last updated:** [November 13, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/story-problem-if-parenthesis-used-in-given-when-then-or-and/120093 "2007-11-13T18:58:41Z")

</div>

VERSION: rspec rails plugin current edge version XP/Cygwin on XP Hi, I hit this when trying to use parenthesis in my stories … (that’ll teach me!). If a scenario looks like the following: Story “User has story wi…

---

## [Failed Metaprogramming PLUS Stack Level Too Deep](https://www.ruby-forum.com/t/failed-metaprogramming-plus-stack-level-too-deep/114783)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/failed-metaprogramming-plus-stack-level-too-deep/114783 "2007-09-25T23:10:36Z")

</div>

Hey all I’m trying to dynamically define a method which will do the following. Example: def INPUT(&b) @chain = “INPUT” @file \<\< " # BEGIN rules for chain INPUT\\n" instance\_eval(&b) @file \<\< " # END rules for…

---

## [Form select box from association](https://www.ruby-forum.com/t/form-select-box-from-association/88682)

<div class="topic-metadata">

**Author:** [@Trochalakis\_C](https://www.ruby-forum.com/u/Trochalakis_C)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/form-select-box-from-association/88682 "2007-09-25T23:05:48Z")

</div>

Hello there, I have the following models class Bibliography \< ActiveRecord::Base has\_and\_belongs\_to\_many :gthemes, :join\_table =\> “gthemes\_bibliographies” end class Gtheme \< ActiveRecord::Base has\_and\_belongs\_to\_m…

---

## [Rabal 0.2.0 Released](https://www.ruby-forum.com/t/rabal-0-2-0-released/114223)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [September 10, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/rabal-0-2-0-released/114223 "2007-09-10T17:20:50Z")

</div>

rabal version 0.2.0 has been released. http://copiousfreetime.rubyforge.org/rabal/ Ruby Architecture for Building Applications and Libraries. Rabal is a commandline application for bootstrapping, packaging and distri…

---

## [Session WTF?](https://www.ruby-forum.com/t/session-wtf/108293)

<div class="topic-metadata">

**Author:** [@CptPingu](https://www.ruby-forum.com/u/CptPingu)\
**Replies:** 3\
**Last updated:** [July 2, 2007, 11:25am UTC](https://www.ruby-forum.com/t/session-wtf/108293 "2007-07-02T11:25:05Z")

</div>

Hi. How to use session in ruby on rails ? I try to make it work for hours, but it still doesn’t work… In my controller I have this: def identification @current\_user = User.new(params\[:user\]) ok = false redir = ‘lo…

---

## [How to use many fixtures for one table?](https://www.ruby-forum.com/t/how-to-use-many-fixtures-for-one-table/105346)

<div class="topic-metadata">

**Author:** [@yananay](https://www.ruby-forum.com/u/yananay)\
**Replies:** 3\
**Last updated:** [May 31, 2007, 6:55am UTC](https://www.ruby-forum.com/t/how-to-use-many-fixtures-for-one-table/105346 "2007-05-31T06:55:11Z")

</div>

hi all, now i have a problem when do the functinal testing. assume i have a table named “customers”. when i run the first test case, i need 20 records in the “customers” table. when i run the second test case, i nee…

---

## [Info](https://www.ruby-forum.com/t/info/90856)

<div class="topic-metadata">

**Author:** [@peppe](https://www.ruby-forum.com/u/peppe)\
**Replies:** 3\
**Last updated:** [April 7, 2007, 1:45am UTC](https://www.ruby-forum.com/t/info/90856 "2007-04-07T01:45:40Z")

</div>

Ciao a tutti, sono un neo laureato in ingegneria e vorrei cominciare a lavorare con ruby avrei bisogni di sapere come comnciare con questo buovo linguaggio di cui non conosco niente. ho una buona conoscenza di program…

---

## [Acts\_as\_attachment](https://www.ruby-forum.com/t/acts-as-attachment/89604)

<div class="topic-metadata">

**Author:** [@lourdes](https://www.ruby-forum.com/u/lourdes)\
**Replies:** 3\
**Last updated:** [March 22, 2007, 9:40am UTC](https://www.ruby-forum.com/t/acts-as-attachment/89604 "2007-03-22T09:40:05Z")

</div>

Hola, He instalado el plugin de act\_as\_attachment y seguido las instrucciones que vienen en la pÃ¡gina. Cuando voy a crear el attachment me da el error; undefined method \`content\_type’ for “D:\\logo ferro.bmp”:String …

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

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