# Top

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

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

---

## [Error while starting rails over "ruby script/server"](https://www.ruby-forum.com/t/error-while-starting-rails-over-ruby-script-server/161607)

<div class="topic-metadata">

**Author:** [@thearchitect](https://www.ruby-forum.com/u/thearchitect)\
**Replies:** 1\
**Last updated:** [March 6, 2009, 3:37am UTC](https://www.ruby-forum.com/t/error-while-starting-rails-over-ruby-script-server/161607 "2009-03-06T03:37:14Z")

</div>

I am very new to Ruby on Rails, but also very excited to get those things started. I downloaded and installed “BitNami RubyStack Stack 1.4-beta-1” which includes all necessary tools for running RoR offline under OS X …

---

## [Deamons.rb: changing the pid directory](https://www.ruby-forum.com/t/deamons-rb-changing-the-pid-directory/150715)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 1\
**Last updated:** [October 12, 2008, 11:28am UTC](https://www.ruby-forum.com/t/deamons-rb-changing-the-pid-directory/150715 "2008-10-12T11:28:13Z")

</div>

Hey folks, Does anyone know how I can change the directory that the pid file is put in when using the Daemons gem (http://daemons.rubyforge.org/) ? Thanks! Mike

---

## [How to throw java's exception in jruby?](https://www.ruby-forum.com/t/how-to-throw-javas-exception-in-jruby/140350)

<div class="topic-metadata">

**Author:** [@dennis\_zhuang](https://www.ruby-forum.com/u/dennis_zhuang)\
**Replies:** 1\
**Last updated:** [June 13, 2008, 9:12am UTC](https://www.ruby-forum.com/t/how-to-throw-javas-exception-in-jruby/140350 "2008-06-13T09:12:33Z")

</div>

I tried require ‘java’ include\_class “java.io.IOException” raise IOException,“test”,caller It dose not work,any suggestion?Thanks a lot.

---

## [Save checkbox checked or unchecked from previous page](https://www.ruby-forum.com/t/save-checkbox-checked-or-unchecked-from-previous-page/135430)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/save-checkbox-checked-or-unchecked-from-previous-page/135430 "2008-04-22T19:21:04Z")

</div>

i have checkbox list on my page ,the page devided into several pages by will\_paginate ,i checked the checkboxs on the first page and when i go next page the information on previous page will refreshed . how can i save…

---

## [Removing "is invalid" msgs in validates\_associated](https://www.ruby-forum.com/t/removing-is-invalid-msgs-in-validates-associated/89653)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/removing-is-invalid-msgs-in-validates-associated/89653 "2007-03-21T22:23:14Z")

</div>

All, When using validates\_associated to cause cascading validation from my parent AR class into it’s children, by default a “\_\_\_\_\_ is invalid” message is added to the errors collection for the parent for each child o…

---

## [Programming the USRP using Altera DSPBuilder and Simulink](https://www.ruby-forum.com/t/programming-the-usrp-using-altera-dspbuilder-and-simulink/86011)

<div class="topic-metadata">

**Author:** [@aymanshalaby](https://www.ruby-forum.com/u/aymanshalaby)\
**Replies:** 1\
**Last updated:** [February 19, 2007, 1:08am UTC](https://www.ruby-forum.com/t/programming-the-usrp-using-altera-dspbuilder-and-simulink/86011 "2007-02-19T01:08:31Z")

</div>

Dear ALL I’d like 1st to introduce myself I’m Ayman Shalaby final year undergraduate student at Alexandria University ,Egypt. For our project we are implementing the PHY layer and MAC privacy sublayer of the OFDM P…

---

## [Define\_method and alias\_method is not relevant to class\_eval](https://www.ruby-forum.com/t/define-method-and-alias-method-is-not-relevant-to-class-eval/84612)

<div class="topic-metadata">

**Author:** [@pool007](https://www.ruby-forum.com/u/pool007)\
**Replies:** 1\
**Last updated:** [February 8, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/define-method-and-alias-method-is-not-relevant-to-class-eval/84612 "2007-02-08T15:35:24Z")

</div>

Hi. I have a question on the semantics of define\_method and alias\_method. Let me start with class\_eval and instance\_eval. Following is the excerpt from ri class\_eval and ri instance\_eval: Module.class\_eval Evaluat…

---

## [Postgres + tsearch2, migrations, and unit testing](https://www.ruby-forum.com/t/postgres-tsearch2-migrations-and-unit-testing/84335)

<div class="topic-metadata">

**Author:** [@phillyloco](https://www.ruby-forum.com/u/phillyloco)\
**Replies:** 1\
**Last updated:** [February 3, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/postgres-tsearch2-migrations-and-unit-testing/84335 "2007-02-03T23:17:21Z")

</div>

I’m sure people have encountered this before, but I’ve been unsuccessful at finding anything about it. Basically, I got a rails app that uses postgres and tsearch2 for some full text indexing and I’d like to be perfor…

---

## [Ruby Forum UI suggestions](https://www.ruby-forum.com/t/ruby-forum-ui-suggestions/69018)

<div class="topic-metadata">

**Author:** [@xia](https://www.ruby-forum.com/u/xia)\
**Replies:** 1\
**Last updated:** [September 18, 2006, 5:47am UTC](https://www.ruby-forum.com/t/ruby-forum-ui-suggestions/69018 "2006-09-18T05:47:20Z")

</div>

Please make available: search on user name page 1 of x in search results sort search results by date and/or relevance (my preference is for date by default, newest first) search results be filtered by thread so that…

---

## [New Feature](https://www.ruby-forum.com/t/new-feature/84072)

<div class="topic-metadata">

**Author:** [@devender](https://www.ruby-forum.com/u/devender)\
**Replies:** 1\
**Last updated:** [March 23, 2006, 2:26am UTC](https://www.ruby-forum.com/t/new-feature/84072 "2006-03-23T02:26:39Z")

</div>

Greetings, I recently started using the login engine, one the first things we needed was the ability for a user to click a “remember-me” type of check box and a cookie be set. I was able to accomplish this in the l…

---

## [Do I need WEBrick?](https://www.ruby-forum.com/t/do-i-need-webrick/217409)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 1, 2012, 5:24am UTC](https://www.ruby-forum.com/t/do-i-need-webrick/217409 "2012-03-01T05:24:10Z")

</div>

Hello, I started a class on RoR, and the instructor is using WEBrick, which he says “ships with Rails.” Is that still true? I’ve followed all the other instructions, I believe, and I’m not getting good messages whe…

---

## [Code to update all fields and columns in table with specific value?](https://www.ruby-forum.com/t/code-to-update-all-fields-and-columns-in-table-with-specific-value/201116)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [December 30, 2010, 7:04pm UTC](https://www.ruby-forum.com/t/code-to-update-all-fields-and-columns-in-table-with-specific-value/201116 "2010-12-30T19:04:54Z")

</div>

I just created a migration which changes my default values for string and text fields to empty string rather than nil. I need to update all existing records where a string or text field in this table is nil. This is…

---

## [Ruby 1.9 path](https://www.ruby-forum.com/t/ruby-1-9-path/193574)

<div class="topic-metadata">

**Author:** [@luisfgnr](https://www.ruby-forum.com/u/luisfgnr)\
**Replies:** 5\
**Last updated:** [August 19, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/ruby-1-9-path/193574 "2010-08-19T23:11:59Z")

</div>

i have installed ruby 1.9.1 but… when i execute it … on shell drdos@drd0s-f00 ~ $ whereis ruby ruby: /usr/bin/ruby1.9 /usr/lib/ruby drdos@drd0s-f00 ~ $ ruby The program ‘ruby’ is currently not installed. You can ins…

---

## [Ruby/DL problem](https://www.ruby-forum.com/t/ruby-dl-problem/191015)

<div class="topic-metadata">

**Author:** [@Aston](https://www.ruby-forum.com/u/Aston)\
**Replies:** 5\
**Last updated:** [July 6, 2010, 1:38am UTC](https://www.ruby-forum.com/t/ruby-dl-problem/191015 "2010-07-06T01:38:15Z")

</div>

Hello, I have very little experience with dl. But I want to use it to call SetEnvironmentVariable() from Win32. I could use FFI but cannot, since this script will be supplied to a customer where it is difficult to in…

---

## [Anyone can help me to combine these 2 lines?](https://www.ruby-forum.com/t/anyone-can-help-me-to-combine-these-2-lines/188699)

<div class="topic-metadata">

**Author:** [@kamanwu](https://www.ruby-forum.com/u/kamanwu)\
**Replies:** 5\
**Last updated:** [May 17, 2010, 12:33am UTC](https://www.ruby-forum.com/t/anyone-can-help-me-to-combine-these-2-lines/188699 "2010-05-17T00:33:56Z")

</div>

I just want to set…if $http\_user\_agent equals AAA or BBB or empty (“”)…then return 400…Thanks… if ($http\_user\_agent ~ (AAA|BBB)) {return 400;} if ($http\_user\_agent = "") {return 400;} Posted at Nginx Forum:

---

## [Multiple "identical" tables](https://www.ruby-forum.com/t/multiple-identical-tables/182940)

<div class="topic-metadata">

**Author:** [@bluegreen](https://www.ruby-forum.com/u/bluegreen)\
**Replies:** 5\
**Last updated:** [February 5, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/multiple-identical-tables/182940 "2010-02-05T18:39:29Z")

</div>

Hi, there. I was wondering if it’s possible to have one controller and view that has multiple tables. Let say there are 10 schools. Each school has a table to stores students’ info. So one Student controller with 1…

---

## [Noob DRY method question](https://www.ruby-forum.com/t/noob-dry-method-question/174408)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 5\
**Last updated:** [August 27, 2009, 11:06am UTC](https://www.ruby-forum.com/t/noob-dry-method-question/174408 "2009-08-27T11:06:35Z")

</div>

Hi Gurus, I’m learning the Rails framework, and I have this exact block of html/javascript in two places in an if/else construct in application.html.erb: Trying to be DRY, I’d like to put that html/javascript somewhe…

---

## [Param with map.resources](https://www.ruby-forum.com/t/param-with-map-resources/149893)

<div class="topic-metadata">

**Author:** [@ISESSmith-Heister](https://www.ruby-forum.com/u/ISESSmith-Heister)\
**Replies:** 5\
**Last updated:** [October 2, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/param-with-map-resources/149893 "2008-10-02T20:46:11Z")

</div>

Hi all, With ye olde routes, you could do stuff like: map.connect ‘/foo/:id’, :controller =\> ‘bar’, :type =\> ‘foo’ but you can’t pass arbitrary params into #resources: map.resources :foo, :controller =\> ‘bar’, :type …

---

## [Calling a controller method in javascript](https://www.ruby-forum.com/t/calling-a-controller-method-in-javascript/141654)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 9:59am UTC](https://www.ruby-forum.com/t/calling-a-controller-method-in-javascript/141654 "2008-06-30T09:59:45Z")

</div>

Hi all, I want to call a method present in ROR controller in my javascript for performing some logout activities. How can I do this Please help me Thanks and regards,

---

## [Syntax](https://www.ruby-forum.com/t/syntax/141568)

<div class="topic-metadata">

**Author:** [@northwind](https://www.ruby-forum.com/u/northwind)\
**Replies:** 5\
**Last updated:** [June 27, 2008, 9:43am UTC](https://www.ruby-forum.com/t/syntax/141568 "2008-06-27T09:43:08Z")

</div>

Hi, Can someone point me to a resource to learn about syntax like this: “%#{search}%” I understand everything but the two percent signs. I tried googling but various searches on curly braces and percent signs broug…

---

## [To\_json failing with column named y](https://www.ruby-forum.com/t/to-json-failing-with-column-named-y/133643)

<div class="topic-metadata">

**Author:** [@Roel](https://www.ruby-forum.com/u/Roel)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 2:44am UTC](https://www.ruby-forum.com/t/to-json-failing-with-column-named-y/133643 "2008-04-03T02:44:23Z")

</div>

Found this: http://dev.rubyonrails.org/ticket/9797 However, doesn’t seem to solve my issue. I run this: Foo.find(:first).to\_json(:include =\> { :bar =\> { :only =\> \[:x,:y\] } } ) or Foo.find(:first).to\_json(:include =\>…

---

## [Simple Question](https://www.ruby-forum.com/t/simple-question/133005)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 5\
**Last updated:** [March 26, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/simple-question/133005 "2008-03-26T17:34:52Z")

</div>

Hi- This should be an easy one to answer… Is it possible to return an array from a function? Example (although a very bad one): def test(val1,val2) myarr = Array.new myarr = \[val1,val2\] return myarr end begin t…

---

## [How to unit test Rails itself (API)?](https://www.ruby-forum.com/t/how-to-unit-test-rails-itself-api/132459)

<div class="topic-metadata">

**Author:** [@liuxlsh](https://www.ruby-forum.com/u/liuxlsh)\
**Replies:** 5\
**Last updated:** [March 21, 2008, 3:01am UTC](https://www.ruby-forum.com/t/how-to-unit-test-rails-itself-api/132459 "2008-03-21T03:01:33Z")

</div>

Hello, I searched unit test for Rails on internet, but all the results are for testing Rails APPLICATION generated by Rails. But I think Rails itself needs unit test, too. I need to make sure that all APIs/methods of…

---

## [Ruby on Rails Roast or Toast](https://www.ruby-forum.com/t/ruby-on-rails-roast-or-toast/124683)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 1, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-roast-or-toast/124683 "2008-01-01T22:49:18Z")

</div>

I’ve been reading a lot about Ruby and we even have an open source solution to support it. I’ve been trying to track down some performance info for a prospect, but have found a lot of anecdotal information to support…

---

## [Connection pool](https://www.ruby-forum.com/t/connection-pool/120564)

<div class="topic-metadata">

**Author:** [@Aleksandar\_L](https://www.ruby-forum.com/u/Aleksandar_L)\
**Replies:** 5\
**Last updated:** [November 19, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/connection-pool/120564 "2007-11-19T14:34:11Z")

</div>

Hi, where is the best place to add a connection pool, for proxy backends into nginx? cheers Aleks

---

## [Why does every update fires a select first?](https://www.ruby-forum.com/t/why-does-every-update-fires-a-select-first/112464)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 5\
**Last updated:** [August 20, 2007, 6:34am UTC](https://www.ruby-forum.com/t/why-does-every-update-fires-a-select-first/112464 "2007-08-20T06:34:36Z")

</div>

In console: List.update(1, :updated\_at=\>Time.now) In log file: SELECT \* FROM lists WHERE (lists.id = 1) SQL (0.000000) BEGIN List Update (0.000000) UPDATE lists SET created\_at = ‘2007-08-10 23:15:36’, desc = NULL, p…

---

## [Rake Migrate failing - but can't find syntax errors](https://www.ruby-forum.com/t/rake-migrate-failing-but-cant-find-syntax-errors/106252)

<div class="topic-metadata">

**Author:** [@patwa](https://www.ruby-forum.com/u/patwa)\
**Replies:** 5\
**Last updated:** [June 8, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/rake-migrate-failing-but-cant-find-syntax-errors/106252 "2007-06-08T16:34:39Z")

</div>

Hello, I’m following a guide on creating a migration, but the migrate is failing due to the following errors: Line 7: Unexpected ‘\\n’ expecting tCOLON2 or ‘{’ or ‘.’ Line 14: $END expecting KEND But I can’t find any…

---

## [RejectConf @RailsConf](https://www.ruby-forum.com/t/rejectconf-railsconf/86439)

<div class="topic-metadata">

**Author:** [@rrwhite](https://www.ruby-forum.com/u/rrwhite)\
**Replies:** 5\
**Last updated:** [May 11, 2007, 12:09am UTC](https://www.ruby-forum.com/t/rejectconf-railsconf/86439 "2007-05-11T00:09:03Z")

</div>

I heard about the success that was RejectConf which was put on in parallel to RubyConf for all those who’s presentation proposals got shot down. I definitely interested in seeing something like this put together for R…

---

## [Model question](https://www.ruby-forum.com/t/model-question/81829)

<div class="topic-metadata">

**Author:** [@mveerman](https://www.ruby-forum.com/u/mveerman)\
**Replies:** 5\
**Last updated:** [January 15, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/model-question/81829 "2007-01-15T17:57:42Z")

</div>

Hello, I’m building a contact management system for a small school and I’m having trouble coming up with the right data-model that works well with Rails. Here’s the mysql contacts id first\_name last\_name … dono…

---

## [Why ruby?](https://www.ruby-forum.com/t/why-ruby/78064)

<div class="topic-metadata">

**Author:** [@santosh](https://www.ruby-forum.com/u/santosh)\
**Replies:** 5\
**Last updated:** [December 4, 2006, 3:22am UTC](https://www.ruby-forum.com/t/why-ruby/78064 "2006-12-04T03:22:06Z")

</div>

why we use ruby rather than other language.

---

## [Outputting the content of all parts of a page](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972)

<div class="topic-metadata">

**Author:** [@ralph](https://www.ruby-forum.com/u/ralph)\
**Replies:** 5\
**Last updated:** [September 18, 2006, 12:07pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972 "2006-09-18T12:07:25Z")

</div>

Hello, is there a way to tell radiant to output all the parts of a page without naming them explicitly? This would allow me to split large pages into smaller chunks that are easier to handle. Thanks Ralph

---

## [Q: How to use non-builtin class as hash key?](https://www.ruby-forum.com/t/q-how-to-use-non-builtin-class-as-hash-key/67166)

<div class="topic-metadata">

**Author:** [@Jia\_Pu](https://www.ruby-forum.com/u/Jia_Pu)\
**Replies:** 5\
**Last updated:** [September 1, 2006, 4:08pm UTC](https://www.ruby-forum.com/t/q-how-to-use-non-builtin-class-as-hash-key/67166 "2006-09-01T16:08:27Z")

</div>

I have a class defined as: ########################### class MyClass def initialize(s1, s2, s3) @string1 = s1 @string2 = s2 @string3 = s3 end def hash return (@string1 + @string2 + @string3).hash end end ##…

---

## [Control plane/Data plan communication using file descriptors](https://www.ruby-forum.com/t/control-plane-data-plan-communication-using-file-descriptors/65817)

<div class="topic-metadata">

**Author:** [@jconley](https://www.ruby-forum.com/u/jconley)\
**Replies:** 5\
**Last updated:** [August 21, 2006, 9:30pm UTC](https://www.ruby-forum.com/t/control-plane-data-plan-communication-using-file-descriptors/65817 "2006-08-21T21:30:20Z")

</div>

‘waterfallsink.py’ uses pipes as an IPC mechanism to get data from one thread (running gnuradio dispatch loop) to another thread (running wxPython’s dispatch loop), by creating a pipe and using file\_descriptor\_sink/so…

---

## [Libhxml Node#remove! kills each loop and extension to #\<\<](https://www.ruby-forum.com/t/libhxml-node-remove-kills-each-loop-and-extension-to/97581)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 2:24pm UTC](https://www.ruby-forum.com/t/libhxml-node-remove-kills-each-loop-and-extension-to/97581 "2006-08-03T14:24:15Z")

</div>

hi, While using #each to loop thru the children of a Node, if I remove a node the loop breaks on it’s own. root.each { |node| if XML::Node === node node.content = “yep” node.remove! if node\[‘id…

---

## [Monitor fcgi?](https://www.ruby-forum.com/t/monitor-fcgi/101002)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 5\
**Last updated:** [August 3, 2006, 9:03am UTC](https://www.ruby-forum.com/t/monitor-fcgi/101002 "2006-08-03T09:03:36Z")

</div>

Im trying to get a new app up on dreamhost. What fun :confused: Id like to try out the ‘frao\_handler’ which just keeps dreamhost from automatically killing my fcgi processes. But Im also worried about things getting…

---

## [Validates\_peresence\_of](https://www.ruby-forum.com/t/validates-peresence-of/98098)

<div class="topic-metadata">

**Author:** [@Yngwie](https://www.ruby-forum.com/u/Yngwie)\
**Replies:** 5\
**Last updated:** [July 12, 2006, 7:44pm UTC](https://www.ruby-forum.com/t/validates-peresence-of/98098 "2006-07-12T19:44:25Z")

</div>

Is there an expert validater that can point me in the right direction? I’ve looked for extended documentation on ‘validates\_presence\_of’ but i can’t seem to find any. I’m trying to make sure that i don’t enter a nil o…

---

## [Lookup from related tables](https://www.ruby-forum.com/t/lookup-from-related-tables/98657)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [January 30, 2006, 7:24am UTC](https://www.ruby-forum.com/t/lookup-from-related-tables/98657 "2006-01-30T07:24:45Z")

</div>

I have been working on this for 3 days and haven’t been able to solve it. I have 2 tables… clients belongs\_to: case\_managers case\_managers has\_many: clients When entering new clients, I need to have some type of s…

---

## [Rails and PostgreSQL](https://www.ruby-forum.com/t/rails-and-postgresql/49718)

<div class="topic-metadata">

**Author:** [@colinfreas](https://www.ruby-forum.com/u/colinfreas)\
**Replies:** 5\
**Last updated:** [December 8, 2005, 4:00pm UTC](https://www.ruby-forum.com/t/rails-and-postgresql/49718 "2005-12-08T16:00:37Z")

</div>

I’m trying to get Rails up and running using a PostgreSQL database, and unfortunately I’m doing this on a machine I don’t administer directly. I can get Rails responding using the WEBrick server, and ‘hello, world’ pa…

---

## [Migrations in current dir, not RAILS\_ROOT](https://www.ruby-forum.com/t/migrations-in-current-dir-not-rails-root/48664)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 5\
**Last updated:** [November 17, 2005, 11:29am UTC](https://www.ruby-forum.com/t/migrations-in-current-dir-not-rails-root/48664 "2005-11-17T11:29:48Z")

</div>

I’m playing around with engines, and want to see if I can get migrations working with them. According to rake --tasks, the migrate task will “migrate the database according to the migrate scripts in db/migrate (only …

---

## [Best practice to handle this](https://www.ruby-forum.com/t/best-practice-to-handle-this/225730)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 28, 2013, 12:44pm UTC](https://www.ruby-forum.com/t/best-practice-to-handle-this/225730 "2013-01-28T12:44:50Z")

</div>

Hi! I have a model which has a field that can have three values only. I store the value in the database as an integer, 0, 1 or 2, but when I display it I want a more appropriate text. And, I want it to be translatab…

---

## [Function cost minimization](https://www.ruby-forum.com/t/function-cost-minimization/215718)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 14, 2012, 4:33am UTC](https://www.ruby-forum.com/t/function-cost-minimization/215718 "2012-01-14T04:33:21Z")

</div>

I have to do the minimization of a cost function based on parameters (gradient descent). Is there a decent ruby gem (that works with rails) to do this? Thanks in advance

---

## [Setting an error\_page for upstream timeouts](https://www.ruby-forum.com/t/setting-an-error-page-for-upstream-timeouts/215133)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 24, 2011, 4:05am UTC](https://www.ruby-forum.com/t/setting-an-error-page-for-upstream-timeouts/215133 "2011-12-24T04:05:49Z")

</div>

I have a seemingly simple question about configuration, but have been unable to find the answer through searching so far. I just want to override the default 504 page when the upstream server times out, which I would …

---

## [WIN32OLE taking 100% CPU utilisation](https://www.ruby-forum.com/t/win32ole-taking-100-cpu-utilisation/214787)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 20, 2011, 1:39pm UTC](https://www.ruby-forum.com/t/win32ole-taking-100-cpu-utilisation/214787 "2011-12-20T13:39:20Z")

</div>

Hi there, just having a quick play with WIN32OLE and it looks like the message\_loop is taking 100% CPU utilisation. What have I done wrong? This is running on ruby 1.9.2p136 in WinXP and using Office 2007. http://pa…

---

## [Build mobile apps for Rails sites — Would XML/JSON passing be the best approach?](https://www.ruby-forum.com/t/build-mobile-apps-for-rails-sites-would-xml-json-passing-be-the-best-approach/214082)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [November 21, 2011, 5:31pm UTC](https://www.ruby-forum.com/t/build-mobile-apps-for-rails-sites-would-xml-json-passing-be-the-best-approach/214082 "2011-11-21T17:31:13Z")

</div>

Good evening, I am strongly considering building my project using Rails. My project will provide a web-interface and a mobile app. I was thinking to build the mobile app from XML sheets, i.e.: \<?xml version="1.0" enc…

---

## [Installing RoR](https://www.ruby-forum.com/t/installing-ror/213041)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [October 23, 2011, 12:26am UTC](https://www.ruby-forum.com/t/installing-ror/213041 "2011-10-23T00:26:32Z")

</div>

Related with Installing Rails in RoR - Rails - Ruby-Forum I’m trying to install RoR on Windows XP x86 by using CYGWIN. The versions I have installed are: gem -v 1.8.10 ruby -v ruby 1.8.7 (2008-08-11 patchlevel …

---

## [Checkbox use question](https://www.ruby-forum.com/t/checkbox-use-question/212206)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [October 2, 2011, 3:32pm UTC](https://www.ruby-forum.com/t/checkbox-use-question/212206 "2011-10-02T15:32:20Z")

</div>

Hi, how can I use checkbox in a form to show all customers from table customers, Course Users Customers ========= ========= ============= user\_id customer\_id Customer\_name I would like to s…

---

## [Problem in installing rails 3.1.0](https://www.ruby-forum.com/t/problem-in-installing-rails-3-1-0/211717)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [September 12, 2011, 9:51am UTC](https://www.ruby-forum.com/t/problem-in-installing-rails-3-1-0/211717 "2011-09-12T09:51:52Z")

</div>

Hi , Presently i am installing rails in my ubuntu system(Ubuntu 10.04.3 LTS) using following commad gem install rails -v “\>=3.1.0” When i am trying to install desk@desk-pc:~$ gem install rails -v “\>=3.1.0” Successf…

---

## [gemTwitter: qualche problemino](https://www.ruby-forum.com/t/gemtwitter-qualche-problemino/206186)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [April 26, 2011, 8:42am UTC](https://www.ruby-forum.com/t/gemtwitter-qualche-problemino/206186 "2011-04-26T08:42:15Z")

</div>

Come da titolo, vorrei lavorare con la gemma Twitter. Ora, questo è uno script (copiato da html.it) presente nella guida. Vorrei chiedere a voi perchè non funziona require ‘rubygems’ require ‘twitter’ Twitter::Clien…

---

## [Unrecognized exception in gr-uhd](https://www.ruby-forum.com/t/unrecognized-exception-in-gr-uhd/202120)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 22, 2011, 2:00am UTC](https://www.ruby-forum.com/t/unrecognized-exception-in-gr-uhd/202120 "2011-01-22T02:00:25Z")

</div>

Greetings, Using the latest gnuradio/next v3.3.1git-865-gd429522b and UHD from yesterday (commit c14bbffbebb817fc1c622785094268fe68164c60) I get thread\[thread-per-block\[0\]: \<gr\_block uhd single\_usrp source (1)\>\]: cau…

---

## [How to get rspec running?](https://www.ruby-forum.com/t/how-to-get-rspec-running/199396)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 4\
**Last updated:** [November 22, 2010, 11:44am UTC](https://www.ruby-forum.com/t/how-to-get-rspec-running/199396 "2010-11-22T11:44:08Z")

</div>

I’m quite new to RoR and recently worked through Michael H.'s Rail Tutorial. Now that I had started my first own project and began with the implementation of a first model and it’s controller. The tests I wanted to im…

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

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