# Top

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

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

---

## [Anybody using begin/rescue](https://www.ruby-forum.com/t/anybody-using-begin-rescue/123450)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 7\
**Last updated:** [December 18, 2007, 5:56am UTC](https://www.ruby-forum.com/t/anybody-using-begin-rescue/123450 "2007-12-18T05:56:13Z")

</div>

i came from java world, and it is really big there. i don’t see a lot in ruby code samples. just a little. anybody out there using it? or is the errors just emailed to you?

---

## [Can db connections be shared](https://www.ruby-forum.com/t/can-db-connections-be-shared/116658)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 7\
**Last updated:** [October 8, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/can-db-connections-be-shared/116658 "2007-10-08T17:41:40Z")

</div>

If I have an application that makes numerous calls to a database for CRUD stuff over a period, does another user on a different PC when accessing the same database and same user make use of that existing connection. O…

---

## [Regex not gsubbing for me](https://www.ruby-forum.com/t/regex-not-gsubbing-for-me/112515)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 7\
**Last updated:** [August 20, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/regex-not-gsubbing-for-me/112515 "2007-08-20T21:06:09Z")

</div>

Hi, Can someone please explain to me why this simple regex substitution won’t work? Source data file: Reauthorization of collaborative weather modification research program within Department of Commerce/NOAA Weather…

---

## [Encoding in windows (newby question)](https://www.ruby-forum.com/t/encoding-in-windows-newby-question/76251)

<div class="topic-metadata">

**Author:** [@Alfonso](https://www.ruby-forum.com/u/Alfonso)\
**Replies:** 7\
**Last updated:** [November 17, 2006, 9:49am UTC](https://www.ruby-forum.com/t/encoding-in-windows-newby-question/76251 "2006-11-17T09:49:30Z")

</div>

When I write my scripts in Linux, there is no problem with the special characters, but on windows, the special characters of my language are not properly set (spanish). Example puts “español”. I suppose for some reaso…

---

## [USRP and RFX2400 block diagrams](https://www.ruby-forum.com/t/usrp-and-rfx2400-block-diagrams/66905)

<div class="topic-metadata">

**Author:** [@phoeben](https://www.ruby-forum.com/u/phoeben)\
**Replies:** 7\
**Last updated:** [August 31, 2006, 3:50am UTC](https://www.ruby-forum.com/t/usrp-and-rfx2400-block-diagrams/66905 "2006-08-31T03:50:45Z")

</div>

I’ve taken a shot at coming up with block diagrams for the USRP and RFX2400. The diagram for the USRP is the result of information I’ve gleaned from different messages in the list, data sheets, and block diagrams cre…

---

## [Is there how to upload files using ajax?](https://www.ruby-forum.com/t/is-there-how-to-upload-files-using-ajax/66520)

<div class="topic-metadata">

**Author:** [@lenrek](https://www.ruby-forum.com/u/lenrek)\
**Replies:** 7\
**Last updated:** [August 29, 2006, 6:50am UTC](https://www.ruby-forum.com/t/is-there-how-to-upload-files-using-ajax/66520 "2006-08-29T06:50:58Z")

</div>

I’am trying to send multipart with ajax like this \<%= form\_remote\_tag :url =\> {:action =\> “upload” } %\> \<%= file\_filed “user”, “picture” %\> \<%= submit\_tag %\> \<%= end\_form\_tag %\> But when i try get @params\[:user\]\[:pi…

---

## [How can I set up relations for these models?](https://www.ruby-forum.com/t/how-can-i-set-up-relations-for-these-models/61063)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 7\
**Last updated:** [May 20, 2006, 9:03am UTC](https://www.ruby-forum.com/t/how-can-i-set-up-relations-for-these-models/61063 "2006-05-20T09:03:28Z")

</div>

Hello! I have a legacy DB and want to use ActiveRecord for it. However, I can’t set up a relation correctly. Here’s table spec: \[products\] id name price \[subproducts\] product\_id subproduct\_id Some example data…

---

## [Single form w/ relationships: how do I integrate it?](https://www.ruby-forum.com/t/single-form-w-relationships-how-do-i-integrate-it/54768)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 7\
**Last updated:** [March 14, 2006, 8:11am UTC](https://www.ruby-forum.com/t/single-form-w-relationships-how-do-i-integrate-it/54768 "2006-03-14T08:11:38Z")

</div>

OK - I know this has been asked before, but I cannot find it in the archives. Forgive me if I’m creating more noise than I should. I want to know the easiest way to deal with this scenario: I have articles. I have c…

---

## [String mangling](https://www.ruby-forum.com/t/string-mangling/50243)

<div class="topic-metadata">

**Author:** [@dhstudio](https://www.ruby-forum.com/u/dhstudio)\
**Replies:** 7\
**Last updated:** [December 15, 2005, 11:08am UTC](https://www.ruby-forum.com/t/string-mangling/50243 "2005-12-15T11:08:10Z")

</div>

Imagine an input string aaaaabbccccceeebbbbbbbbbbeaaabaacccceeee… I have regexp for the parts a,b,c and e can be considered as else. So how can I efficiently search/step through the string from left to right, while …

---

## [Activerecord : undefined method stringify\_keys error](https://www.ruby-forum.com/t/activerecord-undefined-method-stringify-keys-error/233222)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [November 26, 2014, 3:07pm UTC](https://www.ruby-forum.com/t/activerecord-undefined-method-stringify-keys-error/233222 "2014-11-26T15:07:31Z")

</div>

Hello, I am trying to fetch instances details from amazon and trying to store in local mysql db. I am able to fetch all the details from amazon, but while storing the data in mysql i am getting the error undefined m…

---

## [Connecting Rails app to SQL Server](https://www.ruby-forum.com/t/connecting-rails-app-to-sql-server/231262)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 30, 2014, 8:51pm UTC](https://www.ruby-forum.com/t/connecting-rails-app-to-sql-server/231262 "2014-07-30T20:51:45Z")

</div>

Hi, We are trying to connect an app that was using postgre to use MS SQL Server on a Centos 6 oracle virtualbox vm. We have installed the activerecord-sqlserver-adapter and tiny\_tds gems packages. The list of gems …

---

## [Ruby and OpenMP](https://www.ruby-forum.com/t/ruby-and-openmp/227892)

<div class="topic-metadata">

**Author:** [@jabari\_z](https://www.ruby-forum.com/u/jabari_z)\
**Replies:** 1\
**Last updated:** [April 5, 2013, 3:33am UTC](https://www.ruby-forum.com/t/ruby-and-openmp/227892 "2013-04-05T03:33:55Z")

</div>

Has anyone tried to get the OpenMp project to work with Ruby? This seems like a nice way to provide portable true parallelism in Ruby. http://openmp.org/wp/

---

## [Sufficiently tested?](https://www.ruby-forum.com/t/sufficiently-tested/217710)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [March 27, 2012, 10:40am UTC](https://www.ruby-forum.com/t/sufficiently-tested/217710 "2012-03-27T10:40:06Z")

</div>

Hi everybody, I have a general question about how many different cases have to be covered in one Example. Considering the famous Fizzbuzz program, you should test if your output is either “Fizz”, “buzz”, “Fizzbuzz” o…

---

## [Link\_to param body](https://www.ruby-forum.com/t/link-to-param-body/216970)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 21, 2012, 2:44pm UTC](https://www.ruby-forum.com/t/link-to-param-body/216970 "2012-02-21T14:44:58Z")

</div>

Hi everybody, I’m developing an application, in this application I have a link that redirects me to other page. The problem is: -I want to add some params to this url, but I wanna hide this params “Like post reques…

---

## [How to changing a AASM state using a Edit Action+Form View?](https://www.ruby-forum.com/t/how-to-changing-a-aasm-state-using-a-edit-action-form-view/178245)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 1\
**Last updated:** [November 1, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/how-to-changing-a-aasm-state-using-a-edit-action-form-view/178245 "2009-11-01T16:43:35Z")

</div>

Hello there, I’m using AASM to manage states in my User model. I want to change the status through the edit action. To do this I’m using the method User.aasm\_states\_for\_select in my form to populate the select input …

---

## [Running AAF DRb Server in foreground?](https://www.ruby-forum.com/t/running-aaf-drb-server-in-foreground/175900)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 1\
**Last updated:** [September 22, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/running-aaf-drb-server-in-foreground/175900 "2009-09-22T15:36:20Z")

</div>

Is it possible to run the ActsAsFerret DRb Server in foreground? I’m trying to avoid using monit and I have a few other monitors that only work when processes are run in the foreground.

---

## [Possible to set "PRAGMA default\_synchronous=OFF" for my sqlite connection via AR?](https://www.ruby-forum.com/t/possible-to-set-pragma-default-synchronous-off-for-my-sqlite-connection-via-ar/168117)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 2:44am UTC](https://www.ruby-forum.com/t/possible-to-set-pragma-default-synchronous-off-for-my-sqlite-connection-via-ar/168117 "2009-05-18T02:44:51Z")

</div>

Hey All, I’m using ActiveRecord w/the sqlite3 adapter and finding it slow for my use. After reading \_whytheluckystiff’s http://whytheluckystiff.net/articles/aQuickGuideToSQLite.html I wondered if it’s possible to co…

---

## [Carrier Phase Recovery](https://www.ruby-forum.com/t/carrier-phase-recovery/164727)

<div class="topic-metadata">

**Author:** [@Sajjad\_Sarwar](https://www.ruby-forum.com/u/Sajjad_Sarwar)\
**Replies:** 1\
**Last updated:** [April 4, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/carrier-phase-recovery/164727 "2009-04-04T22:29:34Z")

</div>

I am doing my UG project on “optimized packet radio” in SDR. Presently, I am using costas loop block but i think it’s recovering only the frequency of local oscillator but not the phase. Please correct me if i am wro…

---

## [Getting error while executing the spec](https://www.ruby-forum.com/t/getting-error-while-executing-the-spec/242266)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [June 10, 2015, 8:30pm UTC](https://www.ruby-forum.com/t/getting-error-while-executing-the-spec/242266 "2015-06-10T20:30:22Z")

</div>

rails 4.2.1 /.rvm/gems/ruby-2.1.2/gems/rack-1.6.1/lib/rack/builder.rb:146:in to\_app': missing run or map statement (RuntimeError) from /Users/ChandrasekharPasupuleti/.rvm/gems/ruby-2.1.2/gems/rack-1.6.1/lib/rack/builde…

---

## [New To Community and ROR](https://www.ruby-forum.com/t/new-to-community-and-ror/243720)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [December 26, 2015, 6:27pm UTC](https://www.ruby-forum.com/t/new-to-community-and-ror/243720 "2015-12-26T18:27:28Z")

</div>

Hey ROR Community, I am brand new to this fun world world of programming and obviously, ruby on rails too. I have been picking up some basic skills in programming, enough to write a !SIMPLE! program, and also some f…

---

## [Flags / xml to supress Add throttle warning?](https://www.ruby-forum.com/t/flags-xml-to-supress-add-throttle-warning/243138)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [August 25, 2015, 6:18am UTC](https://www.ruby-forum.com/t/flags-xml-to-supress-add-throttle-warning/243138 "2015-08-25T06:18:45Z")

</div>

I’ve built an OOT for some physical SDR hardware. However, when compiling a flowgraph in gnruradio-companion it prints a warning message about no audio or rf sink, so please insert a throttle. Since my module actuall…

---

## [\[OT\] Offerta di lavoro](https://www.ruby-forum.com/t/ot-offerta-di-lavoro/232522)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [December 11, 2014, 9:41am UTC](https://www.ruby-forum.com/t/ot-offerta-di-lavoro/232522 "2014-12-11T09:41:57Z")

</div>

Ciao a tutti! In MiSiedo cerchiamo uno sviluppatore back-end full time da inserire nella squadra di sviluppatori interna. MiSiedo è un sistema di prenotazione in tempo reale del tavolo al ristorante (www.misiedo.com)…

---

## [Duplicate Vary: Accept-Encoding header](https://www.ruby-forum.com/t/duplicate-vary-accept-encoding-header/238606)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 20, 2014, 9:31am UTC](https://www.ruby-forum.com/t/duplicate-vary-accept-encoding-header/238606 "2014-01-20T09:31:38Z")

</div>

Hello, I use nginx/1.4.4 with gunzip = on and gzip\_vary = on. This leads to a duplicate Vary Header. gzip\_vary should do nothing if the header is already present: moki@mysrv:~$ curl -I http://192.168.1.196/home.htmlh…

---

## [\[ANN\] ChronoModel - temporal database on Rails](https://www.ruby-forum.com/t/ann-chronomodel-temporal-database-on-rails/226577)

<div class="topic-metadata">

**Author:** [@Marcello\_B](https://www.ruby-forum.com/u/Marcello_B)\
**Replies:** 2\
**Last updated:** [December 18, 2012, 10:45pm UTC](https://www.ruby-forum.com/t/ann-chronomodel-temporal-database-on-rails/226577 "2012-12-18T22:45:03Z")

</div>

Ciao lista, nei mesi passati ho implementato un’extension per ActiveRecord che implementa una Slowly-Changing Dimension di tipo 2, vale a dire un sistema di temporal database basato su PostgreSQL \>= 9. Ogni modifica …

---

## [Remove test\_unit](https://www.ruby-forum.com/t/remove-test-unit/222428)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 28, 2012, 4:09pm UTC](https://www.ruby-forum.com/t/remove-test-unit/222428 "2012-08-28T16:09:43Z")

</div>

Hi! I have an app that uses Rails 3.2.7. I want to use minitest-rails (GitHub - blowmage/minitest-rails: Minitest integration for Rails) instead of test\_unit. I have installed it and it works fine. The problem is whe…

---

## [Server\_name host order](https://www.ruby-forum.com/t/server-name-host-order/214149)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 2:56pm UTC](https://www.ruby-forum.com/t/server-name-host-order/214149 "2011-11-23T14:56:04Z")

</div>

Hello, I would like to know if this is correct Will NGINX allways return the first of the provided hostname name in from the server\_name as beign the “SERVER\_NAME”, eg server\_name hostname1 hostname2; I have two serv…

---

## [UDPSocket#bind(ip, port) fails under IPv6!](https://www.ruby-forum.com/t/udpsocket-bind-ip-port-fails-under-ipv6/213369)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [November 1, 2011, 4:37am UTC](https://www.ruby-forum.com/t/udpsocket-bind-ip-port-fails-under-ipv6/213369 "2011-11-01T04:37:51Z")

</div>

Hi, the following script shows that UDPSocket#bind fails if the given IP is IPv6 (however TCPServer does not fail). It occurs with Ruby 1.8 and 1.9.X. My computer has IPv4 and IPv6 (using Miredo/Teredo). The script: …

---

## [Problem wrapping Voldemort client Java class into JRuby class: dependencies not loading](https://www.ruby-forum.com/t/problem-wrapping-voldemort-client-java-class-into-jruby-class-dependencies-not-loading/191121)

<div class="topic-metadata">

**Author:** [@Russell\_J](https://www.ruby-forum.com/u/Russell_J)\
**Replies:** 2\
**Last updated:** [July 7, 2010, 9:20am UTC](https://www.ruby-forum.com/t/problem-wrapping-voldemort-client-java-class-into-jruby-class-dependencies-not-loading/191121 "2010-07-07T09:20:48Z")

</div>

I am trying to use the Voldemort http://project-voldemort.com/ Java client from JRuby by wrapping the voldemort.clienthttp://github.com/voldemort/voldemort/tree/master/src/java/voldemort/client/ Java class in a JRub…

---

## ["Overriding" association build methods](https://www.ruby-forum.com/t/overriding-association-build-methods/176856)

<div class="topic-metadata">

**Author:** [@tristan](https://www.ruby-forum.com/u/tristan)\
**Replies:** 2\
**Last updated:** [October 7, 2009, 10:47am UTC](https://www.ruby-forum.com/t/overriding-association-build-methods/176856 "2009-10-07T10:47:21Z")

</div>

Hey everyone I have (in a nutshell) two models: Customer and Order. Customer has\_many Orders and Order belongs\_to Customer. The Order model contains fields such as name, address and phone that mirror the associated C…

---

## [Will\_paginate with more than one table](https://www.ruby-forum.com/t/will-paginate-with-more-than-one-table/172159)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 11:57am UTC](https://www.ruby-forum.com/t/will-paginate-with-more-than-one-table/172159 "2009-07-16T11:57:20Z")

</div>

Hi you all, I have an app where I do two “finds” in different tables: @results\_m = Man.find(:all) @results\_w = Woman.find(:all) I can paginate each of one with paginate: @results\_m = Man.paginate(\[params page stuff h…

---

## [QAM soft symbol to hard symbol/bit conversion](https://www.ruby-forum.com/t/qam-soft-symbol-to-hard-symbol-bit-conversion/157228)

<div class="topic-metadata">

**Author:** [@smp](https://www.ruby-forum.com/u/smp)\
**Replies:** 2\
**Last updated:** [January 15, 2009, 1:05am UTC](https://www.ruby-forum.com/t/qam-soft-symbol-to-hard-symbol-bit-conversion/157228 "2009-01-15T01:05:08Z")

</div>

Hi everyone I have searched around for this information, but am having a tough time finding it. I am trying to do 64QAM soft symbol to bit conversion in gnu radio. It would be something similar to gr.binary\_slicer\_f…

---

## [Rails image\_tag generates url get 404](https://www.ruby-forum.com/t/rails-image-tag-generates-url-get-404/143540)

<div class="topic-metadata">

**Author:** [@koji\_Lin](https://www.ruby-forum.com/u/koji_Lin)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 2:49am UTC](https://www.ruby-forum.com/t/rails-image-tag-generates-url-get-404/143540 "2008-07-21T02:49:43Z")

</div>

hi all with jruby1.1.3, 1.1.2 the image\_tag’s path will like “test.jpg.?1215529702” in 1.1.2, it works well, but in 1.1.3, looks like there is an error in “jruby-1.1.3/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick\_…

---

## [Gem install of mongrel v 1.1.5 broken in jruby](https://www.ruby-forum.com/t/gem-install-of-mongrel-v-1-1-5-broken-in-jruby/138426)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [May 22, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/gem-install-of-mongrel-v-1-1-5-broken-in-jruby/138426 "2008-05-22T22:11:32Z")

</div>

Can’t install the latest mongrel (1.1.5) in JRuby (jruby revisions ranging from 6600 to 6750\[trunk\] checked) – the platform is not being identified and it’s trying to do native compilation. I’m not sure it’s actually …

---

## [Tricky respond\_to and layout problem](https://www.ruby-forum.com/t/tricky-respond-to-and-layout-problem/122043)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/tricky-respond-to-and-layout-problem/122043 "2007-12-06T13:47:43Z")

</div>

Hi all… I just spent the better part of an hour wrestling with a finicky situation, and since there was some discussion earlier regarding multiple layouts, I thought I’d share my experience in the hope it might save …

---

## [Help needed for German translation?](https://www.ruby-forum.com/t/help-needed-for-german-translation/90090)

<div class="topic-metadata">

**Author:** [@Frithjof\_Eckhardt](https://www.ruby-forum.com/u/Frithjof_Eckhardt)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 9:35am UTC](https://www.ruby-forum.com/t/help-needed-for-german-translation/90090 "2007-03-26T09:35:33Z")

</div>

Hi, I would like to help with the German translation for Typo 4.1. How can I join the project? Cheers, Frithjof

---

## [Fat Data Model vs Skinny Data Model](https://www.ruby-forum.com/t/fat-data-model-vs-skinny-data-model/57144)

<div class="topic-metadata">

**Author:** [@joenova](https://www.ruby-forum.com/u/joenova)\
**Replies:** 2\
**Last updated:** [April 7, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/fat-data-model-vs-skinny-data-model/57144 "2006-04-07T22:10:08Z")

</div>

Ive recently been contemplating how to tackle allowing for extra “fields” to be added to a recordset. For example, a user has an email address, but they may also want to put their birthday, height, weight, etc. I don…

---

## [Render collection undefined local variable](https://www.ruby-forum.com/t/render-collection-undefined-local-variable/64590)

<div class="topic-metadata">

**Author:** [@Jebus](https://www.ruby-forum.com/u/Jebus)\
**Replies:** 2\
**Last updated:** [February 7, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/render-collection-undefined-local-variable/64590 "2006-02-07T22:37:13Z")

</div>

Why am I getting undefined local variable ‘contact’ in my partial. This is code I used to render the partial, works in lots of other places \<%= render (:partial =\> ‘list’, :collection =\> @contacts) %\> in my parital I …

---

## [Proxy\_cache\_path max\_size doesn't work](https://www.ruby-forum.com/t/proxy-cache-path-max-size-doesnt-work/244224)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [March 8, 2016, 1:23pm UTC](https://www.ruby-forum.com/t/proxy-cache-path-max-size-doesnt-work/244224 "2016-03-08T13:23:11Z")

</div>

Hi, I’m using nginx as a reverse proxy with caching on a ramdisk /var/cache/nginx is a tmpfs of the size 1800m. And this is my proxy\_cache\_path line in nginx: proxy\_cache\_path /var/cache/nginx levels=1:2 use\_temp\_pat…

---

## [Block bot on uri with query\_string](https://www.ruby-forum.com/t/block-bot-on-uri-with-query-string/245872)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 3\
**Last updated:** [July 28, 2013, 2:51pm UTC](https://www.ruby-forum.com/t/block-bot-on-uri-with-query-string/245872 "2013-07-28T14:51:13Z")

</div>

Hi All, Been trying to block bots from accessing a URI that has a query\_string “action=get\_it”, i tried below location ~\* \\?(action=get\_it)$ { if ( $http\_user\_agent ~ (crawl|Googlebot|Slurp|spider|bi…

---

## [Simular to Include](https://www.ruby-forum.com/t/simular-to-include/226999)

<div class="topic-metadata">

**Author:** [@maetthew](https://www.ruby-forum.com/u/maetthew)\
**Replies:** 0\
**Last updated:** [February 28, 2013, 6:40am UTC](https://www.ruby-forum.com/t/simular-to-include/226999 "2013-02-28T06:40:42Z")

</div>

Hi, I have array1 that contains several web address. Array2 contains the expected endings of array1 values. How can I control that arrays2 values is in array1? I have tried array1.should include array2, but it requir…

---

## [Stripping double quotes](https://www.ruby-forum.com/t/stripping-double-quotes/215596)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [January 12, 2012, 7:30pm UTC](https://www.ruby-forum.com/t/stripping-double-quotes/215596 "2012-01-12T19:30:43Z")

</div>

Hi, I have the attached file, but my issue is that the file I am parsing, is in this format: “45hc43j”,“sdfsdf”,"",“Dead”,“sdfdsf “,“sgfsdf”,””,“sdfg”,“null”,"", That is why I escape quotes in the script. How do I ge…

---

## [NGINX & sinatra](https://www.ruby-forum.com/t/nginx-sinatra/205410)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 6, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/nginx-sinatra/205410 "2011-04-06T22:53:14Z")

</div>

Ciao a tutti, per fare un po’ di pratica mi sono fatto un server (ubuntu 10.04) di test per provare le mie app. ho installato rvm (1.5.2) , nginx e passenger senza grossi problemi. ho creato la directory /home/makka/…

---

## [\[Bug #982\] stack level too deep for long Array initialization](https://www.ruby-forum.com/t/bug-982-stack-level-too-deep-for-long-array-initialization/156899)

<div class="topic-metadata">

**Author:** [@Martin\_DSSS\_rst](https://www.ruby-forum.com/u/Martin_DSSS_rst)\
**Replies:** 3\
**Last updated:** [November 12, 2010, 10:47am UTC](https://www.ruby-forum.com/t/bug-982-stack-level-too-deep-for-long-array-initialization/156899 "2010-11-12T10:47:16Z")

</div>

Bug #982: stack level too deep for long Array initialization http://redmine.ruby-lang.org/issues/show/982 e$B5/I\<\<Te(B: Martin De$(D+de(Brst e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Koichi Sasada, e…

---

## [A rails sitemap plugin](https://www.ruby-forum.com/t/a-rails-sitemap-plugin/173471)

<div class="topic-metadata">

**Author:** [@flyerhzm](https://www.ruby-forum.com/u/flyerhzm)\
**Replies:** 0\
**Last updated:** [August 10, 2009, 3:38am UTC](https://www.ruby-forum.com/t/a-rails-sitemap-plugin/173471 "2009-08-10T03:38:53Z")

</div>

Hi, guys: I wrote a sitemap plugin for rails yesterday. This plugin will generate the public/sitemap.xml from config/sitemap.rb whose format is very familiar to config/routes.rb. I think it is very helpful if you hav…

---

## [Unsigned column](https://www.ruby-forum.com/t/unsigned-column/91472)

<div class="topic-metadata">

**Author:** [@Julien\_Ammous](https://www.ruby-forum.com/u/Julien_Ammous)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/unsigned-column/91472 "2008-07-01T20:05:01Z")

</div>

Hi, I can’t manage to get an unsigned int column with activerecord migration, I am using this definition: create\_table :emails, :use\_big\_id =\> true do |t| t.column “destination”, :string, :limit =\> 60, :null =\> false …

---

## [Is there a way to set a global variable in my deploy](https://www.ruby-forum.com/t/is-there-a-way-to-set-a-global-variable-in-my-deploy/186755)

<div class="topic-metadata">

**Author:** [@lucasc](https://www.ruby-forum.com/u/lucasc)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-set-a-global-variable-in-my-deploy/186755 "2008-02-25T21:14:57Z")

</div>

I am deploying an application to several sub domains and need to set a global variable in each sub domain so that I query the correct table based on the sub domain. Currently I am doing this in my layouts but this do…

---

## [What is the correct way to check for existence of virtual class?](https://www.ruby-forum.com/t/what-is-the-correct-way-to-check-for-existence-of-virtual-class/120394)

<div class="topic-metadata">

**Author:** [@Voroztsov\_A](https://www.ruby-forum.com/u/Voroztsov_A)\
**Replies:** 3\
**Last updated:** [November 16, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/what-is-the-correct-way-to-check-for-existence-of-virtual-class/120394 "2007-11-16T20:14:34Z")

</div>

One can write: class Object def singleton\_class class \<\<self; self; end rescue nil end end puts “aaa”.singleton\_class puts 8.singleton\_class Is it the assumed way to do the job? Is there any special method in r…

---

## [Scattered I/O (on MS Windows)](https://www.ruby-forum.com/t/scattered-i-o-on-ms-windows/118066)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [October 24, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/scattered-i-o-on-ms-windows/118066 "2007-10-24T16:49:11Z")

</div>

Hi all, Park H. and I came up with a custom implementation for IO.readlines using scattered I/O I thought would be fun to share. I think I’m seeing a 2x performance increase, but page caching is making it difficult t…

---

## [Building a relationship between an image and a listing](https://www.ruby-forum.com/t/building-a-relationship-between-an-image-and-a-listing/225967)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/building-a-relationship-between-an-image-and-a-listing/225967 "2007-09-11T19:22:13Z")

</div>

http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment\_fu-and-responds\_to\_parent I followed this tutorial, and would like to implement it into my restaurant listing creation form. I am havi…

---

## [SVN seems to be down](https://www.ruby-forum.com/t/svn-seems-to-be-down/112278)

<div class="topic-metadata">

**Author:** [@joshovest](https://www.ruby-forum.com/u/joshovest)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/svn-seems-to-be-down/112278 "2007-08-17T18:31:53Z")

</div>

I’ve tried throughout the day to install the plugin from SVN and the connection keeps getting refused. On a side note, I tried instead to install the gem rather than the plugin and it seems to only run correctly for t…

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

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