# Top

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

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

---

## [Question about ActiveRecord](https://www.ruby-forum.com/t/question-about-activerecord/103786)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 6\
**Last updated:** [May 11, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/question-about-activerecord/103786 "2007-05-11T18:36:52Z")

</div>

Hi I have a quick creation form (in a form) : the displayed fields correspond only to some of the attributes of the corresponding model. In my controller , create action : esaily, i would like to use the : @user = U…

---

## [novitÃ  sugli editor (windows)](https://www.ruby-forum.com/t/novita-sugli-editor-windows/90385)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 6\
**Last updated:** [March 29, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/novita-sugli-editor-windows/90385 "2007-03-29T12:57:02Z")

</div>

la potenza di textmate sotto winzozz!!! Questo è il loro slogan, e occhio e croce il prodotto tiene fede alle aspettative… dategli un’occhiata! funziona, contro la forfora, regolarmente! inoltre, per tutti coloro che…

---

## [Easy Date question - newb](https://www.ruby-forum.com/t/easy-date-question-newb/88640)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 6\
**Last updated:** [March 13, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/easy-date-question-newb/88640 "2007-03-13T21:32:46Z")

</div>

All I want to do is find the objects that were created today under the ‘created\_on’ column. I’ve tried many ways, here is one example using the chronic gem. @products = Product.find\_all\_by\_created\_on(Chronic.parse(‘to…

---

## [Undefined method \`at' for nil:NilClass in parseexcel.help pl](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-in-parseexcel-help-pl/86566)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 6\
**Last updated:** [February 25, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/undefined-method-at-for-nil-nilclass-in-parseexcel-help-pl/86566 "2007-02-25T20:45:06Z")

</div>

use this code to open my ‘2007-02-231028.xls’ file. the file is in the same directory of the program. my code: require ‘parseexcel’ workbook = Spreadsheet::ParseExcel.parse(‘2007-02-231028.xls’) worksheet = workbook…

---

## [Gmsk in light of fpga modifications](https://www.ruby-forum.com/t/gmsk-in-light-of-fpga-modifications/82213)

<div class="topic-metadata">

**Author:** [@Brett\_Trotter](https://www.ruby-forum.com/u/Brett_Trotter)\
**Replies:** 6\
**Last updated:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/gmsk-in-light-of-fpga-modifications/82213 "2007-01-19T16:31:03Z")

</div>

I’m still trying to do gmsk over the LFRX/TX boards and had hoped that my fpga modification might help. I can get the tunnel up and ping and even copy about 400-600kb of a file over scp, but then all of a sudden, th…

---

## [Ruby Reports 0.4.19 Released](https://www.ruby-forum.com/t/ruby-reports-0-4-19-released/100604)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 6\
**Last updated:** [July 31, 2006, 10:11pm UTC](https://www.ruby-forum.com/t/ruby-reports-0-4-19-released/100604 "2006-07-31T22:11:45Z")

</div>

Hi folks, I’m happy to announce the 7th Summer of Code release of Ruport. = Ruby Reports 0.4.19 : The “Robber Baron” Edition = == What is Ruport? == Ruby Reports is a library and soon-to-be framework for doing busine…

---

## [How to use the ruby only version of ferret?](https://www.ruby-forum.com/t/how-to-use-the-ruby-only-version-of-ferret/100206)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 6\
**Last updated:** [July 30, 2006, 11:13am UTC](https://www.ruby-forum.com/t/how-to-use-the-ruby-only-version-of-ferret/100206 "2006-07-30T11:13:32Z")

</div>

Hey … I tried to use ferret on a development system for some days, but it keeps crashing with some glibc error message… i understand that you’re currently rewriting most of the c code … meanwhile i would like to use …

---

## [Replacing ' with \\' using gsub](https://www.ruby-forum.com/t/replacing-with-using-gsub/99325)

<div class="topic-metadata">

**Author:** [@soila](https://www.ruby-forum.com/u/soila)\
**Replies:** 6\
**Last updated:** [July 21, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/replacing-with-using-gsub/99325 "2006-07-21T19:40:39Z")

</div>

I tried to replace “’” characters with “’” strings using gsub. What happened instead was something completely different. Am I missing something here? (in irb) irb(main):001:0\> s = “a’b’” =\> “a’b’” Unexpected result …

---

## [Capistrano with Local (not file:///) repository](https://www.ruby-forum.com/t/capistrano-with-local-not-file-repository/64152)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 6\
**Last updated:** [June 23, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/capistrano-with-local-not-file-repository/64152 "2006-06-23T13:25:21Z")

</div>

I’m developing an rails app. The SVN repository resides on a (Win 2k) server on my company’s local intranet. The repository is accessed via http (Apache + mod\_dav\_svn). From this machine, it is not a problem to get o…

---

## [Distinguishing mapped urls from ordinary action urls](https://www.ruby-forum.com/t/distinguishing-mapped-urls-from-ordinary-action-urls/93884)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 12, 2006, 11:48pm UTC](https://www.ruby-forum.com/t/distinguishing-mapped-urls-from-ordinary-action-urls/93884 "2006-04-12T23:48:17Z")

</div>

I want to present different view depending on the url. example below: http://myapp/start/show?url=xZq http://myapp/xZq both addresses are controlled by a single controller and the same action. the second url is onl…

---

## [Microsoft SQL Server has me stumped](https://www.ruby-forum.com/t/microsoft-sql-server-has-me-stumped/55902)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 6\
**Last updated:** [March 25, 2006, 10:16am UTC](https://www.ruby-forum.com/t/microsoft-sql-server-has-me-stumped/55902 "2006-03-25T10:16:35Z")

</div>

I’m tinkering around with an old legacy table in SQL Server 2000. Ruby 1.8.4, most recent ADO.rb file from RubyForge, Rails 1.0 Here’s the model: class InventoryItem \< ActiveRecord::Base set\_table\_name “\[SMDBA\].\[INV…

---

## [Scope of an @variable](https://www.ruby-forum.com/t/scope-of-an-variable/54876)

<div class="topic-metadata">

**Author:** [@nko](https://www.ruby-forum.com/u/nko)\
**Replies:** 6\
**Last updated:** [March 15, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/scope-of-an-variable/54876 "2006-03-15T20:52:31Z")

</div>

I’ve got a class. I want some methods of this class to be able to edit some data that’s “global” within any given instance of this class. For example: class Person @name def changeName(newName) @name = newName end …

---

## [Deleting object inn array, if](https://www.ruby-forum.com/t/deleting-object-inn-array-if/49462)

<div class="topic-metadata">

**Author:** [@henrik.ormasen](https://www.ruby-forum.com/u/henrik.ormasen)\
**Replies:** 6\
**Last updated:** [December 5, 2005, 3:06am UTC](https://www.ruby-forum.com/t/deleting-object-inn-array-if/49462 "2005-12-05T03:06:20Z")

</div>

I have an array witch contains the id of living objects. I want to delete objects from the array, if the objects contains an variable == “other\_var”. I was thinking of something like the following thing: FAKE\_DATABAS…

---

## [Intro to Ruby in the Browser (Talk Video)](https://www.ruby-forum.com/t/intro-to-ruby-in-the-browser-talk-video/264256)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 1\
**Last updated:** [September 8, 2023, 12:26am UTC](https://www.ruby-forum.com/t/intro-to-ruby-in-the-browser-talk-video/264256 "2023-09-08T00:26:00Z")

</div>

Matz mentioned in his RubyConf 2022 keynote speech that in the future of Ruby, maybe we could start replacing JavaScript with Ruby in the browser… Blog Post:

---

## [Which One is better Python or PHP ? As per today's Trend!](https://www.ruby-forum.com/t/which-one-is-better-python-or-php-as-per-todays-trend/260002)

<div class="topic-metadata">

**Author:** [@aartijain](https://www.ruby-forum.com/u/aartijain)\
**Replies:** 1\
**Last updated:** [November 4, 2020, 5:19am UTC](https://www.ruby-forum.com/t/which-one-is-better-python-or-php-as-per-todays-trend/260002 "2020-11-04T05:19:31Z")

</div>

Most companies are clueless over the choice on which technology they should use in order to create the best application. They get doubts as to which technology would give them more advantages.Python Training is my choice…

---

## [How to open a folder in network shared drive](https://www.ruby-forum.com/t/how-to-open-a-folder-in-network-shared-drive/249796)

<div class="topic-metadata">

**Author:** [@santosh7183](https://www.ruby-forum.com/u/santosh7183)\
**Replies:** 1\
**Last updated:** [October 26, 2018, 6:01pm UTC](https://www.ruby-forum.com/t/how-to-open-a-folder-in-network-shared-drive/249796 "2018-10-26T18:01:21Z")

</div>

how to open a folder in network shared drive

---

## [\[ANN\] Ruby-GNOME 3.1.1](https://www.ruby-forum.com/t/ann-ruby-gnome-3-1-1/245225)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [January 30, 2017, 11:55am UTC](https://www.ruby-forum.com/t/ann-ruby-gnome-3-1-1/245225 "2017-01-30T11:55:03Z")

</div>

The gems of the Ruby-GNOME2 project are updated to the version 3.1.1. Those new versions bring: support Ruby 2.4 on Windows. and more, see: https://github.com/ruby-gnome2/ruby-gnome2/blob/master/NEWS The source of ht…

---

## [Wrong mimetype when served from nginx](https://www.ruby-forum.com/t/wrong-mimetype-when-served-from-nginx/242636)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [July 12, 2015, 6:58am UTC](https://www.ruby-forum.com/t/wrong-mimetype-when-served-from-nginx/242636 "2015-07-12T06:58:18Z")

</div>

Hello, I have a small issue with my nginx (1.2.1) configuration: some files are served as “application/octet-stream” while they are detected as “text/plain” by "mimetype " command. File names are just “1”, “2”, and s…

---

## [Error on installation of Ruby On Rails on QNAP TS809U-RP \[Linux\]](https://www.ruby-forum.com/t/error-on-installation-of-ruby-on-rails-on-qnap-ts809u-rp-linux/226678)

<div class="topic-metadata">

**Author:** [@wvl](https://www.ruby-forum.com/u/wvl)\
**Replies:** 1\
**Last updated:** [February 18, 2013, 10:40am UTC](https://www.ruby-forum.com/t/error-on-installation-of-ruby-on-rails-on-qnap-ts809u-rp-linux/226678 "2013-02-18T10:40:20Z")

</div>

I am not sure where I should even begin troubleshooting this. I know a little bit about Linux and am comfortable editing files and running commands however definitely not a Linux guru. I have ipkg already installed o…

---

## [What messaging layer to choose?](https://www.ruby-forum.com/t/what-messaging-layer-to-choose/212603)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [October 8, 2011, 10:32am UTC](https://www.ruby-forum.com/t/what-messaging-layer-to-choose/212603 "2011-10-08T10:32:09Z")

</div>

Hi everybody! I need advice on choosing messaging layer for SaaS application building. I chose Ruby as a language, PostgreSQL as a database and OpenLaszlo as a client layer. And finally I should choose messaging laye…

---

## [TDD when you have xml,csv or any file format to read](https://www.ruby-forum.com/t/tdd-when-you-have-xml-csv-or-any-file-format-to-read/210856)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [August 20, 2011, 11:15am UTC](https://www.ruby-forum.com/t/tdd-when-you-have-xml-csv-or-any-file-format-to-read/210856 "2011-08-20T11:15:52Z")

</div>

Guys, I was trying to solve one puzzle\[1\] and could not think of a way to write tests first, the problem which I faced was the problem requires reading XML and CSV file formats so do we normally write tests to check …

---

## [Help with rotues](https://www.ruby-forum.com/t/help-with-rotues/204741)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [March 22, 2011, 3:11am UTC](https://www.ruby-forum.com/t/help-with-rotues/204741 "2011-03-22T03:11:08Z")

</div>

in my cities controller I have def for\_provinceid @cities = City.where(“active = true && province\_id = ?”, params\[:id\]).sort\_by{ |k| k\[‘name’\] } respond\_to do |format| format.json { render :json =\> @cities } end …

---

## [I cant' use Netbenas to develop ruby](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439)

<div class="topic-metadata">

**Author:** [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Replies:** 7\
**Last updated:** [September 27, 2010, 9:14am UTC](https://www.ruby-forum.com/t/i-cant-use-netbenas-to-develop-ruby/195439 "2010-09-27T09:14:20Z")

</div>

I try to develop ruby with netbeans and mysql.I try to generate controller XXX and views YYY and I try access my tested web.But it shows me We’re sorry, but something went wrong. We’ve been notified about this issue …

---

## [Attr\_accessor](https://www.ruby-forum.com/t/attr-accessor/195388)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [September 22, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/attr-accessor/195388 "2010-09-22T18:56:01Z")

</div>

I’m looking at an example here: And, came along this line in MyModel: attr\_accessor :start\_amount, :end\_amount What is “attr\_accessor”? Thanks.

---

## [Strange change in writing. (webserver)](https://www.ruby-forum.com/t/strange-change-in-writing-webserver/194557)

<div class="topic-metadata">

**Author:** [@heric](https://www.ruby-forum.com/u/heric)\
**Replies:** 7\
**Last updated:** [September 9, 2010, 5:43am UTC](https://www.ruby-forum.com/t/strange-change-in-writing-webserver/194557 "2010-09-09T05:43:02Z")

</div>

Hello! I use Nginx / fastcgi. See the graph of connections: Normal requests: Active connections: 2185 Reading: 94 Writing: 736 Waiting: 1355 Strange behavior: Active connections: 10893 Reading: 136 Writing: 945…

---

## [Sort table by price and print the cheapest price car](https://www.ruby-forum.com/t/sort-table-by-price-and-print-the-cheapest-price-car/193982)

<div class="topic-metadata">

**Author:** [@dakshata](https://www.ruby-forum.com/u/dakshata)\
**Replies:** 7\
**Last updated:** [August 29, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/sort-table-by-price-and-print-the-cheapest-price-car/193982 "2010-08-29T23:18:07Z")

</div>

Hello, I am quite new to ruby. I have coded in Java earlier and the code to fire a query in ruby is a lot different and I am struggling. I have this model create\_table “used\_cars”, :force =\> true do |t| t.string “…

---

## [Singleton class in Ruby](https://www.ruby-forum.com/t/singleton-class-in-ruby/190695)

<div class="topic-metadata">

**Author:** [@manoj](https://www.ruby-forum.com/u/manoj)\
**Replies:** 7\
**Last updated:** [June 29, 2010, 3:58am UTC](https://www.ruby-forum.com/t/singleton-class-in-ruby/190695 "2010-06-29T03:58:14Z")

</div>

Can we see the singleton class as object in ruby.

---

## [Why all columns of joined table get instantiated as String?](https://www.ruby-forum.com/t/why-all-columns-of-joined-table-get-instantiated-as-string/184563)

<div class="topic-metadata">

**Author:** [@oshanter](https://www.ruby-forum.com/u/oshanter)\
**Replies:** 7\
**Last updated:** [March 5, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/why-all-columns-of-joined-table-get-instantiated-as-string/184563 "2010-03-05T20:12:34Z")

</div>

Been developing in Rails for about a month and I’m still working on grasping its subtleties. Can someone please shed some light on this simple scenario? Schema create\_table :books do |t| t.string :title t.integer :y…

---

## [CCAvenue Payment gateway in rails](https://www.ruby-forum.com/t/ccavenue-payment-gateway-in-rails/178296)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/ccavenue-payment-gateway-in-rails/178296 "2009-11-02T20:05:56Z")

</div>

Hi Friends i would like to integrate the payment gateway ccavenue in to my railsapp give some guide line for how to implement the gateway Ur’s Mahesh

---

## [\<% %\> is not exactly the same as \<?php ?\>](https://www.ruby-forum.com/t/is-not-exactly-the-same-as-php/167549)

<div class="topic-metadata">

**Author:** [@jianlin](https://www.ruby-forum.com/u/jianlin)\
**Replies:** 7\
**Last updated:** [May 9, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/is-not-exactly-the-same-as-php/167549 "2009-05-09T14:36:42Z")

</div>

it seems that \<% %\> is not exactly the same as \<?php ?\> in which, PHP’s \<?php echo "something" ?\> will add to the output but ERB’s \<% puts “something” %\> will not? Does someone know if JSP and ASP behave like ERB…

---

## [How params initialise](https://www.ruby-forum.com/t/how-params-initialise/148370)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [October 1, 2008, 7:37am UTC](https://www.ruby-forum.com/t/how-params-initialise/148370 "2008-10-01T07:37:11Z")

</div>

Hi, I want to know that how ‘params’ get created in rails? when http: request comes we have get all parameter using hash params e.g:- params\[:id\] But in ActionController how params get created and how it is initiali…

---

## [Association Abuse?](https://www.ruby-forum.com/t/association-abuse/146407)

<div class="topic-metadata">

**Author:** [@codeturkey](https://www.ruby-forum.com/u/codeturkey)\
**Replies:** 7\
**Last updated:** [August 20, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/association-abuse/146407 "2008-08-20T23:36:11Z")

</div>

I have the following relationships: users -\> user\_roles \<- roles In my Role model, I created a habtm association with users: I often find myself wanting to have a list of all the users that aren’t associated with a g…

---

## [Monitor ferret Drb with launchd on OS X](https://www.ruby-forum.com/t/monitor-ferret-drb-with-launchd-on-os-x/144669)

<div class="topic-metadata">

**Author:** [@E\_Durante](https://www.ruby-forum.com/u/E_Durante)\
**Replies:** 1\
**Last updated:** [August 2, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/monitor-ferret-drb-with-launchd-on-os-x/144669 "2008-08-02T23:37:23Z")

</div>

Has anyone tried monitoring the ferret Drb server with launchd (OS X)? Does anyone know if there is any limitation that would prevent ferret from being monitored by launchd? I have tried many different plists and none…

---

## [Atsc\_cpll \*almost\* works](https://www.ruby-forum.com/t/atsc-cpll-almost-works/138208)

<div class="topic-metadata">

**Author:** [@valdar](https://www.ruby-forum.com/u/valdar)\
**Replies:** 7\
**Last updated:** [May 21, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/atsc-cpll-almost-works/138208 "2008-05-21T17:26:45Z")

</div>

After converting atsc\_fpll to handle complex input (to eliminate one upconverter) it almost works, only the video out has problems. The problem starts when this: float I = input.real() \* a\_sin; float Q = input.real()…

---

## [Will not create new row in table](https://www.ruby-forum.com/t/will-not-create-new-row-in-table/133656)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 7\
**Last updated:** [April 2, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/will-not-create-new-row-in-table/133656 "2008-04-02T15:46:27Z")

</div>

Hi, I’ve successfully used: @presentation = current\_user.presentation @presentation = current\_user.create\_presentation unless @presentation before in my code when creating a new user (in the users\_controller) to cre…

---

## [NetBeans IDE for RAILS](https://www.ruby-forum.com/t/netbeans-ide-for-rails/122042)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 7\
**Last updated:** [December 4, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/netbeans-ide-for-rails/122042 "2007-12-04T17:38:17Z")

</div>

Any one used NetBeans for the ROR development in windows? Kindly share your experience

---

## [Ruby on Rails tutorials for beginner](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-beginner/119991)

<div class="topic-metadata">

**Author:** [@rubygeek](https://www.ruby-forum.com/u/rubygeek)\
**Replies:** 7\
**Last updated:** [November 13, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-tutorials-for-beginner/119991 "2007-11-13T16:34:06Z")

</div>

Hi all, Since I just switched from Python to Ruby, I’m looking for some good tutorials to start with. I have googled a lot and found some lists of tutorials, like 12 in http://hpricot.blogspot.com/2007/11/top-12-ruby…

---

## [Hello world (first method)](https://www.ruby-forum.com/t/hello-world-first-method/119106)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 7\
**Last updated:** [November 3, 2007, 10:09am UTC](https://www.ruby-forum.com/t/hello-world-first-method/119106 "2007-11-03T10:09:16Z")

</div>

For the following: C:\\Documents and Settings\\nsaunders\\Desktop\> C:\\Documents and Settings\\nsaunders\\Desktop\>type HelloWorld.rb #5.times { print “Odelay!” } def fact(n) if n \<= 1 1 else n \* fact(n - 1) end p…

---

## [Integrating polymorphic models into controllers views? how?](https://www.ruby-forum.com/t/integrating-polymorphic-models-into-controllers-views-how/111714)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 7\
**Last updated:** [August 12, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/integrating-polymorphic-models-into-controllers-views-how/111714 "2007-08-12T20:30:20Z")

</div>

I’m having trouble trying to get this to work. How the heck do you get a polymorphic controller to work? Especially integrating it with a view? Let’s say that we have shows, and episodes, then comments. A show has ma…

---

## [UI pour l'affichage en taille variable des Tags](https://www.ruby-forum.com/t/ui-pour-laffichage-en-taille-variable-des-tags/101062)

<div class="topic-metadata">

**Author:** [@Mathieu\_C](https://www.ruby-forum.com/u/Mathieu_C)\
**Replies:** 7\
**Last updated:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/ui-pour-laffichage-en-taille-variable-des-tags/101062 "2006-08-03T14:23:21Z")

</div>

Bonjour, Sauriez-vous m’indiquer un projet ou un bout de code, basé sur acts\_as\_taggable. (version DHH ou l’autre) qui affiche les Tags en taille variable. ala del.icio.us J’ai déjà implémenté ça, mais je suis pas tr…

---

## [Printing ruby code](https://www.ruby-forum.com/t/printing-ruby-code/55005)

<div class="topic-metadata">

**Author:** [@Zakaria](https://www.ruby-forum.com/u/Zakaria)\
**Replies:** 7\
**Last updated:** [March 17, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/printing-ruby-code/55005 "2006-03-17T18:28:20Z")

</div>

Hi, What is the best way/tools to printing ruby code to a piece of paper with: method index line number syntax highlight ?. Regards, – Zakaria removed\_email\_address@domain.invalid Yahoo!: z4k4ri4 htt…

---

## [Query String in routes](https://www.ruby-forum.com/t/query-string-in-routes/96423)

<div class="topic-metadata">

**Author:** [@Jon\_ASLambert](https://www.ruby-forum.com/u/Jon_ASLambert)\
**Replies:** 1\
**Last updated:** [January 24, 2006, 8:13am UTC](https://www.ruby-forum.com/t/query-string-in-routes/96423 "2006-01-24T08:13:05Z")

</div>

Is there any way to access the query string full request uri in routes.rb? I’d like to route requests for those going after my old application urls to my new rails application urls. The old app used /wiki.cgi?PageN…

---

## [\[ruby-trunk - Bug #10647\] fail install without zlib](https://www.ruby-forum.com/t/ruby-trunk-bug-10647-fail-install-without-zlib/233576)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [December 25, 2014, 11:08am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-10647-fail-install-without-zlib/233576 "2014-12-25T11:08:32Z")

</div>

Issue #10647 has been updated by Usaku NAKAMURA. Nobuyoshi N. wrote: zlibのサイトにあるDLLとヘッダをインストールして、–with-opt-dirか–with-zlib-dirで指定してください。 そりゃそうなんですが、そもそもzlibがない場合はgemのインストールをスキップするか、またはzlibがなければ死ねばーかばーかとドキュメントで明記するか、ど…

---

## [Apache deployment - Debugging](https://www.ruby-forum.com/t/apache-deployment-debugging/231107)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 22, 2014, 1:04am UTC](https://www.ruby-forum.com/t/apache-deployment-debugging/231107 "2014-07-22T01:04:35Z")

</div>

I have the following setup on a new box (to mimic a machine that failed) Ruby 1.8.4 Rails 1.1.6 RubyGems 0.9.0 Running Apache version 1.33 (as this is an old OSX server build) and therefore passenger is not installe…

---

## [APSK Modulation](https://www.ruby-forum.com/t/apsk-modulation/236265)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [August 20, 2013, 12:27am UTC](https://www.ruby-forum.com/t/apsk-modulation/236265 "2013-08-20T00:27:41Z")

</div>

I can’t find any reference to Amplitude Phase Shift Keying (APSK) in any of the GNU Radio documentation. I did try searching for “generic constellation” and got some hits, but I’m not sure if that’s the correct route …

---

## [Why this doesn't work?](https://www.ruby-forum.com/t/why-this-doesnt-work/217512)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 3, 2012, 10:14pm UTC](https://www.ruby-forum.com/t/why-this-doesnt-work/217512 "2012-03-03T22:14:09Z")

</div>

Why this doesn’t work? \<%= link\_to ‘in english’, :locale =\> ‘en’ if I18n.locale != ‘en’ %\> And how to make it work?

---

## [How to use image\_tag method from module ActionView::Helpers::AssetTag?](https://www.ruby-forum.com/t/how-to-use-image-tag-method-from-module-actionview-assettag/202147)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [January 23, 2011, 4:58am UTC](https://www.ruby-forum.com/t/how-to-use-image-tag-method-from-module-actionview-assettag/202147 "2011-01-23T04:58:18Z")

</div>

I am just getting started using ruby and rails and I have a simple class I am refactoring with rspec and am getting the error “NoMethodError: undefined method ‘image\_tag’” so I know I am doing something wrong with bri…

---

## [Stuck on undefined method \`downcase' for nil:NilClass](https://www.ruby-forum.com/t/stuck-on-undefined-method-downcase-for-nil-nilclass/190124)

<div class="topic-metadata">

**Author:** [@anonuser](https://www.ruby-forum.com/u/anonuser)\
**Replies:** 0\
**Last updated:** [June 16, 2010, 11:02am UTC](https://www.ruby-forum.com/t/stuck-on-undefined-method-downcase-for-nil-nilclass/190124 "2010-06-16T11:02:55Z")

</div>

Anyone have encounter this problem ?“undefined method \`downcase’ for nil:NilClass” run on port :3000 successful Thanks in advance \[root@ public\]# ruby dispatch.fcgi Status: 500 Internal Server Error Content-Type: t…

---

## [Can non-ActiveRecord variables be temporarily stored in a class?](https://www.ruby-forum.com/t/can-non-activerecord-variables-be-temporarily-stored-in-a-class/174261)

<div class="topic-metadata">

**Author:** [@coolaj86](https://www.ruby-forum.com/u/coolaj86)\
**Replies:** 8\
**Last updated:** [August 30, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/can-non-activerecord-variables-be-temporarily-stored-in-a-class/174261 "2009-08-30T12:48:26Z")

</div>

I’m creating a PDF directory using PDF::Writer. The directory has a few pieces. The photo directory is sorted by group The appendix is sorted by last name I want the appendix to show the page number on which the pers…

---

## [Removing routes to new, show, etc. in a model](https://www.ruby-forum.com/t/removing-routes-to-new-show-etc-in-a-model/170203)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [June 14, 2009, 12:42am UTC](https://www.ruby-forum.com/t/removing-routes-to-new-show-etc-in-a-model/170203 "2009-06-14T00:42:37Z")

</div>

Example model: demo –app ----Controllers ------application\_controler.rb ------demos\_controller.rb ----Models ------demo.rb ----Views ------demos --------index.html.erb (I want to keep this) --------edit.html.e…

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

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