# Top

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

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

---

## [Packet chopping](https://www.ruby-forum.com/t/packet-chopping/162522)

<div class="topic-metadata">

**Author:** [@wpvanpaassen](https://www.ruby-forum.com/u/wpvanpaassen)\
**Replies:** 4\
**Last updated:** [September 25, 2009, 12:55am UTC](https://www.ruby-forum.com/t/packet-chopping/162522 "2009-09-25T00:55:59Z")

</div>

List, We are implementing a packet-based system with gnuradio, and we experience that the packets are not sent in one flush from the USRP. In our transmitter we are maintaining a data path and a control path, so we e…

---

## [Upgrading Ruby - will it affect Rails? - 1.8.6 to 1.9.1](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [July 23, 2009, 2:53am UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509 "2009-07-23T02:53:41Z")

</div>

Hi all, I have a question regarding upgrading Ruby and how it may or may not affect rails. Other than rubygems and gem versions that my project will use (I know I have to check to make sure they will work with 1.9.1 …

---

## ["consuming" the hash instead of just fetching from it](https://www.ruby-forum.com/t/consuming-the-hash-instead-of-just-fetching-from-it/168565)

<div class="topic-metadata">

**Author:** [@balint](https://www.ruby-forum.com/u/balint)\
**Replies:** 4\
**Last updated:** [May 22, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/consuming-the-hash-instead-of-just-fetching-from-it/168565 "2009-05-22T19:47:15Z")

</div>

Hi, Deleting (vs. just fetching) the hash key from an options hash that was passed in as an argument to the method seems prevalent. I saw it in several high-quality OS projects (e.g DataMapper, Rails) For example: u…

---

## [Complex forms: only one level of â€œarrayn essâ€ is allowed?](https://www.ruby-forum.com/t/complex-forms-only-one-level-of-a-oearrayn-essa-is-allowed/165558)

<div class="topic-metadata">

**Author:** [@PJPJPJ](https://www.ruby-forum.com/u/PJPJPJ)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/complex-forms-only-one-level-of-a-oearrayn-essa-is-allowed/165558 "2009-04-15T18:40:19Z")

</div>

Hi all, I thought I was trying to do something rather simple, but it has caused me a lot of headaches. Here it is: in my program: model\_a has\_many model\_b. model\_b has\_many model\_c. in the user interface, I would…

---

## [Another rewrite question http://www.domain.com/co/](https://www.ruby-forum.com/t/another-rewrite-question-http-www-domain-com-co/165425)

<div class="topic-metadata">

**Author:** [@devin](https://www.ruby-forum.com/u/devin)\
**Replies:** 4\
**Last updated:** [April 15, 2009, 2:11am UTC](https://www.ruby-forum.com/t/another-rewrite-question-http-www-domain-com-co/165425 "2009-04-15T02:11:41Z")

</div>

I have tried tons of combinations without any luck: I want to get this rule: http://www.domain.com/uk/ → index.php?country=uk From Apache: RewriteRule ^({2,}/)$ index.php?country=$1 RewriteRule ^({2,})$ index.php?co…

---

## [Captures in regex locations](https://www.ruby-forum.com/t/captures-in-regex-locations/162012)

<div class="topic-metadata">

**Author:** [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Replies:** 4\
**Last updated:** [March 4, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/captures-in-regex-locations/162012 "2009-03-04T23:31:16Z")

</div>

The patch against 0.7.39 to support captures in regex location an “alias” inside these locations location ~\* ^/files/(.+.(?:gif|jpe?g|png))$ { alias /path/to/$1; } captures became global and may be used as …

---

## [Errore di conversione](https://www.ruby-forum.com/t/errore-di-conversione/161576)

<div class="topic-metadata">

**Author:** [@stewie](https://www.ruby-forum.com/u/stewie)\
**Replies:** 4\
**Last updated:** [March 3, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/errore-di-conversione/161576 "2009-03-03T19:05:38Z")

</div>

Ciao ragazzi,ho un problema…io ho una frase memorizzara in un array: result=(Application as TApacheTwoApplication).ProcessRequest a me interessa l’ “as”,cioÃ¨ vorrei sapere a che elemento dell’array corrisponde quella…

---

## [Help redirecting to the same page](https://www.ruby-forum.com/t/help-redirecting-to-the-same-page/160888)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [February 24, 2009, 9:08am UTC](https://www.ruby-forum.com/t/help-redirecting-to-the-same-page/160888 "2009-02-24T09:08:51Z")

</div>

I have a login controller and a link so I can login my app. I would like to have something to come back to the page where I clicked that link. So, when I click the link I go to the login page and after I would like to…

---

## [Remove www from url](https://www.ruby-forum.com/t/remove-www-from-url/161156)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 4\
**Last updated:** [February 24, 2009, 3:36am UTC](https://www.ruby-forum.com/t/remove-www-from-url/161156 "2009-02-24T03:36:58Z")

</div>

So i have a rails app running in 2.0.2 and I would like to know if anyone can point me in the right direction on how to remove the www from the url. so if someone goes to www.mydomain.com it will forward them to mydom…

---

## [Command line utilities in rubygems?](https://www.ruby-forum.com/t/command-line-utilities-in-rubygems/155592)

<div class="topic-metadata">

**Author:** [@navouri](https://www.ruby-forum.com/u/navouri)\
**Replies:** 4\
**Last updated:** [December 14, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/command-line-utilities-in-rubygems/155592 "2008-12-14T20:55:41Z")

</div>

I have a small project that I’m working on and I would like the executable to be put in the usr bin path and setup so that it can be used as a command line utility automatically when installed using gem install. How w…

---

## [Are the docs correct for spaceship \<=\> in String?](https://www.ruby-forum.com/t/are-the-docs-correct-for-spaceship-in-string/154898)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 10:28pm UTC](https://www.ruby-forum.com/t/are-the-docs-correct-for-spaceship-in-string/154898 "2008-12-05T22:28:15Z")

</div>

Hello all, First-time poster… I apologize if I am posting to the wrong group. I am teaching a class of high-schoolers in programming, using Ruby. I gave them an exercise called “Stupid String Tricks” which was about …

---

## [Routing to a new action of a nested resource](https://www.ruby-forum.com/t/routing-to-a-new-action-of-a-nested-resource/152468)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 4\
**Last updated:** [November 25, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/routing-to-a-new-action-of-a-nested-resource/152468 "2008-11-25T18:07:36Z")

</div>

Hi, can anyone help with a routing problem for nested resources: My models are User (has\_one :house) and House (belongs\_to :user). I have a houses\_controller and a user\_house\_controller. house\_controller is for the ad…

---

## [Re: Backtrace supported?](https://www.ruby-forum.com/t/re-backtrace-supported/149727)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/re-backtrace-supported/149727 "2008-09-29T18:14:35Z")

</div>

Yeah, they are a work in progress. Backtrace is probably hard to spec because it may differ implementation to implementation. JD

---

## [Render partial from model?](https://www.ruby-forum.com/t/render-partial-from-model/136088)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [April 29, 2008, 4:36am UTC](https://www.ruby-forum.com/t/render-partial-from-model/136088 "2008-04-29T04:36:27Z")

</div>

Hi, I know that this goes against MVC, but is there any way to render a partial from a model? The reason for me wanting to do this is that the caching logic is quite complex and I would like to keep it in the model. T…

---

## [Case insensitivity in assert](https://www.ruby-forum.com/t/case-insensitivity-in-assert/134129)

<div class="topic-metadata">

**Author:** [@complete](https://www.ruby-forum.com/u/complete)\
**Replies:** 4\
**Last updated:** [April 8, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/case-insensitivity-in-assert/134129 "2008-04-08T12:06:27Z")

</div>

I’m only a few days old in this whiz-bang rails world, so bear with me. I’m in the middle of running functional tests, I’ve got some assert statements that check for the presence of a various tags on the page… One of …

---

## [Another redirect](https://www.ruby-forum.com/t/another-redirect/131388)

<div class="topic-metadata">

**Author:** [@Eire\_A](https://www.ruby-forum.com/u/Eire_A)\
**Replies:** 4\
**Last updated:** [March 9, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/another-redirect/131388 "2008-03-09T18:31:28Z")

</div>

i have exhausted my resources on this one. please help if your able. i am moving to a new site. the old site has some good standing in google which points to oldsite.com/tips.ws now, the new site which is in rails …

---

## [Fwd: Ofdm parameters](https://www.ruby-forum.com/t/fwd-ofdm-parameters/127909)

<div class="topic-metadata">

**Author:** [@jacopo](https://www.ruby-forum.com/u/jacopo)\
**Replies:** 4\
**Last updated:** [February 4, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/fwd-ofdm-parameters/127909 "2008-02-04T17:27:32Z")

</div>

Thanks! But where can i check this parameter? Is it possible that fft\_length= occupated carrier (–occupied-tones in blksimpl/ofdm.py) + un\_used carrier ? Where can i set the position of the occupated\_bins? bye 2008…

---

## [Subscriptions with paypal...how?](https://www.ruby-forum.com/t/subscriptions-with-paypal-how/127706)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/subscriptions-with-paypal-how/127706 "2008-01-31T18:48:45Z")

</div>

Hi, i’ve to do a little site which need the paypal’s subscription feature. How can implement it with rails? is there any plugin to do this? I need that every month the payment has been taken, tell the system that has …

---

## [Basic date/time question](https://www.ruby-forum.com/t/basic-date-time-question/123711)

<div class="topic-metadata">

**Author:** [@silvertab](https://www.ruby-forum.com/u/silvertab)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/basic-date-time-question/123711 "2007-12-19T23:27:31Z")

</div>

I’m trying to calculate a period of time; basically each month is divided in 2 periods, from the 1st of the month to the 15th is period1, and from the 16th to the last day of the month is period2… Now my problem is th…

---

## [\[ANN\] Radiant 0.6.4 - Gem Shaper Release](https://www.ruby-forum.com/t/ann-radiant-0-6-4-gem-shaper-release/119822)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 4\
**Last updated:** [November 11, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-6-4-gem-shaper-release/119822 "2007-11-11T21:44:03Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ This release contains a few major changes as well as numerous bug-fixes and enhancements. Included in the release are Rails 1.2.5, …

---

## [How to use javascript in rhtml](https://www.ruby-forum.com/t/how-to-use-javascript-in-rhtml/196502)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 4\
**Last updated:** [October 26, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-use-javascript-in-rhtml/196502 "2007-10-26T15:09:37Z")

</div>

hello, I needed to know a javascript function which I can use for focusing my cursor on the first text field of a given page. That is as soon as I load a page, my cursor should start blinking in the first text field …

---

## [Consulta scaffold](https://www.ruby-forum.com/t/consulta-scaffold/117873)

<div class="topic-metadata">

**Author:** [@Santiago\_Y](https://www.ruby-forum.com/u/Santiago_Y)\
**Replies:** 4\
**Last updated:** [October 22, 2007, 3:53am UTC](https://www.ruby-forum.com/t/consulta-scaffold/117873 "2007-10-22T03:53:39Z")

</div>

Soy medio nuevo en el tema de RoR. Mi consulta es la sgte: Tengo en mi BD una tabla Películas, en las cuales 2 campos son claves foráneas de otras tablas. Crea un scaffold de las tablas, le indique las relaciones, has…

---

## [Nested array filling bad](https://www.ruby-forum.com/t/nested-array-filling-bad/115307)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/nested-array-filling-bad/115307 "2007-09-24T12:20:40Z")

</div>

I try to fill a nested array this way irb(main):001:0\> cat\_a = Array.new(7, Array.new) irb(main):002:0\> cat\_a\[0\] \<\< 0 =\> \[0\] irb(main):004:0\> cat\_a\[1\] \<\< 1 =\> \[0, 1\] but it gives me back irb(main):005:0\> cat\_a =\> …

---

## [Dreamhost Rails application issues](https://www.ruby-forum.com/t/dreamhost-rails-application-issues/92211)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [May 30, 2007, 11:16am UTC](https://www.ruby-forum.com/t/dreamhost-rails-application-issues/92211 "2007-05-30T11:16:53Z")

</div>

I set up my application and I get the following error: I googled it and some people mentioned that my database can be emty. Its not though. undefined method downcase' for nil:NilClass /usr/lib/ruby/gems/1.8/gems/action…

---

## [Run some method based on some condition](https://www.ruby-forum.com/t/run-some-method-based-on-some-condition/91253)

<div class="topic-metadata">

**Author:** [@kennyd](https://www.ruby-forum.com/u/kennyd)\
**Replies:** 4\
**Last updated:** [April 6, 2007, 3:55am UTC](https://www.ruby-forum.com/t/run-some-method-based-on-some-condition/91253 "2007-04-06T03:55:14Z")

</div>

Say I wanted to run a method based on a condition like so: class Klass def initialize a = ‘1st’ b = ‘2nd’ c = ‘3rd’ end def a a end def b b end def c c end end ob = Klass.new \[‘a’,‘b’,‘c’\].do {|x| ob. h…

---

## [Rutas restful](https://www.ruby-forum.com/t/rutas-restful/90163)

<div class="topic-metadata">

**Author:** [@panto](https://www.ruby-forum.com/u/panto)\
**Replies:** 4\
**Last updated:** [March 31, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/rutas-restful/90163 "2007-03-31T22:11:20Z")

</div>

buenas, tengo estas rutas definidas: map.resources :artists do |artists| artists.resources :albums do |albums| albums.resources :tracks end end con esto consigo una url del estilo: /artists/1/albums/1/tracks/1 pe…

---

## [Self Referential has\_many :through broken functionality?](https://www.ruby-forum.com/t/self-referential-has-many-through-broken-functionality/89683)

<div class="topic-metadata">

**Author:** [@pathologic](https://www.ruby-forum.com/u/pathologic)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 4:09am UTC](https://www.ruby-forum.com/t/self-referential-has-many-through-broken-functionality/89683 "2007-03-27T04:09:03Z")

</div>

Having set up my self referential user -\> friend relationship with the following code all seems to be working well except for one thing. Adding and deleting friends. Here is the code for the models: class Friendship \<…

---

## [Adding Business Logic in ActiveRecord](https://www.ruby-forum.com/t/adding-business-logic-in-activerecord/89888)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 4\
**Last updated:** [March 23, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/adding-business-logic-in-activerecord/89888 "2007-03-23T18:59:59Z")

</div>

I have some business logic in a class class Account \< ActiveRecord::Base … … def received\_accounttransactions accounttransactions.inject(0) {|total, accounttransaction| total + accounttransaction.amount } end end …

---

## [Running rails 1.2.2 in \\vendor\\rails problems](https://www.ruby-forum.com/t/running-rails-1-2-2-in-vendor-rails-problems/84927)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [February 28, 2007, 7:50am UTC](https://www.ruby-forum.com/t/running-rails-1-2-2-in-vendor-rails-problems/84927 "2007-02-28T07:50:32Z")

</div>

Hi, I am trying to move from gem rails to edge rails (well, 1.2.2 with a patch). I have been running gem rails 1.2.2 successfully. When I do a svn:externals to tag rel\_1-2-2 \[http://dev.rubyonrails.org/svn/rails/tags…

---

## [=?iso-8859-1?q?Plugin\_imprescindible\_-\_actualizaci=F3n\_p?= =](https://www.ruby-forum.com/t/iso-8859-1-q-plugin-imprescindible-actualizaci-f3n-p/82269)

<div class="topic-metadata">

**Author:** [@Manuel\_GonzSSSSlez\_S](https://www.ruby-forum.com/u/Manuel_GonzSSSSlez_S)\
**Replies:** 4\
**Last updated:** [February 24, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/iso-8859-1-q-plugin-imprescindible-actualizaci-f3n-p/82269 "2007-02-24T21:11:20Z")

</div>

– Manuel http://linkja.com \* un agregador de tendencias http://simplelogica.net http://simplelogica.net/logicola

---

## [New, form\_for and automatically-determined values](https://www.ruby-forum.com/t/new-form-for-and-automatically-determined-values/82826)

<div class="topic-metadata">

**Author:** [@dankelley](https://www.ruby-forum.com/u/dankelley)\
**Replies:** 4\
**Last updated:** [January 23, 2007, 1:29am UTC](https://www.ruby-forum.com/t/new-form-for-and-automatically-determined-values/82826 "2007-01-23T01:29:28Z")

</div>

I have something I’m calling “tag”, and it has a text field plus (among other things) a field to hold the time of creation. My goal is to present the user with a form asking for the text field, but to infer (and save…

---

## [Problema Rake migrate y SQLite](https://www.ruby-forum.com/t/problema-rake-migrate-y-sqlite/80652)

<div class="topic-metadata">

**Author:** [@Joselo](https://www.ruby-forum.com/u/Joselo)\
**Replies:** 4\
**Last updated:** [December 29, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/problema-rake-migrate-y-sqlite/80652 "2006-12-29T21:17:42Z")

</div>

Hola a todos, tengo un problema al usar SQLite y Migrate. Mi database.ymlbasicamente esta asi. development: adapter: sqlite database: db/blog.sqlite Hago algunos models y unos migrates y cuando aplico: #rake migrate …

---

## [PayPal WSDL API on Rails anyone?](https://www.ruby-forum.com/t/paypal-wsdl-api-on-rails-anyone/69847)

<div class="topic-metadata">

**Author:** [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Replies:** 4\
**Last updated:** [December 14, 2006, 4:55pm UTC](https://www.ruby-forum.com/t/paypal-wsdl-api-on-rails-anyone/69847 "2006-12-14T16:55:28Z")

</div>

Hi ! Has anyone connected to the Mass Pay API of PayPal using Rails ? I need to do this for a customer, and I wanted to know how easy/hard it was. I have no experience using SOAP, WSDL, etc. I saw soap4r\[1\] on the …

---

## [How to get current method/action name from layout rhtml](https://www.ruby-forum.com/t/how-to-get-current-method-action-name-from-layout-rhtml/72009)

<div class="topic-metadata">

**Author:** [@roseanne](https://www.ruby-forum.com/u/roseanne)\
**Replies:** 4\
**Last updated:** [October 13, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/how-to-get-current-method-action-name-from-layout-rhtml/72009 "2006-10-13T17:29:29Z")

</div>

I want to know what is current controller / action in my layout.rhtml shared by all my rhtml files to make some style changes. I am new in ruby and RoR, I believe there must be a simple solution for this. Any help wo…

---

## [Blue RoR desktop background](https://www.ruby-forum.com/t/blue-ror-desktop-background/70718)

<div class="topic-metadata">

**Author:** [@roderickvd](https://www.ruby-forum.com/u/roderickvd)\
**Replies:** 4\
**Last updated:** [October 2, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/blue-ror-desktop-background/70718 "2006-10-02T16:39:41Z")

</div>

Does anyone have the blue RoR wallpaper around to put up somewhere? It was mentioned on Riding Rails and should be up at http://hacker.com.br/ttaranto/rails-xtra-large-blue.jpg, but that server has been timing out on …

---

## [Indexing multiple languages with acts\_as\_ferret](https://www.ruby-forum.com/t/indexing-multiple-languages-with-acts-as-ferret/65864)

<div class="topic-metadata">

**Author:** [@ryank](https://www.ruby-forum.com/u/ryank)\
**Replies:** 4\
**Last updated:** [September 18, 2006, 4:37am UTC](https://www.ruby-forum.com/t/indexing-multiple-languages-with-acts-as-ferret/65864 "2006-09-18T04:37:57Z")

</div>

I have an applicaiton where I’m indexing content in a number of languages, all encoded in UTF8. I would think that having my locale set to en\_US.utf8 would be sufficient to make this work in ferret/acts\_as\_ferret, but…

---

## [Controllers - model vs. use case centric](https://www.ruby-forum.com/t/controllers-model-vs-use-case-centric/97477)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 4\
**Last updated:** [July 7, 2006, 11:26pm UTC](https://www.ruby-forum.com/t/controllers-model-vs-use-case-centric/97477 "2006-07-07T23:26:25Z")

</div>

I am working on a reasonably large application (which happens to be my first with rails). I was hoping to get some input on organisation of controllers and actions. I am finding having used scaffolding more at the be…

---

## [Class variables and class instance variables in Pickaxe 2nd](https://www.ruby-forum.com/t/class-variables-and-class-instance-variables-in-pickaxe-2nd/95067)

<div class="topic-metadata">

**Author:** [@uncutstone](https://www.ruby-forum.com/u/uncutstone)\
**Replies:** 4\
**Last updated:** [May 21, 2006, 6:47am UTC](https://www.ruby-forum.com/t/class-variables-and-class-instance-variables-in-pickaxe-2nd/95067 "2006-05-21T06:47:15Z")

</div>

These are two concepts in Pickaxe 2nd edtion. Class Variables example is in chapter 3: class Song @@plays = 0 def play @@plays += 1 end end Class instance variables example is in chapter 24: class Test @cls\_var …

---

## [Cascaded Forms](https://www.ruby-forum.com/t/cascaded-forms/94998)

<div class="topic-metadata">

**Author:** [@Franz\_Bettag](https://www.ruby-forum.com/u/Franz_Bettag)\
**Replies:** 4\
**Last updated:** [May 19, 2006, 6:23am UTC](https://www.ruby-forum.com/t/cascaded-forms/94998 "2006-05-19T06:23:48Z")

</div>

Hi guys, it’s me again :wink: is it possible to put forms into forms? My problem is, i have a form which gathers informations about an SSL Certificate order. There is a field which holds the SSL CSR file. Now i wanted…

---

## [Searching on foreing keys](https://www.ruby-forum.com/t/searching-on-foreing-keys/94786)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 4\
**Last updated:** [May 14, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/searching-on-foreing-keys/94786 "2006-05-14T20:18:06Z")

</div>

Hey all, I’m using a simple search function. It’s working great except for foreign keys. I have one table pets (id,name,owner\_id) and another table people(id,name) owner\_id being a foreign key of pet pointing to peo…

---

## [Code Shopping in Rails](https://www.ruby-forum.com/t/code-shopping-in-rails/52197)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 4\
**Last updated:** [January 12, 2006, 10:57am UTC](https://www.ruby-forum.com/t/code-shopping-in-rails/52197 "2006-01-12T10:57:47Z")

</div>

Back in the horse-and-buggy days when I was cutting my OO eye teeth on Smalltalk, we had a LOT of conversations about the biggest problem dealing with a large and growing set of classes and methods in the Smalltalk im…

---

## [Apache2 and popen](https://www.ruby-forum.com/t/apache2-and-popen/90600)

<div class="topic-metadata">

**Author:** [@Jon\_ASLambert](https://www.ruby-forum.com/u/Jon_ASLambert)\
**Replies:** 4\
**Last updated:** [January 7, 2006, 1:37pm UTC](https://www.ruby-forum.com/t/apache2-and-popen/90600 "2006-01-07T13:37:04Z")

</div>

I’m running Apache2 on windows and I have a controller that issues a popen. class FileController \< ApplicationController def index f = IO.popen(“dir”) @files = f.readlines end end This works using webbrick but on…

---

## [Strange crash (interpreter bug?)](https://www.ruby-forum.com/t/strange-crash-interpreter-bug/49437)

<div class="topic-metadata">

**Author:** [@sylvain.joyeux](https://www.ruby-forum.com/u/sylvain.joyeux)\
**Replies:** 4\
**Last updated:** [December 5, 2005, 12:22pm UTC](https://www.ruby-forum.com/t/strange-crash-interpreter-bug/49437 "2005-12-05T12:22:05Z")

</div>

I was trying to fix the busy\_handler of the sqlite3. (version 1.1.0 makes the interpreter crash) Rewriting busy\_handler in lib/sqlite3/native/driver.rb from def busy\_handler( db, data=nil, &block ) if block cb …

---

## [DRYer way to see if array exists before I do a find?](https://www.ruby-forum.com/t/dryer-way-to-see-if-array-exists-before-i-do-a-find/140823)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [June 20, 2008, 4:03am UTC](https://www.ruby-forum.com/t/dryer-way-to-see-if-array-exists-before-i-do-a-find/140823 "2008-06-20T04:03:10Z")

</div>

Many times I perform logic where I look to gather an array of records, but first must check to see if any exists (so I don’t get an error of a .nil array). Here is an example of some code I wrote to today, is there a …

---

## [Generate time sheet](https://www.ruby-forum.com/t/generate-time-sheet/111685)

<div class="topic-metadata">

**Author:** [@Ajit](https://www.ruby-forum.com/u/Ajit)\
**Replies:** 8\
**Last updated:** [August 9, 2007, 10:06pm UTC](https://www.ruby-forum.com/t/generate-time-sheet/111685 "2007-08-09T22:06:55Z")

</div>

Hi does anybody know how to generate a time sheet? like starts from 8:00 Am 8:15 AM 8:30 AM 6:00 PM Please advice Thanks Ajit

---

## [OOT block with varible type of input/output](https://www.ruby-forum.com/t/oot-block-with-varible-type-of-input-output/252942)

<div class="topic-metadata">

**Author:** [@alireza](https://www.ruby-forum.com/u/alireza)\
**Replies:** 0\
**Last updated:** [August 25, 2019, 7:24am UTC](https://www.ruby-forum.com/t/oot-block-with-varible-type-of-input-output/252942 "2019-08-25T07:24:05Z")

</div>

How to design OOT block similar to add\_const\_vXX.cc.t in template form ,I want to design a block that find out difference between float input and integer input but because size of both is 4 bytes ,i don’t handle it,so …

---

## [Security - How to sanizitize JSON?](https://www.ruby-forum.com/t/security-how-to-sanizitize-json/226481)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 0\
**Last updated:** [December 8, 2012, 11:24pm UTC](https://www.ruby-forum.com/t/security-how-to-sanizitize-json/226481 "2012-12-08T23:24:58Z")

</div>

Hi, I’m on Rails 3.2.8 and one of my apps sends some json to create DB objects. What’s the best way to sanitize json? I found this post claiming that for json we need to escape manually since json\_escape is broken: I…

---

## [Controller methods and how I learned to love 'rake routes'](https://www.ruby-forum.com/t/controller-methods-and-how-i-learned-to-love-rake-routes/187885)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/controller-methods-and-how-i-learned-to-love-rake-routes/187885 "2010-04-30T21:57:04Z")

</div>

Face it: to the newcomer, Rails routing is strange and mysterious. It took me a while get the hang of it, so I thought I’d share some info (and a couple of handy techniques) for those who are new to Rails. Here, assu…

---

## [Manejar atributos de 2 objetos de una clase](https://www.ruby-forum.com/t/manejar-atributos-de-2-objetos-de-una-clase/245091)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [September 27, 2016, 6:33pm UTC](https://www.ruby-forum.com/t/manejar-atributos-de-2-objetos-de-una-clase/245091 "2016-09-27T18:33:27Z")

</div>

Hola a todos Les pido si me pueden evacuar una consulta: Estoy viendo clases y objetos y quiero referenciar dentro de una misma clase los atributos de 2 objetos diferentes. El código seria este: class Enterolargo d…

---

## [Upgrading to Rails 4 Sprockets::ConversionError](https://www.ruby-forum.com/t/upgrading-to-rails-4-sprockets-conversionerror/244049)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [February 12, 2016, 3:08pm UTC](https://www.ruby-forum.com/t/upgrading-to-rails-4-sprockets-conversionerror/244049 "2016-02-12T15:08:21Z")

</div>

I am in the process of upgrading my app to rails 4. On stylesheet\_link\_tag or image\_tag I get the error: Sprockets::ConversionError at / could not convert “text/html” to nil In the console: helper.image\_tag(“accept…

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

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