# Top

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

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

---

## [Sort by sql question](https://www.ruby-forum.com/t/sort-by-sql-question/69758)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 3\
**Last updated:** [September 24, 2006, 10:16pm UTC](https://www.ruby-forum.com/t/sort-by-sql-question/69758 "2006-09-24T22:16:32Z")

</div>

if I do a pagination: @document\_pages, @documents = paginate :documents, :per\_page =\> 20, :include =\> \[:company\], :conditions =\> “doc\_type\_id = ‘#{@doc\_type}’”, :order =\> “#{order\_by}” How could I sort by doc\_type.ti…

---

## [Render :partial + redirect\_to :controller](https://www.ruby-forum.com/t/render-partial-redirect-to-controller/93493)

<div class="topic-metadata">

**Author:** [@plutes](https://www.ruby-forum.com/u/plutes)\
**Replies:** 3\
**Last updated:** [April 4, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/render-partial-redirect-to-controller/93493 "2006-04-04T18:59:04Z")

</div>

This is of course disallowed, which I discovered only after nearly completing my spanking new ajaxified UI. What is the motivation behind this, and what is the best workaround? This UI does a scriptaculous drag-and-d…

---

## [Good Host for Facebook Rails App?](https://www.ruby-forum.com/t/good-host-for-facebook-rails-app/117568)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 6\
**Last updated:** [January 10, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/good-host-for-facebook-rails-app/117568 "2008-01-10T15:07:02Z")

</div>

Hi All, Wondering if anyone knows any pros/cons to any of the different rails hosting providers… I’m deploying a facebook app and am wondering where to host it… Right now, I have a hostingrails.com account, but am wo…

---

## [How to include login\_engine pages in my own views?](https://www.ruby-forum.com/t/how-to-include-login-engine-pages-in-my-own-views/53711)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 6\
**Last updated:** [February 20, 2006, 9:49pm UTC](https://www.ruby-forum.com/t/how-to-include-login-engine-pages-in-my-own-views/53711 "2006-02-20T21:49:22Z")

</div>

I installed the login\_engine and all works fine but when I log in I am redirected to a login page which looks like it’s not part of my site because it has different formatting and none of my headings ( partials on top…

---

## [\[GSoC\] gr-radar: Dual CW Radar and Tracking Algorithms](https://www.ruby-forum.com/t/gsoc-gr-radar-dual-cw-radar-and-tracking-algorithms/230970)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [July 16, 2014, 11:37am UTC](https://www.ruby-forum.com/t/gsoc-gr-radar-dual-cw-radar-and-tracking-algorithms/230970 "2014-07-16T11:37:57Z")

</div>

Hi, The Radar Toolbox has new features! First new feature of the Radar Toolbox is a Dual CW Radar. It is implemented as simulation and tested with USRPs. This setup is much more better than the previous FSK Radar! C…

---

## [Gtk and ruby-gtk on ARM](https://www.ruby-forum.com/t/gtk-and-ruby-gtk-on-arm/238362)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [January 7, 2014, 5:28pm UTC](https://www.ruby-forum.com/t/gtk-and-ruby-gtk-on-arm/238362 "2014-01-07T17:28:54Z")

</div>

Hello, I need to develop for ARM CPU : ARM CPU, with 250…512 MB Ram Ethernet+USP+I2C communications graphic display (LCD…) linux as firmware Is it possible to use ruby + Gtk for this kind of target ? Should we recom…

---

## [ActiveRecord failing with a default field value of blank](https://www.ruby-forum.com/t/activerecord-failing-with-a-default-field-value-of-blank/177234)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 4\
**Last updated:** [October 14, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/activerecord-failing-with-a-default-field-value-of-blank/177234 "2009-10-14T22:16:33Z")

</div>

I have a bug in my code that’s caught me completely off guard, and I’m hoping that maybe my IT folks updated a gem somewhere that changed something I didn’t know about. I’ve got a field, mq\_unsubscribe, in my mail\_que…

---

## [How to sanitize \_before\_ going into the database?](https://www.ruby-forum.com/t/how-to-sanitize-before-going-into-the-database/127791)

<div class="topic-metadata">

**Author:** [@fjan](https://www.ruby-forum.com/u/fjan)\
**Replies:** 4\
**Last updated:** [February 1, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/how-to-sanitize-before-going-into-the-database/127791 "2008-02-01T22:36:03Z")

</div>

I use a call to the sanitize method every time I render some user input, but it would be much nicer if I could clean it up once before putting it into the database and avoid having to call the (relatively expensive) s…

---

## [How do you delete a session variable?](https://www.ruby-forum.com/t/how-do-you-delete-a-session-variable/60899)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 4\
**Last updated:** [May 18, 2006, 5:29pm UTC](https://www.ruby-forum.com/t/how-do-you-delete-a-session-variable/60899 "2006-05-18T17:29:52Z")

</div>

Hi Let’s say we set session\[:foo\] = ‘bar’. Now we want to remove the :foo key completely. How do you do that? Appearantly, session is a CGI::Session \[1\] instance, so it doesn’t have #delete like Hash. I tried: sessi…

---

## [Why can't I assign a boolean value to an instance variable](https://www.ruby-forum.com/t/why-cant-i-assign-a-boolean-value-to-an-instance-variable/262856)

<div class="topic-metadata">

**Author:** [@curiousprogrammer](https://www.ruby-forum.com/u/curiousprogrammer)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 11:13pm UTC](https://www.ruby-forum.com/t/why-cant-i-assign-a-boolean-value-to-an-instance-variable/262856 "2022-05-09T23:13:10Z")

</div>

Hello, I have a line of code in my controller: @my\_var = true # false However, @my\_var is false after the assignment. When I do the same thing with a locally scoped variable it is set to true as expected. Does anyone …

---

## [Socket problem, Errno::EINVAL. Can someone explain?](https://www.ruby-forum.com/t/socket-problem-errno-einval-can-someone-explain/130566)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/socket-problem-errno-einval-can-someone-explain/130566 "2008-02-29T13:30:15Z")

</div>

Hi, I am having trouble with sockets on my development machine (windows & cygwin). I’ve done a quick test on a linux box and it doesn’t seem to show the same behaviour, i.e. it works. Can someone explain why the fo…

---

## [Undefined method \`render' thrown in helper tet](https://www.ruby-forum.com/t/undefined-method-render-thrown-in-helper-tet/91023)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [April 9, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/undefined-method-render-thrown-in-helper-tet/91023 "2007-04-09T17:07:47Z")

</div>

Hello, I’m trying to write a very simple test for a very simple method in a helper\_test. Here’s the method I’m testing in my\_helper.rb: def subscribe\_email\_link if @subscription\_model\_class render(:partia…

---

## [Populating Dropdown SimpleForm](https://www.ruby-forum.com/t/populating-dropdown-simpleform/242715)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [July 22, 2015, 9:08pm UTC](https://www.ruby-forum.com/t/populating-dropdown-simpleform/242715 "2015-07-22T21:08:48Z")

</div>

I’m working on populating this dropdown and finding myself having some trouble even though in theory it would be pretty simple. I’m used to rails 4 and we are using rails 3 on this project as well as haml which I’m f…

---

## [Gr-tutorial/examples/tutorial4 Python module missing](https://www.ruby-forum.com/t/gr-tutorial-examples-tutorial4-python-module-missing/241835)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [May 6, 2015, 12:53am UTC](https://www.ruby-forum.com/t/gr-tutorial-examples-tutorial4-python-module-missing/241835 "2015-05-06T00:53:20Z")

</div>

I have downloaded the most recent version of the gr-tutorial from github and installed it using cd gr-tutorial mkdir build cd build cmake … make sudo make install sudo ldconfig Everything works fine up to this p…

---

## [Missing functions in gnuradio?](https://www.ruby-forum.com/t/missing-functions-in-gnuradio/57877)

<div class="topic-metadata">

**Author:** [@Horst\_Eyermann](https://www.ruby-forum.com/u/Horst_Eyermann)\
**Replies:** 2\
**Last updated:** [April 15, 2006, 10:45pm UTC](https://www.ruby-forum.com/t/missing-functions-in-gnuradio/57877 "2006-04-15T22:45:51Z")

</div>

Hello, I am relatively new to gnuradio and plan to write a weatherfax decoder in gnuradio. I want to try different schemes for decoding the signal (coherent / noncoherent / short-time DFT) As there is phasing in the…

---

## [Ruby with hash reading json response values](https://www.ruby-forum.com/t/ruby-with-hash-reading-json-response-values/253466)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 3\
**Last updated:** [January 12, 2020, 9:04pm UTC](https://www.ruby-forum.com/t/ruby-with-hash-reading-json-response-values/253466 "2020-01-12T21:04:16Z")

</div>

str = ’ “paging”\]\[“next” ’ puts str =\> “paging”\]\[“next” hash\[“paging”\]\[“next”\] =\> this is working fine but hash\[str\] =\> this is not working how to make it work?

---

## [Nginx outbound HTTP\_REFERER not working](https://www.ruby-forum.com/t/nginx-outbound-http-referer-not-working/196156)

<div class="topic-metadata">

**Author:** [@jmadtech](https://www.ruby-forum.com/u/jmadtech)\
**Replies:** 3\
**Last updated:** [October 7, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/nginx-outbound-http-referer-not-working/196156 "2010-10-07T18:18:14Z")

</div>

Hey all, I’ve got an interesting problem that I can’t seem to trace. On my site (which is running Nginx 0.6.24), I have a link to a customer’s external URL. When a user clicks that link and goes to the customer’s si…

---

## [Dir.chdir does not work on windows (xp)](https://www.ruby-forum.com/t/dir-chdir-does-not-work-on-windows-xp/180642)

<div class="topic-metadata">

**Author:** [@sathvikl](https://www.ruby-forum.com/u/sathvikl)\
**Replies:** 3\
**Last updated:** [December 25, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/dir-chdir-does-not-work-on-windows-xp/180642 "2009-12-25T21:41:29Z")

</div>

Hi all , I am using Dir.chdir to change my current working directory. class Test def initialize spin end def spin dire = “/c/Target/tioga-1.11/samples” dire2 = “c:\\Target\\tioga-1.11\\samples” Dir.chdir(dire2) #s…

---

## [Telnet client](https://www.ruby-forum.com/t/telnet-client/147989)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [September 9, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/telnet-client/147989 "2008-09-09T16:17:41Z")

</div>

I use ruby wrote a Telnet client application. It works fine until users want to change a user name or telnet to other host. I found all these failed operations are related with “su -” command or login. How can I let r…

---

## [Upload Module - add response header with MD5](https://www.ruby-forum.com/t/upload-module-add-response-header-with-md5/222232)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [August 20, 2012, 9:19pm UTC](https://www.ruby-forum.com/t/upload-module-add-response-header-with-md5/222232 "2012-08-20T21:19:36Z")

</div>

Hi! here is the snuppet of configuration I use for uploading: location /upload { auth\_request /auth; upload\_pass /200; upload\_store /download 1; upload\_resumable on; #Return download path t…

---

## [Problems with Radiant and vendor/gems load order](https://www.ruby-forum.com/t/problems-with-radiant-and-vendor-gems-load-order/197409)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [October 14, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/problems-with-radiant-and-vendor-gems-load-order/197409 "2010-10-14T23:22:03Z")

</div>

All, Rails 2.3.8 Radiant 0.9.1 (vendored) Bundler 1.0.2 Yet another “this was just working, what the hell happened?” My custom Radiant extension is dependent on a gem that I have in RAILS\_ROOT/vendor/gem. I can se…

---

## [How do you mock a local variable?](https://www.ruby-forum.com/t/how-do-you-mock-a-local-variable/161743)

<div class="topic-metadata">

**Author:** [@MathLef](https://www.ruby-forum.com/u/MathLef)\
**Replies:** 1\
**Last updated:** [March 2, 2009, 12:20am UTC](https://www.ruby-forum.com/t/how-do-you-mock-a-local-variable/161743 "2009-03-02T00:20:06Z")

</div>

Hi, I need some help to spec’ a function I am developping. Note that the function is still not complete, cause I am trying to spec’ it while working on it, as it should be ! Basically, this is what my function should…

---

## [Rails layout](https://www.ruby-forum.com/t/rails-layout/147348)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 7\
**Last updated:** [September 1, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/rails-layout/147348 "2008-09-01T14:13:44Z")

</div>

Bonjour, J’utilise dans un même controller deux layouts différents. J’aimerais donc faire, d’après la doc, layout ‘public’, :only =\> \[:new, :create, :forgot\_password\] layout ‘home’, :only =\> \[:show, :edit\] Mais cela…

---

## [How to enforce ActiveRecord session store with Rails 2.0.2?](https://www.ruby-forum.com/t/how-to-enforce-activerecord-session-store-with-rails-2-0-2/131990)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [March 15, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/how-to-enforce-activerecord-session-store-with-rails-2-0-2/131990 "2008-03-15T19:42:23Z")

</div>

All, Rails 2.0.2 SQL Server 2000 database SQL Server AR adapter 1.0 using ODBC Apparently the new default session store is cookie based. I was using the ActiveRecord based session store and would like to continue to…

---

## [Form\_tag using :onsubmit =\> "confirm('are you sure?')". help](https://www.ruby-forum.com/t/form-tag-using-onsubmit-confirm-are-you-sure-help/92662)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/form-tag-using-onsubmit-confirm-are-you-sure-help/92662 "2007-04-22T22:59:44Z")

</div>

hi, both ok and cancel buttons submits the form…is there a way that when the user selects cancel that it doesnt submit the form? thanks!

---

## [Platform Independence Programming](https://www.ruby-forum.com/t/platform-independence-programming/97900)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 7\
**Last updated:** [July 11, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/platform-independence-programming/97900 "2006-07-11T16:50:12Z")

</div>

Hi list. I’d like to ask a question on platform independent programming with Ruby. The very first thing that comes to my mind is “\\r\\n” (new line) and “” (directory separator). Both of them should be correctly used…

---

## ["load"ing a file and keeping the current scope?](https://www.ruby-forum.com/t/load-ing-a-file-and-keeping-the-current-scope/94605)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 7\
**Last updated:** [May 8, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/load-ing-a-file-and-keeping-the-current-scope/94605 "2006-05-08T22:25:10Z")

</div>

Hi - For a variety of reasons I have the following situation: ---- file\_a.rb -------------------------------------- class A … magic loading goes here… end ---- file\_b.rb -------------------------------------- class…

---

## [Need of delay=58 in the PSK Symbol Recovery Guided Tutorial](https://www.ruby-forum.com/t/need-of-delay-58-in-the-psk-symbol-recovery-guided-tutorial/242056)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 6\
**Last updated:** [May 23, 2015, 4:44pm UTC](https://www.ruby-forum.com/t/need-of-delay-58-in-the-psk-symbol-recovery-guided-tutorial/242056 "2015-05-23T16:44:00Z")

</div>

Hi, I managed to successfully replicate the results of this tutorial: https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorial\_PSK\_Demodulation and, of course I understand the reason for a delay between the …

---

## [Array#concat Enumerator](https://www.ruby-forum.com/t/array-concat-enumerator/224993)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [December 10, 2012, 12:44am UTC](https://www.ruby-forum.com/t/array-concat-enumerator/224993 "2012-12-10T00:44:25Z")

</div>

Shouldn’t this work? \[\].concat(“abc”.chars) Seems extraneous that one would have to do: \[\].concat(“abc”.chars.to\_a)

---

## ['spec' command not working](https://www.ruby-forum.com/t/spec-command-not-working/204665)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 18, 2011, 6:08pm UTC](https://www.ruby-forum.com/t/spec-command-not-working/204665 "2011-03-18T18:08:55Z")

</div>

When I run JSpec, in the command prompt, using the “spec” command, I get this error: ‘spec’ command not recognized as a command I have the latest versions of JSpec and Ruby installed. How can I use the spec command? …

---

## [Sauvegarder paramÃ¨tres de l'application](https://www.ruby-forum.com/t/sauvegarder-parama-tres-de-lapplication/180103)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 6\
**Last updated:** [December 20, 2009, 12:42am UTC](https://www.ruby-forum.com/t/sauvegarder-parama-tres-de-lapplication/180103 "2009-12-20T00:42:22Z")

</div>

Bonjour, J’ai la question suivante : dans mon application je ne sais pas comment sauvegarder certains paramètres unique pour toute l’application de telle sorte que je puisse donner une interface à un utilisateur pour…

---

## [New to RoR - help with hosting application etc](https://www.ruby-forum.com/t/new-to-ror-help-with-hosting-application-etc/145476)

<div class="topic-metadata">

**Author:** [@erro](https://www.ruby-forum.com/u/erro)\
**Replies:** 6\
**Last updated:** [August 13, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/new-to-ror-help-with-hosting-application-etc/145476 "2008-08-13T19:07:44Z")

</div>

Hello, I’m new to the RoR and web development field. I’d like to buy/registrar a domain name and host the site on one of the hosting providers. However, since I’m new , I puzzled with the variety of types of servers …

---

## [Capistrano 2.1 ssh/svn checkout problem](https://www.ruby-forum.com/t/capistrano-2-1-ssh-svn-checkout-problem/123386)

<div class="topic-metadata">

**Author:** [@t\_chheng](https://www.ruby-forum.com/u/t_chheng)\
**Replies:** 6\
**Last updated:** [January 8, 2008, 1:41am UTC](https://www.ruby-forum.com/t/capistrano-2-1-ssh-svn-checkout-problem/123386 "2008-01-08T01:41:38Z")

</div>

Hi, I’m trying to deploy via Capistrano 2.1 I have the SVN repos. on the same deployed server. In my deploy.rb: I tried this set :repository, “file:///home/#{user}/svn\_repos/trunk” This gives an error of: execut…

---

## [Monit mongrel limit](https://www.ruby-forum.com/t/monit-mongrel-limit/118761)

<div class="topic-metadata">

**Author:** [@jnunemaker](https://www.ruby-forum.com/u/jnunemaker)\
**Replies:** 6\
**Last updated:** [October 31, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/monit-mongrel-limit/118761 "2007-10-31T13:12:38Z")

</div>

What do other people use as their memory limit for mongrel in monit? I’m using these settings below and it seems like I’m getting a lot of emails and restarts. Should I bumb up the totalmem limit to 80 or 100? if …

---

## [Ceil method](https://www.ruby-forum.com/t/ceil-method/226324)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [July 13, 2012, 7:49pm UTC](https://www.ruby-forum.com/t/ceil-method/226324 "2012-07-13T19:49:12Z")

</div>

Often times the ceil method is used for patterns that involve grouping. For example, if I have an array of objects and I want to group them in rows of 3, I might do this: (@objects.size / 3.0).ceil So if size retur…

---

## [Anything like Array.contains? method](https://www.ruby-forum.com/t/anything-like-array-contains-method/204001)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 3, 2011, 7:29am UTC](https://www.ruby-forum.com/t/anything-like-array-contains-method/204001 "2011-03-03T07:29:14Z")

</div>

Is there a method in the Ruby array object that gives anything like a “contains?” method, to test if an object is already in the Array? For the time being, I’ve extended the Array class as follows: http://pastie.org/1…

---

## [Gnuradio companion block selection window missing](https://www.ruby-forum.com/t/gnuradio-companion-block-selection-window-missing/225489)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 30, 2019, 6:37am UTC](https://www.ruby-forum.com/t/gnuradio-companion-block-selection-window-missing/225489 "2019-10-30T06:37:36Z")

</div>

I just installed Gnuradio and UHD yesterday and have been playing with Gnuradio Companion. All was going well until a little while ago when I started it up the block selection window was gone. How do I get it back? I …

---

## [How do I create a form for "has\_and\_belongs\_to\_many" association?](https://www.ruby-forum.com/t/how-do-i-create-a-form-for-has-and-belongs-to-many-association/221768)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 2, 2012, 5:50pm UTC](https://www.ruby-forum.com/t/how-do-i-create-a-form-for-has-and-belongs-to-many-association/221768 "2012-08-02T17:50:02Z")

</div>

git://github.com/vincentopensourcetaiwan/vocabulary.git This is my source codes. I got two models, Book and Word. class Book \< ActiveRecord::Base has\_and\_belongs\_to\_many :words end class Word \< ActiveRecord::Base …

---

## [Require\_relative](https://www.ruby-forum.com/t/require-relative/208340)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [June 15, 2011, 6:17pm UTC](https://www.ruby-forum.com/t/require-relative/208340 "2011-06-15T18:17:36Z")

</div>

Ironruby-core mailing list removed\_email\_address@domain.invalid http://rubyforge.org/mailman/listinfo/ironruby-core

---

## [Mongrel won't start ... mongrel\_rails (MissingSourceFile)](https://www.ruby-forum.com/t/mongrel-wont-start-mongrel-rails-missingsourcefile/140318)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [June 13, 2008, 11:43am UTC](https://www.ruby-forum.com/t/mongrel-wont-start-mongrel-rails-missingsourcefile/140318 "2008-06-13T11:43:47Z")

</div>

Hi All, I’m a newbie and I’m soooo confused at the moment! Here’s my setup: I’ve installed Ruby 1.8 on an Ubuntu 7.10 platform. I used apt to install that. I downloaded rubygems\_1.1.1 and installed that (tar -x…

---

## [Can store array or hash in cookies?](https://www.ruby-forum.com/t/can-store-array-or-hash-in-cookies/51819)

<div class="topic-metadata">

**Author:** [@szczepiq](https://www.ruby-forum.com/u/szczepiq)\
**Replies:** 2\
**Last updated:** [February 19, 2006, 4:59pm UTC](https://www.ruby-forum.com/t/can-store-array-or-hash-in-cookies/51819 "2006-02-19T16:59:04Z")

</div>

Hi According to rdoc: value - the cookie’s value or list of values (as an array). So, I can use arrays, briliant. But… It does not work (at least on webrick) I wrote a controller: def check\_cookies\_first cookies\[:…

---

## [Unpack k bits block with a new created block](https://www.ruby-forum.com/t/unpack-k-bits-block-with-a-new-created-block/242345)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [June 18, 2015, 9:34am UTC](https://www.ruby-forum.com/t/unpack-k-bits-block-with-a-new-created-block/242345 "2015-06-18T09:34:36Z")

</div>

HI I’m using the unpack k bits block (which is located at the output of a vector source), before the new block that I’m trying to create. I would want to save all the bits at the output of the unpacked k bits block, …

---

## [Best Practices for Multiple site One login](https://www.ruby-forum.com/t/best-practices-for-multiple-site-one-login/202941)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [October 1, 2012, 2:28pm UTC](https://www.ruby-forum.com/t/best-practices-for-multiple-site-one-login/202941 "2012-10-01T14:28:14Z")

</div>

Hi, I am developing a series of sites with similar themes. As such I would like to give the user access to all of the sites once they have registered with any one of the sites. What are the pitfalls and best practice…

---

## [Max size of a string that can be logged in error log](https://www.ruby-forum.com/t/max-size-of-a-string-that-can-be-logged-in-error-log/219384)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 3\
**Last updated:** [May 2, 2012, 5:52pm UTC](https://www.ruby-forum.com/t/max-size-of-a-string-that-can-be-logged-in-error-log/219384 "2012-05-02T17:52:48Z")

</div>

Hi, Is there a maximum size (and a corresponding tunable buffer size or so) for a string that can be logged in nginx Error log? I could find the tunable for access log (buffer=size), but not for error log. Thanks, A…

---

## [503 custom error page](https://www.ruby-forum.com/t/503-custom-error-page/215146)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 23, 2011, 4:16pm UTC](https://www.ruby-forum.com/t/503-custom-error-page/215146 "2011-12-23T16:16:25Z")

</div>

I’m trying to get a maintenance page working for my site. I added the following to the server block: error\_page 503 /maintenance.html; return 503; This serves 503 but with default nginx 503 error page. The following…

---

## [Searching for latin/umlaut characters in string](https://www.ruby-forum.com/t/searching-for-latin-umlaut-characters-in-string/136420)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 8\
**Last updated:** [May 2, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/searching-for-latin-umlaut-characters-in-string/136420 "2008-05-02T16:49:36Z")

</div>

Hi, Ive read up a bit about uicode strings and the issues with rails after i tried to save some data which contained an umlaut character. I got the following error below when searching for a name that contained the …

---

## [Gem install - install directory not absolute](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 8\
**Last updated:** [January 23, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/gem-install-install-directory-not-absolute/82940 "2007-01-23T20:06:52Z")

</div>

When I run … sudo gem install rails -y I get … ERROR: While executing gem … (ArgumentError) install directory “/usr/local/lib/ruby/gems/./gems/ activesupport-1.4.0” not absolute The directory /usr/local/lib/ruby/g…

---

## [Installing ferret](https://www.ruby-forum.com/t/installing-ferret/66246)

<div class="topic-metadata">

**Author:** [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Replies:** 8\
**Last updated:** [September 3, 2006, 1:59am UTC](https://www.ruby-forum.com/t/installing-ferret/66246 "2006-09-03T01:59:29Z")

</div>

I am trying to test drive ferret on a ubuntu dapper installation. I have a ferret-test.rb file like: ----begin--------- require ‘ferret’ include Ferret index = Index::Index.new(:path =\> ‘/opt/search-index’) ----end…

---

## [Incorrect wrong number of arguments exception when stubbing find](https://www.ruby-forum.com/t/incorrect-wrong-number-of-arguments-exception-when-stubbing-find/194937)

<div class="topic-metadata">

**Author:** [@Michael\_Xavier](https://www.ruby-forum.com/u/Michael_Xavier)\
**Replies:** 1\
**Last updated:** [September 14, 2010, 4:26am UTC](https://www.ruby-forum.com/t/incorrect-wrong-number-of-arguments-exception-when-stubbing-find/194937 "2010-09-14T04:26:19Z")

</div>

I’m working with a subclass of ActiveResource and I came across this oddity when trying to stub its find method. Occurring with rspec 1.3.0: The spec code looks like: \[1,2\].each {|id| Hive::CategoryResource.should\_r…

---

## [Nginx cannot listen to port 8090](https://www.ruby-forum.com/t/nginx-cannot-listen-to-port-8090/232263)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [September 29, 2014, 3:13pm UTC](https://www.ruby-forum.com/t/nginx-cannot-listen-to-port-8090/232263 "2014-09-29T15:13:49Z")

</div>

Hello all, I am trying to enable nginx to listen to port 8090 via default.conf file under /etc/nginx/conf.d directory but it fails with following error : – Unit nginx.service has begun starting up. Sep 29 01:13:58…

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

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