# Top

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

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

---

## [Find\_by](https://www.ruby-forum.com/t/find-by/185157)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 6\
**Last updated:** [March 15, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/find-by/185157 "2010-03-15T12:25:56Z")

</div>

hi, I have to retrieve data from table with two conditions using a actully the following query select \* from abc where id=1 and type = ‘a’ how will i do if: find\_by\_id(id) \>\>\>\>\> how will i use for multiple condition…

---

## [Terminal escape sequences](https://www.ruby-forum.com/t/terminal-escape-sequences/173292)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 6\
**Last updated:** [August 6, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/terminal-escape-sequences/173292 "2009-08-06T13:25:50Z")

</div>

Hi all, Looking through the PDoc source to see how it renders the build progress meter, I see: log “\\c\[\[F\\c\[\[K Rendering: #{dest}” Is there a good reference for these escape sequences anywhere? They’re not terri…

---

## [Strange ruby-1.9.1 array substitution answer](https://www.ruby-forum.com/t/strange-ruby-1-9-1-array-substitution-answer/169050)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 6\
**Last updated:** [May 29, 2009, 12:22am UTC](https://www.ruby-forum.com/t/strange-ruby-1-9-1-array-substitution-answer/169050 "2009-05-29T00:22:14Z")

</div>

Strange ! arr = \[1,2,3,4,5\] arr\[0,2\] = nil =\> ruby 1.8 : arr = \[3,4,5\] =\> ruby 1.9 : arr = \[nil, 3,4,5\] ruby -v ruby 1.9.1 (2008-10-28 revision 19983) \[i386-mswin32\]

---

## [Why does "ruby \<spec\_file\>" work, but "rake spec" give spec errors?](https://www.ruby-forum.com/t/why-does-ruby-spec-file-work-but-rake-spec-give-spec-errors/156292)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [December 24, 2008, 2:56am UTC](https://www.ruby-forum.com/t/why-does-ruby-spec-file-work-but-rake-spec-give-spec-errors/156292 "2008-12-24T02:56:39Z")

</div>

Hi, Does anyone know why I would have some spec’s failing when using “./script/autospec” or “rake spec”, however when I just run them using “ruby " it passes ok”? What’s the difference in kicking off a spec by th…

---

## [Re: Cucumber: Migrating RSpec Story L isteners to Cucumber](https://www.ruby-forum.com/t/re-cucumber-migrating-rspec-story-l-isteners-to-cucumber/150857)

<div class="topic-metadata">

**Author:** [@thomasmaas](https://www.ruby-forum.com/u/thomasmaas)\
**Replies:** 6\
**Last updated:** [October 14, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/re-cucumber-migrating-rspec-story-l-isteners-to-cucumber/150857 "2008-10-14T17:49:34Z")

</div>

No advice on that? Should i open a ticket on Lighthouse? I also would try to implement that… Thanks, Thomas -----Ursprüngliche Nachricht----- Von: “Thomas M.” removed\_email\_address@domain.invalid Gesendet: 09.10.…

---

## [RubyModule CreateAnonymousModule - NotImplementedException](https://www.ruby-forum.com/t/rubymodule-createanonymousmodule-notimplementedexception/149657)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 6\
**Last updated:** [September 28, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rubymodule-createanonymousmodule-notimplementedexception/149657 "2008-09-28T18:26:21Z")

</div>

Hello, Just been playing around with IronRuby, however I am hitting an issue with RubyModule.CreateAnonymousModule() - basically, it hasn’t been implemented yet :slight\_smile: // Ruby constructor: public static Ruby…

---

## [Rspec doesn't pickup the status code correctly](https://www.ruby-forum.com/t/rspec-doesnt-pickup-the-status-code-correctly/144880)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 6\
**Last updated:** [August 4, 2008, 6:22am UTC](https://www.ruby-forum.com/t/rspec-doesnt-pickup-the-status-code-correctly/144880 "2008-08-04T06:22:02Z")

</div>

I’m setting the status code on a controller action but rspec doesn’t seem to be catching it in my spec. It works in the browser. This is the controller method, called via xhr with header Accept: ‘application/json’ de…

---

## [Freelance dev. Rails et facturation](https://www.ruby-forum.com/t/freelance-dev-rails-et-facturation/135294)

<div class="topic-metadata">

**Author:** [@dicouw](https://www.ruby-forum.com/u/dicouw)\
**Replies:** 6\
**Last updated:** [April 24, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/freelance-dev-rails-et-facturation/135294 "2008-04-24T17:31:36Z")

</div>

Bonjour a tous, Je me permet de poster la question ici parceque je me doute que certains d’entre vous ont déja été confronté a cela, j’ai vendu mes prestations de dev Ruby on Rails pour une société en tant que Freel…

---

## [How can I develop a Web Application using ruby without rails](https://www.ruby-forum.com/t/how-can-i-develop-a-web-application-using-ruby-without-rails/132873)

<div class="topic-metadata">

**Author:** [@deepkumarb](https://www.ruby-forum.com/u/deepkumarb)\
**Replies:** 6\
**Last updated:** [March 25, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/how-can-i-develop-a-web-application-using-ruby-without-rails/132873 "2008-03-25T16:32:34Z")

</div>

I have an idea about developing web application using Ruby on Rails. But I don’t know how to develop a web application using only ruby without rails. Is it possible? If possible how can I handle requests, actions, res…

---

## [Coexistency Problem: cygwin + Ruby for Window (and suggestio](https://www.ruby-forum.com/t/coexistency-problem-cygwin-ruby-for-window-and-suggestio/104227)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 6\
**Last updated:** [May 16, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/coexistency-problem-cygwin-ruby-for-window-and-suggestio/104227 "2007-05-16T16:32:37Z")

</div>

I just would like to point out a problem when installing Ruby for Windows and Cygwin on the same system: The installer of the Windows version of Ruby creates - at least on systems using a keyboard with European layo…

---

## [Static variable](https://www.ruby-forum.com/t/static-variable/83603)

<div class="topic-metadata">

**Author:** [@Italo\_M](https://www.ruby-forum.com/u/Italo_M)\
**Replies:** 6\
**Last updated:** [January 27, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/static-variable/83603 "2007-01-27T18:46:21Z")

</div>

Who declare static variable in ruby ? thks – Ãtalo Matos

---

## [Re: Recherche Testeur IIS](https://www.ruby-forum.com/t/re-recherche-testeur-iis/59390)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 6\
**Last updated:** [May 3, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/re-recherche-testeur-iis/59390 "2006-05-03T19:06:59Z")

</div>

Bonjour, avec on testeur nous essayons d’installer IIS avec des dossiers virtuels. On ma conseillÃ© de lancer cette commade ruby dispatch.fcgi /controller/action/id et normallement je devrais voir ce message intern…

---

## [Multiple view types for a single action?](https://www.ruby-forum.com/t/multiple-view-types-for-a-single-action/57148)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 6\
**Last updated:** [April 7, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/multiple-view-types-for-a-single-action/57148 "2006-04-07T18:49:39Z")

</div>

Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the…

---

## [Where's the doc for get(), post(), put(), delete() & head()?](https://www.ruby-forum.com/t/wheres-the-doc-for-get-post-put-delete-head/86969)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 6\
**Last updated:** [March 26, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/wheres-the-doc-for-get-post-put-delete-head/86969 "2006-03-26T14:40:01Z")

</div>

These HTTP Request methods are used for testing. They are discussed in the testing chapter of the Agile Web D. with Rails book, as well as in Peak Obsession “A Guide to Testing the Rails”. I want to set the encoding…

---

## [Vim4Rails : project generator](https://www.ruby-forum.com/t/vim4rails-project-generator/93826)

<div class="topic-metadata">

**Author:** [@kevin.jackson](https://www.ruby-forum.com/u/kevin.jackson)\
**Replies:** 6\
**Last updated:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/vim4rails-project-generator/93826 "2005-11-12T12:49:29Z")

</div>

I was thinking about this last night after spending some time messing with a project plugin for Vim. This morning I hacked up a quick patch for the rails app\_generator to automatically setup a vim project file. It wo…

---

## [Pre-process request via upstream then forward to proxy](https://www.ruby-forum.com/t/pre-process-request-via-upstream-then-forward-to-proxy/206578)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [May 5, 2011, 8:31am UTC](https://www.ruby-forum.com/t/pre-process-request-via-upstream-then-forward-to-proxy/206578 "2011-05-05T08:31:38Z")

</div>

As part of processing a request, I need to first send and receive a response to/from an upstream to authenticate some credentials in the request. Once this has been done, the original request needs to be proxied to a…

---

## [Input/Output to IRB using Pipes](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263)

<div class="topic-metadata">

**Author:** [@Narayanan\_K](https://www.ruby-forum.com/u/Narayanan_K)\
**Replies:** 2\
**Last updated:** [June 17, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/input-output-to-irb-using-pipes/190263 "2010-06-17T16:27:03Z")

</div>

Hi, I have a situation where I need to create a pipe into which I load ruby/irb commands. Then I have to direct input from this pipe to IRB (Interactive Ruby) . Also I will have an output pipe to which the irb resul…

---

## [Include NULL values using :group option?](https://www.ruby-forum.com/t/include-null-values-using-group-option/182357)

<div class="topic-metadata">

**Author:** [@polg](https://www.ruby-forum.com/u/polg)\
**Replies:** 2\
**Last updated:** [January 27, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/include-null-values-using-group-option/182357 "2010-01-27T17:02:46Z")

</div>

I’m trying to use the :group option in an ActiveRecord association. I wrote the code as follows: class User \< ActiveRecord::Base has\_many :messages, :group =\> “thread”, :order =\> “created\_at desc” end It works fine …

---

## [Printing problems with 'spreadsheet' gem](https://www.ruby-forum.com/t/printing-problems-with-spreadsheet-gem/157929)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 7:54pm UTC](https://www.ruby-forum.com/t/printing-problems-with-spreadsheet-gem/157929 "2009-01-16T19:54:17Z")

</div>

Hi, I’m using the ‘spreadsheet’ gem to generate a number of invoices automatically. In itself that works great, but when I come to print the files I have generated I get the error message “Microsoft Excel did not fin…

---

## [IRB output format in YAML](https://www.ruby-forum.com/t/irb-output-format-in-yaml/138672)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 2\
**Last updated:** [May 26, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/irb-output-format-in-yaml/138672 "2008-05-26T23:19:33Z")

</div>

I there a way to configure IRB so that it always display the result of a IRB command in YAML or PP format. Example: In YAML: irb(main):011:0\> ENV.keys ALLUSERSPROFILE APPDATA APR\_ICONV\_PATH ATI\_PATH BERK\_PATH CLASSP…

---

## [Dependent =\> destroy without primary key?](https://www.ruby-forum.com/t/dependent-destroy-without-primary-key/132195)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [March 18, 2008, 2:37am UTC](https://www.ruby-forum.com/t/dependent-destroy-without-primary-key/132195 "2008-03-18T02:37:12Z")

</div>

Hi- Can this be done? When I destroy the master, I get an SQL error: ActiveRecord::StatementInvalid (Mysql::Error: Unknown column ‘id’ in ‘where clause’: DELETE FROM votes WHERE id = NULL ): This is be…

---

## [Rake: How to determine the Rails version?](https://www.ruby-forum.com/t/rake-how-to-determine-the-rails-version/60915)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [May 18, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/rake-how-to-determine-the-rails-version/60915 "2006-05-18T15:44:03Z")

</div>

Hi all I’m learning to use Rake for migration etc. I wonder if there’s a way to determine the currently used Rails version, so e.g. when installing a new engine using Rake I could check if there’s a version used that…

---

## [Script/plugin update \[plugin\_or\_engine\_name\] broken?](https://www.ruby-forum.com/t/script-plugin-update-plugin-or-engine-name-broken/84702)

<div class="topic-metadata">

**Author:** [@cleaner416](https://www.ruby-forum.com/u/cleaner416)\
**Replies:** 2\
**Last updated:** [March 21, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/script-plugin-update-plugin-or-engine-name-broken/84702 "2006-03-21T17:31:05Z")

</div>

I’ve created a couple of engines for use with some internal projects here and stuck them in their own svn repos. Then I have other svn-stored projects I want to use the engines with. Both the projects and the engines …

---

## [FATAL: (ArgumentError) wrong number of arguments calling \`initialize\` (1 for 0)](https://www.ruby-forum.com/t/fatal-argumenterror-wrong-number-of-arguments-calling-initialize-1-for-0/235767)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 1\
**Last updated:** [July 14, 2013, 5:32pm UTC](https://www.ruby-forum.com/t/fatal-argumenterror-wrong-number-of-arguments-calling-initialize-1-for-0/235767 "2013-07-14T17:32:18Z")

</div>

I install vagrant plugin in Jenkins (1.522version) and when I try to build, I am getting the below errors. Please help me to solve this issue Please NOTE:- MY Java version is “1.7.0\_25” and my RUBY Version 1.9.3p448 F…

---

## [Can't get debugger to work on MacOS X Lion/Rails 3.2/Ruby 1.9.3](https://www.ruby-forum.com/t/cant-get-debugger-to-work-on-macos-x-lion-rails-3-2-ruby-1-9-3/218674)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 7\
**Last updated:** [April 9, 2012, 8:15pm UTC](https://www.ruby-forum.com/t/cant-get-debugger-to-work-on-macos-x-lion-rails-3-2-ruby-1-9-3/218674 "2012-04-09T20:15:39Z")

</div>

I’m trying to get the ruby debugger working and can’t seem to get there. Environment summary: Mac OS X Lion RVM Ruby 1.9.3p125 Rails 3.2.3 Rspec 2.9.0 I’ve put the debugger statement in my controller like so: def…

---

## [Problem working on old rails app](https://www.ruby-forum.com/t/problem-working-on-old-rails-app/215210)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 7\
**Last updated:** [December 27, 2011, 4:09am UTC](https://www.ruby-forum.com/t/problem-working-on-old-rails-app/215210 "2011-12-27T04:09:43Z")

</div>

Hi there, I hope my subject is ok. Basically, I was working on an app a few years ago (say, spring of 2008) and want to start working on it again. I checked out the lastest version of the code from rubyforge, got mys…

---

## [Split dot and equa sign by recursive](https://www.ruby-forum.com/t/split-dot-and-equa-sign-by-recursive/206110)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [April 23, 2011, 7:36pm UTC](https://www.ruby-forum.com/t/split-dot-and-equa-sign-by-recursive/206110 "2011-04-23T19:36:54Z")

</div>

I need to do a function which can split dot and equa by recursive. But I don’t have any ideas to do on recursive. This is the example of my strings Member.certPm=PM Certification projects.risks.Index.flash\_downloadin…

---

## [Rubish notation does not resolve as expected](https://www.ruby-forum.com/t/rubish-notation-does-not-resolve-as-expected/190372)

<div class="topic-metadata">

**Author:** [@jeanlazarou](https://www.ruby-forum.com/u/jeanlazarou)\
**Replies:** 7\
**Last updated:** [June 21, 2010, 12:55am UTC](https://www.ruby-forum.com/t/rubish-notation-does-not-resolve-as-expected/190372 "2010-06-21T00:55:45Z")

</div>

I was using a rubish notation for methods instead the real Java names and had an unexpected resolution and it does not behave the same way in similar cases: include Java comp = javax.swing.JButton.new(“hello”) puts …

---

## [Custom Validation on Many-To-Many Association breaks Unit-Tests](https://www.ruby-forum.com/t/custom-validation-on-many-to-many-association-breaks-unit-tests/166661)

<div class="topic-metadata">

**Author:** [@zeto](https://www.ruby-forum.com/u/zeto)\
**Replies:** 7\
**Last updated:** [April 28, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/custom-validation-on-many-to-many-association-breaks-unit-tests/166661 "2009-04-28T18:30:56Z")

</div>

Hi, I have the following situation. I have two models Item and Genre. A Item has a name and a description. The genres-table contains a list of possible genres wich can be associated to items. So a Item could be associ…

---

## [Get the Windows OS Login name using Ruby?](https://www.ruby-forum.com/t/get-the-windows-os-login-name-using-ruby/165806)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 7\
**Last updated:** [April 17, 2009, 8:16pm UTC](https://www.ruby-forum.com/t/get-the-windows-os-login-name-using-ruby/165806 "2009-04-17T20:16:25Z")

</div>

Do you know if there is a way to get the Windows OS Login name using Ruby? I can do this with VB but haven’t found a way to do this in Ruby. Thanks MC

---

## [Youtube...urgent, please help](https://www.ruby-forum.com/t/youtube-urgent-please-help/163072)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [March 17, 2009, 7:56am UTC](https://www.ruby-forum.com/t/youtube-urgent-please-help/163072 "2009-03-17T07:56:44Z")

</div>

Hi, I’m new to ruby and my co. has given me an assignment in ruby. It is regarding html extraction. It works fine except for some sites like http://www.youtube.com, http://www.gmail.com where i’ll get errors like ‘40…

---

## [Ror plugins - in\_place\_editing and acts\_as-textiled - install error](https://www.ruby-forum.com/t/ror-plugins-in-place-editing-and-acts-as-textiled-install-error/156189)

<div class="topic-metadata">

**Author:** [@suman\_gurung](https://www.ruby-forum.com/u/suman_gurung)\
**Replies:** 7\
**Last updated:** [December 26, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/ror-plugins-in-place-editing-and-acts-as-textiled-install-error/156189 "2008-12-26T21:48:02Z")

</div>

Hello everyone, I was trying to install these in\_place\_editing and acts\_as\_textiled plugins in my rails application version 2.2.2, running on windows XP but i came across some problems when doing so. When i was tryin…

---

## [Proc metaprogramming tricks?](https://www.ruby-forum.com/t/proc-metaprogramming-tricks/151282)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 7\
**Last updated:** [October 20, 2008, 10:34am UTC](https://www.ruby-forum.com/t/proc-metaprogramming-tricks/151282 "2008-10-20T10:34:56Z")

</div>

Hi, I’m building a DSL and trying some weird syntax structures. My DSL should look like this. class Root def dsl(&block) instance\_eval(&block) end end class C #… end #DSL dsl { met1 class C1 \< C #… end m…

---

## [Serving static versions of dynamic pages (non-RoR)](https://www.ruby-forum.com/t/serving-static-versions-of-dynamic-pages-non-ror/145262)

<div class="topic-metadata">

**Author:** [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Replies:** 7\
**Last updated:** [August 12, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/serving-static-versions-of-dynamic-pages-non-ror/145262 "2008-08-12T19:42:25Z")

</div>

As you might remember from the “fastcgi php migration” thread back in March, the list helped solve a problem migrating our apache setup where php ran through files with extensions (.php, .shtml) and extensionless file…

---

## [Making sorting case insensitive](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703)

<div class="topic-metadata">

**Author:** [@EfrSSSSn\_DSSS\_az](https://www.ruby-forum.com/u/EfrSSSSn_DSSS_az)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 11:23am UTC](https://www.ruby-forum.com/t/making-sorting-case-insensitive/139703 "2008-06-06T11:23:18Z")

</div>

Hello, I’ve been trying to make sorting in ferret case insensitive without any luck. I’ve been searching the mailing list, the docs and nothing. Apparently setting the type option for the sort to string should do it,…

---

## [My Longsword is broken](https://www.ruby-forum.com/t/my-longsword-is-broken/134748)

<div class="topic-metadata">

**Author:** [@gastrogreen](https://www.ruby-forum.com/u/gastrogreen)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 8:26am UTC](https://www.ruby-forum.com/t/my-longsword-is-broken/134748 "2008-04-15T08:26:48Z")

</div>

Hello all, Just started my first Ruby prog and hit a snag almost instantly. I simply wish to have my selected weapon do it’s prescribed damage as I intend (in this case, it’s 1-8 damage). Complete noob here so any hel…

---

## [Question retour msql](https://www.ruby-forum.com/t/question-retour-msql/115566)

<div class="topic-metadata">

**Author:** [@Aymeric\_C](https://www.ruby-forum.com/u/Aymeric_C)\
**Replies:** 7\
**Last updated:** [September 26, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/question-retour-msql/115566 "2007-09-26T20:40:27Z")

</div>

Bonjour, je me met Ã la prog qui n’est pas encore mon point fort et je dois crÃ©Ã© un WS avec RoR, mais je bloque un peu. J’ai lus pas mal de pages sur le net mais j’arrive pas Ã saisir la commande qu’il me faut. …

---

## [Rails on a "/cgi-bin" and ".rb" focused web server](https://www.ruby-forum.com/t/rails-on-a-cgi-bin-and-rb-focused-web-server/81930)

<div class="topic-metadata">

**Author:** [@Madoc](https://www.ruby-forum.com/u/Madoc)\
**Replies:** 7\
**Last updated:** [January 17, 2007, 8:30am UTC](https://www.ruby-forum.com/t/rails-on-a-cgi-bin-and-rb-focused-web-server/81930 "2007-01-17T08:30:17Z")

</div>

Hello dear Rubyists, I would like to program my homepage with Ruby on Rails. However, on my homepage web server, there seem to be some restrictions: Scripts are only executed when they reside inside the “/cgi-bin” d…

---

## [Pagination with HABTM relationship](https://www.ruby-forum.com/t/pagination-with-habtm-relationship/79862)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 7\
**Last updated:** [December 21, 2006, 12:34am UTC](https://www.ruby-forum.com/t/pagination-with-habtm-relationship/79862 "2006-12-21T00:34:55Z")

</div>

I am wondering how to do pagination on a model that has a HABTM relationship through a join model. The models User has\_many :resources has\_many :pages, :through =\> :resources … Page has\_many :resources has\_many :…

---

## [Nesting forms or a way around it?](https://www.ruby-forum.com/t/nesting-forms-or-a-way-around-it/76797)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 7\
**Last updated:** [November 21, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/nesting-forms-or-a-way-around-it/76797 "2006-11-21T18:48:16Z")

</div>

So I know that you cannot nest forms in HTML as I’ve found out today, but I have a need to do this or get around it. You can see the admin panel I’m building at: http://www.juiceboxcommunications.com/admin/subscribers …

---

## [Complex SQL in paginate command?](https://www.ruby-forum.com/t/complex-sql-in-paginate-command/93893)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 7\
**Last updated:** [April 17, 2006, 12:37am UTC](https://www.ruby-forum.com/t/complex-sql-in-paginate-command/93893 "2006-04-17T00:37:36Z")

</div>

Hi all, Is there a way to create pagination with a complex SQL, more complex than the :conditions option will support? I have two databases, houses and images. Houses has\_many images, and each Image belongs\_to house…

---

## [Help shut down webbrick on mac?](https://www.ruby-forum.com/t/help-shut-down-webbrick-on-mac/63900)

<div class="topic-metadata">

**Author:** [@farocco](https://www.ruby-forum.com/u/farocco)\
**Replies:** 7\
**Last updated:** [December 9, 2005, 6:19pm UTC](https://www.ruby-forum.com/t/help-shut-down-webbrick-on-mac/63900 "2005-12-09T18:19:21Z")

</div>

Hello, I just installed radrails and it will not run the webbrick because a version is already running on my mac. I do not know how to shut down the mac version. Thanks Regards, Frank R. removed\_email\_address@doma…

---

## [Getting Approved by Adsense](https://www.ruby-forum.com/t/getting-approved-by-adsense/242070)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 4\
**Last updated:** [June 2, 2015, 1:53pm UTC](https://www.ruby-forum.com/t/getting-approved-by-adsense/242070 "2015-06-02T13:53:21Z")

</div>

First off, is it even possible? A guy told me, “I can’t see what’s hidden behind your login requirement, but your content must be public otherwise crawlers won’t see it nor index it.” I responded, “Web apps need a lo…

---

## [Gzip\_types not working as expected](https://www.ruby-forum.com/t/gzip-types-not-working-as-expected/234500)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [March 11, 2015, 2:11pm UTC](https://www.ruby-forum.com/t/gzip-types-not-working-as-expected/234500 "2015-03-11T14:11:46Z")

</div>

gzip is not working on my piwik.js file according to Google at developers.google.com/speed/pagespeed/insights. It’s working fine on my CSS file. How can I troubleshoot this? gzip on; gzip\_disable msie6; gzip\_types…

---

## [SPDY: nginx/1.6.2: proxy\_pass does not work when https is used](https://www.ruby-forum.com/t/spdy-nginx-1-6-2-proxy-pass-does-not-work-when-https-is-used/233461)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [December 16, 2014, 11:10am UTC](https://www.ruby-forum.com/t/spdy-nginx-1-6-2-proxy-pass-does-not-work-when-https-is-used/233461 "2014-12-16T11:10:00Z")

</div>

Hi, I’ve got a problem when tried to proxy spdy traffic to host via https protocol. My config is simple like that: location /https/test { proxy\_set\_header X-Real-IP $remote\_addr; proxy\_set\_header Host $host; proxy…

---

## [File handling: comparing exceptions to additional stat() test](https://www.ruby-forum.com/t/file-handling-comparing-exceptions-to-additional-stat-test/223998)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 26, 2012, 6:25pm UTC](https://www.ruby-forum.com/t/file-handling-comparing-exceptions-to-additional-stat-test/223998 "2012-10-26T18:25:06Z")

</div>

I was doing some work profiling the ‘assets:precompile’ Rake task in a JRuby on Rails app, and I discovered some interesting performance issues related to doing things like this: begin file.actions() rescue Errn…

---

## [Loading problem with engine extending ActionController::Base](https://www.ruby-forum.com/t/loading-problem-with-engine-extending-actioncontroller-base/191061)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [July 5, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/loading-problem-with-engine-extending-actioncontroller-base/191061 "2010-07-05T19:44:00Z")

</div>

I’m working on an engine that extends ActionController::Base like this module MyEngine class Engine \< Rails::Engine config.after\_initialize do ActionController::Base.class\_eval do include MyEngine::ControllerExt…

---

## [Ruby rexml stream mode](https://www.ruby-forum.com/t/ruby-rexml-stream-mode/190534)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 4\
**Last updated:** [June 22, 2010, 5:47pm UTC](https://www.ruby-forum.com/t/ruby-rexml-stream-mode/190534 "2010-06-22T17:47:44Z")

</div>

hi, would any one please help me with parse the xml below with STREAM MODE of ruby rexml i would want to get out the following for each event: event id title url description \<?xml version="1.0" encoding="UTF-8"?\> …

---

## [Puts bug?](https://www.ruby-forum.com/t/puts-bug/188356)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 4\
**Last updated:** [May 11, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/puts-bug/188356 "2010-05-11T17:15:23Z")

</div>

With this file: coding: UTF-8 puts “asdfÐœÐ¸ÐºÐ¸Ð¼Ð°ÑƒÑ” output in windows is: C:\\dev\\digitalarchive\_trunk\>ruby -v go.rb ruby 1.9.3dev (2010-05-11 trunk 27724) \[i386-mingw32\] asdfâ•¨Â£â•¨â••â•¨â•‘â•¨â••â•¨â•â•¨â–‘…

---

## [Como recoger los datos de una consulta con find\_by\_sq](https://www.ruby-forum.com/t/como-recoger-los-datos-de-una-consulta-con-find-by-sq/129927)

<div class="topic-metadata">

**Author:** [@fromthaend](https://www.ruby-forum.com/u/fromthaend)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/como-recoger-los-datos-de-una-consulta-con-find-by-sq/129927 "2008-02-22T22:31:07Z")

</div>

buenas. tengo un pequeÃ±o problema con la extraccion de datos de un array es decir. estoy ejecutando la siguiente consulta @evento = Evento.find\_by\_sql(“select e.perdida\_carga, e.permanencia, e.fases, tc.descripcion …

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

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