# Top

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

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

---

## [Assigns in RSpec 2 - deprecation warning on rendered?](https://www.ruby-forum.com/t/assigns-in-rspec-2-deprecation-warning-on-rendered/189907)

<div class="topic-metadata">

**Author:** [@kristianm](https://www.ruby-forum.com/u/kristianm)\
**Replies:** 3\
**Last updated:** [June 9, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/assigns-in-rspec-2-deprecation-warning-on-rendered/189907 "2010-06-09T23:47:28Z")

</div>

I have come to the views\_example in the RSpec book, using RSpec 2 all the way. Now I have this spec: describe “messages/show.html.erb” do it “displays the text attribute of the message” do assigns\[:message\] = stub(“M…

---

## [FXRuby & Excel windows](https://www.ruby-forum.com/t/fxruby-excel-windows/180311)

<div class="topic-metadata">

**Author:** [@drlelon](https://www.ruby-forum.com/u/drlelon)\
**Replies:** 0\
**Last updated:** [December 17, 2009, 6:43am UTC](https://www.ruby-forum.com/t/fxruby-excel-windows/180311 "2009-12-17T06:43:12Z")

</div>

I have a ruby app on Windows, with an FXRuby UI that opens up Excel using Win32OLE. The Excel window obscures the UI at one point. How can I programmatically send the Excel window to the back and/or bring the FXRuby…

---

## [Routing error with webrat](https://www.ruby-forum.com/t/routing-error-with-webrat/156242)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/routing-error-with-webrat/156242 "2008-12-23T15:35:00Z")

</div>

Hello I am starting using cucumber with an app using restful\_authentication. I am having an error that is driving me mad. I am using this step Given /^que he hecho login en la aplicaciÃ³n$/ do user = User.create!( …

---

## [How to create a button class that uses blocks instead of listeners?](https://www.ruby-forum.com/t/how-to-create-a-button-class-that-uses-blocks-instead-of-listeners/154242)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 3\
**Last updated:** [November 26, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/how-to-create-a-button-class-that-uses-blocks-instead-of-listeners/154242 "2008-11-26T18:09:25Z")

</div>

I’d like a JRuby button class that’s a subclass of the Swing button class, but that allows one to say something like: Rbutton.new(“Click me”) { puts “Clicked!” } What I have so far is require ‘java’ class Rbutton \< …

---

## [How to get the code staright in to Netbeans from GitHub](https://www.ruby-forum.com/t/how-to-get-the-code-staright-in-to-netbeans-from-github/148923)

<div class="topic-metadata">

**Author:** [@webreservoir](https://www.ruby-forum.com/u/webreservoir)\
**Replies:** 3\
**Last updated:** [September 19, 2008, 3:18am UTC](https://www.ruby-forum.com/t/how-to-get-the-code-staright-in-to-netbeans-from-github/148923 "2008-09-19T03:18:16Z")

</div>

Hi, I am using Netbeans 6.1 for my Rails Projects. I have seen that many projects on GitHub, do not offer the code in zip formats for downloads, hence it becomes very tough to copy the code step by step and paste it …

---

## [Zlib file decompression EOL issue](https://www.ruby-forum.com/t/zlib-file-decompression-eol-issue/134517)

<div class="topic-metadata">

**Author:** [@peho](https://www.ruby-forum.com/u/peho)\
**Replies:** 0\
**Last updated:** [April 11, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/zlib-file-decompression-eol-issue/134517 "2008-04-11T17:06:28Z")

</div>

Hi, first thx for helping ! I’m trying to decompress some .gz files with zlip. Here’s the code that i use, taken from here http://www.misuse.org/science/2007/09/07/ruby-zlib-buffer-error-on-windows/ and modified to …

---

## [Rails exceptions o como controlar permisos a ciertos metodos](https://www.ruby-forum.com/t/rails-exceptions-o-como-controlar-permisos-a-ciertos-metodos/133677)

<div class="topic-metadata">

**Author:** [@masoto](https://www.ruby-forum.com/u/masoto)\
**Replies:** 3\
**Last updated:** [April 6, 2008, 9:32pm UTC](https://www.ruby-forum.com/t/rails-exceptions-o-como-controlar-permisos-a-ciertos-metodos/133677 "2008-04-06T21:32:10Z")

</div>

Hola a todos, tengo una tabla grupos con la siguiente estructura: create\_table :groups do |t| t.integer :user\_id usuario que crea el grupo t.string :name t.text :description t.boolean :allow\_member\_post\_events…

---

## [How to make an installer for an FXRuby app?](https://www.ruby-forum.com/t/how-to-make-an-installer-for-an-fxruby-app/133118)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 3\
**Last updated:** [March 29, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-make-an-installer-for-an-fxruby-app/133118 "2008-03-29T13:03:30Z")

</div>

I have FXRuby working on OS X. If I write an app in Ruby/FXRuby and get it working, how do I package it so that people on Windows, \*nix, and OS X all can have a one-click installer for my app?

---

## [Table 'radiant\_dev.config' doesn't exist](https://www.ruby-forum.com/t/table-radiant-dev-config-doesnt-exist/89588)

<div class="topic-metadata">

**Author:** [@hdlverde](https://www.ruby-forum.com/u/hdlverde)\
**Replies:** 3\
**Last updated:** [March 22, 2007, 9:13am UTC](https://www.ruby-forum.com/t/table-radiant-dev-config-doesnt-exist/89588 "2007-03-22T09:13:54Z")

</div>

I am new to radiant, but have a little experience with RoR. I got this error when deploying radiant. Tried on two different computers. Both Win XP, Followed the instrucions given at http://dev.radiantcms.org/radiant…

---

## [Radiant-0.6.0rc1.gem](https://www.ruby-forum.com/t/radiant-0-6-0rc1-gem/87663)

<div class="topic-metadata">

**Author:** [@Marshal\_L](https://www.ruby-forum.com/u/Marshal_L)\
**Replies:** 3\
**Last updated:** [March 5, 2007, 10:33am UTC](https://www.ruby-forum.com/t/radiant-0-6-0rc1-gem/87663 "2007-03-05T10:33:59Z")

</div>

I don’t know if this is a bug or just my misunderstanding of how things should work, but I thought it might be useful to share. I installed the radiant-0.6.0rc1.gem on my Ubuntu system in the usual way. Everything see…

---

## [Send\_file and locking files after download?](https://www.ruby-forum.com/t/send-file-and-locking-files-after-download/60504)

<div class="topic-metadata">

**Author:** [@markedman](https://www.ruby-forum.com/u/markedman)\
**Replies:** 3\
**Last updated:** [May 15, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/send-file-and-locking-files-after-download/60504 "2006-05-15T20:55:49Z")

</div>

Hello, I’m working on a download service which grants users a one-time-download access to files. The idea is to write an entry to a database table after a successful download that “locks” the download link for the use…

---

## [Automatically generate migration from db/SQL?](https://www.ruby-forum.com/t/automatically-generate-migration-from-db-sql/50555)

<div class="topic-metadata">

**Author:** [@Jason\_E](https://www.ruby-forum.com/u/Jason_E)\
**Replies:** 3\
**Last updated:** [December 18, 2005, 2:42am UTC](https://www.ruby-forum.com/t/automatically-generate-migration-from-db-sql/50555 "2005-12-18T02:42:53Z")

</div>

Hi, I’d like to use migrations to build my initial database. Is there a gem or plugin that will generate the migration code for initial db if I point it at a live database or sql file? If yes, then can you automatica…

---

## [Create Form And Button With Png And Gif Image(GUI)](https://www.ruby-forum.com/t/create-form-and-button-with-png-and-gif-image-gui/234388)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 2, 2015, 8:05pm UTC](https://www.ruby-forum.com/t/create-form-and-button-with-png-and-gif-image-gui/234388 "2015-03-02T20:05:39Z")

</div>

Hi Community! I am new to ruby I need some help for Graphical user interface(Gui) Design I want create form and button like this http://wikisend.com/download/291862/TestGui.zip this built with C# but i love ruby I …

---

## [NArray install problems on 1.7.6](https://www.ruby-forum.com/t/narray-install-problems-on-1-7-6/237456)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [November 14, 2013, 5:19pm UTC](https://www.ruby-forum.com/t/narray-install-problems-on-1-7-6/237456 "2013-11-14T17:19:55Z")

</div>

Using rvm 1.23.14 (master). Tried a ‘gem install narray’ and go the following output. Is there a way to fix it from the error messages? jzakiya@new-host-3 ~ $ gem install narray Fetching: narray-0.6.0.8.gem (100%) …

---

## [LFRX A:A and A:B as independent channels in GRC](https://www.ruby-forum.com/t/lfrx-a-a-and-a-b-as-independent-channels-in-grc/229621)

<div class="topic-metadata">

**Author:** [@mepard](https://www.ruby-forum.com/u/mepard)\
**Replies:** 2\
**Last updated:** [February 8, 2013, 2:19pm UTC](https://www.ruby-forum.com/t/lfrx-a-a-and-a-b-as-independent-channels-in-grc/229621 "2013-02-08T14:19:03Z")

</div>

Using just Gnu Radio Companion, is there a way to get the A and B inputs of an Ettus LFRX (or BasicRX) in an N210 as independent channels? Specifying A:AB as the subdevice and using a Complex-to-Float might work, but …

---

## [RoR application design for real estate web site](https://www.ruby-forum.com/t/ror-application-design-for-real-estate-web-site/215533)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [January 7, 2012, 3:19pm UTC](https://www.ruby-forum.com/t/ror-application-design-for-real-estate-web-site/215533 "2012-01-07T15:19:40Z")

</div>

I’m trying to implement a real estate app. But i’m stuck at designing models associations. I’s my first RoR app. Situation The app has different types of properties/estate(house, apartment, garage, land etc). These p…

---

## [Problem with sqlite3 installation](https://www.ruby-forum.com/t/problem-with-sqlite3-installation/203357)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 19, 2011, 12:01pm UTC](https://www.ruby-forum.com/t/problem-with-sqlite3-installation/203357 "2011-02-19T12:01:55Z")

</div>

I use “Fedora”. I have installed ruby, rubygems, rails, sqlite-devel Ruby 1.8.7 Rails 3.0.4 gem 1.5.2 #gem install sqlite3 Building native extensions. This could take a while… ERROR: Error installing sqlite3: E…

---

## [JRuby asks for installation bouncy-castle-java even though it's already installed](https://www.ruby-forum.com/t/jruby-asks-for-installation-bouncy-castle-java-even-though-its-already-installed/196053)

<div class="topic-metadata">

**Author:** [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Replies:** 2\
**Last updated:** [October 9, 2010, 12:51am UTC](https://www.ruby-forum.com/t/jruby-asks-for-installation-bouncy-castle-java-even-though-its-already-installed/196053 "2010-10-09T00:51:23Z")

</div>

Hi, JRuby is always printing this message when ran from the command line (in Windows): OpenSSL ASN1/PKey/X509/Netscape/PKCS7 implementation unavailable gem install bouncy-castle-java for full support. Even though I …

---

## [Application focus](https://www.ruby-forum.com/t/application-focus/187820)

<div class="topic-metadata">

**Author:** [@freaxmind](https://www.ruby-forum.com/u/freaxmind)\
**Replies:** 2\
**Last updated:** [May 3, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/application-focus/187820 "2010-05-03T22:09:03Z")

</div>

Hi there, I’m developping an application based on xmpp4r and WxRuby to download file between contacts. My application must handle incoming request and manage all the file upload proccess. Unfortunately, all proccess …

---

## [Gridtablebase with sql](https://www.ruby-forum.com/t/gridtablebase-with-sql/185145)

<div class="topic-metadata">

**Author:** [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 8:43am UTC](https://www.ruby-forum.com/t/gridtablebase-with-sql/185145 "2010-03-15T08:43:30Z")

</div>

Dear all How do I use gridtablebase to display record I get from sql? I try to follow the help and sample, but I don’t understand how to combine the sql data sample code would be good Thank you Regards Hendra

---

## [Question about "spreadsheet"](https://www.ruby-forum.com/t/question-about-spreadsheet/177066)

<div class="topic-metadata">

**Author:** [@rubina](https://www.ruby-forum.com/u/rubina)\
**Replies:** 2\
**Last updated:** [December 25, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/question-about-spreadsheet/177066 "2009-12-25T15:15:37Z")

</div>

I am trying to learn how to use “spreadsheet” so I can create an Excel file. To that effect, I installed: 1 - spreadsheet 2 - ruby-ole I noticed that the Rdoc for “spreadsheet” contains an example which looks simpl…

---

## [Opinion de este libro](https://www.ruby-forum.com/t/opinion-de-este-libro/175377)

<div class="topic-metadata">

**Author:** [@aprendiz\_ror](https://www.ruby-forum.com/u/aprendiz_ror)\
**Replies:** 2\
**Last updated:** [September 13, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/opinion-de-este-libro/175377 "2009-09-13T20:34:52Z")

</div>

http://www.agapea.com/libros/Desarrollo-Web-con-Rails-isbn-8441526443-i.htm por favor me dicen si este libro es la traduccion de agile web development tercera edicion o es que me parece. Puedo comprar el pdf? saludos …

---

## [How to persist file upload fields after a validation error](https://www.ruby-forum.com/t/how-to-persist-file-upload-fields-after-a-validation-error/170556)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 2\
**Last updated:** [June 19, 2009, 8:25am UTC](https://www.ruby-forum.com/t/how-to-persist-file-upload-fields-after-a-validation-error/170556 "2009-06-19T08:25:32Z")

</div>

Hi all, Is there an easy way to not lose the file field input from the user after a validation error? It pisses people off to have to choose their files again just because some other field didn’t pass a validation. …

---

## [Mock\_model with Rspec/Rspec-rails 1.2 and Rails 2.3](https://www.ruby-forum.com/t/mock-model-with-rspec-rspec-rails-1-2-and-rails-2-3/163198)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [March 18, 2009, 6:03pm UTC](https://www.ruby-forum.com/t/mock-model-with-rspec-rspec-rails-1-2-and-rails-2-3/163198 "2009-03-18T18:03:52Z")

</div>

Hi, Not sure if anyone has faced this problem yet and managed to resolve it… I understand Rspec ‘decoupled’ the mock frameworks, however it works fine with Rails 2.2 but fails in 2.3… Can anyone give me any pointers …

---

## [Gem Build Flags](https://www.ruby-forum.com/t/gem-build-flags/123146)

<div class="topic-metadata">

**Author:** [@Jens\_Thiede](https://www.ruby-forum.com/u/Jens_Thiede)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 1:48am UTC](https://www.ruby-forum.com/t/gem-build-flags/123146 "2007-12-18T01:48:57Z")

</div>

I’m trying to build the rubysdl gem on my x86 iMac. Everything seems to be fine, except I get linking errors because I don’t use an sdl library with support for PPC. In short, I’d like to get rid of the “-arch ppc” fl…

---

## [New plugin doesn't pickup tests?](https://www.ruby-forum.com/t/new-plugin-doesnt-pickup-tests/90827)

<div class="topic-metadata">

**Author:** [@Michael\_Moen](https://www.ruby-forum.com/u/Michael_Moen)\
**Replies:** 2\
**Last updated:** [April 2, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/new-plugin-doesnt-pickup-tests/90827 "2007-04-02T19:46:03Z")

</div>

I’m putting together a new plugin for internal use and I have a feeling I’m missing something. I have the test/\* directories setup: ./test/test\_helper.rb ./test/fixtures/users.yml ./test/functional/users\_controller\_t…

---

## [Inconsitent fault with my UserEngine/LoginEngine](https://www.ruby-forum.com/t/inconsitent-fault-with-my-userengine-loginengine/101785)

<div class="topic-metadata">

**Author:** [@rickerbh](https://www.ruby-forum.com/u/rickerbh)\
**Replies:** 2\
**Last updated:** [August 14, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/inconsitent-fault-with-my-userengine-loginengine/101785 "2006-08-14T23:23:09Z")

</div>

Hi, I’ve got a bizarre, seemingly random error with my instance of UserEngine or LoginEngine. It occurs sometimes when new users attempt to signup to my application. The error message in the log files is Unable to …

---

## [FTP#mget, FTP#mput](https://www.ruby-forum.com/t/ftp-mget-ftp-mput/60057)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [May 9, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/ftp-mget-ftp-mput/60057 "2006-05-09T21:33:33Z")

</div>

Hi all, Is there a method in Net::FTP that corresponds to ftp’s mget and mput functions? If not, is there any chance of adding this to ftp.rb? Thanks, Dan This communication is the property of Qwest and may contain…

---

## [Undefined local variable or method 'game'](https://www.ruby-forum.com/t/undefined-local-variable-or-method-game/217734)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 11, 2012, 2:02am UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-game/217734 "2012-03-11T02:02:58Z")

</div>

I am doing a web shop assignment and have got a problem with my action mailer. I get an error undefined local variable or method ‘game’ I have the following in my mailer: def game\_interest(user, game) @user = user @…

---

## [Building Jruby 1.5.1](https://www.ruby-forum.com/t/building-jruby-1-5-1/213314)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [November 1, 2011, 11:17am UTC](https://www.ruby-forum.com/t/building-jruby-1-5-1/213314 "2011-11-01T11:17:48Z")

</div>

Hi I am trying to integrate jruby into an application. For this these are the following steps I am following. → create a maven project → I have a manually downloaded JRuby 1.5.1 zip file. → I unzip it into a d…

---

## [Call For Help, follow up](https://www.ruby-forum.com/t/call-for-help-follow-up/208771)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [June 27, 2011, 12:28pm UTC](https://www.ruby-forum.com/t/call-for-help-follow-up/208771 "2011-06-27T12:28:08Z")

</div>

Eil, prima che tutti si scordino di nuovo della questione: ho messo il codice del wiki (quello che era su berlios + merge con quello che sta effettivamente girando) su github e ho creato un’organizzazione ruby-it c…

---

## [Rails 3 Mailer spec with arguments?](https://www.ruby-forum.com/t/rails-3-mailer-spec-with-arguments/190036)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 4\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/rails-3-mailer-spec-with-arguments/190036 "2010-06-17T16:22:35Z")

</div>

This came out of the mailer generator w/ Rspec-rails installed : describe Notifier do it “should deliver activation instructions message” do @expected.subject = “Activation instructions” @expected.to = “removed\_…

---

## [Rake Aborted wont Migrate mysql](https://www.ruby-forum.com/t/rake-aborted-wont-migrate-mysql/181923)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 4\
**Last updated:** [January 20, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/rake-aborted-wont-migrate-mysql/181923 "2010-01-20T22:47:13Z")

</div>

Hello all, I’ve been trying to get ruby on rails to work with my local install of mysql(its with wamp). Windows XP, Ruby 1.8.6, rails 2.3.5, rubygems 1.3.5, mysql 5.2 something I believe. I have ruby installed in: C:…

---

## [Attempt to rewrite using slightly deprecated /foo.php/bar/ methods](https://www.ruby-forum.com/t/attempt-to-rewrite-using-slightly-deprecated-foo-php-bar-methods/177879)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [October 27, 2009, 10:28am UTC](https://www.ruby-forum.com/t/attempt-to-rewrite-using-slightly-deprecated-foo-php-bar-methods/177879 "2009-10-27T10:28:27Z")

</div>

I have a script which has aliases like /login and such. If the file does not exist, it’s supposed to go to /controller.php/login Where controller.php will look up based on the URI and a whitelist of aliases and load …

---

## [An Issue with CLR Delegates](https://www.ruby-forum.com/t/an-issue-with-clr-delegates/169841)

<div class="topic-metadata">

**Author:** [@shayfriedman](https://www.ruby-forum.com/u/shayfriedman)\
**Replies:** 4\
**Last updated:** [June 9, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/an-issue-with-clr-delegates/169841 "2009-06-09T22:07:22Z")

</div>

Hi, Today I’m playing with CLR delegates :slight\_smile: I’ve run into a strange behavior. Take a look at the next C# block: public class Printer { public delegate void PrintValue(string value); } Assuming the abo…

---

## [Strinpping html using regexp](https://www.ruby-forum.com/t/strinpping-html-using-regexp/167215)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 4\
**Last updated:** [May 6, 2009, 12:15am UTC](https://www.ruby-forum.com/t/strinpping-html-using-regexp/167215 "2009-05-06T00:15:08Z")

</div>

Hi, I want to remove the all html tags in a string using regexp. But the main thing is I dont want to use gsub or any other methods for it. I want pure regexp to fetch the data other than the html tags. Can anybody p…

---

## [Spec'ing chained calls](https://www.ruby-forum.com/t/specing-chained-calls/162766)

<div class="topic-metadata">

**Author:** [@Levy\_Carneiro\_Jr](https://www.ruby-forum.com/u/Levy_Carneiro_Jr)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/specing-chained-calls/162766 "2009-03-17T12:40:56Z")

</div>

Hello! I’m trying to spec a method, that has several chained calls. 78562’s gists · GitHub (spec) 78563’s gists · GitHub (model) In the first spec, I’m trying to focus on the method calls that have to be made, and …

---

## [Rspec, rspec-rails 1.1.99-12 and script/spec 'no such file to load -- spec'](https://www.ruby-forum.com/t/rspec-rspec-rails-1-1-99-12-and-script-spec-no-such-file-to-load-spec/162254)

<div class="topic-metadata">

**Author:** [@rockrep](https://www.ruby-forum.com/u/rockrep)\
**Replies:** 4\
**Last updated:** [March 15, 2009, 5:58am UTC](https://www.ruby-forum.com/t/rspec-rspec-rails-1-1-99-12-and-script-spec-no-such-file-to-load-spec/162254 "2009-03-15T05:58:52Z")

</div>

Hi David, all: I just recently upgraded to Rails 2.3.1RC2 (Mac OS.X 10.5.6, ruby 1.8.7 (2008-08-11 patchlevel 72) \[i686-darwin9\]) and have been dilligently following the instructions for upgrading rspec and rspec- r…

---

## [Problemas al actualizar rails](https://www.ruby-forum.com/t/problemas-al-actualizar-rails/153072)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 9:18am UTC](https://www.ruby-forum.com/t/problemas-al-actualizar-rails/153072 "2008-11-12T09:18:05Z")

</div>

hola lista actualice la version de rails que tenia anteriormente para ello actualice el rubygems pase de la version 2.0.2 de rails a la 2.2.0 primeramente me dio este fallo al levantar el servidor Cannot find gem for…

---

## [How to retrieve console input in a ruby class](https://www.ruby-forum.com/t/how-to-retrieve-console-input-in-a-ruby-class/151878)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 4\
**Last updated:** [October 27, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-console-input-in-a-ruby-class/151878 "2008-10-27T19:35:15Z")

</div>

How to retrieve console input in a ruby class Hi. Suppose I have a db table ‘users’: username, password, email etc and a ruby class User. In the rails console I type: u = User.new u.password = ‘123’ … u.save From …

---

## [How to format text in the mailer?](https://www.ruby-forum.com/t/how-to-format-text-in-the-mailer/150152)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [October 5, 2008, 12:57am UTC](https://www.ruby-forum.com/t/how-to-format-text-in-the-mailer/150152 "2008-10-05T00:57:45Z")

</div>

Suppose site\_name = “Company XYZ” I would like to Underline the site name in the emails subject line as in: site\_name = “Company XYZ” ---------- What is the easiest way for doing this? Thanks. Bharat

---

## [OT: Ruby question: alternative to begin/ensure block](https://www.ruby-forum.com/t/ot-ruby-question-alternative-to-begin-ensure-block/141800)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 4\
**Last updated:** [June 30, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/ot-ruby-question-alternative-to-begin-ensure-block/141800 "2008-06-30T19:00:34Z")

</div>

Sorry for asking a purely Ruby question, but somebody on the list knows the answer to this. Are there any alternatives to begin/ensure blocks that can be used to ensure that specific cleanup code gets executed? In my…

---

## [Dispatch.cgi et hÃ©bergement](https://www.ruby-forum.com/t/dispatch-cgi-et-ha-bergement/135265)

<div class="topic-metadata">

**Author:** [@tnntwister](https://www.ruby-forum.com/u/tnntwister)\
**Replies:** 4\
**Last updated:** [April 20, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/dispatch-cgi-et-ha-bergement/135265 "2008-04-20T13:32:17Z")

</div>

Bonjour, je cherche à comprendre comment se passe un hébergement rails pour savoir quelle réponse donnée à mon hébergeur (GANDI) Quand je lui ai posé la question de savoir ce que je devais faire pour configurer mon s…

---

## [Writing an "upto" block in Rails](https://www.ruby-forum.com/t/writing-an-upto-block-in-rails/133106)

<div class="topic-metadata">

**Author:** [@sara231](https://www.ruby-forum.com/u/sara231)\
**Replies:** 4\
**Last updated:** [March 27, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/writing-an-upto-block-in-rails/133106 "2008-03-27T21:24:53Z")

</div>

I am trying to loop through records in a db and pull out a particular field. I have no problem with the code when I run it in the console; however when I try to transfer the code to my Rails environment it fails. Th…

---

## [Active scaffold config question](https://www.ruby-forum.com/t/active-scaffold-config-question/128509)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 4\
**Last updated:** [February 28, 2008, 2:25am UTC](https://www.ruby-forum.com/t/active-scaffold-config-question/128509 "2008-02-28T02:25:39Z")

</div>

i am using active scaffold and have a question on the search. I changed the default full text search to a field search successfully with this in my controller: config.actions.exclude :search config.actions \<\< :field…

---

## [Where did my uploaded file go?](https://www.ruby-forum.com/t/where-did-my-uploaded-file-go/126179)

<div class="topic-metadata">

**Author:** [@jojobert](https://www.ruby-forum.com/u/jojobert)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 1:54am UTC](https://www.ruby-forum.com/t/where-did-my-uploaded-file-go/126179 "2008-01-17T01:54:04Z")

</div>

Hi, i have made a file uploading function on my application, the thing is i want to allow my users to download the file (can be pdf, doc, img, etc) so in my file upload controller: def download @photo = Photo.find(…

---

## [Acts\_as\_tree "soft destroy", ie. "move up" children](https://www.ruby-forum.com/t/acts-as-tree-soft-destroy-ie-move-up-children/120316)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 4\
**Last updated:** [November 15, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/acts-as-tree-soft-destroy-ie-move-up-children/120316 "2007-11-15T23:17:11Z")

</div>

By default, when you destroy a parent node all of the children nodes are destroyed as well. Is there a way I can modify this so that when you destroy a parent node all the children nodes are simply “moved up” within t…

---

## [Force file write in dos format](https://www.ruby-forum.com/t/force-file-write-in-dos-format/113545)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 4\
**Last updated:** [September 2, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/force-file-write-in-dos-format/113545 "2007-09-02T22:18:15Z")

</div>

Is there any built-in way to force File.puts to use dos line endings, regardless of the platform under which the program is running? martin

---

## [Rake db:bootstrap migrates to v3 and then stops](https://www.ruby-forum.com/t/rake-db-bootstrap-migrates-to-v3-and-then-stops/112683)

<div class="topic-metadata">

**Author:** [@Jimmy\_Soho](https://www.ruby-forum.com/u/Jimmy_Soho)\
**Replies:** 4\
**Last updated:** [August 22, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-migrates-to-v3-and-then-stops/112683 "2007-08-22T16:32:31Z")

</div>

Hi All, I’m a complete newby to ruby, installed all the latest versions, etc. Using latest mySQL. Running rake production db:bootstrap doesn’t work for me. See output below. For some reason it doesn’t seem to go pa…

---

## [Already initialized constant OPTIONS help please!](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653)

<div class="topic-metadata">

**Author:** [@DMDMDM](https://www.ruby-forum.com/u/DMDMDM)\
**Replies:** 4\
**Last updated:** [July 6, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/already-initialized-constant-options-help-please/108653 "2007-07-06T23:11:42Z")

</div>

=\> Booting WEBrick… c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:11: warning: already initialized constant OPTIONS =\> Booting WEBrick… c:/RUBY186-25/lib/ruby/gems/1.8/gems/rails-1.…

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

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