# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1827

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

---

## [Monit on Intel Mac](https://www.ruby-forum.com/t/monit-on-intel-mac/107423)

<div class="topic-metadata">

**Author:** [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/monit-on-intel-mac/107423 "2007-06-21T17:59:55Z")

</div>

Has anyone gotten monit to install on an intel mac? I have had a bit of trouble, and I’m wondering which version I need to use. Thanks for your advise. Scott Ballantyne removed\_email\_address@domain.invalid

---

## [If/else statement](https://www.ruby-forum.com/t/if-else-statement/107417)

<div class="topic-metadata">

**Author:** [@gearoid](https://www.ruby-forum.com/u/gearoid)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/if-else-statement/107417 "2007-06-21T17:43:54Z")

</div>

Hi - Having a problem with one of my if/else statements… def back if @session redirect\_to :action =\> ‘list’ \<-- List can only be accessed if you’re logged in. else redirect\_to :action =\> ‘reference’ \<-- Reference …

---

## [REST url generation for nested resources](https://www.ruby-forum.com/t/rest-url-generation-for-nested-resources/107415)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/rest-url-generation-for-nested-resources/107415 "2007-06-21T17:11:46Z")

</div>

Hello everyone, question: suppose program has\_many episodes in the restful form\_for , \<% form\_for (:episode,:url =\> @episode\_path(@episode.program.id,@episode)) It looks redandant to me that why do i need to pass t…

---

## [Periodically reloading reference data for a live app demo](https://www.ruby-forum.com/t/periodically-reloading-reference-data-for-a-live-app-demo/106931)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/periodically-reloading-reference-data-for-a-live-app-demo/106931 "2007-06-21T16:58:43Z")

</div>

In my app I’d like to offer a demo account, so potential users can log in and play around with the system to their hearts content. To prevent the data from becoming too cluttered, I intend to reset the reference data…

---

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

<div class="topic-metadata">

**Author:** [@dfrank86](https://www.ruby-forum.com/u/dfrank86)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/multiple-file-uploads/107370 "2007-06-21T16:04:26Z")

</div>

I need a form that will allow directories to be uploaded, rather than one file at a time. Is this possible? On my Mac, at least, the file selection menu won’t allow a user to select a folder. Thanks!

---

## [Using Model.find for inner joins and to 'dedupe' a result se](https://www.ruby-forum.com/t/using-model-find-for-inner-joins-and-to-dedupe-a-result-se/106449)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/using-model-find-for-inner-joins-and-to-dedupe-a-result-se/106449 "2007-06-21T15:03:16Z")

</div>

Hi, I’m using rails 1.2.3 and mysql 5 I have a collection of models like this: Car has\_many Passengers; Passenger has\_many Pocket\_Items I want to issue a Car.find command from rails where I find all cars where at l…

---

## [Refactoring Existing Application For Login Accounts](https://www.ruby-forum.com/t/refactoring-existing-application-for-login-accounts/107252)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/refactoring-existing-application-for-login-accounts/107252 "2007-06-21T15:00:16Z")

</div>

A client has asked me to modify their existing application to allow for clients and tutors to be able to login, modify their personal information, input time and other actions. The application has a single table call…

---

## [Button to remote](https://www.ruby-forum.com/t/button-to-remote/107406)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/button-to-remote/107406 "2007-06-21T14:57:15Z")

</div>

Is there a tag that is a button but acts as link\_to\_remote? –

---

## [Rails and localization](https://www.ruby-forum.com/t/rails-and-localization/107344)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/rails-and-localization/107344 "2007-06-21T14:29:12Z")

</div>

I’ve started to learn Rails about a month ago. It seems wonderful, except for one major issue: localization! It’s too complicated to develop a serious application in Brazil with Rails (or whatever other country with …

---

## [Where to get help about the Rails framework structure](https://www.ruby-forum.com/t/where-to-get-help-about-the-rails-framework-structure/107346)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 12:44pm UTC](https://www.ruby-forum.com/t/where-to-get-help-about-the-rails-framework-structure/107346 "2007-06-21T12:44:58Z")

</div>

Hi, I would like to understand better how Rails work… I mean how the framework is structured. For instance, what happens when an address is requested for Apache or Webrick or any other? Which application is called fir…

---

## [Nil object for nested resource](https://www.ruby-forum.com/t/nil-object-for-nested-resource/107243)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/nil-object-for-nested-resource/107243 "2007-06-21T12:12:54Z")

</div>

Hi all, I have 2 models with a standard 1 to many relationship. I’m also using REST on the two models and have added the appropriate code to the routes.rb file. scorecard.rb: class Scorecard \< ActiveRecord::Base h…

---

## [Teach](https://www.ruby-forum.com/t/teach/107399)

<div class="topic-metadata">

**Author:** [@erwinc](https://www.ruby-forum.com/u/erwinc)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 9:59am UTC](https://www.ruby-forum.com/t/teach/107399 "2007-06-21T09:59:33Z")

</div>

I new in rails can anyon e teach me

---

## [Right way to handle exceptions of controller actions?](https://www.ruby-forum.com/t/right-way-to-handle-exceptions-of-controller-actions/107335)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 9:52am UTC](https://www.ruby-forum.com/t/right-way-to-handle-exceptions-of-controller-actions/107335 "2007-06-21T09:52:29Z")

</div>

Hi all, I use rescue\_action\_in\_public(e) and rescue\_action\_locally(e) methods for catching the controller exceptions. I render some templates, also the standard error static html pages. Is there any other standard w…

---

## [Rake error: uninitialized constant ActiveRecord](https://www.ruby-forum.com/t/rake-error-uninitialized-constant-activerecord/107336)

<div class="topic-metadata">

**Author:** [@doug\_livesey](https://www.ruby-forum.com/u/doug_livesey)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 9:10am UTC](https://www.ruby-forum.com/t/rake-error-uninitialized-constant-activerecord/107336 "2007-06-21T09:10:44Z")

</div>

Hallo – I can’t run any rake tasks all of a sudden in my project. It was fine when I put it down the other day! The output I get when I try to run a rake task is: W:\\holly\> rake in W:/holly) rake aborted! uninitializ…

---

## [Let's talk about hosting companies](https://www.ruby-forum.com/t/lets-talk-about-hosting-companies/107273)

<div class="topic-metadata">

**Author:** [@dissolved](https://www.ruby-forum.com/u/dissolved)\
**Replies:** 15\
**Last updated:** [June 21, 2007, 8:51am UTC](https://www.ruby-forum.com/t/lets-talk-about-hosting-companies/107273 "2007-06-21T08:51:43Z")

</div>

A rails app I wrote for a client needs a new hosting company. Currently it’s being served by textdrive under the $15 shared hosting plan. However, we’re running into some problems with the setup and the client wants …

---

## [How to implement a non-block online RSS portal?](https://www.ruby-forum.com/t/how-to-implement-a-non-block-online-rss-portal/107395)

<div class="topic-metadata">

**Author:** [@Fredric](https://www.ruby-forum.com/u/Fredric)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 8:18am UTC](https://www.ruby-forum.com/t/how-to-implement-a-non-block-online-rss-portal/107395 "2007-06-21T08:18:24Z")

</div>

To implement an online rss reader just like www.bloglines.com is not difficult.Every registered user will add their feeds to their customed online rss reader.However,if any user have sent their request of reading rss …

---

## [Reading POST HTTP](https://www.ruby-forum.com/t/reading-post-http/107319)

<div class="topic-metadata">

**Author:** [@psimoes](https://www.ruby-forum.com/u/psimoes)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 7:46am UTC](https://www.ruby-forum.com/t/reading-post-http/107319 "2007-06-21T07:46:21Z")

</div>

Hello, I have a script that makes a HTTP Post to a Ruby on Rails controller. My problem is: how can I read the post data in the controller? The post data doesn’t come from a html form, it’s a string that represents a…

---

## [Has\_and\_belongs\_to\_many linking more than two tables](https://www.ruby-forum.com/t/has-and-belongs-to-many-linking-more-than-two-tables/107355)

<div class="topic-metadata">

**Author:** [@geoffeg](https://www.ruby-forum.com/u/geoffeg)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 7:36am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-linking-more-than-two-tables/107355 "2007-06-21T07:36:21Z")

</div>

I have a database with a central lookup table that links about 5 tables together (the examples below are theoretical, I made them up to illustrate my point): CREATE TABLE lookup (patient\_id int,doctor\_id int,nurse\_id …

---

## [Spell checker](https://www.ruby-forum.com/t/spell-checker/107389)

<div class="topic-metadata">

**Author:** [@Mahendra](https://www.ruby-forum.com/u/Mahendra)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 7:36am UTC](https://www.ruby-forum.com/t/spell-checker/107389 "2007-06-21T07:36:21Z")

</div>

Hi everybody, I want to add spell checker in my rhtml page. Whatever user entered in all textarea and text boxes i want to check spell of them. How can i do that?

---

## [Thread safe dispatcher?](https://www.ruby-forum.com/t/thread-safe-dispatcher/107391)

<div class="topic-metadata">

**Author:** [@ktheory](https://www.ruby-forum.com/u/ktheory)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 7:23am UTC](https://www.ruby-forum.com/t/thread-safe-dispatcher/107391 "2007-06-21T07:23:05Z")

</div>

Hey everyone, I’m looking for a thread safe ruby fast cgi dispatcher. I had seen one a while ago that was a hack / fix on this dispatcher (http://derrick.pallas.us/ruby-cgi/). Was written by a japanese guy I believe.…

---

## [Question about Form](https://www.ruby-forum.com/t/question-about-form/107387)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 3\
**Last updated:** [June 21, 2007, 6:16am UTC](https://www.ruby-forum.com/t/question-about-form/107387 "2007-06-21T06:16:16Z")

</div>

I have a case that a form has two submit button, one is edit button that only change the current div that can use form\_remote\_tag, the other is delete button that should refresh the whole page that can use form\_tag. …

---

## [Problems: Ajax on Rails](https://www.ruby-forum.com/t/problems-ajax-on-rails/106790)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 5:59am UTC](https://www.ruby-forum.com/t/problems-ajax-on-rails/106790 "2007-06-21T05:59:16Z")

</div>

Hello, I have two problems related to using Ajax on Rails. 1- I use form\_remote\_tag to perform a small search functionality. When the user click search button, it will show the spinner image and it is processing my s…

---

## [Syntax conversion between C++ or Java to Ruby](https://www.ruby-forum.com/t/syntax-conversion-between-c-or-java-to-ruby/107384)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 5:25am UTC](https://www.ruby-forum.com/t/syntax-conversion-between-c-or-java-to-ruby/107384 "2007-06-21T05:25:13Z")

</div>

Can anyone recommend a good web site that shows Ruby equivalents of common C++ or Java constructs. For example while, for loops private, protected, public A table would be good… Any good sites to migrate from the Ja…

---

## [Testing post :action with an array in the parameters](https://www.ruby-forum.com/t/testing-post-action-with-an-array-in-the-parameters/107379)

<div class="topic-metadata">

**Author:** [@stephanie](https://www.ruby-forum.com/u/stephanie)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 2:26am UTC](https://www.ruby-forum.com/t/testing-post-action-with-an-array-in-the-parameters/107379 "2007-06-21T02:26:03Z")

</div>

Hi, I have a html form with check boxes. When the user chooses one or more check boxes, an array is passed as a parameter to the controller. in html form page… \<%= name %\> in controller params\[:myarray\] # this …

---

## [Engines bug breaks functional tests with datetime\_toolbocks](https://www.ruby-forum.com/t/engines-bug-breaks-functional-tests-with-datetime-toolbocks/107371)

<div class="topic-metadata">

**Author:** [@Geoff\_D](https://www.ruby-forum.com/u/Geoff_D)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 12:37am UTC](https://www.ruby-forum.com/t/engines-bug-breaks-functional-tests-with-datetime-toolbocks/107371 "2007-06-21T00:37:55Z")

</div>

This is following up on http://lists.toolbocks.com/pipermail/ toolbocks-user/2007-May/000027.html (datetime\_toolbocks fails in functional tests) Here’s the problem: Engines causes plugins to be loaded in 2 phases. F…

---

## [Parsing variable length XML?](https://www.ruby-forum.com/t/parsing-variable-length-xml/107372)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 12:36am UTC](https://www.ruby-forum.com/t/parsing-variable-length-xml/107372 "2007-06-21T00:36:46Z")

</div>

I’m new to Ruby and need to write some code to parse a variable length XML structure like the one below. In the below case, the time can occur a variable number of times. I want to store each one of these port numbe…

---

## [REST way of doing pagination](https://www.ruby-forum.com/t/rest-way-of-doing-pagination/106946)

<div class="topic-metadata">

**Author:** [@Cogaidhean](https://www.ruby-forum.com/u/Cogaidhean)\
**Replies:** 17\
**Last updated:** [June 20, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/rest-way-of-doing-pagination/106946 "2007-06-20T23:23:47Z")

</div>

I was having a discussion with a great friend on what “REST way of paginating” means. Without polluting your minds initially with the ideas we discussed, I’d like to get everyones thoughts as to what this might mean a…

---

## [Case statement ranges](https://www.ruby-forum.com/t/case-statement-ranges/107364)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 6\
**Last updated:** [June 20, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/case-statement-ranges/107364 "2007-06-20T23:08:46Z")

</div>

I have the following in my controller: def color\_coding(value = nil) case value when 101…1000000000 “busy\_11” when 91..100 "busy\_10" when 81..90 "busy\_9" when 71..80 "busy\_8" when 61..70 "…

---

## [Is edge rails broken?](https://www.ruby-forum.com/t/is-edge-rails-broken/105429)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 4\
**Last updated:** [June 20, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/is-edge-rails-broken/105429 "2007-06-20T22:46:44Z")

</div>

I froze to edge today (rake rails:freeze:edge, then rake rails:update) and can’t run script/about nor script/server: /opt/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_require': no such fi…

---

## [Ruby v/s PHP](https://www.ruby-forum.com/t/ruby-v-s-php/107129)

<div class="topic-metadata">

**Author:** [@janu](https://www.ruby-forum.com/u/janu)\
**Replies:** 8\
**Last updated:** [June 20, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/ruby-v-s-php/107129 "2007-06-20T21:43:37Z")

</div>

Which is better Ruby or PHp? watch this video of comparison between this languages http://www.dekhona.com/watch.php?v=ebcecrnto

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1826)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1828)
