# Top

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

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

---

## [Handling of relations belongs\_to/has\_many](https://www.ruby-forum.com/t/handling-of-relations-belongs-to-has-many/66711)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 3\
**Last updated:** [August 29, 2006, 11:44am UTC](https://www.ruby-forum.com/t/handling-of-relations-belongs-to-has-many/66711 "2006-08-29T11:44:43Z")

</div>

Hi, I’m fairly new to RoR and I think I don’t get some of the ActiveRecord magic. I have: a lookup table (used to show countries in a ) class Country \< ActiveRecord::Base has\_many :breeders validates\_presence\_of :n…

---

## [Ruby extension and static function in C++](https://www.ruby-forum.com/t/ruby-extension-and-static-function-in-c/64930)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-extension-and-static-function-in-c/64930 "2006-08-15T14:20:59Z")

</div>

HI, I am writing an extension for Ruby in C++ and as I have more and more functions, I need to separate them into individual C++ source for easier maintenance in the long run. From Programming Ruby, the section on Ex…

---

## [Last record](https://www.ruby-forum.com/t/last-record/102267)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/last-record/102267 "2006-08-15T14:20:24Z")

</div>

hi @all Can anyone help me? I would like to read the last two records from a database. In the database I have a table with id, name and sex. How can I read the last two records from the entered names, who are female?…

---

## [Bug in ruby or bug in my brain?](https://www.ruby-forum.com/t/bug-in-ruby-or-bug-in-my-brain/102018)

<div class="topic-metadata">

**Author:** [@ngoc](https://www.ruby-forum.com/u/ngoc)\
**Replies:** 3\
**Last updated:** [August 9, 2006, 4:19pm UTC](https://www.ruby-forum.com/t/bug-in-ruby-or-bug-in-my-brain/102018 "2006-08-09T16:19:48Z")

</div>

\#!/usr/bin/ruby diff\_file = File.open(‘diff.txt’) diff\_file.each { |line| next if line =~ /^Only/ system “dos2unix #{line.split(’ and ‘).at(1).sub(’ differ’, ‘’)}” } -\>work well #!/usr/bin/ruby diff\_file = File.…

---

## [Altro problema](https://www.ruby-forum.com/t/altro-problema/100999)

<div class="topic-metadata">

**Author:** [@stanley](https://www.ruby-forum.com/u/stanley)\
**Replies:** 3\
**Last updated:** [August 4, 2006, 3:57pm UTC](https://www.ruby-forum.com/t/altro-problema/100999 "2006-08-04T15:57:21Z")

</div>

Sepete dirmi la sintassi per collegare 2 oggetti di un database collegati con una relazione molti-a-molti ??? Mi spiego meglio: Ho 2 tabelle books e authors con la tabella di join authors\_books. nei modelli Book a Au…

---

## [Help making a ruby module](https://www.ruby-forum.com/t/help-making-a-ruby-module/98493)

<div class="topic-metadata">

**Author:** [@Ryan\_McGovern](https://www.ruby-forum.com/u/Ryan_McGovern)\
**Replies:** 3\
**Last updated:** [July 24, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/help-making-a-ruby-module/98493 "2006-07-24T19:40:14Z")

</div>

I am working on making a ruby module to wrapper the xsan quota fctl calls. I have C code that will get the quota information, but using the picaxe book i dont quite understand how to make a wrapper. Essecally i need …

---

## [Automatically post del.icio.us to Typo](https://www.ruby-forum.com/t/automatically-post-del-icio-us-to-typo/97712)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 3\
**Last updated:** [July 10, 2006, 2:56am UTC](https://www.ruby-forum.com/t/automatically-post-del-icio-us-to-typo/97712 "2006-07-10T02:56:45Z")

</div>

Hello, Does anybody know how to make the following tutorial work on Typo? http://theory.isthereason.com/?p=499 Thanks! Jonas

---

## [Output an array](https://www.ruby-forum.com/t/output-an-array/95529)

<div class="topic-metadata">

**Author:** [@ssssss](https://www.ruby-forum.com/u/ssssss)\
**Replies:** 3\
**Last updated:** [June 5, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/output-an-array/95529 "2006-06-05T15:45:38Z")

</div>

Hi I have an array in a helper method and I want to oupt the contents to the screen, so i can see waht array key’s are avalible How can this be done?

---

## [Help with require, symlinks](https://www.ruby-forum.com/t/help-with-require-symlinks/62438)

<div class="topic-metadata">

**Author:** [@curi](https://www.ruby-forum.com/u/curi)\
**Replies:** 3\
**Last updated:** [June 4, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/help-with-require-symlinks/62438 "2006-06-04T21:47:20Z")

</div>

I’m on OS X 10.4.6 i want to be able to require my files without the full path. i want to keep them in my home directory so i don’t lose them. i tried: sudo ln -s /Users/curi/me/rubylib /usr/local/lib/ruby/site\_ruby/ …

---

## [Behavior Change in Scripts since 1.1?](https://www.ruby-forum.com/t/behavior-change-in-scripts-since-1-1/95258)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 3\
**Last updated:** [May 25, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/behavior-change-in-scripts-since-1-1/95258 "2006-05-25T22:25:23Z")

</div>

Occasionally we need to run scripts (such as from cron) that have access to the rails environment. Since we’ve upgraded to 1.1 (I believe it coincides with that), all of our scripts seem to run as unit tests. An exam…

---

## [Are the hashes faster than activerecord finds?](https://www.ruby-forum.com/t/are-the-hashes-faster-than-activerecord-finds/60540)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 3\
**Last updated:** [May 16, 2006, 12:56am UTC](https://www.ruby-forum.com/t/are-the-hashes-faster-than-activerecord-finds/60540 "2006-05-16T00:56:32Z")

</div>

Hello, I need to store somewhere one hundred of static ressources text field (internationalization). I wonder if it better to put them in a database or in a hash defined at app startup (in environment.rb) I would go …

---

## [Script/console on windows](https://www.ruby-forum.com/t/script-console-on-windows/94793)

<div class="topic-metadata">

**Author:** [@martin-ga](https://www.ruby-forum.com/u/martin-ga)\
**Replies:** 3\
**Last updated:** [May 15, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/script-console-on-windows/94793 "2006-05-15T13:23:15Z")

</div>

Hiall, When I try to run script/console from a windows command line like f:\\rails\_app\\ruby script\\console I get the following error: F:/Programme/Ruby-1.8.4/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in re…

---

## [Including common code among multiple web services issue?](https://www.ruby-forum.com/t/including-common-code-among-multiple-web-services-issue/59946)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 0\
**Last updated:** [May 8, 2006, 10:02pm UTC](https://www.ruby-forum.com/t/including-common-code-among-multiple-web-services-issue/59946 "2006-05-08T22:02:05Z")

</div>

Hi all - I’m implementing some web services and every one has at the very least a “find\_newer\_than” method. In my models, I’ve split things up like this and it works great. class XyzService \< WebService web\_service…

---

## [Ajax call not being made on a Sortable list](https://www.ruby-forum.com/t/ajax-call-not-being-made-on-a-sortable-list/94128)

<div class="topic-metadata">

**Author:** [@psethi2000](https://www.ruby-forum.com/u/psethi2000)\
**Replies:** 3\
**Last updated:** [April 24, 2006, 11:56am UTC](https://www.ruby-forum.com/t/ajax-call-not-being-made-on-a-sortable-list/94128 "2006-04-24T11:56:39Z")

</div>

Hi, I am creating a sortable list using this code: \<%= sortable\_element(“fields\_list”, :url =\> { :action =\> “order”, :id =\> @fields\_list }) %\> it creates a sortable and I can move elements up and down, but it is not …

---

## [Environments and updating production applications](https://www.ruby-forum.com/t/environments-and-updating-production-applications/58439)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 3\
**Last updated:** [April 22, 2006, 7:29pm UTC](https://www.ruby-forum.com/t/environments-and-updating-production-applications/58439 "2006-04-22T19:29:36Z")

</div>

Hi All, I’ve only been using Rails for a short time (working through the ‘Agile…’ book) but it’s already caught my interest so much i’m loathed to go back to the PHP day job… There are a few things i’m slightly unsur…

---

## [Syncpeople Plugin Scope Never Active](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603)

<div class="topic-metadata">

**Author:** [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Replies:** 3\
**Last updated:** [April 2, 2006, 3:51am UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603 "2006-04-02T03:51:30Z")

</div>

I installed the Syncpeople textmate bundle ( http://syncpeople.com/downloads/syncpeople\_on\_rails\_features ) and the commands all work from the menu, but the short-cuts never work for any of the snippets or commands ev…

---

## [Regexp madness](https://www.ruby-forum.com/t/regexp-madness/93396)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 1, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/regexp-madness/93396 "2006-04-01T20:24:14Z")

</div>

OK you Regexp gurus out there (has anyone noticed the relative size of regexp threads -anything with regexp seems to excite lots of attention). I have a puzzler. I’ve been combing the ruby-talk archives trying to conv…

---

## [STI and ActiveRecord attributes unprotected](https://www.ruby-forum.com/t/sti-and-activerecord-attributes-unprotected/85355)

<div class="topic-metadata">

**Author:** [@sserdyuk](https://www.ruby-forum.com/u/sserdyuk)\
**Replies:** 3\
**Last updated:** [March 23, 2006, 3:43am UTC](https://www.ruby-forum.com/t/sti-and-activerecord-attributes-unprotected/85355 "2006-03-23T03:43:17Z")

</div>

Hi, This does not seem to be covered anywhere. Since base class extends ActiveRecord with a table that has fields for all heirs, would that mean that any heir class can access any of those attributes, including ones …

---

## [Searching database using foriegn keys](https://www.ruby-forum.com/t/searching-database-using-foriegn-keys/54618)

<div class="topic-metadata">

**Author:** [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Replies:** 3\
**Last updated:** [March 10, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/searching-database-using-foriegn-keys/54618 "2006-03-10T16:04:41Z")

</div>

I’ve read a lot about the ORM magic of Active Record which allows you to address a foriegn key object directly… e.g. I have a books and people table where books has a column called person\_id If I get myself a Book …

---

## [Apache2 / fcgi / RoR - no connection](https://www.ruby-forum.com/t/apache2-fcgi-ror-no-connection/99835)

<div class="topic-metadata">

**Author:** [@James\_Nachlin](https://www.ruby-forum.com/u/James_Nachlin)\
**Replies:** 3\
**Last updated:** [February 2, 2006, 5:52pm UTC](https://www.ruby-forum.com/t/apache2-fcgi-ror-no-connection/99835 "2006-02-02T17:52:19Z")

</div>

Hi, I’ve generated a new Rails app and dummy controller “foo” with method “hello”. I am trying to run it under Apache/2.0.53 with fastcgi, and getting the index.html page when I hit http://localhost/foo/hello, or fo…

---

## [Files and variables (noob alert)](https://www.ruby-forum.com/t/files-and-variables-noob-alert/53187)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [January 27, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/files-and-variables-noob-alert/53187 "2006-01-27T23:21:23Z")

</div>

Chaps, Say you’ve defined a variable:- a = “l2.txt” # where l2.txt is a file that you know exists irb(main):009:0\> File.exist?(“l2.txt”) =\> true #How can I use the variable a within the File.exist(parameter)? irb(m…

---

## [Boulder-Denver Ruby Group - January Meeting](https://www.ruby-forum.com/t/boulder-denver-ruby-group-january-meeting/52242)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 18, 2006, 11:42am UTC](https://www.ruby-forum.com/t/boulder-denver-ruby-group-january-meeting/52242 "2006-01-18T11:42:52Z")

</div>

Greetings, The Boulder-Denver Ruby Group in Colorado will begin meeting monthly starting this January 26th at 7pm at the Southern Sun Pub & Brewery in Boulder (directions below). Our first meeting will be informal an…

---

## [RDOC and dot on mac](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111)

<div class="topic-metadata">

**Author:** [@klancaster](https://www.ruby-forum.com/u/klancaster)\
**Replies:** 3\
**Last updated:** [January 3, 2006, 3:04am UTC](https://www.ruby-forum.com/t/rdoc-and-dot-on-mac/88111 "2006-01-03T03:04:23Z")

</div>

All, This is probably a bit more of a mac question, but here goes. (Admission: I posted this to ruby-talk as well…) I am trying to use rdoc -d to generate class diagrams on a mac running Tiger (OS X 10.4) for a rai…

---

## ["textilize" playing silly buggers with me](https://www.ruby-forum.com/t/textilize-playing-silly-buggers-with-me/49633)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 3\
**Last updated:** [December 7, 2005, 2:48pm UTC](https://www.ruby-forum.com/t/textilize-playing-silly-buggers-with-me/49633 "2005-12-07T14:48:17Z")

</div>

note: please CC me on replies as I’m not subscribed to the list, thanks. hey guys, I’m using \<%= textilize(@article.body) %\> in my view, but it’s doing funny things with a html header tag, like so: General Observat…

---

## [Neural Network library?](https://www.ruby-forum.com/t/neural-network-library/49417)

<div class="topic-metadata">

**Author:** [@russ](https://www.ruby-forum.com/u/russ)\
**Replies:** 3\
**Last updated:** [December 4, 2005, 3:03am UTC](https://www.ruby-forum.com/t/neural-network-library/49417 "2005-12-04T03:03:16Z")

</div>

I couldn’t find a Ruby-based neural network library. Anyone out there secretly developing one, or writing a Ruby wrapper for? Ideally, I’d like to use something for educational purposes like T-learn, but better and …

---

## [/usr/bin/gem:3:in \`require': no such file to load](https://www.ruby-forum.com/t/usr-bin-gemin-require-no-such-file-to-load/49630)

<div class="topic-metadata">

**Author:** [@nospam2](https://www.ruby-forum.com/u/nospam2)\
**Replies:** 3\
**Last updated:** [November 23, 2005, 6:55pm UTC](https://www.ruby-forum.com/t/usr-bin-gemin-require-no-such-file-to-load/49630 "2005-11-23T18:55:42Z")

</div>

Ok, I removed Ruby 1.8-2 and installed Ruby 1.8-3 from source (./configure, make, make install). Everything seemed to be fine until I tried to start gem that I previously installed. Now gem tells me: /usr/bin/gem:3:in…

---

## [Check my class](https://www.ruby-forum.com/t/check-my-class/226016)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [July 16, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/check-my-class/226016 "2008-07-16T15:40:41Z")

</div>

Hey i’m super new at ruby, This is my first class attempt. can i copy and paste this into the prompt? or do i need to save it as a .rb file? or how do i load it? help? haha class Item def initialize(item,price,cost) …

---

## [Standard route but having errors](https://www.ruby-forum.com/t/standard-route-but-having-errors/124922)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/standard-route-but-having-errors/124922 "2008-01-03T21:02:34Z")

</div>

hey i have routes defined as, map.question ‘question/:id’, :controller =\> ‘question’, :action =\> ‘show’ Install the default route as the lowest priority. map.connect ‘:controller/:action/:id.:format’ map.connect ‘:co…

---

## [Linking across models](https://www.ruby-forum.com/t/linking-across-models/110546)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 6\
**Last updated:** [July 28, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/linking-across-models/110546 "2007-07-28T15:08:17Z")

</div>

Bit new at this so not sure if this is something that shouldn’t be done but I currently have a number of models which are attached to database tables and deal with all the backend actions like populating editing and u…

---

## [Ruby on Windows](https://www.ruby-forum.com/t/ruby-on-windows/68059)

<div class="topic-metadata">

**Author:** [@henrys](https://www.ruby-forum.com/u/henrys)\
**Replies:** 6\
**Last updated:** [September 9, 2006, 1:31am UTC](https://www.ruby-forum.com/t/ruby-on-windows/68059 "2006-09-09T01:31:21Z")

</div>

I have two problems with my Ruby for Windows (1.8.4): When I double-click on a file with .rb extention a DOS-like window appears and dissapears immediately. I am not able to see results. The Windows command (which…

---

## [Partials - asked before never got reply](https://www.ruby-forum.com/t/partials-asked-before-never-got-reply/64656)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 6\
**Last updated:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/partials-asked-before-never-got-reply/64656 "2006-09-04T14:45:27Z")

</div>

I’m trying to figure out how multiple partials in one page would be configured when they are based on some action in the controller. As an example - I have a main/welcome page. If someone new or a user not logged in …

---

## [Duplicating strange bot error](https://www.ruby-forum.com/t/duplicating-strange-bot-error/231078)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 20, 2014, 4:44pm UTC](https://www.ruby-forum.com/t/duplicating-strange-bot-error/231078 "2014-07-20T16:44:46Z")

</div>

I’m getting a 500 error on my website that obviously comes from a bot. I’d like to duplicate that error so that I can try to suppress the email message that gets sent to me. The error contains: (ArgumentError) "inva…

---

## [Using html.erb as stand alone file](https://www.ruby-forum.com/t/using-html-erb-as-stand-alone-file/239761)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [March 13, 2014, 4:58pm UTC](https://www.ruby-forum.com/t/using-html-erb-as-stand-alone-file/239761 "2014-03-13T16:58:09Z")

</div>

Hi Could anyone tell me if this is possible even with it being bad practice and not using RoR as it was intended, I am looking into customizing my CRM named ‘HostPay’ in order to integrate stripe payments. Hostpay do…

---

## [Nginx IMAP hooks](https://www.ruby-forum.com/t/nginx-imap-hooks/238984)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [February 7, 2014, 5:40am UTC](https://www.ruby-forum.com/t/nginx-imap-hooks/238984 "2014-02-07T05:40:00Z")

</div>

Hello people, I am absolute newbie in the world of nginx. Before I start learning configuration and module writing I want to ensure that what I am trying to do can be done using nginx. I want to have a IMAP proxy set…

---

## [Download XML](https://www.ruby-forum.com/t/download-xml/225678)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 23, 2013, 2:01pm UTC](https://www.ruby-forum.com/t/download-xml/225678 "2013-01-23T14:01:05Z")

</div>

Hi Folks, Good Noon, I want to download XML file, I used in my index, %a{:download =\> “weborder”, :href =\> “/orders.xml?q=a10ie5Vb”, :style =\> “float: left;padding: 0px;background:none;”} In my controller, def in…

---

## [Strore pdf in amazon s3 using cron](https://www.ruby-forum.com/t/strore-pdf-in-amazon-s3-using-cron/225391)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 5, 2013, 3:39pm UTC](https://www.ruby-forum.com/t/strore-pdf-in-amazon-s3-using-cron/225391 "2013-01-05T15:39:35Z")

</div>

Hello Everyone, I have one model called Message. User can send messages along with 2 more images. I need to take a pdf of each message and store it in amazon s3 for daily basses. I need to show that .pdf (one messag…

---

## [Two things seem to equal, but the UNLESS statement passes anyway](https://www.ruby-forum.com/t/two-things-seem-to-equal-but-the-unless-statement-passes-anyway/225204)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 20, 2012, 12:02pm UTC](https://www.ruby-forum.com/t/two-things-seem-to-equal-but-the-unless-statement-passes-anyway/225204 "2012-12-20T12:02:53Z")

</div>

when params\[:which\_post\] happens to equal the users last message, the UNLESS staement on line 11 passes when in fact they both equal. I’ve done testing and I know the params work and they do in fact equal each other, …

---

## [Attribute ordering in REXML](https://www.ruby-forum.com/t/attribute-ordering-in-rexml/224926)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [December 3, 2012, 6:23pm UTC](https://www.ruby-forum.com/t/attribute-ordering-in-rexml/224926 "2012-12-03T18:23:59Z")

</div>

Hi all! We are using REXML to modify XML files in our project, and we experience that the attributes of all tags are always reordered. For XML files that are checked into source control, this generates unnecessary no…

---

## [\[ruby-trunk - Bug #7040\]\[Open\] gem install で特定の gem がインストールできない](https://www.ruby-forum.com/t/ruby-trunk-bug-7040-open-gem-install-gem/223041)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 7, 2012, 5:29pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-7040-open-gem-install-gem/223041 "2012-10-07T17:29:24Z")

</div>

Issue #7040 has been reported by hsbt (Hiroshi SHIBATA). Bug #7040: gem install で特定の gem がインストールできない Author: hsbt (Hiroshi SHIBATA) Status: Open Priority: Normal Assignee: Category: core Target version: 2.0.0 r…

---

## [Location expression - PHP treated as binary file](https://www.ruby-forum.com/t/location-expression-php-treated-as-binary-file/223174)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 25, 2012, 6:03am UTC](https://www.ruby-forum.com/t/location-expression-php-treated-as-binary-file/223174 "2012-09-25T06:03:29Z")

</div>

Hi, Having following configuration, PHP files, if requested from /junk or /pub locations, are treated as binary. Sample request - domain.com/pub/i.php → file is downloaded to PC instead of executing. Have no prob…

---

## [Understanding host value in nginx error log files](https://www.ruby-forum.com/t/understanding-host-value-in-nginx-error-log-files/218471)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 3, 2012, 1:16am UTC](https://www.ruby-forum.com/t/understanding-host-value-in-nginx-error-log-files/218471 "2012-04-03T01:16:02Z")

</div>

I typically see entries in my error.log files of hack attempts where the host entry is the IP address of my server, but I also see some entries with host values that are domain names I don’t recognise. Example 1: 01…

---

## [How to respond correctly to a POST request for a static file?](https://www.ruby-forum.com/t/how-to-respond-correctly-to-a-post-request-for-a-static-file/215668)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 12, 2012, 11:15pm UTC](https://www.ruby-forum.com/t/how-to-respond-correctly-to-a-post-request-for-a-static-file/215668 "2012-01-12T23:15:03Z")

</div>

hi, I have a Facebook app hosted on nginx. Faceboook fetches the data by issuing a POST request for index.html before embedding it in their canvas. My server replies with 404, instead of the expected 405. If it was 4…

---

## [E100 simultaneous Tx/Rx](https://www.ruby-forum.com/t/e100-simultaneous-tx-rx/210211)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [August 2, 2011, 3:03pm UTC](https://www.ruby-forum.com/t/e100-simultaneous-tx-rx/210211 "2011-08-02T15:03:23Z")

</div>

I try to do some ‘helloworld’ type tests and I found a problem. I write code in Python using UHD as the interface to HF HW. I can successfully receive stream samples and push it to the filters / demodulator / bells / …

---

## [Basic Setup and Architecture](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [July 19, 2011, 12:39pm UTC](https://www.ruby-forum.com/t/basic-setup-and-architecture/209634 "2011-07-19T12:39:58Z")

</div>

Just wondering, What are the basic gems that you guys use and the architecture (code base and otherwise) do you guys follow when starting a new Rails project?

---

## [Nginx and php fast cgi different server?](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 2, 2011, 6:26am UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461 "2011-05-02T06:26:56Z")

</div>

Hello All, I’m a newbie on nginx, currently i have configure nginx n php fast cgi with same server, i want to split nginx and php fast cgi with different, it’s posibble? I have test change fastcgi\_pass point di php f…

---

## [ActionMailer Layouts for Rails 2.1.1](https://www.ruby-forum.com/t/actionmailer-layouts-for-rails-2-1-1/206241)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 27, 2011, 2:18pm UTC](https://www.ruby-forum.com/t/actionmailer-layouts-for-rails-2-1-1/206241 "2011-04-27T14:18:54Z")

</div>

Hi guys, I am using rails 2.1.1 on a project and would like to enable mailer layouts for it. I know that in later versions of rails, this is supported, but I do not have the time just now to upgrade my app. Are ther…

---

## [Rspec 1.3 stubbing](https://www.ruby-forum.com/t/rspec-1-3-stubbing/201392)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 7, 2011, 12:40am UTC](https://www.ruby-forum.com/t/rspec-1-3-stubbing/201392 "2011-01-07T00:40:54Z")

</div>

All, Anyone using rspec 1.3 and stubbing Java methods? I tried this on a java static that would hit the db and I don’t want that for these unit tests. It did not work as expected. in my before block: JavaClass.stub!…

---

## [Export e import in database e violazione chiave primaria](https://www.ruby-forum.com/t/export-e-import-in-database-e-violazione-chiave-primaria/200868)

<div class="topic-metadata">

**Author:** [@nikuSESS](https://www.ruby-forum.com/u/nikuSESS)\
**Replies:** 2\
**Last updated:** [December 23, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/export-e-import-in-database-e-violazione-chiave-primaria/200868 "2010-12-23T20:29:50Z")

</div>

Uso postgres come database. Avevo necessita’ di variare la struttura di alcune tabelle cosi’ ho esportato il contenuto delle tabelle presenti in file di testo attraverso il comando COPY di postgres. Ho cancellato e r…

---

## [Static variable referenced as a method?](https://www.ruby-forum.com/t/static-variable-referenced-as-a-method/188656)

<div class="topic-metadata">

**Author:** [@Tommy\_C](https://www.ruby-forum.com/u/Tommy_C)\
**Replies:** 2\
**Last updated:** [May 15, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/static-variable-referenced-as-a-method/188656 "2010-05-15T19:10:23Z")

</div>

In jruby, I’m trying to reference a static variable using DefaultGeographicCRS.WGS84 but JRuby is trying to call it as a method rather than a variable?: undefined method \`WGS84’ for Java::OrgGeotoolsReferencingCrs::D…

---

## [Rails form partial help - nested resource](https://www.ruby-forum.com/t/rails-form-partial-help-nested-resource/186169)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 2\
**Last updated:** [April 1, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/rails-form-partial-help-nested-resource/186169 "2010-04-01T18:39:00Z")

</div>

Hi all, I apologize for the funky subject of this post. I have a partial I created while recreating a railscasts example (nested resources part 2 - #197 Nested Model Form Part 2 - RailsCasts) and I’ve come to a halt…

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

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