# Top

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

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

---

## [Looking for better code](https://www.ruby-forum.com/t/looking-for-better-code/53248)

<div class="topic-metadata">

**Author:** [@hostep](https://www.ruby-forum.com/u/hostep)\
**Replies:** 6\
**Last updated:** [January 30, 2006, 9:32pm UTC](https://www.ruby-forum.com/t/looking-for-better-code/53248 "2006-01-30T21:32:56Z")

</div>

Hi, I’ve been programming in RoR for about a week or 2-3, and I like it very much. Now, I have a certain problem that is very complicated, well for me at least :slight\_smile: I have 3 database tables: recipes ingre…

---

## [Getting built in 404 instead of my custom one](https://www.ruby-forum.com/t/getting-built-in-404-instead-of-my-custom-one/223544)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [October 9, 2012, 10:34am UTC](https://www.ruby-forum.com/t/getting-built-in-404-instead-of-my-custom-one/223544 "2012-10-09T10:34:59Z")

</div>

Just noticed that my custom 404 page isn’t getting served in all circumstances and I’m getting the bare internal 404 at times. Looking at the debug, it seems to be choosing my 404, but somehow not displaying it: 2012…

---

## [Acts\_as\_solr problem ActsAsSolr::SearchResults:](https://www.ruby-forum.com/t/acts-as-solr-problem-actsassolr/211596)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [September 9, 2011, 2:20pm UTC](https://www.ruby-forum.com/t/acts-as-solr-problem-actsassolr/211596 "2011-09-09T14:20:51Z")

</div>

hi, i am using acts\_as\_solr plugin when i tried with search by def search puts “#####################” # ids = params\[:name\] @id = params\[:query\] @emp = Employee.find\_by\_solr(@id) puts “----------------------…

---

## [Taking content from arrays to open a .3ds file](https://www.ruby-forum.com/t/taking-content-from-arrays-to-open-a-3ds-file/204624)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [March 17, 2011, 5:53am UTC](https://www.ruby-forum.com/t/taking-content-from-arrays-to-open-a-3ds-file/204624 "2011-03-17T05:53:39Z")

</div>

This is part of my program. what it is intented to do is get the first line of a txt file which is saved in a\[0\]. this will be the name of a .3ds model which than has to be imported in sketchup, but to do so, .3ds has…

---

## [CSV with fastercsv](https://www.ruby-forum.com/t/csv-with-fastercsv/193605)

<div class="topic-metadata">

**Author:** [@ciri22](https://www.ruby-forum.com/u/ciri22)\
**Replies:** 8\
**Last updated:** [August 20, 2010, 7:25pm UTC](https://www.ruby-forum.com/t/csv-with-fastercsv/193605 "2010-08-20T19:25:29Z")

</div>

I am creating a csv file with fastercsv. require ‘fastercsv’ FasterCSV.open(“file.csv”, “w”) do |csv| csv \<\< \[45678, 45678, “stringa”\] end I would also print the last cell in quotation marks. Is there anyone who ca…

---

## [Rails, Paperclip and SWFupload](https://www.ruby-forum.com/t/rails-paperclip-and-swfupload/188811)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 8\
**Last updated:** [May 19, 2010, 10:00am UTC](https://www.ruby-forum.com/t/rails-paperclip-and-swfupload/188811 "2010-05-19T10:00:04Z")

</div>

Hi I’m sure this is in the wrong group - so any suggestions for a right group would be great! And you have my express permission to treat me like an idiot in replies! I have a fair amount of knowledge … but … obvious…

---

## [Associate hidden field with another field in a form](https://www.ruby-forum.com/t/associate-hidden-field-with-another-field-in-a-form/187174)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 8\
**Last updated:** [April 19, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/associate-hidden-field-with-another-field-in-a-form/187174 "2010-04-19T21:46:37Z")

</div>

In my form I have a select menu for US States. I would like to include the capitals of those states as a hidden parameter when passed to the model. Of course, the capital should match the state chosen. I know I can se…

---

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

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 8\
**Last updated:** [November 21, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/help-with-partial/153673 "2008-11-21T17:35:20Z")

</div>

First and foremost sorry if my english is not the best. In my application I have a view with tickets and i can select it one to one with a button. The selected tickets go to another view that shows me the tickets i ha…

---

## [What is \[\] here](https://www.ruby-forum.com/t/what-is-here/151080)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 8\
**Last updated:** [October 16, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/what-is-here/151080 "2008-10-16T17:23:57Z")

</div>

class User puts \[\].methods.size puts self.methods.size end What does it mean to have \[\] method at a class level? Where is the documentation for it?

---

## [Rinq?](https://www.ruby-forum.com/t/rinq/150280)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 8\
**Last updated:** [October 7, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/rinq/150280 "2008-10-07T21:21:50Z")

</div>

Anyone else interested in creating a RINQ? See: http://graffie.wordpress.com/2008/03/12/rinq-concept-of-a-ruby-integr… http://rubyforge.org/frs/download.php/26198/BRUG-10-03-2007.pdf I need something a long these lin…

---

## [Model -\> with\_scope -\> session access?](https://www.ruby-forum.com/t/model-with-scope-session-access/144269)

<div class="topic-metadata">

**Author:** [@LpLpLp](https://www.ruby-forum.com/u/LpLpLp)\
**Replies:** 8\
**Last updated:** [July 28, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/model-with-scope-session-access/144269 "2008-07-28T23:44:28Z")

</div>

Hello, I try to override the default find method for some of my models: I want it to find only the users, which belong to a specific customer. Therefore I set an application-wide instance variable before rendering an…

---

## [Newbie in ROR need help about its javascript](https://www.ruby-forum.com/t/newbie-in-ror-need-help-about-its-javascript/134473)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 8\
**Last updated:** [April 15, 2008, 2:10am UTC](https://www.ruby-forum.com/t/newbie-in-ror-need-help-about-its-javascript/134473 "2008-04-15T02:10:42Z")

</div>

hello, i’m a newbie using ROR. i have this function below inside my public/application.js and i’m wondering whether i can replace “San Fransisco” and “New York” in this command “setDirections(“San Francisco”, “New Yor…

---

## [Help! Copyright and Licensing Issue with a client](https://www.ruby-forum.com/t/help-copyright-and-licensing-issue-with-a-client/112881)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [August 25, 2007, 5:22am UTC](https://www.ruby-forum.com/t/help-copyright-and-licensing-issue-with-a-client/112881 "2007-08-25T05:22:24Z")

</div>

Hello, Here’s my situation, any advice is greatly appreciated. I was hired as a contractor to advise on technical and IT issues for a media company in April. They were searching for a database system that would work …

---

## [What's the best way of parsing this string?](https://www.ruby-forum.com/t/whats-the-best-way-of-parsing-this-string/85351)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 8\
**Last updated:** [February 13, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-of-parsing-this-string/85351 "2007-02-13T16:42:13Z")

</div>

Hi there, I have a question about string search and replacement. Let’s say I have this string that contains 2 links for embedding youtube videos amongst some other random text. string = “We’ve got some junk text h…

---

## [Controladores](https://www.ruby-forum.com/t/controladores/77982)

<div class="topic-metadata">

**Author:** [@ruby\_the\_best](https://www.ruby-forum.com/u/ruby_the_best)\
**Replies:** 8\
**Last updated:** [December 4, 2006, 9:04pm UTC](https://www.ruby-forum.com/t/controladores/77982 "2006-12-04T21:04:16Z")

</div>

Como se Pasan los parametros por la llamada a un controlador, es decir http://host/nombre\_controlador/nombre\_metodo/???DUDA???

---

## [Check for children](https://www.ruby-forum.com/t/check-for-children/69825)

<div class="topic-metadata">

**Author:** [@Steven\_N](https://www.ruby-forum.com/u/Steven_N)\
**Replies:** 8\
**Last updated:** [September 25, 2006, 2:42pm UTC](https://www.ruby-forum.com/t/check-for-children/69825 "2006-09-25T14:42:13Z")

</div>

In my base template, I want to output a only if some children of the current page exist. How can I check for children of a page? -- Steven N. http://outerthought.org/ Outerthought …

---

## [Cron w/ Rails](https://www.ruby-forum.com/t/cron-w-rails/66387)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 8\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/cron-w-rails/66387 "2006-09-04T14:46:27Z")

</div>

I’m trying to setup a number of recurring processes and based on the input of others have found my way to cron. I’ve made a number of attempts to setup jobs to perform any number of task, always receiving error messa…

---

## [Visual DB Modelling on Mac](https://www.ruby-forum.com/t/visual-db-modelling-on-mac/65870)

<div class="topic-metadata">

**Author:** [@molotoff](https://www.ruby-forum.com/u/molotoff)\
**Replies:** 8\
**Last updated:** [August 24, 2006, 6:57am UTC](https://www.ruby-forum.com/t/visual-db-modelling-on-mac/65870 "2006-08-24T06:57:12Z")

</div>

Since most of the rails developers seem to use macs, could someone possibly suggest a good visual db modelling tool to use along with rails and MySQL? So far I’ve already tested the absolutely unsuable Workbench as we…

---

## [Is This a Performance Concern?](https://www.ruby-forum.com/t/is-this-a-performance-concern/96584)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 8\
**Last updated:** [July 14, 2006, 7:54pm UTC](https://www.ruby-forum.com/t/is-this-a-performance-concern/96584 "2006-07-14T19:54:19Z")

</div>

I’m running on a brand new MacBook Pro with a relatively clean working set. using Mongrel in production mode on port 3000. The home page does not hit the database and I’m getting: Processing HomeController#index (fo…

---

## [Is It Possible to Re-Work This for Better Performance?](https://www.ruby-forum.com/t/is-it-possible-to-re-work-this-for-better-performance/49726)

<div class="topic-metadata">

**Author:** [@lists](https://www.ruby-forum.com/u/lists)\
**Replies:** 8\
**Last updated:** [December 8, 2005, 4:00pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-re-work-this-for-better-performance/49726 "2005-12-08T16:00:38Z")

</div>

I have four AR classes: Artists (has many Releases) Releases (has many ReleaseTracks) Release Tracks (has many AudioTracks) Audio Tracks They are all also connected in the other direction (i.e. belongs\_to). My page…

---

## [Long PDUs](https://www.ruby-forum.com/t/long-pdus/228315)

<div class="topic-metadata">

**Author:** [@Sean\_Nowlan](https://www.ruby-forum.com/u/Sean_Nowlan)\
**Replies:** 5\
**Last updated:** [April 17, 2013, 8:24pm UTC](https://www.ruby-forum.com/t/long-pdus/228315 "2013-04-17T20:24:18Z")

</div>

I want to see whether “very long” PDUs would break the new tagged stream model implementation in recent GR versions. Let’s say I want to use tagged streams with length tags to transmit streams that would require many …

---

## [UHD + USRP2 + WBX doubt](https://www.ruby-forum.com/t/uhd-usrp2-wbx-doubt/211623)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [September 9, 2011, 8:44am UTC](https://www.ruby-forum.com/t/uhd-usrp2-wbx-doubt/211623 "2011-09-09T08:44:32Z")

</div>

I am using the WBX daughterboard with USRP2 interfaced using the UHD Driver. The LED boot sequence is as follows F turns on E, C, A turn on and then blink and turn off D turns on is the above sequence correct? (B ne…

---

## [Full URLs in Rails logs](https://www.ruby-forum.com/t/full-urls-in-rails-logs/211160)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [August 28, 2011, 5:46pm UTC](https://www.ruby-forum.com/t/full-urls-in-rails-logs/211160 "2011-08-28T17:46:03Z")

</div>

Hello, Is it possible to get the full URLs in the logs of a Rails application? Currently I’m getting something like: Started GET “/” for 127.0.0.1 at 2011-08-27 13:13:10 +0200 but I need to get: Started GET “http://…

---

## [Need Help Simulation in ruby](https://www.ruby-forum.com/t/need-help-simulation-in-ruby/195225)

<div class="topic-metadata">

**Author:** [@stevenbristol](https://www.ruby-forum.com/u/stevenbristol)\
**Replies:** 5\
**Last updated:** [September 21, 2010, 10:56am UTC](https://www.ruby-forum.com/t/need-help-simulation-in-ruby/195225 "2010-09-21T10:56:59Z")

</div>

Hi everyone can someone help me with my simulation program: Here is the problem: An Ambulance are dispatched at a rate of one every 15 + 10 minutes in a large metropolitan area. Fifteen percent of the calls are false …

---

## [How to display file contents from html file](https://www.ruby-forum.com/t/how-to-display-file-contents-from-html-file/179643)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [December 1, 2009, 6:53am UTC](https://www.ruby-forum.com/t/how-to-display-file-contents-from-html-file/179643 "2009-12-01T06:53:26Z")

</div>

I want to get file contents from html file after getting i want to display it in the view page.any sample any helps Thanks

---

## [Quote\_ident](https://www.ruby-forum.com/t/quote-ident/172766)

<div class="topic-metadata">

**Author:** [@rrg1970](https://www.ruby-forum.com/u/rrg1970)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 10:02am UTC](https://www.ruby-forum.com/t/quote-ident/172766 "2009-09-14T10:02:18Z")

</div>

We have updated the rails version from 2.1.1 to 2.3.3 and we get the folowing error message: undefined method \`quote\_ident’ for PGconn:Class Any idea about it? Thanks in advance.

---

## [New project at the same domain](https://www.ruby-forum.com/t/new-project-at-the-same-domain/161803)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 5\
**Last updated:** [March 2, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/new-project-at-the-same-domain/161803 "2009-03-02T17:56:59Z")

</div>

Hi, just a quick question, is there a way how to run two apps on the same domain? Both for testing purposes. Thank you. P.

---

## [Nginx max connections](https://www.ruby-forum.com/t/nginx-max-connections/160615)

<div class="topic-metadata">

**Author:** [@Swish](https://www.ruby-forum.com/u/Swish)\
**Replies:** 5\
**Last updated:** [February 21, 2009, 3:37am UTC](https://www.ruby-forum.com/t/nginx-max-connections/160615 "2009-02-21T03:37:42Z")

</div>

Is there any method to tell if Nginx is hitting max connections, other than getting a request timeout? Will anything appear in the logs? I ask for tuning purposes to get the optimal number of worker\_processes and wor…

---

## [Re: Serving an alternate robots.txt for SSL requests](https://www.ruby-forum.com/t/re-serving-an-alternate-robots-txt-for-ssl-requests/157642)

<div class="topic-metadata">

**Author:** [@Juan\_FcoSGiordana](https://www.ruby-forum.com/u/Juan_FcoSGiordana)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/re-serving-an-alternate-robots-txt-for-ssl-requests/157642 "2009-01-14T12:53:14Z")

</div>

Thank you Nick for your help, I’ve followed your suggestions and it worked as expected. I’ve changed the rewrite rule since I don’t need to capture anything there. server { listen 443; \[…\] location = /robots.txt { …

---

## [My generic nginx patches](https://www.ruby-forum.com/t/my-generic-nginx-patches/151891)

<div class="topic-metadata">

**Author:** [@Maxim\_D](https://www.ruby-forum.com/u/Maxim_D)\
**Replies:** 5\
**Last updated:** [October 27, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/my-generic-nginx-patches/151891 "2008-10-27T22:35:39Z")

</div>

Hello! The following patch series consists of various generic patches for nginx not yet imported by Igor. Most of them was already posted somewhere. Posting them here in hope it would be easier to review / test / imp…

---

## [Backslash dans une chaine de caractÃ¨res](https://www.ruby-forum.com/t/backslash-dans-une-chaine-de-caracta-res/148197)

<div class="topic-metadata">

**Author:** [@adiates](https://www.ruby-forum.com/u/adiates)\
**Replies:** 5\
**Last updated:** [September 10, 2008, 11:37am UTC](https://www.ruby-forum.com/t/backslash-dans-une-chaine-de-caracta-res/148197 "2008-09-10T11:37:20Z")

</div>

Bonjour, J’ai 2 variables : server = “\\192.168.10.60” dir = “\\Data” le problème se pose lorsque que je veut concaténer ces deux variable dans une chaine de caractères : “#{server}#{dir}” j’obtiens : =\> “\\192.168.1…

---

## [Absolute beginner - simple question!](https://www.ruby-forum.com/t/absolute-beginner-simple-question/123934)

<div class="topic-metadata">

**Author:** [@reback](https://www.ruby-forum.com/u/reback)\
**Replies:** 5\
**Last updated:** [December 22, 2007, 9:49am UTC](https://www.ruby-forum.com/t/absolute-beginner-simple-question/123934 "2007-12-22T09:49:40Z")

</div>

Hi, just followed this tutorial http://media.rubyonrails.org/video/rails\_take2\_with\_sound.mov, and loved it. Now have the skeleton of a blog engine, and starting to customize it and make it my own. If I show you what …

---

## [What goes where?/Scope question](https://www.ruby-forum.com/t/what-goes-where-scope-question/122763)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/what-goes-where-scope-question/122763 "2007-12-12T15:50:27Z")

</div>

In a couple of parts … In a controller: The controller can use anything defined in app/controllers/application\_controller.rb What else can it use? app/helpers/application\_helper.rb because if the above? app/helper…

---

## [Ruby comme Matlab](https://www.ruby-forum.com/t/ruby-comme-matlab/120924)

<div class="topic-metadata">

**Author:** [@harryspier](https://www.ruby-forum.com/u/harryspier)\
**Replies:** 5\
**Last updated:** [November 23, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/ruby-comme-matlab/120924 "2007-11-23T23:05:34Z")

</div>

Bonjour, Voici une question plutÃ´t Ruby mais j’utilise Ruby essentiellement pour Rails. J’aimerais utiliser Ruby au maximum comme Matlab notamment pour la partie debug. Je sens que Ã§a devrait Ãªtre possible mais il…

---

## [Backslash sequences\\1\\2 in regexs (backreferences)](https://www.ruby-forum.com/t/backslash-sequences-1-2-in-regexs-backreferences/119006)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 5\
**Last updated:** [November 2, 2007, 6:51am UTC](https://www.ruby-forum.com/t/backslash-sequences-1-2-in-regexs-backreferences/119006 "2007-11-02T06:51:32Z")

</div>

Is this behavior documented anywhere: puts “fred:smith”.gsub(/(\\w+):(\\w+)/, ‘\\2, \\1’) –output:– smith, fred puts “abc”.gsub(/a(b)©/, “a\\2\\1”) –output:– a The double quotes surrounding the replacement strin…

---

## [Installing json-1.1.1 gem on windows xp](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724)

<div class="topic-metadata">

**Author:** [@sumi](https://www.ruby-forum.com/u/sumi)\
**Replies:** 5\
**Last updated:** [August 1, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724 "2007-08-01T16:49:49Z")

</div>

Hi all, I was trying to install the json extension gem… but says ‘Error failed to create local extension/nmake …’ When I went through the conf file it showed it requires both mkmf (meant for extensions) and rbconfig… …

---

## [Attachement\_fu and protecting files from download](https://www.ruby-forum.com/t/attachement-fu-and-protecting-files-from-download/109015)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 6:29am UTC](https://www.ruby-forum.com/t/attachement-fu-and-protecting-files-from-download/109015 "2007-07-11T06:29:49Z")

</div>

I successfully installed attachement\_fu but I still have one question: How can I protect my uploaded files from being downloaded like http://127.0.0.1:3000/images/galleries/0000/0001/1.jpg I only what logged in users…

---

## [RoR CentOS 5 & Mongrel / Apache?](https://www.ruby-forum.com/t/ror-centos-5-mongrel-apache/105112)

<div class="topic-metadata">

**Author:** [@tominglis](https://www.ruby-forum.com/u/tominglis)\
**Replies:** 5\
**Last updated:** [May 26, 2007, 2:29am UTC](https://www.ruby-forum.com/t/ror-centos-5-mongrel-apache/105112 "2007-05-26T02:29:05Z")

</div>

Dear All, I have just installed CentOS 5 on a desktop to use it as a server for my first RoR application. I am slightly confused about which method is the best to serve the RoR content though. Is it RoR, Mongrel, and …

---

## [Don't know what this error means](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 5\
**Last updated:** [February 12, 2007, 4:11am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263 "2007-02-12T04:11:12Z")

</div>

Any idea what this error means? =\> Booting WEBrick… C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/routing.rb:651:in method\_missing': undefined methodresources’ for #ActionC…

---

## [Validation conundrum with Dates](https://www.ruby-forum.com/t/validation-conundrum-with-dates/71633)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 5\
**Last updated:** [October 11, 2006, 3:22pm UTC](https://www.ruby-forum.com/t/validation-conundrum-with-dates/71633 "2006-10-11T15:22:01Z")

</div>

Hi guys. I have a very interesting validation problem. Say I have a model defined called Event, and this model has a field :event\_date (for illustration, we could assume it’s the only field aside from id) that is def…

---

## [Question about using DISTINCT in ActiveRecord find method](https://www.ruby-forum.com/t/question-about-using-distinct-in-activerecord-find-method/95096)

<div class="topic-metadata">

**Author:** [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Replies:** 5\
**Last updated:** [January 12, 2006, 11:26pm UTC](https://www.ruby-forum.com/t/question-about-using-distinct-in-activerecord-find-method/95096 "2006-01-12T23:26:16Z")

</div>

Hi, Am relatively new to the RoR world. My question is quite simple. I have a query like such: shipmentNumbers = Order.find\_by\_sql(\[“select distinct s.id from orders o, line\_items li, shipment\_lines sl, shipments s w…

---

## [SwitchTower bugs: shared\_dir, before\_setup?](https://www.ruby-forum.com/t/switchtower-bugs-shared-dir-before-setup/49640)

<div class="topic-metadata">

**Author:** [@joseph.moore](https://www.ruby-forum.com/u/joseph.moore)\
**Replies:** 5\
**Last updated:** [December 8, 2005, 12:46am UTC](https://www.ruby-forum.com/t/switchtower-bugs-shared-dir-before-setup/49640 "2005-12-08T00:46:25Z")

</div>

I installed SwitchTower yesterday and had a couple of problems. I’m not sure if they are known bugs, but if not, FYI; of course it’s possible that I missed something. 1 - SwitchTower did not create the “shared” direc…

---

## [Simple Database Migration](https://www.ruby-forum.com/t/simple-database-migration/244550)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [May 2, 2016, 9:34am UTC](https://www.ruby-forum.com/t/simple-database-migration/244550 "2016-05-02T09:34:41Z")

</div>

I am very new to Ruby and need to do a simple database migration. I have a table in my database called data\_sources and I need to update record id 3 field systems from Fusion to Fusion,Matrix. I had ruby auto create t…

---

## [Help in watir](https://www.ruby-forum.com/t/help-in-watir/139033)

<div class="topic-metadata">

**Author:** [@K\_sathya\_N](https://www.ruby-forum.com/u/K_sathya_N)\
**Replies:** 2\
**Last updated:** [March 25, 2015, 11:17pm UTC](https://www.ruby-forum.com/t/help-in-watir/139033 "2015-03-25T23:17:18Z")

</div>

i I have installed Ruby 1.8.5-21 and also installed the watir gem. but when i use the below statement require ‘watir’ #i get the below error ./watir.rb:4: uninitialized constant Watir (NameError) from c:/ruby/lib/ru…

---

## [Where do I place the javascript file that is only required for one (or just a few) view(s)?](https://www.ruby-forum.com/t/where-do-i-place-the-javascript-file-that-is-only-required-for-one-or-just-a-few-view-s/231303)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [August 8, 2014, 10:42pm UTC](https://www.ruby-forum.com/t/where-do-i-place-the-javascript-file-that-is-only-required-for-one-or-just-a-few-view-s/231303 "2014-08-08T22:42:03Z")

</div>

Hi all, Sorry if this has already been discussed, but I haven’t found any post matching what I’m looking for. (If there is, please point me to it!) I’d like to include a javascript in the header section, but just for…

---

## [Working with excel files using Ruby](https://www.ruby-forum.com/t/working-with-excel-files-using-ruby/223583)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 10, 2012, 1:03pm UTC](https://www.ruby-forum.com/t/working-with-excel-files-using-ruby/223583 "2012-10-10T13:03:26Z")

</div>

Hi I am new to Ruby. I am working on a code wherein I need to read data from excel, sort on a particular column, write data into the excel etc. I came across win32ole, roo, parseexcel etc. on the web for this. Need …

---

## [Libruby1.8.so.1.8](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 10, 2011, 7:13pm UTC](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283 "2011-07-10T19:13:35Z")

</div>

I have been using Ubuntu 10.04 for about a year now and have Ruby (ruby 1.8.7 (2009-06-12 patchlevel 174) \[i686-linux\]), Ruby on Rails and Hobo installed on the system. I needed to add a new user but none of the butto…

---

## [\[Model Scopes\] How to count a nested](https://www.ruby-forum.com/t/model-scopes-how-to-count-a-nested/206861)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 14, 2011, 3:58pm UTC](https://www.ruby-forum.com/t/model-scopes-how-to-count-a-nested/206861 "2011-05-14T15:58:30Z")

</div>

Hello, I have a Post that has\_many Comments. I have the next scopes: scope :valid, where(‘created\_at \>= ?’, 2.months.ago) scope :expired, where(‘created\_at \< ?’, 2.months.ago) Now, I would have a scope named :commente…

---

## [Ruby and Rails on JVM](https://www.ruby-forum.com/t/ruby-and-rails-on-jvm/193642)

<div class="topic-metadata">

**Author:** [@adi](https://www.ruby-forum.com/u/adi)\
**Replies:** 2\
**Last updated:** [September 15, 2010, 10:28am UTC](https://www.ruby-forum.com/t/ruby-and-rails-on-jvm/193642 "2010-09-15T10:28:02Z")

</div>

Hi, sorry if this is OT. I wanted to if there are any limitations of jRuby. The community does not discuss this much and i feel its not used that much. What are the reasons? Thanks, Adi

---

## [How to make \<\< 123.. \>\> functionality ? %)](https://www.ruby-forum.com/t/how-to-make-123-functionality/166963)

<div class="topic-metadata">

**Author:** [@sfedi](https://www.ruby-forum.com/u/sfedi)\
**Replies:** 2\
**Last updated:** [May 1, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-make-123-functionality/166963 "2009-05-01T14:57:17Z")

</div>

Hello. I have read all great documentation which recomended me at this forum, thanks, it is really very good start for my. Now I try to create blog. I have one problem, pages looks very bad if many than 40 items on o…

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

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