# Top

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

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

---

## [Ruby and C++ exe](https://www.ruby-forum.com/t/ruby-and-c-exe/175450)

<div class="topic-metadata">

**Author:** [@george\_thomas](https://www.ruby-forum.com/u/george_thomas)\
**Replies:** 4\
**Last updated:** [September 20, 2009, 10:31am UTC](https://www.ruby-forum.com/t/ruby-and-c-exe/175450 "2009-09-20T10:31:03Z")

</div>

Hi, I am new to Ruby , but have a few years of experience in C++. My requirement is to create automated test (scripts) that will do the testing (mainly acceptance test) of our application (an Exe project created o…

---

## [In-memory implementation of IO class](https://www.ruby-forum.com/t/in-memory-implementation-of-io-class/173674)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 4\
**Last updated:** [August 13, 2009, 7:23am UTC](https://www.ruby-forum.com/t/in-memory-implementation-of-io-class/173674 "2009-08-13T07:23:12Z")

</div>

Is there an implementation of the IO class that operates on in-memory byte arrays (or other data structure)? I haven’t seen anything in the core/stdlib.

---

## [Ruby on Rails Certification](https://www.ruby-forum.com/t/ruby-on-rails-certification/166948)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 4\
**Last updated:** [May 2, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-certification/166948 "2009-05-02T21:58:37Z")

</div>

Is there any Ruby on Rails certification available for RoR developers? I am thinking of getting into RoR development, but would like to get certified if possible so I have something to stick on my resume. Thanks

---

## [New Post/Thread Notification: How to](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162767)

<div class="topic-metadata">

**Author:** [@Nginx\_Forum](https://www.ruby-forum.com/u/Nginx_Forum)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/new-post-thread-notification-how-to/162767 "2009-03-13T19:05:26Z")

</div>

Hello, Jim O. has just posted in the How to… forum of Nginx Forum under the title of Test of email function. This thread is located at http://forum.nginx.org/showthread.php?t=7 Here is the message that has just been …

---

## [What sort of business logic should go in a model?](https://www.ruby-forum.com/t/what-sort-of-business-logic-should-go-in-a-model/157555)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [January 13, 2009, 3:57am UTC](https://www.ruby-forum.com/t/what-sort-of-business-logic-should-go-in-a-model/157555 "2009-01-13T03:57:09Z")

</div>

Suppose I have a classic blog application augmented with something like restful authentication so that users must log in to create blog posts and to issue comments on other blog posts. I would like to give a user the…

---

## [Writing accented characters into HTML files?](https://www.ruby-forum.com/t/writing-accented-characters-into-html-files/156958)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 4\
**Last updated:** [January 6, 2009, 2:39pm UTC](https://www.ruby-forum.com/t/writing-accented-characters-into-html-files/156958 "2009-01-06T14:39:27Z")

</div>

I’m having trouble when I write accented characters into HTML files; though the accents appear properly in my terminal, they are badly “messed up” in the HTML output. CGI.escape doesn’t fix the problem, because these …

---

## [Simple garbage problem](https://www.ruby-forum.com/t/simple-garbage-problem/156743)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [January 4, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/simple-garbage-problem/156743 "2009-01-04T20:30:52Z")

</div>

When I run the program: STDIN.each\_line { |line| line.split("\\t") } with a big input file, the process size grows rapidly, reaching 1G in less than 1 minute. If I let it go, it continues to grow at this rate until th…

---

## [Running a rails project in another folder](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209)

<div class="topic-metadata">

**Author:** [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Replies:** 4\
**Last updated:** [December 24, 2008, 9:21am UTC](https://www.ruby-forum.com/t/running-a-rails-project-in-another-folder/156209 "2008-12-24T09:21:25Z")

</div>

Hi all, I want to transfer a rails project (still under development) from my aptop to my pc. I copied the project folder into the ruby directory on my pc and ran it with mongrel (ran successfully). However, when I try …

---

## [Ruby way of dumping file](https://www.ruby-forum.com/t/ruby-way-of-dumping-file/155814)

<div class="topic-metadata">

**Author:** [@jballanc](https://www.ruby-forum.com/u/jballanc)\
**Replies:** 4\
**Last updated:** [December 17, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/ruby-way-of-dumping-file/155814 "2008-12-17T12:43:30Z")

</div>

Hi, Can someone give me a cleaner, more rubyesque (even correct) way of printing out the first 20 bytes of a file? My solution doesn’t feel right. open(ARGV\[0\], ‘rb’) { |f| (0…20).each do |n| printf "%02d: ", n f.…

---

## [Why is Ruby 1.9 not called Ruby 2.0?](https://www.ruby-forum.com/t/why-is-ruby-1-9-not-called-ruby-2-0/154668)

<div class="topic-metadata">

**Author:** [@higgsbozo](https://www.ruby-forum.com/u/higgsbozo)\
**Replies:** 4\
**Last updated:** [December 3, 2008, 5:11pm UTC](https://www.ruby-forum.com/t/why-is-ruby-1-9-not-called-ruby-2-0/154668 "2008-12-03T17:11:28Z")

</div>

Given the systemic and fundamental changes in 1.9, I wonder why it wasn’t given a clean break with the 2.0 name? I know Matz had his own ideas for 2.0, but why couldn’t he call his version 3.0? There’s a communicatio…

---

## [Is posible String#to\_s doesn't add the decimal value if not needed?](https://www.ruby-forum.com/t/is-posible-string-to-s-doesnt-add-the-decimal-value-if-not-needed/141952)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 12:45am UTC](https://www.ruby-forum.com/t/is-posible-string-to-s-doesnt-add-the-decimal-value-if-not-needed/141952 "2008-07-02T00:45:54Z")

</div>

Hi, I want to convert a string to a Float value: irb\> “1.5”.to\_f =\> 1.5 But if I do: irb\> “1”.to\_f =\> 1.0 I get ‘1.0’ instead of just ‘1’. Is not possible to just get ‘1’ in this case? Thanks a lot.

---

## [Latest publications: about DAB and Soft-DVB](https://www.ruby-forum.com/t/latest-publications-about-dab-and-soft-dvb/136751)

<div class="topic-metadata">

**Author:** [@rafael2k](https://www.ruby-forum.com/u/rafael2k)\
**Replies:** 4\
**Last updated:** [May 9, 2008, 11:18am UTC](https://www.ruby-forum.com/t/latest-publications-about-dab-and-soft-dvb/136751 "2008-05-09T11:18:51Z")

</div>

Hi all, Can anyone make available the OFDM / DAB implementation by Jens E., which original location was: http://www.1c3.de/gr-dab.tar.bz2 There is also a paper called: V. Pellegrini, G. Bacci, M. Luise, “Soft-DVB…

---

## [Only one of six](https://www.ruby-forum.com/t/only-one-of-six/134438)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 4\
**Last updated:** [April 11, 2008, 5:47am UTC](https://www.ruby-forum.com/t/only-one-of-six/134438 "2008-04-11T05:47:18Z")

</div>

Why does my database only contain entries for the first player? It successfully saves all rounds for the first player but not for 2-6. Any ideas? Game Controller def create @game = Game.new(params\[:game\]) if @game.…

---

## [Validates\_uniqueness\_of on massaged contents of column](https://www.ruby-forum.com/t/validates-uniqueness-of-on-massaged-contents-of-column/132291)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [March 19, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-on-massaged-contents-of-column/132291 "2008-03-19T19:15:08Z")

</div>

I am trying to check the uniqueness of a column updated from a form. In my model I have this: class Entity \< ActiveRecord::Base has\_one :client, :dependent =\> :destroy has\_many :sites, :through =\> :loc…

---

## [Floating point conversion error?](https://www.ruby-forum.com/t/floating-point-conversion-error/126939)

<div class="topic-metadata">

**Author:** [@bhoult](https://www.ruby-forum.com/u/bhoult)\
**Replies:** 4\
**Last updated:** [January 23, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/floating-point-conversion-error/126939 "2008-01-23T16:38:45Z")

</div>

(2241.18 \* 100).to\_i =\> 224117 Anyone know what is up with that?

---

## [Javascript talks to rails](https://www.ruby-forum.com/t/javascript-talks-to-rails/126653)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 4\
**Last updated:** [January 22, 2008, 12:34am UTC](https://www.ruby-forum.com/t/javascript-talks-to-rails/126653 "2008-01-22T00:34:29Z")

</div>

i am trying to do this: var name =“Some Value” mygrid.getCombo(2).get(value); alert(encodeURIComponent(’\<%=Product.find\_by\_name(’+name+’)%\>’)); all the code is good, the problem is that var name seems that is not se…

---

## [Question regarding a model](https://www.ruby-forum.com/t/question-regarding-a-model/122610)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [December 10, 2007, 4:13am UTC](https://www.ruby-forum.com/t/question-regarding-a-model/122610 "2007-12-10T04:13:23Z")

</div>

I have model named Test\_session and am trying to add data to it. I have always been in the situation where I have the user fill out a form and then create a new entry in a table. This time I am trying to save session…

---

## [Parse XML that isn't well formed](https://www.ruby-forum.com/t/parse-xml-that-isnt-well-formed/114970)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 4\
**Last updated:** [September 21, 2007, 11:31am UTC](https://www.ruby-forum.com/t/parse-xml-that-isnt-well-formed/114970 "2007-09-21T11:31:14Z")

</div>

I have some XML looking like the following, other than being very much larger (some files are up to 2GB): \<?xml version="1.0" encoding="UTF-8"?\> \<server\_url\>http://myserver.edu/data/\</server\_url\> \<server\_name\>m…

---

## [How to check for an error if executing a shell command e.g](https://www.ruby-forum.com/t/how-to-check-for-an-error-if-executing-a-shell-command-e-g/112944)

<div class="topic-metadata">

**Author:** [@kazaam](https://www.ruby-forum.com/u/kazaam)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-check-for-an-error-if-executing-a-shell-command-e-g/112944 "2007-08-24T22:11:10Z")

</div>

Hi, I’m writing a little script to install some drivers but I wanna react in this script if any step fails. So e.g. I’m doing this: system(‘dpkg -i xorg-driver-fglrx fglrx-kernel-source’) How can I check if this was …

---

## [Confusion with while loop](https://www.ruby-forum.com/t/confusion-with-while-loop/110800)

<div class="topic-metadata">

**Author:** [@Michael\_WSRyder](https://www.ruby-forum.com/u/Michael_WSRyder)\
**Replies:** 4\
**Last updated:** [July 31, 2007, 10:32am UTC](https://www.ruby-forum.com/t/confusion-with-while-loop/110800 "2007-07-31T10:32:01Z")

</div>

I am trying to create a method that would allow one to skip x number of a character then change the next y number of a character. While trying to create a simple routine I ran into two “weird” problems. The code fol…

---

## [Organizing My Ruby Code - Do I use modules](https://www.ruby-forum.com/t/organizing-my-ruby-code-do-i-use-modules/110576)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 28, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/organizing-my-ruby-code-do-i-use-modules/110576 "2007-07-28T18:07:31Z")

</div>

I need a little help determining the best way to organize my Ruby code. I’ve got a script I’m writing. Lets call it somecoolscript.rb. I have also created three (3) utility classes that I need to use in somecoolscript…

---

## [Actividad de una web](https://www.ruby-forum.com/t/actividad-de-una-web/109901)

<div class="topic-metadata">

**Author:** [@alarkspur](https://www.ruby-forum.com/u/alarkspur)\
**Replies:** 4\
**Last updated:** [July 24, 2007, 12:30am UTC](https://www.ruby-forum.com/t/actividad-de-una-web/109901 "2007-07-24T00:30:17Z")

</div>

Es mas una curiosidad que otra cosa pero llevo un rato dandole vueltas y no se me ocurre como poder hacerlo, les cuento, he visto que en algunas webs pone algo como Usuarios registrados: x Usuarios Invitados: y mas …

---

## [Simple noob question about rails data access](https://www.ruby-forum.com/t/simple-noob-question-about-rails-data-access/109871)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [July 19, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/simple-noob-question-about-rails-data-access/109871 "2007-07-19T20:01:51Z")

</div>

One of those things where i feel i should know how to do this, but just can’t work it out (maybe it’s time to stop working!) I have an ‘article’ object which has a foreign key to a ‘user’, linked by ‘user\_id’. My cur…

---

## ["gem update --system" ignores where I installed rubygems](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417)

<div class="topic-metadata">

**Author:** [@levander](https://www.ruby-forum.com/u/levander)\
**Replies:** 4\
**Last updated:** [June 15, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/gem-update-system-ignores-where-i-installed-rubygems/106417 "2007-06-15T22:01:05Z")

</div>

On my Ubuntu Feisty box a few months ago, I installed rubygems 0.9.0 in /opt/rubygems by: export GEM\_HOME=/opt/rubygems/lib/ruby/gems/1.8 export RUBYLIB=/opt/rubygems/lib/ruby:/opt/rubygems/lib/site\_ruby/1.8 sudo rub…

---

## [RESTful RESOURCE PARTIAL UPDATE](https://www.ruby-forum.com/t/restful-resource-partial-update/104862)

<div class="topic-metadata">

**Author:** [@lambo4jos](https://www.ruby-forum.com/u/lambo4jos)\
**Replies:** 4\
**Last updated:** [May 23, 2007, 11:02am UTC](https://www.ruby-forum.com/t/restful-resource-partial-update/104862 "2007-05-23T11:02:28Z")

</div>

I have modified scaffolding code slightly to get three edit actions and three update actions. The requirement: to allow users to edit attributes for the same model from seperate forms instead of one form, while using …

---

## [Simple question about showing results](https://www.ruby-forum.com/t/simple-question-about-showing-results/92677)

<div class="topic-metadata">

**Author:** [@supaspoida](https://www.ruby-forum.com/u/supaspoida)\
**Replies:** 4\
**Last updated:** [April 24, 2007, 8:08am UTC](https://www.ruby-forum.com/t/simple-question-about-showing-results/92677 "2007-04-24T08:08:19Z")

</div>

Hello, I’m new to Ruby on Rails and am working on my first major app. I’m having a bit of trouble figuring out the best way to do some things. The first issue I’m having is regarding an events page. I have 3 divs on m…

---

## [Missing Method Errors](https://www.ruby-forum.com/t/missing-method-errors/92588)

<div class="topic-metadata">

**Author:** [@Ari\_B](https://www.ruby-forum.com/u/Ari_B)\
**Replies:** 4\
**Last updated:** [April 21, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/missing-method-errors/92588 "2007-04-21T16:54:19Z")

</div>

Hi all, This is my first post here, so don’t dish out the loser points to me so heartily. I have only recently gotten into Ruby, and I was writing my own methods that I might use in a couple future programs (they wer…

---

## [Extracting sub elements in array](https://www.ruby-forum.com/t/extracting-sub-elements-in-array/85453)

<div class="topic-metadata">

**Author:** [@wkc](https://www.ruby-forum.com/u/wkc)\
**Replies:** 4\
**Last updated:** [February 13, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/extracting-sub-elements-in-array/85453 "2007-02-13T20:27:42Z")

</div>

Is there a fast way to return a subsection of an array object as there is the minor function for a Matrix? For example testArray = \[\[1,2,3,4,5\], \[7,8,9,10,11\]\] How can the elements \[\[4,5\],\[10,11\]\] be extracted? Th…

---

## [Form\_remote\_tag](https://www.ruby-forum.com/t/form-remote-tag/83646)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 4\
**Last updated:** [February 10, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/form-remote-tag/83646 "2007-02-10T22:16:21Z")

</div>

Hi This is along the same lines as my previous question (form\_remote\_tag - redirect\_to working very weirdly), but different enough to deserve a different posting I think. After updating a form using form\_remote\_tag t…

---

## [Implemention of "Click on an icon and show a hidden div"](https://www.ruby-forum.com/t/implemention-of-click-on-an-icon-and-show-a-hidden-div/84761)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 4\
**Last updated:** [February 7, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/implemention-of-click-on-an-icon-and-show-a-hidden-div/84761 "2007-02-07T16:53:59Z")

</div>

I checked the prototypehelper and find the method show show(\*ids) Shows hidden DOM elements with the given ids. but I 'm not sure how to integrate these. Should I have a function and a corresponding rjs to do this? …

---

## [\[ANN\] Error Messages For Plugin](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/ann-error-messages-for-plugin/72544 "2006-10-18T20:35:35Z")

</div>

Hey there folks I’ve just released my first plugin. It enhances the built in error\_messages\_for helper to do a bunch of really useful things like, handling an array of AR objects, rendering a partial, and much much mo…

---

## [Observe\_field and select lists](https://www.ruby-forum.com/t/observe-field-and-select-lists/71765)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [October 11, 2006, 10:12pm UTC](https://www.ruby-forum.com/t/observe-field-and-select-lists/71765 "2006-10-11T22:12:46Z")

</div>

I’m somewhat confused on how to set up a select list for observe\_field. Example : \<%=options\_from\_collection\_for\_select @states, :id, :name %\> I want ot get the values when the user chooses them from the list. The "…

---

## [Before filter?](https://www.ruby-forum.com/t/before-filter/70716)

<div class="topic-metadata">

**Author:** [@vilec](https://www.ruby-forum.com/u/vilec)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 4:29pm UTC](https://www.ruby-forum.com/t/before-filter/70716 "2006-10-02T16:29:06Z")

</div>

Buenas, estoy usando ajax scaffold para mis tablas y tengo un problema. Para que se vean bien las tildes y eso, en application.rb tengo: … before\_filter :configure\_charsets def configure\_charsets @headers\[“Content-T…

---

## [Undefined method - what undefined method](https://www.ruby-forum.com/t/undefined-method-what-undefined-method/65222)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 4\
**Last updated:** [August 17, 2006, 4:46am UTC](https://www.ruby-forum.com/t/undefined-method-what-undefined-method/65222 "2006-08-17T04:46:31Z")

</div>

I am doing a typical database list, but when I do \<% for m in @private\_messages %\> (Line 28) It tells me that the method ‘each’ is undefined. What’s wrong, I did not call the method each… Here’s the error: Showing ap…

---

## [All reported bugs in new build have been fixed as of r3267](https://www.ruby-forum.com/t/all-reported-bugs-in-new-build-have-been-fixed-as-of-r3267/64751)

<div class="topic-metadata">

**Author:** [@jconley](https://www.ruby-forum.com/u/jconley)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/all-reported-bugs-in-new-build-have-been-fixed-as-of-r3267/64751 "2006-08-15T14:19:51Z")

</div>

All reported bugs in the new build system are fixed as of r3267. There is one potential issue with BSD make that Greg T. reported on the email list but hasn’t filed a bug yet in Trac. While Michael is fixing an issue …

---

## [Ruby on Rails Performance question](https://www.ruby-forum.com/t/ruby-on-rails-performance-question/62310)

<div class="topic-metadata">

**Author:** [@Jang\_Choe](https://www.ruby-forum.com/u/Jang_Choe)\
**Replies:** 4\
**Last updated:** [June 2, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-performance-question/62310 "2006-06-02T16:59:45Z")

</div>

I’m wondering if this is a typical thing. What I’m doing is getting about 5000+ records from a database and displaying all of it on a page. I’ve used the benchmark helper to benchmark the views for that page and that…

---

## [Question about instance\_eval](https://www.ruby-forum.com/t/question-about-instance-eval/94608)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 4\
**Last updated:** [May 8, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/question-about-instance-eval/94608 "2006-05-08T23:27:14Z")

</div>

I’m trying to use instance\_eval in a project I’m doing, and I extracted a very simple example: class IETest attr\_accessor :foo end t = IETest.new t.instance\_eval { self.foo = ‘foo’ } puts t.foo This works as expe…

---

## [Another DRY question](https://www.ruby-forum.com/t/another-dry-question/94075)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 4\
**Last updated:** [April 20, 2006, 5:36am UTC](https://www.ruby-forum.com/t/another-dry-question/94075 "2006-04-20T05:36:57Z")

</div>

I have some code working that lists only items from a particular user. The code in my list action finds the user and then conditionally lists only his/her items: def list user = User.find(session\[:user\]) user\_id = u…

---

## [Mixin variables](https://www.ruby-forum.com/t/mixin-variables/58151)

<div class="topic-metadata">

**Author:** [@Will\_Emigh](https://www.ruby-forum.com/u/Will_Emigh)\
**Replies:** 4\
**Last updated:** [April 20, 2006, 12:21am UTC](https://www.ruby-forum.com/t/mixin-variables/58151 "2006-04-20T00:21:54Z")

</div>

I’ve created an access control module that I’m including in several different controllers. Everything works fine, but I want to allow each controller to override the default login page with something like this: set\_l…

---

## [Publishing to rubyforge - is there a command line tool that](https://www.ruby-forum.com/t/publishing-to-rubyforge-is-there-a-command-line-tool-that/58138)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 4\
**Last updated:** [April 19, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/publishing-to-rubyforge-is-there-a-command-line-tool-that/58138 "2006-04-19T16:10:10Z")

</div>

I was trying to use the rake contrib task for publishing to Rubyforge, but it seems to use a command line component to do the work (which I don’t seem to have :slight\_smile: I believe this was contributed by Florian …

---

## [Wsod since upgrading to 1.1](https://www.ruby-forum.com/t/wsod-since-upgrading-to-1-1/93964)

<div class="topic-metadata">

**Author:** [@Steven\_Bristol](https://www.ruby-forum.com/u/Steven_Bristol)\
**Replies:** 4\
**Last updated:** [April 17, 2006, 1:45am UTC](https://www.ruby-forum.com/t/wsod-since-upgrading-to-1-1/93964 "2006-04-17T01:45:33Z")

</div>

I just upgraded to 1.1 and I am now getting the wsod for errors that used to display on the screen. E.G. NoMethodError gives wsod. Does any one know what caused this and how I can go back to the previous behavior?

---

## [Belgian Ruby on Rails Site](https://www.ruby-forum.com/t/belgian-ruby-on-rails-site/74412)

<div class="topic-metadata">

**Author:** [@johan-vm](https://www.ruby-forum.com/u/johan-vm)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 11:20am UTC](https://www.ruby-forum.com/t/belgian-ruby-on-rails-site/74412 "2006-03-20T11:20:58Z")

</div>

Hello, I recently started http://www.onrails.be Onrails.be is a Belgian Ruby on Rails site (in Dutch). At the moment however, the site is powered by Textpattern (PHP CMS). I already knew that, and I’m just getting to…

---

## ['why ruby?' presentations](https://www.ruby-forum.com/t/why-ruby-presentations/54088)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [February 23, 2006, 12:52am UTC](https://www.ruby-forum.com/t/why-ruby-presentations/54088 "2006-02-23T00:52:48Z")

</div>

i know they crop up from time to time on the list… if anyone out there has or knows of any good ones i’d like to browse them. we’re pushing ruby and the de-facto language behind a huge project so we’ll need all the…

---

## [Using an existing session to grab a page](https://www.ruby-forum.com/t/using-an-existing-session-to-grab-a-page/51087)

<div class="topic-metadata">

**Author:** [@Chad\_Layton](https://www.ruby-forum.com/u/Chad_Layton)\
**Replies:** 4\
**Last updated:** [December 29, 2005, 12:30am UTC](https://www.ruby-forum.com/t/using-an-existing-session-to-grab-a-page/51087 "2005-12-29T00:30:54Z")

</div>

I’m rather new to both web programming and ruby so forgive me if my question is ill formed. I’m trying to do some screen scraping on a website that requires a login . What I would like to have happen is for the user t…

---

## [CGI and FastCGI problems](https://www.ruby-forum.com/t/cgi-and-fastcgi-problems/66459)

<div class="topic-metadata">

**Author:** [@Jason\_E](https://www.ruby-forum.com/u/Jason_E)\
**Replies:** 4\
**Last updated:** [December 16, 2005, 2:44pm UTC](https://www.ruby-forum.com/t/cgi-and-fastcgi-problems/66459 "2005-12-16T14:44:38Z")

</div>

I can’t my rails app to work with cgi or fastcgi. My app works using webrick. I’ve even hard-coded development mode in environment.rb in order to get most descriptive messages, but the best I get is the following in …

---

## [After\_find gets called for a model and not for other](https://www.ruby-forum.com/t/after-find-gets-called-for-a-model-and-not-for-other/48219)

<div class="topic-metadata">

**Author:** [@eduardo.fernandez](https://www.ruby-forum.com/u/eduardo.fernandez)\
**Replies:** 4\
**Last updated:** [November 18, 2005, 12:06am UTC](https://www.ruby-forum.com/t/after-find-gets-called-for-a-model-and-not-for-other/48219 "2005-11-18T00:06:43Z")

</div>

Hello, I have two models in my app with after\_find defined. One does get called and the other does not. I have double checked and they are both defined private and correctly I think. Is there anything in a model tha…

---

## [Aumation the copyright text](https://www.ruby-forum.com/t/aumation-the-copyright-text/212571)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [October 6, 2011, 10:17pm UTC](https://www.ruby-forum.com/t/aumation-the-copyright-text/212571 "2011-10-06T22:17:51Z")

</div>

How to automate the copyright text for each newly created files in ruby projects or with rails framework.

---

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

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 6\
**Last updated:** [December 22, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/dependency-problem/199827 "2010-12-22T23:07:43Z")

</div>

I’ve seen people post similar issues at various places, but I have yet to find an explanation on how to resolve this issue. I’m a new Rails user, so I need a little adult supervision please. I carelessly ran a “gem up…

---

## [Rails base model](https://www.ruby-forum.com/t/rails-base-model/195122)

<div class="topic-metadata">

**Author:** [@DanielMedia](https://www.ruby-forum.com/u/DanielMedia)\
**Replies:** 6\
**Last updated:** [September 17, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/rails-base-model/195122 "2010-09-17T21:46:55Z")

</div>

I’m very new to Ruby and to Rails. I’m coming from PHP and CakePHP. I would like to create a base model from which all other models will inherit from. I have done this: class AppModel \< ActiveRecord::Base end and c…

---

## [.find() with simple :join](https://www.ruby-forum.com/t/find-with-simple-join/183315)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [February 11, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/find-with-simple-join/183315 "2010-02-11T20:35:14Z")

</div>

Hello all, I about to pull my hair out. I have two models “Activities” and “Activity\_types” Activities id name activity\_type\_id Activity\_types id name Associations - class Activity \< ActiveRecord::Base has\_man…

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

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