# Top

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

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

---

## [Content-Type header not proxied to downstream hosts](https://www.ruby-forum.com/t/content-type-header-not-proxied-to-downstream-hosts/233405)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 3\
**Last updated:** [December 13, 2014, 9:07am UTC](https://www.ruby-forum.com/t/content-type-header-not-proxied-to-downstream-hosts/233405 "2014-12-13T09:07:27Z")

</div>

Hi, I’m new to nginx so am probably making a simple mistake but, for the life of me, I can’t see what. I want to proxy requests with all headers that the request had to a downstream server if it matches a regex. I …

---

## [Best method for adding GeoIP support](https://www.ruby-forum.com/t/best-method-for-adding-geoip-support/230434)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [June 24, 2014, 5:57am UTC](https://www.ruby-forum.com/t/best-method-for-adding-geoip-support/230434 "2014-06-24T05:57:56Z")

</div>

We have just started to work with Nginx and have installed by adding the nginx repositry to our debian 7 installs. It works almost perfectly out of the box as such. However we need to add GeoIP support, so the questio…

---

## [About define\_method](https://www.ruby-forum.com/t/about-define-method/223714)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 8\
**Last updated:** [October 20, 2012, 12:47am UTC](https://www.ruby-forum.com/t/about-define-method/223714 "2012-10-20T00:47:19Z")

</div>

I want to define a method in kernel using Flattern Scope. Kernel.send :define\_method, :each\_event do events.each\_pair do |message, condition| yield message, condition end end so, I think this is equal to: def Kern…

---

## [Refreshing multiple activerecord objects referring to same database record](https://www.ruby-forum.com/t/refreshing-multiple-activerecord-objects-referring-to-same-database-record/209575)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 8\
**Last updated:** [July 18, 2011, 5:53pm UTC](https://www.ruby-forum.com/t/refreshing-multiple-activerecord-objects-referring-to-same-database-record/209575 "2011-07-18T17:53:42Z")

</div>

I have an issue where I seem (unintentionally) to have more than 1 activerecord object/instance referring to the same database record. How do I ensure that when I update the record, all instances are refreshed with th…

---

## [Validating for Real Zipcodes](https://www.ruby-forum.com/t/validating-for-real-zipcodes/209234)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [July 8, 2011, 10:20pm UTC](https://www.ruby-forum.com/t/validating-for-real-zipcodes/209234 "2011-07-08T22:20:33Z")

</div>

Hi guys, I have a location sensitive application where clients enter their zipcodes when signing up. Is there any tool out there, or anyway to confirm that the zipcode entered is indeed a true and valid zipcode and n…

---

## [Do a select from another table within a model](https://www.ruby-forum.com/t/do-a-select-from-another-table-within-a-model/205972)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [April 20, 2011, 9:27am UTC](https://www.ruby-forum.com/t/do-a-select-from-another-table-within-a-model/205972 "2011-04-20T09:27:43Z")

</div>

Hey all, This right here: scope :index\_blog, { :select =\> “blog\_posts.\*”, :joins =\> “INNER JOIN categories ON category.id = blog\_posts.category\_id”, :conditions =\>“blog\_posts.enabled = 1” } returns this: Mysql2:…

---

## [Activeresource and pagination](https://www.ruby-forum.com/t/activeresource-and-pagination/133123)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 15, 2010, 12:06am UTC](https://www.ruby-forum.com/t/activeresource-and-pagination/133123 "2010-02-15T00:06:48Z")

</div>

Hi, I am fairly new to rails and am trying to figure out the right way to do pagination with ActiveResource. I am considering just wrapping will\_paginate over everything but I before I do I was hoping to get some in…

---

## [RSpec for Rails 3](https://www.ruby-forum.com/t/rspec-for-rails-3/181869)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 3\
**Last updated:** [January 19, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/rspec-for-rails-3/181869 "2010-01-19T14:39:48Z")

</div>

Hi folks, DHH has tentatively suggested a Rails 3 beta this month, so an innocent question: what’s the plan, such as it is, for Rails 3 support in RSpec? Personally there’s no way I’ll be able to move any of my applic…

---

## [ParseException met when using Watir with xpath, please help](https://www.ruby-forum.com/t/parseexception-met-when-using-watir-with-xpath-please-help/173217)

<div class="topic-metadata">

**Author:** [@jacqueline](https://www.ruby-forum.com/u/jacqueline)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/parseexception-met-when-using-watir-with-xpath-please-help/173217 "2009-08-05T14:50:11Z")

</div>

Hi all, I’m new here, and I met some problem while I was using Watir gem to automate my testcase. I want to use Watir with xpath, coding like this: require “watir” @ie = Watir::IE.new @ie.goto(“www.g.cn”)#google in…

---

## [Webalizer log format](https://www.ruby-forum.com/t/webalizer-log-format/162642)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/webalizer-log-format/162642 "2009-03-13T16:41:52Z")

</div>

Im trying to use webalizer and I have nginx. I dont really know the log format for webalizer… can anyone tell me how exacly webalizer need the logs to look like? Thanks!

---

## [StaticBitmap](https://www.ruby-forum.com/t/staticbitmap/153387)

<div class="topic-metadata">

**Author:** [@cyrill](https://www.ruby-forum.com/u/cyrill)\
**Replies:** 3\
**Last updated:** [November 20, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/staticbitmap/153387 "2008-11-20T22:45:55Z")

</div>

How can I take image from Rmagick object? I try image.set\_data(blob), but this wrong… Is possible make scrollable StaticBitmap?

---

## [Error in the tutorial?](https://www.ruby-forum.com/t/error-in-the-tutorial/104486)

<div class="topic-metadata">

**Author:** [@Luis\_Carraud](https://www.ruby-forum.com/u/Luis_Carraud)\
**Replies:** 8\
**Last updated:** [May 18, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/error-in-the-tutorial/104486 "2007-05-18T19:29:56Z")

</div>

Hello everyone!!! I’m new to Rails… I’m trying to follow the first tutorial steps, but I came across this error: D:\\InstantRails\\rails\_apps\\cookbook2\>ruby script\\generate scaffold recipe recipe exists app/control…

---

## [Web Services (SOAP) naming conventions](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714)

<div class="topic-metadata">

**Author:** [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714 "2007-05-09T19:09:02Z")

</div>

I’m writing a SOAP server…one that has to implement ‘specific’ methods that the client will call. One of them is update\_customer. I implement my method as “update\_customer” (with the underscore) and the api signature…

---

## [Globalizing Typo 4.0.0 - S.O.S. Help needed!](https://www.ruby-forum.com/t/globalizing-typo-4-0-0-s-o-s-help-needed/101506)

<div class="topic-metadata">

**Author:** [@zarni](https://www.ruby-forum.com/u/zarni)\
**Replies:** 3\
**Last updated:** [August 8, 2006, 10:20am UTC](https://www.ruby-forum.com/t/globalizing-typo-4-0-0-s-o-s-help-needed/101506 "2006-08-08T10:20:07Z")

</div>

Hello friendly rubyists! This is my first post, so bare with me :slight\_smile: I managed to globalize Typo 4.0.0 - the static content. I made a Translations editor menu in the admin, and it works fine for all static c…

---

## [SQL book for Rails developers?](https://www.ruby-forum.com/t/sql-book-for-rails-developers/59441)

<div class="topic-metadata">

**Author:** [@Trevor\_Harmon](https://www.ruby-forum.com/u/Trevor_Harmon)\
**Replies:** 3\
**Last updated:** [May 3, 2006, 7:07pm UTC](https://www.ruby-forum.com/t/sql-book-for-rails-developers/59441 "2006-05-03T19:07:16Z")

</div>

I can design basic Rails models without any trouble, and I feel pretty comfortable at the mysql command prompt. But some of these new database features in Rails 1.1 have me scratching my head: polymorphic associations…

---

## [Module and Model](https://www.ruby-forum.com/t/module-and-model/94049)

<div class="topic-metadata">

**Author:** [@thomask](https://www.ruby-forum.com/u/thomask)\
**Replies:** 8\
**Last updated:** [April 19, 2006, 6:11pm UTC](https://www.ruby-forum.com/t/module-and-model/94049 "2006-04-19T18:11:27Z")

</div>

I am getting the following error /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active\_record/base.rb:1129:in method\_missing': undefined methoddirectory?’ for Msg::File:Class (NoMethodError) I have a model calle…

---

## [Correct way to capture a select param](https://www.ruby-forum.com/t/correct-way-to-capture-a-select-param/89435)

<div class="topic-metadata">

**Author:** [@BBBBBB](https://www.ruby-forum.com/u/BBBBBB)\
**Replies:** 8\
**Last updated:** [March 29, 2006, 12:30am UTC](https://www.ruby-forum.com/t/correct-way-to-capture-a-select-param/89435 "2006-03-29T00:30:44Z")

</div>

I’m having trouble capturing the params from a select type form. For text field like this: \<%= text\_field\_tag :courseid %\> I’m able to capture the posted value with this params\[:courseid\] However with a select field…

---

## [There's a deadlock in code in the PickAxe, and I'm not seein](https://www.ruby-forum.com/t/theres-a-deadlock-in-code-in-the-pickaxe-and-im-not-seein/52601)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 8\
**Last updated:** [January 21, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/theres-a-deadlock-in-code-in-the-pickaxe-and-im-not-seein/52601 "2006-01-21T15:44:28Z")

</div>

The following code (form pg. 739) deadlocks with a large count. What am I missing? Cheers Dave require ‘thwait’ require ‘sync’ class Counter attr\_reader :total\_count def initialize @total\_count = 0 @count\_down …

---

## [Nginx-1.7.6](https://www.ruby-forum.com/t/nginx-1-7-6/232286)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 2, 2014, 7:50pm UTC](https://www.ruby-forum.com/t/nginx-1-7-6/232286 "2014-10-02T19:50:41Z")

</div>

Changes with nginx 1.7.6 30 Sep 2014 \*) Change: the deprecated "limit\_zone" directive is not supported anymore. \*) Feature: the "limit\_conn\_zone" and "limit\_req\_zone" directi…

---

## [\[ruby-trunk - Feature #6173\]\[Open\] re.cのrb memsearch()におけるmemchr()の利用](https://www.ruby-forum.com/t/ruby-trunk-feature-6173-open-re-c-rb-memsearch-memchr/218004)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [October 26, 2012, 11:54pm UTC](https://www.ruby-forum.com/t/ruby-trunk-feature-6173-open-re-c-rb-memsearch-memchr/218004 "2012-10-26T23:54:10Z")

</div>

Issue #6173 has been reported by Glass\_saga (Masaki M.). Feature #6173: re.cのrb\_memsearch()におけるmemchr()の利用 Author: Glass\_saga (Masaki M.) Status: Open Priority: Normal Assignee: Category: core Target version: 2.…

---

## [Image override\*](https://www.ruby-forum.com/t/image-override/211157)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [August 29, 2011, 11:17am UTC](https://www.ruby-forum.com/t/image-override/211157 "2011-08-29T11:17:31Z")

</div>

Hi Team, I have create one ruby on rails application ,i have one issue for that image upload ,the image will override the some user , so any can solve the issues contoller class PhotosController \< ApplicationCo…

---

## [Ruby 1.9.1 built-in JSON troubles](https://www.ruby-forum.com/t/ruby-1-9-1-built-in-json-troubles/184693)

<div class="topic-metadata">

**Author:** [@Aaron\_DSGifford](https://www.ruby-forum.com/u/Aaron_DSGifford)\
**Replies:** 5\
**Last updated:** [March 9, 2010, 1:41am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-built-in-json-troubles/184693 "2010-03-09T01:41:20Z")

</div>

I’m puzzled. On a box running Ruby 1.9.1 I try this: user@host:/path$ irb irb(main):001:0\> require ‘json’ =\> true irb(main):002:0\> JSON.parse(JSON.generate(’\\’)) JSON::ParserError: 598: unexpected token at ‘"\\"’ f…

---

## [ORA-01704 string literal too long](https://www.ruby-forum.com/t/ora-01704-string-literal-too-long/183946)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [February 23, 2010, 10:03pm UTC](https://www.ruby-forum.com/t/ora-01704-string-literal-too-long/183946 "2010-02-23T22:03:56Z")

</div>

Hello all, I’m stuck again. I’m in my 5th month of Ruby on Rails and getting better but… I’m uploading a .csv file using Paperclip and FasterCSV, then processing the file after the upload is complete. Small files w…

---

## [RubyCocoa and Mac System Icons](https://www.ruby-forum.com/t/rubycocoa-and-mac-system-icons/159423)

<div class="topic-metadata">

**Author:** [@Tom\_Medhurst](https://www.ruby-forum.com/u/Tom_Medhurst)\
**Replies:** 5\
**Last updated:** [March 14, 2009, 1:43am UTC](https://www.ruby-forum.com/t/rubycocoa-and-mac-system-icons/159423 "2009-03-14T01:43:02Z")

</div>

Hi There, I am trying to create an NSImage which contains the system kComputer icon. Unfortunately RubyCocoa can’t resolve kComputer or use :kComputer or it’s header value ‘root’… I have tried the following: NSWor…

---

## [Foxy Fixtures making inconsistent ids](https://www.ruby-forum.com/t/foxy-fixtures-making-inconsistent-ids/160520)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 5\
**Last updated:** [February 18, 2009, 8:22am UTC](https://www.ruby-forum.com/t/foxy-fixtures-making-inconsistent-ids/160520 "2009-02-18T08:22:16Z")

</div>

I’m trying to set up some new unit tests for classes I’m adding to a project. Since I’m on Rails 2.1, I figured I’d make use of the Foxy Fixtures to make things oh so much easier. Except that’s not the way my day has …

---

## [Adding a custom matcher to a controller](https://www.ruby-forum.com/t/adding-a-custom-matcher-to-a-controller/157681)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 5\
**Last updated:** [January 14, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/adding-a-custom-matcher-to-a-controller/157681 "2009-01-14T23:44:31Z")

</div>

Hey list, I’ve written a custom matcher (gist:46858 · GitHub) which I’d like to use in Cucumber specifically. In my spec\_helper, I have required the file where the matcher lives in, and added it to Spec::Runner.confi…

---

## [Jruby/Hibernate/JPA](https://www.ruby-forum.com/t/jruby-hibernate-jpa/156632)

<div class="topic-metadata">

**Author:** [@CrallS\_Dennis\_P](https://www.ruby-forum.com/u/CrallS_Dennis_P)\
**Replies:** 5\
**Last updated:** [January 6, 2009, 7:31am UTC](https://www.ruby-forum.com/t/jruby-hibernate-jpa/156632 "2009-01-06T07:31:23Z")

</div>

Hi, I work on a large Java web project that uses Hibernate/JPA for the data layer. We use the JPA and Hibernate annotations extensively. I’d love to use jirb to provide a Rails-like console to our business objects. I…

---

## [Modrails released](https://www.ruby-forum.com/t/modrails-released/134536)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 5\
**Last updated:** [April 19, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/modrails-released/134536 "2008-04-19T19:41:13Z")

</div>

---

## [KimSufi : RoR Low Cost?](https://www.ruby-forum.com/t/kimsufi-ror-low-cost/69625)

<div class="topic-metadata">

**Author:** [@Julien\_ALEXANDRE](https://www.ruby-forum.com/u/Julien_ALEXANDRE)\
**Replies:** 5\
**Last updated:** [September 22, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/kimsufi-ror-low-cost/69625 "2006-09-22T15:07:11Z")

</div>

Voila la “rÃ©ponse” d’OVH Ã la dediBOX … Config : Celeron 2GHz 256Mo de mÃ©moire DDR Disque dur 160Go SATA Connexion 10Mb/s Trafic inclus illimitÃ© Distrib : Release 2 (basÃ©e sur la Gentoo 2006 64bits) Relea…

---

## [Dynamic Survey System](https://www.ruby-forum.com/t/dynamic-survey-system/69369)

<div class="topic-metadata">

**Author:** [@creativetags](https://www.ruby-forum.com/u/creativetags)\
**Replies:** 5\
**Last updated:** [September 20, 2006, 10:59pm UTC](https://www.ruby-forum.com/t/dynamic-survey-system/69369 "2006-09-20T22:59:23Z")

</div>

hi i’m trying to create a web app in rails which would allow an administrator to setup a custom survey and allow users to fill-in the survey. Sounds simple enough but how do you create a datastore (presumably in mySQ…

---

## [USB2, 32 MByte/s or 480MBit/s?](https://www.ruby-forum.com/t/usb2-32-mbyte-s-or-480mbit-s/63552)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 5\
**Last updated:** [June 16, 2006, 8:14am UTC](https://www.ruby-forum.com/t/usb2-32-mbyte-s-or-480mbit-s/63552 "2006-06-16T08:14:11Z")

</div>

Hi, I was wondering why can the USRP “only” achieve 32 MByte/s, i.e. 256 Mbit/s whereas the USB 2.0 specifications are 480 MBit/s? The 32 Mbyte/s is mentioned in several earlier posts on the gnuradio mailing list arc…

---

## [No helper methods in controller](https://www.ruby-forum.com/t/no-helper-methods-in-controller/48063)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 5\
**Last updated:** [November 16, 2005, 4:08pm UTC](https://www.ruby-forum.com/t/no-helper-methods-in-controller/48063 "2005-11-16T16:08:26Z")

</div>

Hi I’m on rails version 0.14.3. The methods of the controller helper module are not available in the controller instance. They are available on the view. Verified it with a plain new project. May this be a bug or am…

---

## [Cequel Cassandra ORM For Ruby Question](https://www.ruby-forum.com/t/cequel-cassandra-orm-for-ruby-question/234831)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 16, 2014, 6:35pm UTC](https://www.ruby-forum.com/t/cequel-cassandra-orm-for-ruby-question/234831 "2014-10-16T18:35:11Z")

</div>

Hi all, I’m starting a RoR3 project with Cassandra Database using Cequel 1.4.1, a Ruby ORM for Cassandra. It’s a great ORM and easy to use because of it’s ActiveRecord-like coding and model association style. But as i…

---

## [Openssl error with latest JDK and JRuby](https://www.ruby-forum.com/t/openssl-error-with-latest-jdk-and-jruby/235840)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 24, 2013, 12:53am UTC](https://www.ruby-forum.com/t/openssl-error-with-latest-jdk-and-jruby/235840 "2013-07-24T00:53:38Z")

</div>

LoadError: load error: openssl – java.lang.NoClassDefFoundError: Could not initialize class org.jruby.ext.openssl.ASN1 org/jruby/RubyKernel.java:1054:in require' /usr/local/Cellar/jruby/1.7.4/libexec/lib/ruby/shared/ru…

---

## [How do I generate the Rspec file for an already existing model in Rails 3?](https://www.ruby-forum.com/t/how-do-i-generate-the-rspec-file-for-an-already-existing-model-in-rails-3/210987)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 22, 2011, 9:36pm UTC](https://www.ruby-forum.com/t/how-do-i-generate-the-rspec-file-for-an-already-existing-model-in-rails-3/210987 "2011-08-22T21:36:38Z")

</div>

I’ve seen guides for Rspec that say to use rspec\_model script, but in Rails 3 you don’t have the script folder, and the only Rspec generator that I have is rspec:install. The other way is generate them automatically w…

---

## [Problem using 'AllInOneRuby' with Tk-Program (Windows 2000 a](https://www.ruby-forum.com/t/problem-using-allinoneruby-with-tk-program-windows-2000-a/82971)

<div class="topic-metadata">

**Author:** [@wonado](https://www.ruby-forum.com/u/wonado)\
**Replies:** 2\
**Last updated:** [January 22, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/problem-using-allinoneruby-with-tk-program-windows-2000-a/82971 "2007-01-22T23:48:07Z")

</div>

Hi! We found a problem using ‘AllInOneRuby’ with Tk-Program on Windows 2000 and XP. ‘Tcl/Tk’ does work, a generated ‘allinoneruby.exe’ works well with a console program, but gives an error using a small Tk example. …

---

## [Most Popular Searches](https://www.ruby-forum.com/t/most-popular-searches/54274)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 2\
**Last updated:** [March 1, 2006, 12:59am UTC](https://www.ruby-forum.com/t/most-popular-searches/54274 "2006-03-01T00:59:16Z")

</div>

Hi, I have an index where each document contains an untokenized ‘url’ field. I would like to query the index for the most popular urls. In SQL I would do this via a Group By clause. Is there anything in Ferret tha…

---

## [Application\_helper question](https://www.ruby-forum.com/t/application-helper-question/236028)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [May 6, 2014, 11:45am UTC](https://www.ruby-forum.com/t/application-helper-question/236028 "2014-05-06T11:45:49Z")

</div>

I am new to ruby on rails and ruby in general. I have an existing application I am learning to maintain. What are the “WB” declarations in my application\_helper.rb file? Here is an example: def new\_product\_text wb(“…

---

## [:onchange in rails 3](https://www.ruby-forum.com/t/onchange-in-rails-3/211206)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [August 30, 2011, 9:35pm UTC](https://www.ruby-forum.com/t/onchange-in-rails-3/211206 "2011-08-30T21:35:25Z")

</div>

Hi, Anybody know why :onchange works here… \<%= select\_tag “Minisections”, options\_from\_collection\_for\_select(@minisections, :id, :title, :selected =\> @minisection.id), {:onChange =\> “{alert(‘Minisection has been chan…

---

## [How to turn :before\_add exceptions into validation errors](https://www.ruby-forum.com/t/how-to-turn-before-add-exceptions-into-validation-errors/191439)

<div class="topic-metadata">

**Author:** [@cpr](https://www.ruby-forum.com/u/cpr)\
**Replies:** 1\
**Last updated:** [March 1, 2011, 12:30am UTC](https://www.ruby-forum.com/t/how-to-turn-before-add-exceptions-into-validation-errors/191439 "2011-03-01T00:30:08Z")

</div>

As per http://rails.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html Possible callbacks are: before\_add, after\_add, before\_remove and after\_remove. Should any of the before\_add callbacks throw an e…

---

## [Render :json not setting content type (Rails 3.0.3)](https://www.ruby-forum.com/t/render-json-not-setting-content-type-rails-3-0-3/200068)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 1\
**Last updated:** [December 6, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/render-json-not-setting-content-type-rails-3-0-3/200068 "2010-12-06T23:51:41Z")

</div>

Hi, I’m experiencing a strange problem on an application this is in the process of being converted from Rails 2.3 to 3.0.3. I have several controllers that are rendering either HTML or JSON depending on the requeste…

---

## [Newbie tomcat deployment issue](https://www.ruby-forum.com/t/newbie-tomcat-deployment-issue/190924)

<div class="topic-metadata">

**Author:** [@leithaus](https://www.ruby-forum.com/u/leithaus)\
**Replies:** 7\
**Last updated:** [July 1, 2010, 1:03am UTC](https://www.ruby-forum.com/t/newbie-tomcat-deployment-issue/190924 "2010-07-01T01:03:27Z")

</div>

Dear JRubyists, i’m deploying a JRuby app under tomcat locally to attempt to repro an error i’m seeing on a stax.net deployment. Normally, i test under jetty – and the app works like a charm under jetty – so tomcat is…

---

## [Best way to search through an array for an item matching a s](https://www.ruby-forum.com/t/best-way-to-search-through-an-array-for-an-item-matching-a-s/179369)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 7\
**Last updated:** [November 24, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/best-way-to-search-through-an-array-for-an-item-matching-a-s/179369 "2009-11-24T18:34:51Z")

</div>

Hi everyone, am trying to find a nice easy/simple way to search through an array of strings match the string I’ve input use that index to print out the word before in the array. for example \[ahoy there,hello,me hea…

---

## [Threads - running something in background](https://www.ruby-forum.com/t/threads-running-something-in-background/174850)

<div class="topic-metadata">

**Author:** [@akeem](https://www.ruby-forum.com/u/akeem)\
**Replies:** 7\
**Last updated:** [September 4, 2009, 3:56am UTC](https://www.ruby-forum.com/t/threads-running-something-in-background/174850 "2009-09-04T03:56:20Z")

</div>

Hey guys, I’ve been studying Ruby for some weeks now but when it comes to threads, I know that I am totally unskilled. I am trying to build a class which is able to keep updating itself every X seconds after being in…

---

## [Mongrel crashing problem](https://www.ruby-forum.com/t/mongrel-crashing-problem/170063)

<div class="topic-metadata">

**Author:** [@Nicholas\_J\_Kreucher](https://www.ruby-forum.com/u/Nicholas_J_Kreucher)\
**Replies:** 1\
**Last updated:** [June 11, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/mongrel-crashing-problem/170063 "2009-06-11T23:35:08Z")

</div>

Hi Everyone, Wondering if anyone has insight into my mongrel crashing problem before I dig deeper with gdb etc. Most of the crashes seem to be in connection\_pool.rb (see below). I’ve got 4 of them running and a mongre…

---

## [Routing to different pages with Ajax login](https://www.ruby-forum.com/t/routing-to-different-pages-with-ajax-login/162941)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [March 19, 2009, 2:45am UTC](https://www.ruby-forum.com/t/routing-to-different-pages-with-ajax-login/162941 "2009-03-19T02:45:35Z")

</div>

I have a situation where I need my ajaxed login popup to route to a different page than the default route. Specifically this situation is if they are trying to message a user and are not signed in, I want to show the…

---

## [Some usrp modules are missing](https://www.ruby-forum.com/t/some-usrp-modules-are-missing/159223)

<div class="topic-metadata">

**Author:** [@feldmaus](https://www.ruby-forum.com/u/feldmaus)\
**Replies:** 7\
**Last updated:** [February 12, 2009, 10:24pm UTC](https://www.ruby-forum.com/t/some-usrp-modules-are-missing/159223 "2009-02-12T22:24:46Z")

</div>

Hi, i compiled the gnuradio software correctly with this options: ./configure --enable-gr-wxgui --enable-grc --enable-usrp –enable-gr-usrp --enable-gr-audio-alsa --enable-gnuradio-examples –enable-gnuradio-core --e…

---

## [\[Please help!\]store parameters variable into database](https://www.ruby-forum.com/t/please-help-store-parameters-variable-into-database/156919)

<div class="topic-metadata">

**Author:** [@ukarick](https://www.ruby-forum.com/u/ukarick)\
**Replies:** 7\
**Last updated:** [January 6, 2009, 4:05am UTC](https://www.ruby-forum.com/t/please-help-store-parameters-variable-into-database/156919 "2009-01-06T04:05:59Z")

</div>

So here’s what I’m trying to do I’m going to store params variables into database. Here’s what it’s looklike. ------------------------Data that store on my database -------------- — !map:HashWithIndifferentAccess “1…

---

## [Dynamic proxy\_pass](https://www.ruby-forum.com/t/dynamic-proxy-pass/144484)

<div class="topic-metadata">

**Author:** [@WSandrew\_L](https://www.ruby-forum.com/u/WSandrew_L)\
**Replies:** 7\
**Last updated:** [August 2, 2008, 2:29am UTC](https://www.ruby-forum.com/t/dynamic-proxy-pass/144484 "2008-08-02T02:29:09Z")

</div>

I have a relatively complex setup but I believe nginx has the ability to do everything I am looking for. I want to proxy requests for files to different servers using x-accel-redirect. A request cycle might look like …

---

## [Src/os/unix/ngx\_files.c:164: error: â€˜IOV\_MA Xâ€™ undeclared (first use in this functi on)](https://www.ruby-forum.com/t/src-os-unix-ngx-files-c-error-a-iov-ma-xa-undeclared-first-use-in-this-functi-on/137604)

<div class="topic-metadata">

**Author:** [@Pawel\_Eljasz](https://www.ruby-forum.com/u/Pawel_Eljasz)\
**Replies:** 7\
**Last updated:** [May 16, 2008, 11:14am UTC](https://www.ruby-forum.com/t/src-os-unix-ngx-files-c-error-a-iov-ma-xa-undeclared-first-use-in-this-functi-on/137604 "2008-05-16T11:14:41Z")

</div>

hi dear all, I get bellow during 0.6.31 compilation on fedora9 2.6.25-14.fc9.x86\_64, gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) make -f objs/Makefile make\[1\]: Entering directory /home/install/nginx/nginx-0.6.…

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

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