# Top

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

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

---

## [Testing flex2400](https://www.ruby-forum.com/t/testing-flex2400/75480)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 3\
**Last updated:** [November 11, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/testing-flex2400/75480 "2006-11-11T20:46:27Z")

</div>

Hi, Are there any good (standard) tests for the flex2400, or can anyone tell me what I’m doing wrong? I tested the BasicRX and BasicTX boards by plugging a shielded wire between them, running usrp\_oscope.py, and runn…

---

## [Radius tags ideas](https://www.ruby-forum.com/t/radius-tags-ideas/75162)

<div class="topic-metadata">

**Author:** [@p0pnfresh](https://www.ruby-forum.com/u/p0pnfresh)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/radius-tags-ideas/75162 "2006-11-07T22:00:11Z")

</div>

Hi, Has anybody followed up on this suggestion made by Tristan? Tristan wrote: \<r:children:next /\> \<r:children:previous /\> called from inside a \<r:children:each\>, would allow to easily create links to the next/pre…

---

## [File I/O](https://www.ruby-forum.com/t/file-i-o/74654)

<div class="topic-metadata">

**Author:** [@name\_pipe](https://www.ruby-forum.com/u/name_pipe)\
**Replies:** 3\
**Last updated:** [November 7, 2006, 10:51am UTC](https://www.ruby-forum.com/t/file-i-o/74654 "2006-11-07T10:51:43Z")

</div>

Hello, I have some text to be written to a file. After receiving data from webrick server I modify it lil bit and then write it to a file. fd = File.open(“file.txt”, “w”) fd.puts “#{data}” The code doesnt give erro…

---

## [Seleccionar hora](https://www.ruby-forum.com/t/seleccionar-hora/71860)

<div class="topic-metadata">

**Author:** [@Chankas](https://www.ruby-forum.com/u/Chankas)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/seleccionar-hora/71860 "2006-10-18T10:40:13Z")

</div>

Hola a todos Tengo un pequeño problema al seleccionar la hora en un formulario con el datetime\_select no puedo, porque el “:discart\_year =\> true” no funciona y con el select\_time no se como recuperar sus valores en el …

---

## [@session is getting reset?](https://www.ruby-forum.com/t/session-is-getting-reset/72095)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 3\
**Last updated:** [October 15, 2006, 4:35am UTC](https://www.ruby-forum.com/t/session-is-getting-reset/72095 "2006-10-15T04:35:24Z")

</div>

I got rid of the @ signs and went from strings to symbols, but things are still broken: At the end of the login method (user\_controller.rb), I’m setting values into session, then redirecting, as: puts "\>\>\>\>\> redir…

---

## [Re: Ruby For Rails Question](https://www.ruby-forum.com/t/re-ruby-for-rails-question/71874)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 3\
**Last updated:** [October 12, 2006, 4:58am UTC](https://www.ruby-forum.com/t/re-ruby-for-rails-question/71874 "2006-10-12T04:58:24Z")

</div>

So reverse is not a method on end object? It can be end.any\_method\_that\_is\_available\_in\_the\_return\_object? b is the block param for the second block (the one that goes with select). The reverse reverses the results u…

---

## [Conditions with update all?](https://www.ruby-forum.com/t/conditions-with-update-all/71091)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 3\
**Last updated:** [October 6, 2006, 12:06pm UTC](https://www.ruby-forum.com/t/conditions-with-update-all/71091 "2006-10-06T12:06:17Z")

</div>

Hello, I don’t understand why Mouvement.update\_all(‘etat = false’, :conditions =\> \[“id\_paire = ?”, params\[:id\_paire\]\]) generates these SQL statements UPDATE mouvements SET etat = false WHERE (conditionsid\_paire = ?1…

---

## [Handling 2 forms in one controller](https://www.ruby-forum.com/t/handling-2-forms-in-one-controller/70350)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 3\
**Last updated:** [September 28, 2006, 5:32pm UTC](https://www.ruby-forum.com/t/handling-2-forms-in-one-controller/70350 "2006-09-28T17:32:53Z")

</div>

Hi, a brief description of my situation: I have 2 models, Item and SellerContactInfo. They have to be filled with data from the user, which is done in a 2-step web form. I’m thinking heavily about the optimal way to …

---

## [Sql server and varbinary columns](https://www.ruby-forum.com/t/sql-server-and-varbinary-columns/70296)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 28, 2006, 12:20am UTC](https://www.ruby-forum.com/t/sql-server-and-varbinary-columns/70296 "2006-09-28T00:20:19Z")

</div>

anyone know how to pass a file to a varbinary column right now I’m trying this. view: \<% file\_field ‘stored\_files’, ‘tmp\_file’, :enctype =\> ‘application/binary’ %\> controller: params\[:stored\_files\]\[:file\] = params\[…

---

## [FFTW Problems](https://www.ruby-forum.com/t/fftw-problems/69584)

<div class="topic-metadata">

**Author:** [@Ron\_Shaffer](https://www.ruby-forum.com/u/Ron_Shaffer)\
**Replies:** 3\
**Last updated:** [September 22, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/fftw-problems/69584 "2006-09-22T17:57:46Z")

</div>

I’m trying to build with the latest svn source as of this past weekend in FC 4. below is a snip of my configure and make outputs … Can someone help me with this please - I’m getting unresolved externals on FFTW - …R…

---

## [Ruby can't find installed gems](https://www.ruby-forum.com/t/ruby-cant-find-installed-gems/102166)

<div class="topic-metadata">

**Author:** [@chet](https://www.ruby-forum.com/u/chet)\
**Replies:** 3\
**Last updated:** [August 15, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/ruby-cant-find-installed-gems/102166 "2006-08-15T14:17:29Z")

</div>

I’ve been fighting this all day, and I can’t grok where I’ve gone wrong. I hope someone here can help. I’m trying to write a fairly simple script to handle some periodic SFTP file submissions to a client’s vendor. Net…

---

## [Missing controller default code](https://www.ruby-forum.com/t/missing-controller-default-code/100724)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 3\
**Last updated:** [July 31, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/missing-controller-default-code/100724 "2006-07-31T18:55:08Z")

</div>

Hello, I generated a controller, using the command: ruby script/generate controller my\_kontroller my\_model The generated controller file, however, contains an empty class definition. The default controller code is mi…

---

## [Routing Error - Recognition failed for](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/63584)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 3\
**Last updated:** [June 16, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/routing-error-recognition-failed-for/63584 "2006-06-16T16:32:57Z")

</div>

I followed the guide for RailsOnWindows (http://wiki.rubyonrails.org/rails/pages/RailsOnWindows) and completed all the steps without any problems. But when I try to access my page, I get: Routing Error Recognition …

---

## [Dynamic determination of class under test](https://www.ruby-forum.com/t/dynamic-determination-of-class-under-test/63249)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 3\
**Last updated:** [June 13, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/dynamic-determination-of-class-under-test/63249 "2006-06-13T18:06:50Z")

</div>

I’ve been developing a series of custom assertions for testing my models and it looks like I can unify most some of the assertions if I can find a good way to determine the class under test at run-time. Now I refact…

---

## [Wired News Article on USRP and GNU Radio](https://www.ruby-forum.com/t/wired-news-article-on-usrp-and-gnu-radio/62511)

<div class="topic-metadata">

**Author:** [@highprob](https://www.ruby-forum.com/u/highprob)\
**Replies:** 3\
**Last updated:** [June 6, 2006, 10:28pm UTC](https://www.ruby-forum.com/t/wired-news-article-on-usrp-and-gnu-radio/62511 "2006-06-06T22:28:45Z")

</div>

http://www.wired.com/news/technology/0,70933-0.html?tw=wn\_index\_1

---

## [Best way to handle different time zones?](https://www.ruby-forum.com/t/best-way-to-handle-different-time-zones/62331)

<div class="topic-metadata">

**Author:** [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Replies:** 3\
**Last updated:** [June 3, 2006, 1:23am UTC](https://www.ruby-forum.com/t/best-way-to-handle-different-time-zones/62331 "2006-06-03T01:23:30Z")

</div>

We have a project that is hosted in one time zone (say, Pacific Daylight Time) but the client wants all time recorded in their time zone (say, Mountain Time). What is the best way to do this? Any recommendations? Than…

---

## [RE: sql server, date and time](https://www.ruby-forum.com/t/re-sql-server-date-and-time/94468)

<div class="topic-metadata">

**Author:** [@Ross\_D](https://www.ruby-forum.com/u/Ross_D)\
**Replies:** 3\
**Last updated:** [May 4, 2006, 11:35am UTC](https://www.ruby-forum.com/t/re-sql-server-date-and-time/94468 "2006-05-04T11:35:47Z")

</div>

Better to use dates in the format of yyyy-mm-dd it’s unambiguous. I think there is even an ISO standard for this. Ross (a colonial that has a date time format of dd-mm-yyyy)

---

## [Ruby Size](https://www.ruby-forum.com/t/ruby-size/94293)

<div class="topic-metadata">

**Author:** [@kuppas](https://www.ruby-forum.com/u/kuppas)\
**Replies:** 3\
**Last updated:** [April 29, 2006, 3:47am UTC](https://www.ruby-forum.com/t/ruby-size/94293 "2006-04-29T03:47:18Z")

</div>

What would be the smallest ruby size? While building the ruby, a miniruby also build and it’s size is 1.6MB? Can we build a ruby less than 1 MB? -Kuppa

---

## [How i can get value in string with pattern](https://www.ruby-forum.com/t/how-i-can-get-value-in-string-with-pattern/58086)

<div class="topic-metadata">

**Author:** [@Jakov](https://www.ruby-forum.com/u/Jakov)\
**Replies:** 3\
**Last updated:** [April 18, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/how-i-can-get-value-in-string-with-pattern/58086 "2006-04-18T12:17:10Z")

</div>

how i can get value in string with pattern or regular experssion I have this string: “Who is this (//mystring//)”.gsub(?, “”) How i can get ‘mystring’ if it’s conclude in mystring.

---

## [RE: how to include an html file?](https://www.ruby-forum.com/t/re-how-to-include-an-html-file/71532)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [February 22, 2006, 5:23am UTC](https://www.ruby-forum.com/t/re-how-to-include-an-html-file/71532 "2006-02-22T05:23:57Z")

</div>

Other then that though you could simple open the file and spit the results manually. So, a simple helper function: def include\_page(file\_name) result = “” File.open(file\_name, “r”) { |f| result \<\< f.read } result …

---

## [Re: Thread#stop](https://www.ruby-forum.com/t/re-thread-stop/68982)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 3\
**Last updated:** [February 19, 2006, 1:18am UTC](https://www.ruby-forum.com/t/re-thread-stop/68982 "2006-02-19T01:18:40Z")

</div>

The following probably contains world-destroying race-conditions, but it roughly works. Making it work properly is left as an exercise for the reader. $stoppable = \[\] $stop\_all = false def stop\_all $stop\_all = true …

---

## [Calling find()](https://www.ruby-forum.com/t/calling-find/67876)

<div class="topic-metadata">

**Author:** [@Julian\_I](https://www.ruby-forum.com/u/Julian_I)\
**Replies:** 3\
**Last updated:** [February 14, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/calling-find/67876 "2006-02-14T15:13:16Z")

</div>

Hello, Nobody reply on my previous post, so from one day i\`m asking on the irc channel, and no response too. I try to generate scaffold code, on my problem, to see how it handle this, but the result is the same … Whe…

---

## [DRY conflict with "Updated at" "Created at" "Deleted at" in](https://www.ruby-forum.com/t/dry-conflict-with-updated-at-created-at-deleted-at-in/98218)

<div class="topic-metadata">

**Author:** [@gerardjp](https://www.ruby-forum.com/u/gerardjp)\
**Replies:** 3\
**Last updated:** [January 28, 2006, 12:01pm UTC](https://www.ruby-forum.com/t/dry-conflict-with-updated-at-created-at-deleted-at-in/98218 "2006-01-28T12:01:10Z")

</div>

Hi all, Are there any helpers or so for listview routines that suppres the three above mentioned columns? I’m currently exploring something like the code below. But it feels like I’m doing Rails’ work. just for tes…

---

## [It's bug?](https://www.ruby-forum.com/t/its-bug/96594)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 3\
**Last updated:** [December 20, 2005, 1:47am UTC](https://www.ruby-forum.com/t/its-bug/96594 "2005-12-20T01:47:08Z")

</div>

I try to use find(:all, :group =\> ‘XXX’ ) then rails said: “Unknown key(s): group” i think http://api.rubyonrails.com/ showed me :group is right it’s a bug ? my rails (0.14.3)

---

## [Plugin - modify routing?](https://www.ruby-forum.com/t/plugin-modify-routing/49599)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 3\
**Last updated:** [December 6, 2005, 11:57pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599 "2005-12-06T23:57:01Z")

</div>

would it be kosher to make a plugin modify routing? could the the routing be modified such that certain actions would be routed to a controller in the plugin directory. or is the the realm of engines? regards. -a …

---

## [Should I validate the presence of a foreign key?](https://www.ruby-forum.com/t/should-i-validate-the-presence-of-a-foreign-key/51538)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 3\
**Last updated:** [December 4, 2005, 6:25pm UTC](https://www.ruby-forum.com/t/should-i-validate-the-presence-of-a-foreign-key/51538 "2005-12-04T18:25:55Z")

</div>

Pretty quick example, imagine we have two classes, a user and a post. class Post \< ActiveRecord::Base belongs\_to :user validates\_presence\_of :user\_id end This basically just ensures that no post is created without a…

---

## [Functional testing issue](https://www.ruby-forum.com/t/functional-testing-issue/48420)

<div class="topic-metadata">

**Author:** [@mithill](https://www.ruby-forum.com/u/mithill)\
**Replies:** 3\
**Last updated:** [November 20, 2005, 5:41pm UTC](https://www.ruby-forum.com/t/functional-testing-issue/48420 "2005-11-20T17:41:57Z")

</div>

This is a really basic test, but the rails test environment does not give me the results I expect. Hopefully someone can set me straight. I send in a get request with one parameter and the application opens a page to …

---

## [Rails app on server](https://www.ruby-forum.com/t/rails-app-on-server/231996)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [September 11, 2014, 8:42pm UTC](https://www.ruby-forum.com/t/rails-app-on-server/231996 "2014-09-11T20:42:09Z")

</div>

I have a domain www.example.com which has php script running hosting has rails support through ssh so with ssh i have created a testapp in public\_html so inside testapp all related files are created then bundle inst…

---

## [Re: The GSoC project on LDPC codes](https://www.ruby-forum.com/t/re-the-gsoc-project-on-ldpc-codes/237309)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [November 5, 2013, 6:40pm UTC](https://www.ruby-forum.com/t/re-the-gsoc-project-on-ldpc-codes/237309 "2013-11-05T18:40:16Z")

</div>

Greetings I was very interested in this project for possible application to the op25 project, since P25 uses several FEC codes including RS and other block codes. I’ve brought up the gr-ldpc library and have a few qu…

---

## [How to get started with python in gnuradio](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [June 10, 2013, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251 "2013-06-10T15:10:21Z")

</div>

Hi all It would be very helpful to me if some one tells me how to get started with python in gnu radio.I see an entire page dedicated to python programming but it does not say anything about getting started.Please do…

---

## [Changing the model after scaffolding](https://www.ruby-forum.com/t/changing-the-model-after-scaffolding/223519)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [October 8, 2012, 3:26pm UTC](https://www.ruby-forum.com/t/changing-the-model-after-scaffolding/223519 "2012-10-08T15:26:08Z")

</div>

Hi, I want to learn Rails and I have one question. In Rails 3, if I want to change the model after I performed scaffolding, where should modifications be made? I assume in the controller and view. Can someone confirm…

---

## [\[ANN\] RubyTalkTips 0.0.5 released](https://www.ruby-forum.com/t/ann-rubytalktips-0-0-5-released/219836)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [May 18, 2012, 3:54am UTC](https://www.ruby-forum.com/t/ann-rubytalktips-0-0-5-released/219836 "2012-05-18T03:54:39Z")

</div>

I’ve emailed many of you about this project, and while it’s still got a long way to go, I thought I should release it to the community now. Over the last couple of years, I have been collecting what I consider to be t…

---

## [More questions on gr-modtool](https://www.ruby-forum.com/t/more-questions-on-gr-modtool/218690)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 2\
**Last updated:** [April 10, 2012, 9:44am UTC](https://www.ruby-forum.com/t/more-questions-on-gr-modtool/218690 "2012-04-10T09:44:30Z")

</div>

OK, I have a skeleton module with a single block in it that currently does nothing. Went to build it: \[ 18%\] Built target \_pocsag\_swig\_doc\_tag \[ 25%\] Generating doxygen xml for pocsag\_swig\_doc docs \[ 31%\] Generating…

---

## [Encoding special characters in ror](https://www.ruby-forum.com/t/encoding-special-characters-in-ror/217080)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 21, 2012, 9:10am UTC](https://www.ruby-forum.com/t/encoding-special-characters-in-ror/217080 "2012-02-21T09:10:23Z")

</div>

hi all, i have one problem while encoding the special characters like ‘’,./?:""!@#$%^&\*():;{}\[\] \>,I get string of book name containing some special characters, now i have to replace those characters with encoded valu…

---

## [Rmagic error windows 7](https://www.ruby-forum.com/t/rmagic-error-windows-7/214579)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [December 7, 2011, 8:38am UTC](https://www.ruby-forum.com/t/rmagic-error-windows-7/214579 "2011-12-07T08:38:11Z")

</div>

Hi guys Windows 7 Ruby 1.8.6 I am using rmagick-2.12.0-windows-binary-gem-for-Ruby-1.8.6 i installed successfully but when i run the server i am getting dialog box with error as “The Procedure entry point AutoGamma…

---

## [Polymorphic class associations](https://www.ruby-forum.com/t/polymorphic-class-associations/214415)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [December 6, 2011, 9:11pm UTC](https://www.ruby-forum.com/t/polymorphic-class-associations/214415 "2011-12-06T21:11:58Z")

</div>

Hi there, I’d be happy if someone can help me with the following: The application is for uploading all kinds of datafiles which should be displayed accordingly to their mimetypes. This is the class/database hierarchy…

---

## [Possible SSL "bug"](https://www.ruby-forum.com/t/possible-ssl-bug/210246)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 3, 2011, 12:56pm UTC](https://www.ruby-forum.com/t/possible-ssl-bug/210246 "2011-08-03T12:56:15Z")

</div>

Hello, Not sure if this is a browser issue or if it is an nginx issue. When using SSL I have encountered a problem using my Android device with user agent “AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Saf…

---

## [Are there any Gnuradio Events?](https://www.ruby-forum.com/t/are-there-any-gnuradio-events/207764)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [June 6, 2011, 4:58pm UTC](https://www.ruby-forum.com/t/are-there-any-gnuradio-events/207764 "2011-06-06T16:58:31Z")

</div>

Lets say you have a GUI app that has a fixed runtime determined by a head block set to (sample\_rate \* n\_seconds). Currently, the gui keeps running. Is there an OnShutdown or some function I can override to catch the f…

---

## [Anti virus scan in rails](https://www.ruby-forum.com/t/anti-virus-scan-in-rails/207035)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 16, 2011, 6:06pm UTC](https://www.ruby-forum.com/t/anti-virus-scan-in-rails/207035 "2011-05-16T18:06:46Z")

</div>

Hi, I have file uploading functionality .present i want to before file save i want to run virus scan , how is it possible .Let me know any one . Thanks.

---

## [File\_column undefined method relative\_url\_root](https://www.ruby-forum.com/t/file-column-undefined-method-relative-url-root/205873)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [April 19, 2011, 5:55pm UTC](https://www.ruby-forum.com/t/file-column-undefined-method-relative-url-root/205873 "2011-04-19T17:55:23Z")

</div>

I just installed and started using the file\_column plugin and am getting the following error: No Method Error undefined method ‘relative\_url\_root’ for nil:NilClass Extracted source (around line #5) 5: \<%= image\_tag …

---

## [Adding composite index to pre-existent table](https://www.ruby-forum.com/t/adding-composite-index-to-pre-existent-table/205874)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [April 17, 2011, 11:31pm UTC](https://www.ruby-forum.com/t/adding-composite-index-to-pre-existent-table/205874 "2011-04-17T23:31:51Z")

</div>

Hello everybody, I’m a newbie in RoR. In order to create a table I’ve created a migration with the ‘rails generate model…’ command. Now I would like to add a composite index over two columns of this table with anoth…

---

## [Rails3 Active record complex where clause](https://www.ruby-forum.com/t/rails3-active-record-complex-where-clause/204785)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 21, 2011, 7:44pm UTC](https://www.ruby-forum.com/t/rails3-active-record-complex-where-clause/204785 "2011-03-21T19:44:29Z")

</div>

When I do such a query, AR misses the second 1/2 of the where clause (assigned\_product\_id): XpRawBillDetailProduct.joins(:xp\_raw\_bill\_detail).where(“xp\_raw\_bill\_details.account\_subcode\_id=#{ account\_subcode.id}”, :ass…

---

## [Please convert this .htaccess to NGINX Rewrite](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/203376)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 20, 2011, 2:46pm UTC](https://www.ruby-forum.com/t/please-convert-this-htaccess-to-nginx-rewrite/203376 "2011-02-20T14:46:42Z")

</div>

RewriteEngine Off could somebody convert this .htaccess to NGINX rewrite,?? Header set Cache-Control “max-age=29030400” ExpiresActive On ExpiresDefault A604800 ExpiresByType text/css A604800 ExpiresByType image/gif…

---

## [Respond\_to o respond\_with](https://www.ruby-forum.com/t/respond-to-o-respond-with/201621)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 12, 2011, 11:05am UTC](https://www.ruby-forum.com/t/respond-to-o-respond-with/201621 "2011-01-12T11:05:51Z")

</div>

A quanto pare con rails 3 al posto del respond\_to viene usato il respond\_with. L’index quindi diventa da: @sectors = Sector.all respond\_to do |format| format.html # index.html.erb format.xml { render :xml =\> @sect…

---

## [Connecting with GTalk with Jabber/XMPP](https://www.ruby-forum.com/t/connecting-with-gtalk-with-jabber-xmpp/201199)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [January 2, 2011, 9:14pm UTC](https://www.ruby-forum.com/t/connecting-with-gtalk-with-jabber-xmpp/201199 "2011-01-02T21:14:18Z")

</div>

Hello! I’ve got some problems with connecting to GTalk via xmpp4r lib. I’m trying to run this code: require ‘rubygems’ require ‘xmpp4r-simple’ include Jabber jabber = Simple.new(‘removed\_email\_address@domain.invalid…

---

## [MD2 v1.0 released](https://www.ruby-forum.com/t/md2-v1-0-released/198265)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [October 28, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/md2-v1-0-released/198265 "2010-10-28T23:27:13Z")

</div>

I’ve just released a new Ruby gem for loading MD2 (Quake II) 3D model files. In addition to exposing the model data to Ruby, it’s also capable of converting the data into a JSON string. Documentation, source code and …

---

## [The nice new braintree\_orange\_test.rb is confused about what "purchases" are](https://www.ruby-forum.com/t/the-nice-new-braintree-orange-test-rb-is-confused-about-what-purchases-are/194135)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/the-nice-new-braintree-orange-test-rb-is-confused-about-what-purchases-are/194135 "2010-08-31T18:25:50Z")

</div>

…inside the otherwise truly awesome ActiveGateway: def test\_successful\_purchase @gateway.expects(:ssl\_post).returns(successful\_purchase\_response) assert response = @gateway.authorize(@amount, @credit\_card, @options) …

---

## [ReverseEng an Object's methods?](https://www.ruby-forum.com/t/reverseeng-an-objects-methods/192115)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 24, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/reverseeng-an-objects-methods/192115 "2010-07-24T16:37:38Z")

</div>

Could there (ever) be a way to reverse engineer, (to code), an object’s methods? In the case where the object/module has been extended? Is this more possible with 1.9.n? MarkT

---

## [Some basic questions](https://www.ruby-forum.com/t/some-basic-questions/188001)

<div class="topic-metadata">

**Author:** [@jack\_william](https://www.ruby-forum.com/u/jack_william)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/some-basic-questions/188001 "2010-06-08T18:36:36Z")

</div>

Hi, Could someone please answer following questions of mine : In pkt = ofdm\_packet\_utils.make\_packet(payload, 1, 1, self.\_pad\_for\_usrp, whitening=True) what is whitening? In gr.fft\_vcc(fft\_size,forward, window, …

---

## [Idiomatic way to pass multiple Procs/lambdas/blocks](https://www.ruby-forum.com/t/idiomatic-way-to-pass-multiple-procs-lambdas-blocks/188546)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 2\
**Last updated:** [May 13, 2010, 9:35pm UTC](https://www.ruby-forum.com/t/idiomatic-way-to-pass-multiple-procs-lambdas-blocks/188546 "2010-05-13T21:35:41Z")

</div>

I am working on a little syntactical sugar library for 0mq (networking library). One of the things I would like to provide is a set of asynchronous send/recv methods for transmitting and receiving messages. The metho…

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

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