# Top

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

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

---

## [Advice for jetty setup?](https://www.ruby-forum.com/t/advice-for-jetty-setup/170614)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [June 19, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/advice-for-jetty-setup/170614 "2009-06-19T18:40:20Z")

</div>

Are any of you guys in fact using jetty for deploying a publically-available version of blacklight? Using the demo app, can anyone give me some advice for ensuring that jetty automatically starts on machine bootup (or…

---

## [Will paginate?](https://www.ruby-forum.com/t/will-paginate/141137)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [June 22, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/will-paginate/141137 "2008-06-22T14:30:25Z")

</div>

I installed the gem will\_paginate and made a simple view to mess out how it works in the controller i have @sites = Site.paginate :per\_page =\> 10, :page =\> params\[:page\] simple view \<% for @sites in @sites %\> \<%= @…

---

## [Colspan not working in FireFox! HELP!](https://www.ruby-forum.com/t/colspan-not-working-in-firefox-help/123127)

<div class="topic-metadata">

**Author:** [@valerieloy](https://www.ruby-forum.com/u/valerieloy)\
**Replies:** 1\
**Last updated:** [December 14, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/colspan-not-working-in-firefox-help/123127 "2007-12-14T14:23:27Z")

</div>

Hi, I have a very weird problem with my table. The thing is, it works fine in IE but not in firefox and its driving me nuts. \<tr\> \<TH rowspan="2"\>Course\<BR\>Code\</TH\> \<TH rowspan="2"\>Course\<BR\>Name\</TH\> \<TH r…

---

## [Webrick Query-String](https://www.ruby-forum.com/t/webrick-query-string/121649)

<div class="topic-metadata">

**Author:** [@sealedsun](https://www.ruby-forum.com/u/sealedsun)\
**Replies:** 1\
**Last updated:** [November 29, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/webrick-query-string/121649 "2007-11-29T17:28:08Z")

</div>

Hey! I have a Webrick Server set up. When i do a GET Request i can access the query string values with: req.query\[‘key’\] When i do a POST request (action="/myServlet?view=test") out of a form i can acces the form fi…

---

## [.: give the new user administrator privileges :](https://www.ruby-forum.com/t/give-the-new-user-administrator-privileges/114560)

<div class="topic-metadata">

**Author:** [@marbca](https://www.ruby-forum.com/u/marbca)\
**Replies:** 1\
**Last updated:** [September 15, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/give-the-new-user-administrator-privileges/114560 "2007-09-15T21:23:23Z")

</div>

Hi, My RForum site is running. here is the link But I couldn’t give to new user administrator privileges with this command: RAILS\_ENV=production script/make\_admin username When I use this command line, I got this m…

---

## [IO Errors on deleting documents with Ferret](https://www.ruby-forum.com/t/io-errors-on-deleting-documents-with-ferret/111315)

<div class="topic-metadata">

**Author:** [@iamdirkcalloway](https://www.ruby-forum.com/u/iamdirkcalloway)\
**Replies:** 1\
**Last updated:** [August 6, 2007, 9:33am UTC](https://www.ruby-forum.com/t/io-errors-on-deleting-documents-with-ferret/111315 "2007-08-06T09:33:27Z")

</div>

I have a large index (~6GB, ~1 million docs) that was built by RDig. I wrote a script to iterate through the index to clear out some duplicate information to try to reduce the size of the index. clients.each {|client| …

---

## [Torrent library for Ruby](https://www.ruby-forum.com/t/torrent-library-for-ruby/77149)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 1\
**Last updated:** [November 26, 2006, 7:15pm UTC](https://www.ruby-forum.com/t/torrent-library-for-ruby/77149 "2006-11-26T19:15:09Z")

</div>

Hi folks, I’m fairly new to Ruby and the whole Ruby on Rails thing, although I have some experience with ASP.NET and C#. I’m trying to learn Ruby and Ruby on Rails through some pet projects, like a small backup scrip…

---

## [I am not able to access application in the browser](https://www.ruby-forum.com/t/i-am-not-able-to-access-application-in-the-browser/214377)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [November 30, 2011, 3:13pm UTC](https://www.ruby-forum.com/t/i-am-not-able-to-access-application-in-the-browser/214377 "2011-11-30T15:13:55Z")

</div>

My server is running but not getting anything In server m getting Started GET “/users/sign\_in” for 127.0.0.1 at 2011-11-30 16:56:13 +0530 Processing by UsersController#show as HTML Parameters: {“id”=\>“sign\_in”} Comp…

---

## [How to make 1+a work if a is not a numeric object?](https://www.ruby-forum.com/t/how-to-make-1-a-work-if-a-is-not-a-numeric-object/210194)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [August 2, 2011, 9:30am UTC](https://www.ruby-forum.com/t/how-to-make-1-a-work-if-a-is-not-a-numeric-object/210194 "2011-08-02T09:30:46Z")

</div>

I defined a to\_i method for a, but it seems not work. BTW, I do not want to override Fixnum’s + method.

---

## [Newlines in array problem](https://www.ruby-forum.com/t/newlines-in-array-problem/205500)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [April 8, 2011, 1:29am UTC](https://www.ruby-forum.com/t/newlines-in-array-problem/205500 "2011-04-08T01:29:02Z")

</div>

Is there a way to get rid of newlines in an array? Example: array = \[“hel\\nlo”, “bl\\nah”\] I want the output to be new\_array = \[“hello”, “blah”\] I tried: array.each do |el| el.delete("\\n") end But that didn’t work.…

---

## [Amazing behavior of include module](https://www.ruby-forum.com/t/amazing-behavior-of-include-module/202627)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [February 3, 2011, 10:49am UTC](https://www.ruby-forum.com/t/amazing-behavior-of-include-module/202627 "2011-02-03T10:49:07Z")

</div>

Hi, I do not understand how is following code working: irb(main):001:0\> module AAA irb(main):002:1\> class BBB irb(main):003:2\> end irb(main):004:1\> end =\> nil irb(main):005:0\> BBB::BBB NameError: uninitialized co…

---

## [3tier suggestion (ROR \<--\> ROR \<--\> DB](https://www.ruby-forum.com/t/3tier-suggestion-ror-ror-db/192933)

<div class="topic-metadata">

**Author:** [@cyberjom](https://www.ruby-forum.com/u/cyberjom)\
**Replies:** 6\
**Last updated:** [August 9, 2010, 5:15pm UTC](https://www.ruby-forum.com/t/3tier-suggestion-ror-ror-db/192933 "2010-08-09T17:15:05Z")

</div>

I have to develop an ROR application that talk to it’s self. 3 Server (1st server ROR \<—\> 2nd server ROR \<—\> 3rd server DBMS) How can I easily develop this ? I think it’s too much effort to build 2 separate RORs proje…

---

## [Module A extends Moudle B possible?](https://www.ruby-forum.com/t/module-a-extends-moudle-b-possible/185579)

<div class="topic-metadata">

**Author:** [@smarter](https://www.ruby-forum.com/u/smarter)\
**Replies:** 6\
**Last updated:** [March 24, 2010, 9:38am UTC](https://www.ruby-forum.com/t/module-a-extends-moudle-b-possible/185579 "2010-03-24T09:38:54Z")

</div>

Hello: Can Modules extends within themselves? Like Class A \< B is Valid, where B is another class Module X \< Y is invalid, where Y is another module? Thanks.

---

## [100% with upstream / backup server](https://www.ruby-forum.com/t/100-with-upstream-backup-server/182333)

<div class="topic-metadata">

**Author:** [@reima](https://www.ruby-forum.com/u/reima)\
**Replies:** 6\
**Last updated:** [January 26, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/100-with-upstream-backup-server/182333 "2010-01-26T18:32:13Z")

</div>

Hi, I’ve noticed a strange issue. I’ve a configuration like: … upstream \_backend { server 10.0.0.1:80 down; server 10.0.0.2:80 down; server 127.0.0.1:80 backup; } … the purpose is to disable all backends and swi…

---

## [Ajax.updater to call app\_helper or model method](https://www.ruby-forum.com/t/ajax-updater-to-call-app-helper-or-model-method/161689)

<div class="topic-metadata">

**Author:** [@neubyr](https://www.ruby-forum.com/u/neubyr)\
**Replies:** 6\
**Last updated:** [March 1, 2009, 10:13am UTC](https://www.ruby-forum.com/t/ajax-updater-to-call-app-helper-or-model-method/161689 "2009-03-01T10:13:39Z")

</div>

I am quite newbie to rails and stuck with a problem. In my application I have a Ajax.updater call to update counties list in a select drop down whenever a city name is selected. I need to do this in many place in my a…

---

## [Observing collection\_select + text\_field](https://www.ruby-forum.com/t/observing-collection-select-text-field/144663)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 6\
**Last updated:** [August 1, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/observing-collection-select-text-field/144663 "2008-08-01T19:05:11Z")

</div>

\<%= collection\_select(:category, :id, @categories, :id, :name, options ={:prompt =\> "-Select categories-"}, :class=\>"category\_dropdown\_list") %\> \<td\> \<%= text\_field\_tag :search, params\[:search\], :id=\>"sea…

---

## [AJAX updates for execution progress status](https://www.ruby-forum.com/t/ajax-updates-for-execution-progress-status/142479)

<div class="topic-metadata">

**Author:** [@miss\_michelle](https://www.ruby-forum.com/u/miss_michelle)\
**Replies:** 6\
**Last updated:** [July 14, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/ajax-updates-for-execution-progress-status/142479 "2008-07-14T13:21:00Z")

</div>

I need to update multiple areas on my page within the same controller, where statuses are updated as test scripts are being run and completed. My js first renders a list of the available test cases to run, then I have…

---

## [Google Maps from street address](https://www.ruby-forum.com/t/google-maps-from-street-address/129038)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 6\
**Last updated:** [February 14, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/google-maps-from-street-address/129038 "2008-02-14T17:23:09Z")

</div>

Hi all, I am trying to create an app that when a street address (Street, city, state, zip) is given, a map is displayed along with a point indication where on that map the address is. I have done some quick searches, …

---

## [Nested sets from database](https://www.ruby-forum.com/t/nested-sets-from-database/121500)

<div class="topic-metadata">

**Author:** [@Tonkatsufan](https://www.ruby-forum.com/u/Tonkatsufan)\
**Replies:** 6\
**Last updated:** [November 28, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/nested-sets-from-database/121500 "2007-11-28T22:46:13Z")

</div>

Hi, I’d like to use AR’s find to retrieve a nested dataset from the database by grouping on a column. Of course, when I group on the column, the children are not in the result set, so I was wondering what’s the best…

---

## [Number of blocks in a burst over USB](https://www.ruby-forum.com/t/number-of-blocks-in-a-burst-over-usb/104756)

<div class="topic-metadata">

**Author:** [@george\_n](https://www.ruby-forum.com/u/george_n)\
**Replies:** 6\
**Last updated:** [May 30, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/number-of-blocks-in-a-burst-over-usb/104756 "2007-05-30T21:52:18Z")

</div>

I’ve tried finding this number throughout code and documentation, but can’t seem to hunt it down. When using usrp\_standard\_rx::make(), the last parameter is the number of blocks in a burst. What’s the magic number…

---

## [Where do i put classes that i want to use in Controller?](https://www.ruby-forum.com/t/where-do-i-put-classes-that-i-want-to-use-in-controller/83656)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 6\
**Last updated:** [January 28, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/where-do-i-put-classes-that-i-want-to-use-in-controller/83656 "2007-01-28T22:33:04Z")

</div>

Hello, Can someone please help me… I would like to know where i should put classes that i need to use within my controller? And how are they accessible to the controller?

---

## [Newbie alert! diff between @session\['user'\].id and @session](https://www.ruby-forum.com/t/newbie-alert-diff-between-session-user-id-and-session/83437)

<div class="topic-metadata">

**Author:** [@newtorails](https://www.ruby-forum.com/u/newtorails)\
**Replies:** 6\
**Last updated:** [January 26, 2007, 2:09pm UTC](https://www.ruby-forum.com/t/newbie-alert-diff-between-session-user-id-and-session/83437 "2007-01-26T14:09:18Z")

</div>

I struggled for sometime to use @session\[:user\].id while using LoginGenerator to retrieve id of the logged in user. In the end I could make it work with @session\[‘user’\].id. Shouldn’t the two approaches be same? than…

---

## [Forking job scheduler](https://www.ruby-forum.com/t/forking-job-scheduler/70482)

<div class="topic-metadata">

**Author:** [@kpd](https://www.ruby-forum.com/u/kpd)\
**Replies:** 6\
**Last updated:** [September 29, 2006, 5:45pm UTC](https://www.ruby-forum.com/t/forking-job-scheduler/70482 "2006-09-29T17:45:05Z")

</div>

Hi all, If anyone is willing, I’d be grateful for some advice on the forking job scheduler I’ve written. It works fine in simple tests, but does not feel elegant. On IRC kbrooks recommended an asynchronous main loop,…

---

## [Need to carry over application variable into RUBY script](https://www.ruby-forum.com/t/need-to-carry-over-application-variable-into-ruby-script/58003)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 6\
**Last updated:** [April 17, 2006, 8:47pm UTC](https://www.ruby-forum.com/t/need-to-carry-over-application-variable-into-ruby-script/58003 "2006-04-17T20:47:48Z")

</div>

I have an application that converts PDFs to individual EPS files. When it does so, it creates a subdirectory with the same name as the original filename and puts all of the resulting EPS files it creates into that dir…

---

## [View code regular expression](https://www.ruby-forum.com/t/view-code-regular-expression/93943)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 6\
**Last updated:** [April 17, 2006, 5:17pm UTC](https://www.ruby-forum.com/t/view-code-regular-expression/93943 "2006-04-17T17:17:29Z")

</div>

I’m lost on regular expressions to begin with… I’m trying to fix a value to one of 4 radio buttons as there will be value of either 1,2,3 or 4 in @roles\_users… /\> /\> /\> /\> but this code gets me a syntax er…

---

## [Write/Display AR query as Grouped Results?](https://www.ruby-forum.com/t/write-display-ar-query-as-grouped-results/57310)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 6\
**Last updated:** [April 10, 2006, 2:48am UTC](https://www.ruby-forum.com/t/write-display-ar-query-as-grouped-results/57310 "2006-04-10T02:48:54Z")

</div>

I’ve got a publications table that contains an author\_id foreign key and a pubrole\_id foreign key. What I want to do is query the DB using AR so that I can get a list of all publications that belong\_to a particular au…

---

## [Better way to read data from IO into packets?](https://www.ruby-forum.com/t/better-way-to-read-data-from-io-into-packets/50577)

<div class="topic-metadata">

**Author:** [@Levin\_A](https://www.ruby-forum.com/u/Levin_A)\
**Replies:** 6\
**Last updated:** [December 19, 2005, 9:49am UTC](https://www.ruby-forum.com/t/better-way-to-read-data-from-io-into-packets/50577 "2005-12-19T09:49:33Z")

</div>

Hi, I have a small program, that reads data from a serial port and chops it into packets. A Packet has the following format: \[0x65, 0xEB, type:8, counter:8, length:8, data:length\>, crc:16\] I have a thread that read…

---

## [More practice for rails](https://www.ruby-forum.com/t/more-practice-for-rails/242746)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 24, 2015, 12:35pm UTC](https://www.ruby-forum.com/t/more-practice-for-rails/242746 "2015-07-24T12:35:40Z")

</div>

Does someone have some tasks to practice? On the same level like michael hartl twitter or little bit harder. It will be amazing to have a solution off that task I need something to practice Rails. I’m not new but i…

---

## [Single 'add\_index' line in migration file produces multiple 'add\_index' lines in my schema. (?)](https://www.ruby-forum.com/t/single-add-index-line-in-migration-file-produces-multiple-add-index-lines-in-my-schema/242665)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [July 14, 2015, 3:25pm UTC](https://www.ruby-forum.com/t/single-add-index-line-in-migration-file-produces-multiple-add-index-lines-in-my-schema/242665 "2015-07-14T15:25:16Z")

</div>

Hello, I’m a newbie to Rails, and to this Group - just putting that out there. Here’s my question: I have a migration file for a new table, and at the end of the file I added the line: add\_index: :table\_name, :name …

---

## [HRPT receiver](https://www.ruby-forum.com/t/hrpt-receiver/242536)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [June 30, 2015, 11:03pm UTC](https://www.ruby-forum.com/t/hrpt-receiver/242536 "2015-06-30T23:03:21Z")

</div>

Hello, In the gnuradio/gr-noaa/README file under usrp\_rx\_hrpt.py, there is a comment that reads as follows: “The present HRPT demodulator is only tested at decimation 16. The only other valid decimation rates ar…

---

## [Are all threads in ruby automatically thread safe?](https://www.ruby-forum.com/t/are-all-threads-in-ruby-automatically-thread-safe/233685)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [January 5, 2015, 10:55pm UTC](https://www.ruby-forum.com/t/are-all-threads-in-ruby-automatically-thread-safe/233685 "2015-01-05T22:55:24Z")

</div>

I have this program which creates 1000 threads that increment an integer. With mutex, it should result in 1000, however there is no mutex and it still results in 1000 every time. Why is this? I tested this on a single …

---

## [What does the syntax f.(10) mean?](https://www.ruby-forum.com/t/what-does-the-syntax-f-10-mean/232952)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 11, 2014, 2:16pm UTC](https://www.ruby-forum.com/t/what-does-the-syntax-f-10-mean/232952 "2014-11-11T14:16:51Z")

</div>

In irb I have defined the lambda f=lambda { |x| x+1 } and then issued (because I have seen it in someone else code) f.(10) which computed 11. But what does the f.(10) syntax mean? It computes the same as f(10), but …

---

## [Another Ruby-C Integration Question](https://www.ruby-forum.com/t/another-ruby-c-integration-question/235526)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [July 11, 2013, 4:59pm UTC](https://www.ruby-forum.com/t/another-ruby-c-integration-question/235526 "2013-07-11T16:59:01Z")

</div>

Hi, I am integrating Ruby with C++ on MS Windows 7 (using Visual Studio). My code crashes when ruby\_errInfo is used to get an error message after rb\_load\_protect fails. By the way, the script I am trying to load is a…

---

## [Unable to activate sinatra-contrib-1.4.0](https://www.ruby-forum.com/t/unable-to-activate-sinatra-contrib-1-4-0/245698)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 8, 2013, 8:03pm UTC](https://www.ruby-forum.com/t/unable-to-activate-sinatra-contrib-1-4-0/245698 "2013-07-08T20:03:40Z")

</div>

Hi Guys, I am new to Ruby and currently trying to develop an existing Ruby project (Sinatra based framework) in my company I have installed the pre-requisites to rake and rackup,but only to find this conflicts "…rub…

---

## [Is there any difference between Dir::exist? and Dir::::exists?](https://www.ruby-forum.com/t/is-there-any-difference-between-dir-exist-and-dir-exists/225803)

<div class="topic-metadata">

**Author:** [@SSkonishi\_takurou\_S](https://www.ruby-forum.com/u/SSkonishi_takurou_S)\
**Replies:** 2\
**Last updated:** [January 30, 2013, 3:38pm UTC](https://www.ruby-forum.com/t/is-there-any-difference-between-dir-exist-and-dir-exists/225803 "2013-01-30T15:38:05Z")

</div>

Hi, I am confused with the below Dir class methods: Dir::exist? Dir::::exists? Can anyone help me here to understand the difference between them with an simple example? Thanks

---

## [Bundle Install ERROR: ERROR: Failed to build gem native extension](https://www.ruby-forum.com/t/bundle-install-error-error-failed-to-build-gem-native-extension/223213)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [September 26, 2012, 5:46am UTC](https://www.ruby-forum.com/t/bundle-install-error-error-failed-to-build-gem-native-extension/223213 "2012-09-26T05:46:00Z")

</div>

Hello, I’m trying to setup postgreSQL onto rails on linux and when I type bundle install this is the error that i get. I guess its not finding the files Gem::Installer::ExtensionBuildError: ERROR: Failed to build ge…

---

## [Unable to run jruby process as agent on linux machine](https://www.ruby-forum.com/t/unable-to-run-jruby-process-as-agent-on-linux-machine/211082)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [August 25, 2011, 2:57pm UTC](https://www.ruby-forum.com/t/unable-to-run-jruby-process-as-agent-on-linux-machine/211082 "2011-08-25T14:57:23Z")

</div>

Hi! Iam trying to run jruby process as a agent on my linux machine. but it is giving errors for me, below is the error snippet…please help. \[kiran@hymettusvir4 ~\]$ ruby -J-Djruby.fork.enabled=true -C /home/kiran/rbag…

---

## [Routing error for a name-spaced nested controller](https://www.ruby-forum.com/t/routing-error-for-a-name-spaced-nested-controller/202864)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 8, 2011, 1:17pm UTC](https://www.ruby-forum.com/t/routing-error-for-a-name-spaced-nested-controller/202864 "2011-02-08T13:17:37Z")

</div>

Struggling with nested routing and rspec… When I run spec/controllers/admin/website\_users\_controller\_spec.rb describe Admin::WebsiteUsersController do … get :index, :website =\> @website at this line I get: ActionCo…

---

## [Unit testing with NullDB, Shoulda and Factory\_Girl](https://www.ruby-forum.com/t/unit-testing-with-nulldb-shoulda-and-factory-girl/192616)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 2\
**Last updated:** [August 3, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/unit-testing-with-nulldb-shoulda-and-factory-girl/192616 "2010-08-03T19:57:07Z")

</div>

Does anyone have any advice on how to setup NullDB in a JRuby on Rails environment? Or is there a better way to avoid hitting the DB during unit testing? I’m using JRuby 1.5.1, Rails 2.3.8, Test::Unit, Shoulda, and wi…

---

## [Moving belongs\_to object to different association](https://www.ruby-forum.com/t/moving-belongs-to-object-to-different-association/189874)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/moving-belongs-to-object-to-different-association/189874 "2010-06-09T16:20:15Z")

</div>

I have two AR models in a one-to-many relationship. class Feed \< ActiveRecord::Base belongs\_to :channel, :counter\_cache =\> true end class Channel has\_many :feeds end I need to move a feed to a different channel. …

---

## [Creating a report generator within a mysql database to be read on rails](https://www.ruby-forum.com/t/creating-a-report-generator-within-a-mysql-database-to-be-read-on-rails/189281)

<div class="topic-metadata">

**Author:** [@jraglin](https://www.ruby-forum.com/u/jraglin)\
**Replies:** 2\
**Last updated:** [May 28, 2010, 11:36am UTC](https://www.ruby-forum.com/t/creating-a-report-generator-within-a-mysql-database-to-be-read-on-rails/189281 "2010-05-28T11:36:54Z")

</div>

Hello, My issue is that I am creating a database in MySQL and needing to export the information in automatically generated reports (.csv), into a web application written in Rails. Does anyone have any advice or tutor…

---

## [Multiple file upload](https://www.ruby-forum.com/t/multiple-file-upload/171521)

<div class="topic-metadata">

**Author:** [@elrosnav](https://www.ruby-forum.com/u/elrosnav)\
**Replies:** 2\
**Last updated:** [July 10, 2009, 12:25pm UTC](https://www.ruby-forum.com/t/multiple-file-upload/171521 "2009-07-10T12:25:23Z")

</div>

hola estoy utilizando ruby on rails para subir imagenes y redimensionarlas con attachment fu todo bien con eso pero quisiera que e usuario pudiera subir varios archivos a la vez asi como lo hace facebook al alguna m…

---

## [Booting WEBrick ... server:invalid option: --trace?](https://www.ruby-forum.com/t/booting-webrick-server-invalid-option-trace/169678)

<div class="topic-metadata">

**Author:** [@rustybucket](https://www.ruby-forum.com/u/rustybucket)\
**Replies:** 2\
**Last updated:** [June 7, 2009, 1:37am UTC](https://www.ruby-forum.com/t/booting-webrick-server-invalid-option-trace/169678 "2009-06-07T01:37:00Z")

</div>

I’m migrating an old Rails App to a new server, I think I’ve got most of my issues worked out so far. But… When I run script/server --trace in the app I get the following output… and I have no clue what to do or eve…

---

## [Before\_filter que no funciona como quiero](https://www.ruby-forum.com/t/before-filter-que-no-funciona-como-quiero/169115)

<div class="topic-metadata">

**Author:** [@carlos\_blazquez](https://www.ruby-forum.com/u/carlos_blazquez)\
**Replies:** 2\
**Last updated:** [May 29, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/before-filter-que-no-funciona-como-quiero/169115 "2009-05-29T18:00:54Z")

</div>

En relaciÃ³n a mi anterior post necesitaba que varias acciones sÃ³lo fueran ejecutadas en caso de que las ligas estuviesen o no abiertas, por tanto se me ocurrio lo siguiente, en mi controlador Leagues: before\_filter …

---

## [How webrick works](https://www.ruby-forum.com/t/how-webrick-works/166436)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 2\
**Last updated:** [April 25, 2009, 8:11am UTC](https://www.ruby-forum.com/t/how-webrick-works/166436 "2009-04-25T08:11:23Z")

</div>

Hi All, I want to know what is the basic nature of a webrick. Actually i create two instances of my application on my pc one on a MOZILLA and second on a INTERNET EXPLORER. on MOZILLA i uploaded 10 files and on INTER…

---

## [ListBox's overlapping](https://www.ruby-forum.com/t/listboxs-overlapping/165211)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 2\
**Last updated:** [April 15, 2009, 2:42am UTC](https://www.ruby-forum.com/t/listboxs-overlapping/165211 "2009-04-15T02:42:53Z")

</div>

Guys, I have a bug which I can’t solve at the moment. I tried various solutions, changing the sizers and lots of different ways, I still couldn’t fix it. In my code, I have basically two ListBox in the same panel, on…

---

## [Radiant + ACL + Portlets + 1.0](https://www.ruby-forum.com/t/radiant-acl-portlets-1-0/121985)

<div class="topic-metadata">

**Author:** [@Erik\_Nijkamp](https://www.ruby-forum.com/u/Erik_Nijkamp)\
**Replies:** 2\
**Last updated:** [December 3, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/radiant-acl-portlets-1-0/121985 "2007-12-03T17:50:41Z")

</div>

Hello Developers, We are planning to use Radiant as groundwork for a commercial project and decided to ditch j2ee + jsr portlets in favor of rails + radiant. Would you please inform us about the current status of: A…

---

## [Moving batches of files with Rake](https://www.ruby-forum.com/t/moving-batches-of-files-with-rake/90662)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 2\
**Last updated:** [April 1, 2007, 3:19am UTC](https://www.ruby-forum.com/t/moving-batches-of-files-with-rake/90662 "2007-04-01T03:19:52Z")

</div>

I’m comparing Rake and NAnt for our pseudo-build process needs. I’ve written the NAnt build file, and now I’m trying to port it (directly at first) to Rake. NAnt has a ‘move’ task for moving batches of files to a new …

---

## [Edge engines + Rails 1.2RC1](https://www.ruby-forum.com/t/edge-engines-rails-1-2rc1/77222)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 2\
**Last updated:** [December 16, 2006, 3:21am UTC](https://www.ruby-forum.com/t/edge-engines-rails-1-2rc1/77222 "2006-12-16T03:21:02Z")

</div>

Does Engines edge (svn) works with Rails 1.2RC1? Will Engines be split in two (pre-1.2 and 1.2.x), or there will still be one engines plugin that supports both Rails 1.1.x and 1.2.x ? – Hendy I. Web: http://hendy.ga…

---

## [Parse error, unexpected $, expecting kEND](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend/101969)

<div class="topic-metadata">

**Author:** [@slain](https://www.ruby-forum.com/u/slain)\
**Replies:** 2\
**Last updated:** [August 10, 2006, 12:29am UTC](https://www.ruby-forum.com/t/parse-error-unexpected-expecting-kend/101969 "2006-08-10T00:29:38Z")

</div>

Does anyone have any techniques or tools that they use to help narrow these down in the code at all? I mean the current method of scanning/folding the code to see if I can tell where the missing ‘end’ is is a nightmar…

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

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