# Top

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

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

---

## [Firefox problema con remote\_form\_for](https://www.ruby-forum.com/t/firefox-problema-con-remote-form-for/90617)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 5\
**Last updated:** [March 30, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/firefox-problema-con-remote-form-for/90617 "2007-03-30T21:36:41Z")

</div>

Salve a tutti, Ho una pagina dove vengono inserite alcune informazioni inviate per mezzo di AJAX. La struttura Ã¨ la seguente: \<% remote\_form\_for :trace, @trace do |f| %\> … \<%= submit\_tag “Conferma” %\> \<% end %\> L…

---

## [Can \[ruby\] on rails do this --- crazy request](https://www.ruby-forum.com/t/can-ruby-on-rails-do-this-crazy-request/89636)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 5\
**Last updated:** [March 23, 2007, 1:13pm UTC](https://www.ruby-forum.com/t/can-ruby-on-rails-do-this-crazy-request/89636 "2007-03-23T13:13:13Z")

</div>

Hi all, Loving the Ruby on Rails world so far. My web app needs to browse the local file system for file names and directories to build lists for processing with a commercial application. I realize this is a no no fo…

---

## [Ruby on Rails Professional Requirement](https://www.ruby-forum.com/t/ruby-on-rails-professional-requirement/102680)

<div class="topic-metadata">

**Author:** [@nikhiljohn](https://www.ruby-forum.com/u/nikhiljohn)\
**Replies:** 5\
**Last updated:** [February 9, 2007, 7:03am UTC](https://www.ruby-forum.com/t/ruby-on-rails-professional-requirement/102680 "2007-02-09T07:03:56Z")

</div>

We are looking for ruby on rails professionals to work with us. We are setup at Ann Arbor, Michigan. I’ll give you a brief of the requirement :- Were looking for :- Two years experience - Ruby on rails The requireme…

---

## [Mod\_ruby, require, and $SAFE](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/102990)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 22, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/mod-ruby-require-and-safe/102990 "2007-01-22T21:25:39Z")

</div>

When running under mod\_ruby with the default $SAFE == 1, a file containing only this: require ‘active\_record’ will give a 500 response with the error: mod\_ruby: error in ruby mod\_ruby: /usr/lib64/ruby/site\_ruby/1.8/…

---

## [Really Simple Ruby AJAX tutorial](https://www.ruby-forum.com/t/really-simple-ruby-ajax-tutorial/81958)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [January 17, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/really-simple-ruby-ajax-tutorial/81958 "2007-01-17T22:17:38Z")

</div>

Hi, I’m looking for a really simple AJAX tutuorial that covers the basic mechanics. I’m imagining something that only needs the standard Ruby libraries (rather than needing additional gems: Rails / Nitro / etc). Anyo…

---

## [Simple questions regarding the session variable](https://www.ruby-forum.com/t/simple-questions-regarding-the-session-variable/79565)

<div class="topic-metadata">

**Author:** [@shane](https://www.ruby-forum.com/u/shane)\
**Replies:** 5\
**Last updated:** [December 21, 2006, 3:57am UTC](https://www.ruby-forum.com/t/simple-questions-regarding-the-session-variable/79565 "2006-12-21T03:57:19Z")

</div>

I am seriving my webapp via WEBrick. I start a Firefox browser #1. Somewhere along the way it performs: @session\[:key\] = 'A' I start a second Firefox browser #2. Somewhere along the way it performs: …

---

## [Regexp working with mixed lines endings](https://www.ruby-forum.com/t/regexp-working-with-mixed-lines-endings/77223)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [November 25, 2006, 1:40pm UTC](https://www.ruby-forum.com/t/regexp-working-with-mixed-lines-endings/77223 "2006-11-25T13:40:59Z")

</div>

Hey all, i’ve an audio file (wav) containing some xml metadatas at start or ending of the ausio datas. my regexp works fine with unix lines endings. however some recorder puts mixed line ending where my regexp isn’t …

---

## [Sessions things I can't figure out from the api](https://www.ruby-forum.com/t/sessions-things-i-cant-figure-out-from-the-api/73986)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:44am UTC](https://www.ruby-forum.com/t/sessions-things-i-cant-figure-out-from-the-api/73986 "2006-11-07T10:44:29Z")

</div>

I have a cron script that destroys sessions that are over 30 minutes, essentially running from library… class SessionCleaner def self.remove\_stale\_sessions CGI::Session::ActiveRecordStore::Session Session.destroy\_al…

---

## [Dynamic Attributes in a Snippet Tag?](https://www.ruby-forum.com/t/dynamic-attributes-in-a-snippet-tag/73793)

<div class="topic-metadata">

**Author:** [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Replies:** 5\
**Last updated:** [October 27, 2006, 11:42pm UTC](https://www.ruby-forum.com/t/dynamic-attributes-in-a-snippet-tag/73793 "2006-10-27T23:42:40Z")

</div>

Has anyone ever thought about adding an attribute to a Snippet call e.g. \<r:snippet linktext=“Read more of this column” /\> and then having a way of pulling that attribute in the Snippet all using Radius tags?: e.g. S…

---

## [Envoyer un email](https://www.ruby-forum.com/t/envoyer-un-email/72124)

<div class="topic-metadata">

**Author:** [@Bolo\_M](https://www.ruby-forum.com/u/Bolo_M)\
**Replies:** 5\
**Last updated:** [October 14, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/envoyer-un-email/72124 "2006-10-14T18:50:23Z")

</div>

Salut, j’essaye d’envoyer un email quand mon objet est sauvegardé. Dans development.rb j’ai ajouté ces deux lignes #configuration envois des mails ActionMailer::Base.delivery\_method = :sendmail ActionMailer::Base.ra…

---

## [More rebinding blocks](https://www.ruby-forum.com/t/more-rebinding-blocks/63617)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 5\
**Last updated:** [June 16, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/more-rebinding-blocks/63617 "2006-06-16T21:46:40Z")

</div>

Sorry to beat a dead horse, here. But after reading through the older discussions on google groups, I’m still left with a question. Arbitrarily rebinding blocks seems like it would be amazingly useful. Is there some…

---

## [Controller-wide instance variable](https://www.ruby-forum.com/t/controller-wide-instance-variable/62497)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 5\
**Last updated:** [June 5, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/controller-wide-instance-variable/62497 "2006-06-05T17:33:58Z")

</div>

Is it possible to declare an instance variable in a controller that is available to every action without defining the variable in every action?

---

## [Immediate if method](https://www.ruby-forum.com/t/immediate-if-method/59536)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 5\
**Last updated:** [May 4, 2006, 1:12am UTC](https://www.ruby-forum.com/t/immediate-if-method/59536 "2006-05-04T01:12:19Z")

</div>

Does Ruby have a built-in equivalent of what some other languages call an “immediate if” function? I want to conditionally return one of two strings on the status bar of an application, depending on whether a variabl…

---

## [Grammars (mini-scripting languages)](https://www.ruby-forum.com/t/grammars-mini-scripting-languages/100165)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 5\
**Last updated:** [February 6, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/grammars-mini-scripting-languages/100165 "2006-02-06T18:28:09Z")

</div>

I’m working on implementing mini-scripting languages for two different projects, so I’m building a framework that could handle the task generically. Does this seem like a good way to approach it? 1. Store each comman…

---

## [How to set a default value?](https://www.ruby-forum.com/t/how-to-set-a-default-value/62345)

<div class="topic-metadata">

**Author:** [@frocco](https://www.ruby-forum.com/u/frocco)\
**Replies:** 5\
**Last updated:** [December 7, 2005, 12:09pm UTC](https://www.ruby-forum.com/t/how-to-set-a-default-value/62345 "2005-12-07T12:09:07Z")

</div>

Hello, I have a price field that I validate of numbers. How can I default a 0.0 value? Regards, Frank R. removed\_email\_address@domain.invalid

---

## [Safari utf8 fix - why?](https://www.ruby-forum.com/t/safari-utf8-fix-why/49393)

<div class="topic-metadata">

**Author:** [@ij.list](https://www.ruby-forum.com/u/ij.list)\
**Replies:** 5\
**Last updated:** [December 5, 2005, 10:31am UTC](https://www.ruby-forum.com/t/safari-utf8-fix-why/49393 "2005-12-05T10:31:42Z")

</div>

Hello! Could somebody direct me to the explanation of Safari UTF8 fix in browser\_filters plugin, namely WHY we need that? For what version of Safari etc… There is a mention of a Safari bug on the wiki, but nothing sp…

---

## [What kind of server specs should we go for? Any way to determine that?](https://www.ruby-forum.com/t/what-kind-of-server-specs-should-we-go-for-any-way-to-determine-that/238780)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [January 28, 2014, 11:06pm UTC](https://www.ruby-forum.com/t/what-kind-of-server-specs-should-we-go-for-any-way-to-determine-that/238780 "2014-01-28T23:06:43Z")

</div>

We are building a Rails website that will launch soon. We are in the process of selecting a server. Right now, we are considering Digital Ocean as a hosting solution. But our concern is on the specs that the server sh…

---

## [Why RoR over PHP Framework?](https://www.ruby-forum.com/t/why-ror-over-php-framework/217049)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [April 23, 2012, 3:55pm UTC](https://www.ruby-forum.com/t/why-ror-over-php-framework/217049 "2012-04-23T15:55:05Z")

</div>

Hi, I’m playing with RoR since Ruby 1.0, now I’m playing with 3.2. I have to merge/rewrite one ERP from standalone app client/server to web approach. Some of this part is made with PHP, but this part is not the most …

---

## [Logging POST data from $request\_body and returning 200](https://www.ruby-forum.com/t/logging-post-data-from-request-body-and-returning-200/203683)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [February 25, 2011, 1:17am UTC](https://www.ruby-forum.com/t/logging-post-data-from-request-body-and-returning-200/203683 "2011-02-25T01:17:00Z")

</div>

I am able to log POST data correctly with the following code: location /bk { if ($request\_method != POST) { return 405; } proxy\_pass $scheme://127.0.0.1:$server\_port/dummy; log\_format my\_tracking $request\_body; ac…

---

## [PHP Projects Categories on PHPKode.com](https://www.ruby-forum.com/t/php-projects-categories-on-phpkode-com/199897)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [December 1, 2010, 3:58am UTC](https://www.ruby-forum.com/t/php-projects-categories-on-phpkode-com/199897 "2010-12-01T03:58:30Z")

</div>

PHP Ad Management - http://www.phpkode.com/projects/category/php-ad-management/ PHP Auction - Порно по Категориям /бесплатное порно видео, смотреть онлайн, скачать видео\\ PHP Blog - Новое порно: Азиатка. Cмотреть онла…

---

## [Rails, ajax, json, and script](https://www.ruby-forum.com/t/rails-ajax-json-and-script/189834)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 8\
**Last updated:** [June 8, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/rails-ajax-json-and-script/189834 "2010-06-08T18:02:38Z")

</div>

Could someone please demonstrate the code to send both json (or xml) AND javascript (to be executed) in a single Ajax request? Is this even possible?

---

## [Re: How to speed up ruby and make it as fast as possible](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98458)

<div class="topic-metadata">

**Author:** [@jamal86](https://www.ruby-forum.com/u/jamal86)\
**Replies:** 8\
**Last updated:** [July 14, 2006, 10:14pm UTC](https://www.ruby-forum.com/t/re-how-to-speed-up-ruby-and-make-it-as-fast-as-possible/98458 "2006-07-14T22:14:39Z")

</div>

You are mistaken. Current, stable Perl and Python releases typically execute programs much faster than Ruby. I suspected such rationalizing and hostile replies in my initial post. Jamal

---

## [\[kind of OT\] Software Remote connect to MacOS?](https://www.ruby-forum.com/t/kind-of-ot-software-remote-connect-to-macos/102316)

<div class="topic-metadata">

**Author:** [@Thibaut\_BarrSSSSre](https://www.ruby-forum.com/u/Thibaut_BarrSSSSre)\
**Replies:** 8\
**Last updated:** [February 8, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/kind-of-ot-software-remote-connect-to-macos/102316 "2006-02-08T15:54:26Z")

</div>

Hi sorry for the slighty out of topic question but I’m sure someone here will be able to answer. Does anyone use some kind of remote connection to connect to MacOS ? I’m thinking of using VNC but I’d love to hear fr…

---

## [Unless if not == unless post\_on\_ruby\_forum](https://www.ruby-forum.com/t/unless-if-not-unless-post-on-ruby-forum/221579)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [July 21, 2012, 2:04am UTC](https://www.ruby-forum.com/t/unless-if-not-unless-post-on-ruby-forum/221579 "2012-07-21T02:04:30Z")

</div>

So everything I have thus far read and heard about the Ruby unless keyword led me to believe that it is just another word for if not. This is not true. unless 1 + 1 == 2 puts “a” elsif 1 + 1 == 5 puts “b” else pu…

---

## [Cache on certain condition](https://www.ruby-forum.com/t/cache-on-certain-condition/197761)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 6\
**Last updated:** [October 20, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/cache-on-certain-condition/197761 "2010-10-20T23:54:03Z")

</div>

Hi, I want to cache objects only if they were published at least 5 days ago. He is the code I’ve done, but I don’t like because it is not dry… How could I improve it? \<% if job.published\_at \< 5.days.from\_now %\> \<%…

---

## [Toggle appear starts hidden?](https://www.ruby-forum.com/t/toggle-appear-starts-hidden/185914)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 6\
**Last updated:** [March 29, 2010, 8:50am UTC](https://www.ruby-forum.com/t/toggle-appear-starts-hidden/185914 "2010-03-29T08:50:52Z")

</div>

This definitely works: \<%= button\_to\_remote “Test”, :complete =\> visual\_effect( :toggle\_appear, “toggle\_appear” ) %\> yada yada yada To toggle content off -\> content on, etc. But is there any way to have the initial…

---

## [RESTful photo album](https://www.ruby-forum.com/t/restful-photo-album/184848)

<div class="topic-metadata">

**Author:** [@DmitryPush](https://www.ruby-forum.com/u/DmitryPush)\
**Replies:** 6\
**Last updated:** [March 10, 2010, 7:56am UTC](https://www.ruby-forum.com/t/restful-photo-album/184848 "2010-03-10T07:56:58Z")

</div>

Hi, all! I’m new in Rails. I’ve read “Agile web development” and now I want made my very first rails application - photo album. But I don’t know how to design it RESTful. For example I have 3 chapters and 100 photo…

---

## [On Ranges as conditions](https://www.ruby-forum.com/t/on-ranges-as-conditions/176641)

<div class="topic-metadata">

**Author:** [@Rafael\_Cunha\_de\_Alm](https://www.ruby-forum.com/u/Rafael_Cunha_de_Alm)\
**Replies:** 6\
**Last updated:** [October 8, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/on-ranges-as-conditions/176641 "2009-10-08T17:22:05Z")

</div>

Reading a few tutorials I found this piece of code: while input = gets input = input.chomp puts input + " triggered" if input =~ /start/ … input =~ /end/ end I understand what it does. If I type start, end or anythi…

---

## [What is wrong with this program?](https://www.ruby-forum.com/t/what-is-wrong-with-this-program/173343)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 6\
**Last updated:** [August 7, 2009, 9:42am UTC](https://www.ruby-forum.com/t/what-is-wrong-with-this-program/173343 "2009-08-07T09:42:04Z")

</div>

I don’t understand what is wrong with this program. It gives an error: ‘findarea’ undefined local variable or method ‘area\_of\_triangle’ Both ‘findarea’ and ‘area\_of\_triangle’ are clearly defined.

---

## [Instant Rails Replacement?](https://www.ruby-forum.com/t/instant-rails-replacement/173133)

<div class="topic-metadata">

**Author:** [@jack](https://www.ruby-forum.com/u/jack)\
**Replies:** 6\
**Last updated:** [August 4, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/instant-rails-replacement/173133 "2009-08-04T14:19:46Z")

</div>

Is there a standalone (non-installable) way to get Ruby to run? Instant Rails hasnt been updated in a long time. I dont have access to install Ruby at work, but I want to learn it in my free time. So if there is somet…

---

## [But wait! There's more! Just 3 easy payments of eleventy dollars! pew pew pew!](https://www.ruby-forum.com/t/but-wait-theres-more-just-3-easy-payments-of-eleventy-dollars-pew-pew-pew/170913)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 6\
**Last updated:** [June 24, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/but-wait-theres-more-just-3-easy-payments-of-eleventy-dollars-pew-pew-pew/170913 "2009-06-24T20:50:32Z")

</div>

dinner break is over… back to the “grind”!

---

## [Problems with testing/Wrong table columns](https://www.ruby-forum.com/t/problems-with-testing-wrong-table-columns/168355)

<div class="topic-metadata">

**Author:** [@krani](https://www.ruby-forum.com/u/krani)\
**Replies:** 6\
**Last updated:** [May 24, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/problems-with-testing-wrong-table-columns/168355 "2009-05-24T20:25:23Z")

</div>

Hello, I’m new in rails developing and I’m just writing my first application. I already created some controllers and models and it works. But now I want to write some tests for my application, but I got problems. I …

---

## [Two instances of a controller?](https://www.ruby-forum.com/t/two-instances-of-a-controller/166672)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 6\
**Last updated:** [April 28, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/two-instances-of-a-controller/166672 "2009-04-28T19:02:02Z")

</div>

Hello, I have written a guestbook and I’d like to use it twice in my application. One public guestbook and one private guestbook. How can I use the very same controller for two different guestbooks? Thanks

---

## [Rails Query within Query](https://www.ruby-forum.com/t/rails-query-within-query/162714)

<div class="topic-metadata">

**Author:** [@aviir](https://www.ruby-forum.com/u/aviir)\
**Replies:** 6\
**Last updated:** [March 18, 2009, 6:59pm UTC](https://www.ruby-forum.com/t/rails-query-within-query/162714 "2009-03-18T18:59:24Z")

</div>

Hello, I am looking for a better way to do the following (my code examples are crappy pseudocode): I have two associated models, Book and Chapter, where book has\_many chapters. I want to first select several books, …

---

## [Select onchange question](https://www.ruby-forum.com/t/select-onchange-question/161165)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 6\
**Last updated:** [February 24, 2009, 4:33am UTC](https://www.ruby-forum.com/t/select-onchange-question/161165 "2009-02-24T04:33:47Z")

</div>

I have this select statement, trying to change to a page that is the value of the select: \<%= select(:node, :id, $shelves,{:prompt =\>‘Select Equipment’}, { :onchange =\> "document.location.href = ‘/buildshelf/’ + $F('n…

---

## [Rush wish list musings](https://www.ruby-forum.com/t/rush-wish-list-musings/145927)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [September 1, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/rush-wish-list-musings/145927 "2008-09-01T19:37:49Z")

</div>

Two things: In my mind, this general thread is somewhat ridiculous. It’s been going on for – what is it? – ten months now? It seems to be just a laundry list for things you want Ruby to do, whether they’re sensible …

---

## [Need more help with Ruby and C](https://www.ruby-forum.com/t/need-more-help-with-ruby-and-c/136648)

<div class="topic-metadata">

**Author:** [@roxah](https://www.ruby-forum.com/u/roxah)\
**Replies:** 6\
**Last updated:** [May 5, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/need-more-help-with-ruby-and-c/136648 "2008-05-05T23:42:18Z")

</div>

Hello all, So I have something like the following in my C file: static VALUE rb\_cBar; static VALUE foo\_new() { VALUE new\_foo; … return new\_foo; } static VALUE execute(VALUE foos) { VALUE foo = rb\_ary\_entry(foos,…

---

## [Redirect\_to](https://www.ruby-forum.com/t/redirect-to/135141)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 6\
**Last updated:** [April 18, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/redirect-to/135141 "2008-04-18T14:23:57Z")

</div>

OK I’m back and surely missing stuff again… In my controller tests I’m checking for a redirect after a destroy action. First up it’s a single resource (“map.resource :cart” in routes.rb) in CartsController.rb def de…

---

## [Newbq: Organizing your stories](https://www.ruby-forum.com/t/newbq-organizing-your-stories/134466)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 6\
**Last updated:** [April 11, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/newbq-organizing-your-stories/134466 "2008-04-11T14:15:59Z")

</div>

Hi, I’m a little unhappy with how my stories are organised, and am wondering if anyone has found any particular method nicest. I’m working within an admin namespace, and currently have a plain text story file for e…

---

## [Character encodings differ: US-ASCII and dummy encoding](https://www.ruby-forum.com/t/character-encodings-differ-us-ascii-and-dummy-encoding/129807)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 6\
**Last updated:** [February 22, 2008, 3:41am UTC](https://www.ruby-forum.com/t/character-encodings-differ-us-ascii-and-dummy-encoding/129807 "2008-02-22T03:41:18Z")

</div>

e$B@\>;3OB9-$G$9!#e(B irbe$B\>e$Ge(B"".force\_encoding(“iso-2022-jp”)e$B$,e(B ArgumentError: character encodings differ: US-ASCII and ISO-2022-JP e$B$Ge(BMaybe IRB bug!!e$B$H$J$k860x$rD4$Y$F$\_$?$H$3$m!"e(Bdummy encoding…

---

## [Same Methode name but different Parameter](https://www.ruby-forum.com/t/same-methode-name-but-different-parameter/124899)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/same-methode-name-but-different-parameter/124899 "2008-01-03T20:24:25Z")

</div>

Dear all, can i use in Ruby the same Methode name but different Parameter?? like def new (cent) end def new(euro,cent) end. regards, salai.

---

## [Macaddr-0.0.1](https://www.ruby-forum.com/t/macaddr-0-0-1/114156)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 6\
**Last updated:** [September 9, 2007, 4:06am UTC](https://www.ruby-forum.com/t/macaddr-0-0-1/114156 "2007-09-09T04:06:20Z")

</div>

NAME macaddr DESCRIPTION cross platform mac address determination for ruby URI http://codeforpeople.com/lib/ruby http://rubyforg.org/projects/codeforpeople INSTALL gem install macaddr SYNOPSIS require ‘macaddr’ …

---

## [Reading materials](https://www.ruby-forum.com/t/reading-materials/103952)

<div class="topic-metadata">

**Author:** [@Concours](https://www.ruby-forum.com/u/Concours)\
**Replies:** 6\
**Last updated:** [May 12, 2007, 7:24am UTC](https://www.ruby-forum.com/t/reading-materials/103952 "2007-05-12T07:24:02Z")

</div>

I’ve recently been turned on to Ruby and Rails, and after some preliminary searching, I’ve settled on two sources to help get things started. Beginning Ruby: From Novice to Professional (Expert’s Voice in Open Sourc…

---

## [Module documentation missing](https://www.ruby-forum.com/t/module-documentation-missing/88729)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 6\
**Last updated:** [March 14, 2007, 7:08am UTC](https://www.ruby-forum.com/t/module-documentation-missing/88729 "2007-03-14T07:08:39Z")

</div>

The documentation page for Module is missing from RDoc Documentation. Is this intended? Lots of method links are broken because of this. Jason

---

## [Has through](https://www.ruby-forum.com/t/has-through/86599)

<div class="topic-metadata">

**Author:** [@bitterbal](https://www.ruby-forum.com/u/bitterbal)\
**Replies:** 6\
**Last updated:** [February 23, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/has-through/86599 "2007-02-23T19:49:35Z")

</div>

Hi, I have 3 models Product has\_many :mutations def current\_stock end Mutation belongs\_to :product belongs\_to :location Location has\_many :mutations Question: I can show the currect stock of a product with …

---

## [Postgresql vs mysql?](https://www.ruby-forum.com/t/postgresql-vs-mysql/82935)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 6\
**Last updated:** [January 22, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/postgresql-vs-mysql/82935 "2007-01-22T21:59:43Z")

</div>

hi, which is better between postgresql and mysql in a system with a lot of queries and where performance is very important ? is possible for both to have a database cluster? is there anyone who has one ?

---

## [Setting a "global" variable](https://www.ruby-forum.com/t/setting-a-global-variable/79547)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 6\
**Last updated:** [December 19, 2006, 5:18pm UTC](https://www.ruby-forum.com/t/setting-a-global-variable/79547 "2006-12-19T17:18:12Z")

</div>

hi, all… i have an activerecord object called: @site\_info = SiteInfo.find(:first) that is used on pretty much every page on my site… i am finding that i have to set that all over the place in my app… is it possible …

---

## [Free webeditor](https://www.ruby-forum.com/t/free-webeditor/75694)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 6\
**Last updated:** [November 13, 2006, 9:43pm UTC](https://www.ruby-forum.com/t/free-webeditor/75694 "2006-11-13T21:43:19Z")

</div>

Hey, I have an website with a lot of textareas, and in those textarea you can write html code. Like making an table, centre text, bold, etc. Then the content will be shown as html on the website. Just like hotmail has…

---

## [Attr\_reader + attr\_writer?](https://www.ruby-forum.com/t/attr-reader-attr-writer/71983)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 6\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/attr-reader-attr-writer/71983 "2006-10-18T10:44:01Z")

</div>

Is there a class method that combines attr\_reader and attr\_writer? I thought I remember seeing some “cattr\_\*” method, but don’t know what that was. Thanks, Joe

---

## [SQL Generator library](https://www.ruby-forum.com/t/sql-generator-library/66450)

<div class="topic-metadata">

**Author:** [@sevensoft](https://www.ruby-forum.com/u/sevensoft)\
**Replies:** 6\
**Last updated:** [August 27, 2006, 6:31am UTC](https://www.ruby-forum.com/t/sql-generator-library/66450 "2006-08-27T06:31:03Z")

</div>

I’m writing a library for generating fairly complicated SQL statements in a relatively clean way. The current version of the library can be found at Linguistic Cognition Laboratory: About and some sample code which …

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

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