# Top

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

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

---

## [Best way to run Sinatra in prod on Windows?](https://www.ruby-forum.com/t/best-way-to-run-sinatra-in-prod-on-windows/242542)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [July 9, 2015, 4:58pm UTC](https://www.ruby-forum.com/t/best-way-to-run-sinatra-in-prod-on-windows/242542 "2015-07-09T16:58:10Z")

</div>

I have a Sinatra app that makes calls to powershell scripts so I require Windows. So what is the best way/app to run Sinatra in prod on Windows? Something that can be at least somewhat managed remotely, or at least r…

---

## [Compiling and using NGINX in multi thread mode](https://www.ruby-forum.com/t/compiling-and-using-nginx-in-multi-thread-mode/234713)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 25, 2015, 7:01am UTC](https://www.ruby-forum.com/t/compiling-and-using-nginx-in-multi-thread-mode/234713 "2015-03-25T07:01:52Z")

</div>

Hi, I hope that I am posting at the right place. I am trying to figure out if multi-thread mode is supported with the latest release, and if so then what I need to do for using it? I am trying to compile it from its…

---

## [Attributes= operation \*appends\* instead of replacing for accepts\_nested\_attributes\_for with has\_many](https://www.ruby-forum.com/t/attributes-operation-appends-instead-of-replacing-for-accepts-nested-attributes-for-with-has-many/226955)

<div class="topic-metadata">

**Author:** [@xop](https://www.ruby-forum.com/u/xop)\
**Replies:** 2\
**Last updated:** [February 28, 2013, 3:08pm UTC](https://www.ruby-forum.com/t/attributes-operation-appends-instead-of-replacing-for-accepts-nested-attributes-for-with-has-many/226955 "2013-02-28T15:08:06Z")

</div>

When using “attributes=” for an object with a accepts\_nested\_attributes\_for a model that has a has\_many relationship will cause the has\_many array to be appended-to instead of being replaced as would be expected by …

---

## [Has many relation - destroy troubles](https://www.ruby-forum.com/t/has-many-relation-destroy-troubles/215740)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 14, 2012, 7:13pm UTC](https://www.ruby-forum.com/t/has-many-relation-destroy-troubles/215740 "2012-01-14T19:13:55Z")

</div>

Hello, Rookie here … learning rails and enjoying it … having a bit-o-trouble with has many in the following scenario: class Party \< ActiveRecord::Base has\_many :target\_associations, :foreign\_key =\> ‘source\_party\_id’, …

---

## [Ironruby activerecord sqlserver](https://www.ruby-forum.com/t/ironruby-activerecord-sqlserver/190362)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 2\
**Last updated:** [June 18, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/ironruby-activerecord-sqlserver/190362 "2010-06-18T15:49:14Z")

</div>

Hi all When running this ruby program: require ‘rubygems’ require ‘active\_record’ require ‘yaml’ ActiveRecord::Base.establish\_connection( :adapter =\> ‘sqlserver’, :database =\> ‘xxxxx’, :username =\> ‘sa’, :passwor…

---

## [Respond\_with and redirects on error](https://www.ruby-forum.com/t/respond-with-and-redirects-on-error/186961)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 16, 2010, 1:39pm UTC](https://www.ruby-forum.com/t/respond-with-and-redirects-on-error/186961 "2010-04-16T13:39:05Z")

</div>

Hello, I’m using edge Rails and I have the following code in my users controller, with the respective test: def update @user = User.find(params\[:id\]) if @user.update\_attributes(params\[:user\]) flash\[:notice\] = t :us…

---

## [AM\_CFLAGS vs. CFLAGS, etc](https://www.ruby-forum.com/t/am-cflags-vs-cflags-etc/179962)

<div class="topic-metadata">

**Author:** [@fozzyb](https://www.ruby-forum.com/u/fozzyb)\
**Replies:** 2\
**Last updated:** [December 8, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/am-cflags-vs-cflags-etc/179962 "2009-12-08T20:57:32Z")

</div>

Hi All, I wonder if someone with access to the git repository could fix the warnings I get about using CFLAGS in automake, etc., by replacing CFLAGS with AM\_CFLAGS, etc.? 73, Rob, KL7NA – Rob F., Ph.D., P.E. E.F.…

---

## [Testing my rails authentication controller](https://www.ruby-forum.com/t/testing-my-rails-authentication-controller/169622)

<div class="topic-metadata">

**Author:** [@wayne\_a](https://www.ruby-forum.com/u/wayne_a)\
**Replies:** 2\
**Last updated:** [June 19, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/testing-my-rails-authentication-controller/169622 "2009-06-19T20:32:40Z")

</div>

I have a simple controller: class AccessController \< ApplicationController def login if request.post? employee = Employee.authenticate(params\[:name\], params\[:password\]) if employee session\[:employee\_id\] = e…

---

## [Calendar\_date\_select\_includes not found](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102)

<div class="topic-metadata">

**Author:** [@steveluscher](https://www.ruby-forum.com/u/steveluscher)\
**Replies:** 2\
**Last updated:** [December 8, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/calendar-date-select-includes-not-found/155102 "2008-12-08T15:30:08Z")

</div>

Hi - I tried to install the calendar\_date\_select date picker and it doesn’t work for me. I get this error: undefined local variable or method \`calendar\_date\_select\_includes’ for #ActionView::Base:0x2640314 Here’s w…

---

## [Guide per Rails 2.0](https://www.ruby-forum.com/t/guide-per-rails-2-0/127140)

<div class="topic-metadata">

**Author:** [@blademckain](https://www.ruby-forum.com/u/blademckain)\
**Replies:** 2\
**Last updated:** [January 25, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/guide-per-rails-2-0/127140 "2008-01-25T16:22:31Z")

</div>

salve a tutti sono nuovo di ruby, avevo cominciato a studiarlo qualche tempo fa, ma poi per motivi di lavoro ho dovuto interrompere. Ora lo sto un po riprendendo ma mi sono accordo che con la 2.0 sono cambiate parecc…

---

## [Redirect to pdf](https://www.ruby-forum.com/t/redirect-to-pdf/122192)

<div class="topic-metadata">

**Author:** [@Bober](https://www.ruby-forum.com/u/Bober)\
**Replies:** 2\
**Last updated:** [December 5, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/redirect-to-pdf/122192 "2007-12-05T21:58:20Z")

</div>

Hello! in folder public/pdf I have a file “test.pdf” when I try it open http://127.0.0.1:3001/pdf/test.pd everything is ok, browser open test.pdf. but when I try to redirect in method (redirect\_to\_path “/pdf/test.pd…

---

## [Update\_attribute does an insert?](https://www.ruby-forum.com/t/update-attribute-does-an-insert/109152)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/update-attribute-does-an-insert/109152 "2007-07-11T23:43:46Z")

</div>

Hello, I am trying to update an integer value on a table using Rails, but it complains that I am violating a not-null constraint because I didn’t specify other attributes. My code is as follows: sup = Supplier.new su…

---

## [Getting error 405 on install](https://www.ruby-forum.com/t/getting-error-405-on-install/99899)

<div class="topic-metadata">

**Author:** [@jeet](https://www.ruby-forum.com/u/jeet)\
**Replies:** 2\
**Last updated:** [February 2, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/getting-error-405-on-install/99899 "2006-02-02T21:06:02Z")

</div>

I am trying to install rails engines using the command “ruby script\\plugin install engines” but getting the error svn: REPORT request failed on ‘/rails\_engines/!svn/vcc/default’ svn: REPORT of ‘/rails\_engines/!svn/vc…

---

## [Can you override a private rails method?](https://www.ruby-forum.com/t/can-you-override-a-private-rails-method/49422)

<div class="topic-metadata">

**Author:** [@joshuabates](https://www.ruby-forum.com/u/joshuabates)\
**Replies:** 2\
**Last updated:** [December 4, 2005, 5:20am UTC](https://www.ruby-forum.com/t/can-you-override-a-private-rails-method/49422 "2005-12-04T05:20:41Z")

</div>

I’m trying to override the behavior of find\_with\_associations for an acts\_as plugin. Not having much luck as it’s a private method, so I can’t alias it, and my method of the same name is ignored. Is this even poss…

---

## [System command errors not going to $stderr](https://www.ruby-forum.com/t/system-command-errors-not-going-to-stderr/235047)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [May 30, 2013, 10:52am UTC](https://www.ruby-forum.com/t/system-command-errors-not-going-to-stderr/235047 "2013-05-30T10:52:35Z")

</div>

I have a Rails project, that uses Windows shares to access printers, and as part of that will run a command line “net use” to set them up or to test them. At its simplist: net use I wanted to grab any error text to d…

---

## [Volatile cache keys with Rails and Redis](https://www.ruby-forum.com/t/volatile-cache-keys-with-rails-and-redis/224209)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 1\
**Last updated:** [November 5, 2012, 4:18am UTC](https://www.ruby-forum.com/t/volatile-cache-keys-with-rails-and-redis/224209 "2012-11-05T04:18:10Z")

</div>

Does Rails automatically set an EXPIRE attribute on keys when working with Redis, or will an old key sit there forever if it’s never manually cleared out? This is mostly a concern when using ActiveModel’s “cache\_key”…

---

## [Correct pattern for manually adding Paperclip attachment?](https://www.ruby-forum.com/t/correct-pattern-for-manually-adding-paperclip-attachment/204511)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [March 14, 2011, 11:00pm UTC](https://www.ruby-forum.com/t/correct-pattern-for-manually-adding-paperclip-attachment/204511 "2011-03-14T23:00:19Z")

</div>

Can anyone point me to the correct pattern for manually adding a Paperclip attachment? By manual, I mean that I’m not using an upload form. For example, I’m programmatically creating the attachment (i.e. an CSV file,…

---

## [CVSD encoder -- how to use output?](https://www.ruby-forum.com/t/cvsd-encoder-how-to-use-output/117825)

<div class="topic-metadata">

**Author:** [@Eric\_R\_Menendez](https://www.ruby-forum.com/u/Eric_R_Menendez)\
**Replies:** 1\
**Last updated:** [October 21, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/cvsd-encoder-how-to-use-output/117825 "2007-10-21T17:47:00Z")

</div>

Hello All– We have been attempting to use GNU Radio to build a transmitter that will encode voice via CVSD, and then transmit via FSK. We have been using the cvsd\_encode block to encode the voice samples via CVSD. Ho…

---

## [Pretty printer for the Nginx config?](https://www.ruby-forum.com/t/pretty-printer-for-the-nginx-config/241227)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 5\
**Last updated:** [May 20, 2014, 1:43am UTC](https://www.ruby-forum.com/t/pretty-printer-for-the-nginx-config/241227 "2014-05-20T01:43:58Z")

</div>

Is there a pretty printer for this file? It doesn’t seem to be in any particular language. I tried a JS beautifier but that broke things. Lyle

---

## [Error occured while evaluating nil](https://www.ruby-forum.com/t/error-occured-while-evaluating-nil/223872)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [October 21, 2012, 6:25pm UTC](https://www.ruby-forum.com/t/error-occured-while-evaluating-nil/223872 "2012-10-21T18:25:01Z")

</div>

This is the code if !params\[:ratings\].nil? params\[:ratings\].each\_key do |r| @selected\_ratings \<\< r @movies \<\< Movie.where(‘rating = :rating’, :rating =\> r) @sort = params\[:sort\] end elsif @selected\_ratings = @all…

---

## [Raw Samples from Receiver](https://www.ruby-forum.com/t/raw-samples-from-receiver/214380)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [November 30, 2011, 7:40pm UTC](https://www.ruby-forum.com/t/raw-samples-from-receiver/214380 "2011-11-30T19:40:54Z")

</div>

Hi, I would like to view / manipulate the raw samples from the FPGA. From what I see, in the UHD code each 32-bit word (item) is split to form a complex float and a scaling factor is used. Is there a way of transferr…

---

## [Cext build error on Win7 32-bit](https://www.ruby-forum.com/t/cext-build-error-on-win7-32-bit/194721)

<div class="topic-metadata">

**Author:** [@ratchetcat](https://www.ruby-forum.com/u/ratchetcat)\
**Replies:** 5\
**Last updated:** [September 10, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/cext-build-error-on-win7-32-bit/194721 "2010-09-10T21:09:28Z")

</div>

C:\\Users\\Jon\\Documents\\JavaDev\\jruby\>g++ --version g++ (tdm-1) 4.5.1 C:\\Users\\Jon\\Documents\\JavaDev\\jruby\>ant clean cext …… \[exec\] g++ -DNDEBUG -O2 -fno-omit-frame-pointer -fno-strict-aliasing -W -Wall -Wno-unused -…

---

## [Newbie question: Swing + JRuby](https://www.ruby-forum.com/t/newbie-question-swing-jruby/180740)

<div class="topic-metadata">

**Author:** [@chrisbotor](https://www.ruby-forum.com/u/chrisbotor)\
**Replies:** 5\
**Last updated:** [December 28, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/newbie-question-swing-jruby/180740 "2009-12-28T18:41:02Z")

</div>

Hello, I’d like to use a Swing UI that I’ve built in Netbeans GUI builder in JRuby, without porting it manually or using Monkeybars. As I’m I newbie (especially in Java), it might be that the approach is altogether s…

---

## [Help me on how to](https://www.ruby-forum.com/t/help-me-on-how-to/178776)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 5\
**Last updated:** [November 11, 2009, 8:53am UTC](https://www.ruby-forum.com/t/help-me-on-how-to/178776 "2009-11-11T08:53:31Z")

</div>

i want to check the given mysql database is exists or not using rails… i searched the net and found the below SELECT SCHEMA\_NAME FROM INFORMATION\_SCHEMA.SCHEMATA WHERE SCHEMA\_NAME = ‘testdb’ this is works in query br…

---

## [ADC Specs](https://www.ruby-forum.com/t/adc-specs/155715)

<div class="topic-metadata">

**Author:** [@Aadil\_V](https://www.ruby-forum.com/u/Aadil_V)\
**Replies:** 5\
**Last updated:** [December 15, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/adc-specs/155715 "2008-12-15T23:46:52Z")

</div>

Hi, I have read this information regarding the USRP ADC “The full range on the ADCs is 2V peak to peak, and the input is 50 ohms differential. This is equates to 40mW, or 16dBm.” Please may someone enlighten me, how t…

---

## [Should raise\_error](https://www.ruby-forum.com/t/should-raise-error/149519)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 5\
**Last updated:** [September 25, 2008, 7:34pm UTC](https://www.ruby-forum.com/t/should-raise-error/149519 "2008-09-25T19:34:12Z")

</div>

I noticed in the RSpec documentation that “object.should raise\_error” isn’t enclosed in a begin…rescue…end : http://rspec.info/rdoc/classes/Spec/Matchers.html#M000420 However, when I use #raise\_error , I have to rescu…

---

## [Hola me presento](https://www.ruby-forum.com/t/hola-me-presento/76103)

<div class="topic-metadata">

**Author:** [@Musicos\_C](https://www.ruby-forum.com/u/Musicos_C)\
**Replies:** 5\
**Last updated:** [November 15, 2006, 11:44pm UTC](https://www.ruby-forum.com/t/hola-me-presento/76103 "2006-11-15T23:44:03Z")

</div>

Hola me presento mi nombre es Javier Movile, soy nuevo en esto de RoR, desarrollo en otras tenologias pero me esta siendo necesario por cuestiones laborales ( y ademas nunca esta demas aprender algo nuevo y por lo que …

---

## [Net::FTP.new silently failing in block form](https://www.ruby-forum.com/t/net-ftp-new-silently-failing-in-block-form/71659)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [October 10, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/net-ftp-new-silently-failing-in-block-form/71659 "2006-10-10T16:57:26Z")

</div>

Hi all, Ruby 1.8.5 I’m hitting some odd behavior with Net::FTP.new. I’m connecting to a Win2k3 server (running IIS 6, if that matters). The directory style is set to “UNIX”, and the ftp server is in passive mode. I…

---

## [WIN32OLE#= method in Ruby 1.9 (or later)](https://www.ruby-forum.com/t/win32ole-method-in-ruby-1-9-or-later/55930)

<div class="topic-metadata">

**Author:** [@Masaki\_S](https://www.ruby-forum.com/u/Masaki_S)\
**Replies:** 5\
**Last updated:** [March 29, 2006, 4:36pm UTC](https://www.ruby-forum.com/t/win32ole-method-in-ruby-1-9-or-later/55930 "2006-03-29T16:36:09Z")

</div>

Hello, I have a question about Win32OLE. I think that I’ll change the behavior of WIN32OLE#\[\] and WIN32OLE#\[\]= in Ruby 1.9 or later. I have not commited the change yet. Before commiting it, I want suggestions or opi…

---

## [\[OT\] Apache rewrite stuff](https://www.ruby-forum.com/t/ot-apache-rewrite-stuff/71840)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 9:41pm UTC](https://www.ruby-forum.com/t/ot-apache-rewrite-stuff/71840 "2006-02-22T21:41:00Z")

</div>

Hi all, a little off topic, but was wondering what the best way is to re-write incoming requests so that they all end up at the same domain. For example, if I had: my\_domain.net my\_domain.com my\_domain.org Whats th…

---

## [JOB: Backend-Developer (w/m) – Data Analysis & Architecture, in Munich, Germany](https://www.ruby-forum.com/t/job-backend-developer-w-m-data-analysis-architecture-in-munich-germany/237648)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [November 22, 2013, 1:26pm UTC](https://www.ruby-forum.com/t/job-backend-developer-w-m-data-analysis-architecture-in-munich-germany/237648 "2013-11-22T13:26:10Z")

</div>

To strengthen our team in the heart of Munich-Germany, we are looking for a backend-developer. For more information about PreisAnalytics and on your application, just have a look at the attached file or visit us on ou…

---

## [Named Entity Extractor](https://www.ruby-forum.com/t/named-entity-extractor/187466)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 0\
**Last updated:** [April 23, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/named-entity-extractor/187466 "2010-04-23T17:00:53Z")

</div>

Has any one written (or contemplated writing) a named entity extractor/recognition for Ferret?

---

## [Software Defined Academy Programme almost ready](https://www.ruby-forum.com/t/software-defined-academy-programme-almost-ready/242067)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [May 28, 2015, 11:57pm UTC](https://www.ruby-forum.com/t/software-defined-academy-programme-almost-ready/242067 "2015-05-28T23:57:36Z")

</div>

Dear List, the programme of the Software Defined Radio Academy on June 27 2015 in Friedrichshafen (sub-conference to HAMRADIO) is almost complete. But it is already now so interesting that I don’t want to wait any lon…

---

## [Require problem](https://www.ruby-forum.com/t/require-problem/232394)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [October 8, 2014, 1:21am UTC](https://www.ruby-forum.com/t/require-problem/232394 "2014-10-08T01:21:04Z")

</div>

Hi all I installed ruby in Ubuntu 14.04. Installed rmagick (sudo gem install rmagick) I go to irb and write require rmagick It shows me an error irb(main):001:0\> require rmagick NameError: undefined local variable …

---

## [State\_machine prevents ActiveRecord from being persisted](https://www.ruby-forum.com/t/state-machine-prevents-activerecord-from-being-persisted/182373)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 4\
**Last updated:** [December 3, 2013, 2:56pm UTC](https://www.ruby-forum.com/t/state-machine-prevents-activerecord-from-being-persisted/182373 "2013-12-03T14:56:29Z")

</div>

Hello list, I have a subscription model that has a upgrade event. This changes the state from free-\>paying and triggers a charge method in the subscription model. This charge method then creates a new instance of th…

---

## [Creating a Simple Orders System](https://www.ruby-forum.com/t/creating-a-simple-orders-system/209933)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 27, 2011, 12:41pm UTC](https://www.ruby-forum.com/t/creating-a-simple-orders-system/209933 "2011-07-27T12:41:34Z")

</div>

I am trying to create a very simple order & customer tracking system with Customer, Products and Orders. I am having challenges getting my head around how to code to setup the many-to-many relationship between Orders …

---

## [Validations not working?](https://www.ruby-forum.com/t/validations-not-working/209401)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [July 13, 2011, 12:34pm UTC](https://www.ruby-forum.com/t/validations-not-working/209401 "2011-07-13T12:34:28Z")

</div>

Hi, I’m having some serious problems with my validations. I have a mongoid model set up with validations, which looks like this: class Apartment include Mongoid::Document include Mongoid::Timestamps validates :pri…

---

## [Reverse proxying video streaming](https://www.ruby-forum.com/t/reverse-proxying-video-streaming/205693)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 13, 2011, 2:19pm UTC](https://www.ruby-forum.com/t/reverse-proxying-video-streaming/205693 "2011-04-13T14:19:55Z")

</div>

hi, i’ve successfully reverse proxying streaming content through nginx. this is my config location /stream/ { proxy\_pass http://xxx.xxx.xxx.xxx:8080/stream.flv; proxy\_redirect off; …

---

## [Solar System (#227)](https://www.ruby-forum.com/t/solar-system-227/181699)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 4\
**Last updated:** [May 10, 2010, 10:30pm UTC](https://www.ruby-forum.com/t/solar-system-227/181699 "2010-05-10T22:30:59Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q.: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have elapsed from the time this m…

---

## [Race condition in limit\_zone/limit\_conn?](https://www.ruby-forum.com/t/race-condition-in-limit-zone-limit-conn/187991)

<div class="topic-metadata">

**Author:** [@Barry\_Jaspan](https://www.ruby-forum.com/u/Barry_Jaspan)\
**Replies:** 4\
**Last updated:** [May 4, 2010, 7:28pm UTC](https://www.ruby-forum.com/t/race-condition-in-limit-zone-limit-conn/187991 "2010-05-04T19:28:47Z")

</div>

I am seeing a behavior in nginx/0.7.62 that I cannot explain. I want to limit the maximum number of concurrent connections per virtual host (server block). As an approximation of that, I’m using limit\_zone max\_conn $h…

---

## [Adding a bit of ajax to rails question](https://www.ruby-forum.com/t/adding-a-bit-of-ajax-to-rails-question/136123)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/adding-a-bit-of-ajax-to-rails-question/136123 "2008-04-30T16:40:36Z")

</div>

Hi, I just started playing to add some ajax to my RoR application. works… but something weird is going on that is most problably a newbee error than anything else. I have this code in one of my views… \<%= link\_to\_re…

---

## [Playing Flash flv files using FlowPlayer](https://www.ruby-forum.com/t/playing-flash-flv-files-using-flowplayer/124106)

<div class="topic-metadata">

**Author:** [@bigtwinz](https://www.ruby-forum.com/u/bigtwinz)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 7:30am UTC](https://www.ruby-forum.com/t/playing-flash-flv-files-using-flowplayer/124106 "2007-12-27T07:30:39Z")

</div>

Guys, got a conceptual issue regarding integration of FlowPlayer with rails views. Basically, I want to add and view various types of content, such as stories and video. Adding and saving is successful, however viewin…

---

## [Prototype $A not defined](https://www.ruby-forum.com/t/prototype-a-not-defined/63944)

<div class="topic-metadata">

**Author:** [@Yannick\_Koehler](https://www.ruby-forum.com/u/Yannick_Koehler)\
**Replies:** 4\
**Last updated:** [August 15, 2006, 2:21pm UTC](https://www.ruby-forum.com/t/prototype-a-not-defined/63944 "2006-08-15T14:21:42Z")

</div>

Hello, I apologize for posting prototype related email to this list, yet I have not seen any reference to email or list on the prototype web site and I know the author of that library is part of the rails development …

---

## [Review requested: Binding.call\_stack(), Binding.of\_caller()-](https://www.ruby-forum.com/t/review-requested-binding-call-stack-binding-of-caller/76624)

<div class="topic-metadata">

**Author:** [@Dumaiu](https://www.ruby-forum.com/u/Dumaiu)\
**Replies:** 4\
**Last updated:** [March 20, 2006, 7:36pm UTC](https://www.ruby-forum.com/t/review-requested-binding-call-stack-binding-of-caller/76624 "2006-03-20T19:36:30Z")

</div>

Hi, all– I’d like to submit for evaluation an elaboration I’ve made on the famous ‘Binding.of\_caller()’ of Florian Groß. I have tried to follow the the description of the interface for Binding.call\_stack() suggested …

---

## [Re: Error in OP25 Decoder block](https://www.ruby-forum.com/t/re-error-in-op25-decoder-block/231059)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 18, 2014, 7:53pm UTC](https://www.ruby-forum.com/t/re-error-in-op25-decoder-block/231059 "2014-07-18T19:53:22Z")

</div>

import op25 I got the prompt right back, no error message. Right - pretty much as expected. This strongly suggests that the python code you’re attempting to use (in this case, from gr-baz) has not yet been f…

---

## [Putting form\_authenticity\_token (csrf token) in a cookie instead of in meta tags?](https://www.ruby-forum.com/t/putting-form-authenticity-token-csrf-token-in-a-cookie-instead-of-in-meta-tags/240870)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 5, 2014, 2:16am UTC](https://www.ruby-forum.com/t/putting-form-authenticity-token-csrf-token-in-a-cookie-instead-of-in-meta-tags/240870 "2014-05-05T02:16:03Z")

</div>

When you generate a default Rails app, it puts this in application.html.erb: \<%= csrf\_meta\_tags %\> It does this so the remote forms can be submitted–i.e., so JavaScript can submit a form. When jquery-rails is about …

---

## [SSL on Heroku](https://www.ruby-forum.com/t/ssl-on-heroku/217293)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 9, 2013, 2:07am UTC](https://www.ruby-forum.com/t/ssl-on-heroku/217293 "2013-02-09T02:07:08Z")

</div>

Since Heroku has integrated the piggybank\_ssl addon by default, trying: heroku addons:add piggyback\_ssl or heroku addons:add ssl:piggyback results in: ! This add-on is now a standard Heroku platform feature. ! Your…

---

## [Gem installation issues](https://www.ruby-forum.com/t/gem-installation-issues/211135)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 26, 2011, 3:19pm UTC](https://www.ruby-forum.com/t/gem-installation-issues/211135 "2011-08-26T15:19:27Z")

</div>

hi all, This may seem trivial and stupid to the experts , but i have been at it for over 2 weeks and all answers got from forums did not help with resolving the issue. Even using cygwin didn’t help , i get the same e…

---

## [Loop, insdide do loop. do twice?](https://www.ruby-forum.com/t/loop-insdide-do-loop-do-twice/202656)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [February 3, 2011, 9:05am UTC](https://www.ruby-forum.com/t/loop-insdide-do-loop-do-twice/202656 "2011-02-03T09:05:43Z")

</div>

mply = 0 body = “just some data” proof = 100 VALUE="" list = \[‘line1’,‘line2’,‘line3’\] foreach(list) do |block| while mply \< 3 puts mply.to\_s+block+VALUE if body.bytesize \> proof print(“writing to log.html #{VAU…

---

## [Rails is slow to load](https://www.ruby-forum.com/t/rails-is-slow-to-load/192743)

<div class="topic-metadata">

**Author:** [@eric2323223](https://www.ruby-forum.com/u/eric2323223)\
**Replies:** 7\
**Last updated:** [August 5, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/rails-is-slow-to-load/192743 "2010-08-05T15:38:08Z")

</div>

Hi, I was just wondering if this was normal or not. I was running ruby 1.8.7 with rails 3 - rc. (Currently trying 1.9.2- rc2 but the same problem) It takes rails a while to load. (a while as in 10-15 seconds) It wil…

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

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