# Rails

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

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

---

## [Rails/JQuery Collection Select](https://www.ruby-forum.com/t/rails-jquery-collection-select/186548)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/rails-jquery-collection-select/186548 "2010-04-08T20:41:55Z")

</div>

I may be asking a very dumb question, but I thought it’d be worth the asking… I’m using JQuery to dynamically create some form fields for entering phone numbers… Basically just two fields… One for the number, and a s…

---

## [Reading MS Exchange?](https://www.ruby-forum.com/t/reading-ms-exchange/186543)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/reading-ms-exchange/186543 "2010-04-08T17:39:51Z")

</div>

Hi, is there a possibility to read MS Exchange data from an ROR application ?, if yes how and can it then be also written to an sql db ?. Thanks in advance, Dani

---

## [Quick and easy has\_many routes question](https://www.ruby-forum.com/t/quick-and-easy-has-many-routes-question/186500)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 8, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/quick-and-easy-has-many-routes-question/186500 "2010-04-08T17:19:21Z")

</div>

Hey, i have- map.resources :courses, :has\_many =\> :pages now what if i wanted for courses to has\_many =\> :forums as well? can i just do map.resources :courses, :has\_many =\> :pages, :forums ?? because that doesn’t wor…

---

## [Login form as popup modalbox (only the rails part)](https://www.ruby-forum.com/t/login-form-as-popup-modalbox-only-the-rails-part/186533)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 3\
**Last updated:** [April 8, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/login-form-as-popup-modalbox-only-the-rails-part/186533 "2010-04-08T16:06:47Z")

</div>

While redesigning an existing application, I’ve stumbled on a problem. A number of links on the site requires that the user logs in. This is currently solved by the simple (example) \<%=link\_to ‘Upload image’, :control…

---

## [\[JOBS\] Ruby on Rails Developers (North West England)](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-north-west-england/186534)

<div class="topic-metadata">

**Author:** [@Paul\_Elkin](https://www.ruby-forum.com/u/Paul_Elkin)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 3:05pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-north-west-england/186534 "2010-04-08T15:05:50Z")

</div>

Dear All, I am assembling a team of RoR developers for an exciting new project based in the North West of England. The team will comprise of a 1 \* Development Manager, 2 \* Senior Developers and circa 9 developers who…

---

## [Monitoring the changes in \<div\> tag](https://www.ruby-forum.com/t/monitoring-the-changes-in-div-tag/186400)

<div class="topic-metadata">

**Author:** [@loganathanbk](https://www.ruby-forum.com/u/loganathanbk)\
**Replies:** 6\
**Last updated:** [April 8, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/monitoring-the-changes-in-div-tag/186400 "2010-04-08T14:47:39Z")

</div>

Dear friend, I need a suggestion for the following requirement: I have a tag as follows: I used the link\_to\_remote and using that updated the response in the . We have observe\_fields for the tags like using…

---

## [Opa](https://www.ruby-forum.com/t/opa/186527)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 10:44am UTC](https://www.ruby-forum.com/t/opa/186527 "2010-04-08T10:44:06Z")

</div>

---

## [Where can I find a sample web service client?](https://www.ruby-forum.com/t/where-can-i-find-a-sample-web-service-client/186522)

<div class="topic-metadata">

**Author:** [@max\_radin](https://www.ruby-forum.com/u/max_radin)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 10:04am UTC](https://www.ruby-forum.com/t/where-can-i-find-a-sample-web-service-client/186522 "2010-04-08T10:04:52Z")

</div>

Hi- I’m fairly new to RoR and would like to write simple WS client to consume a Web Service. Can anyone point me to code that would gen. a WS client from wsdl? many thanks Max

---

## [ReadOnly error keeps haunting the objects I want to update on a script (using script/runner)](https://www.ruby-forum.com/t/readonly-error-keeps-haunting-the-objects-i-want-to-update-on-a-script-using-script-runner/186471)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 10\
**Last updated:** [April 8, 2010, 10:00am UTC](https://www.ruby-forum.com/t/readonly-error-keeps-haunting-the-objects-i-want-to-update-on-a-script-using-script-runner/186471 "2010-04-08T10:00:11Z")

</div>

hi. guys, I have finally learnt how to use script/runner and have written a script with the intention of updating the status attribute of my “Blog” objects every 24 hours to “published”. I have written a script (whic…

---

## [No newline at end of partial view?](https://www.ruby-forum.com/t/no-newline-at-end-of-partial-view/186473)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 9:42am UTC](https://www.ruby-forum.com/t/no-newline-at-end-of-partial-view/186473 "2010-04-08T09:42:02Z")

</div>

I have a view partial that is used to render a small block of HTML content. Because of where it’s going to be placed in the HTML, it’s important that it not begin or end with any HTML whitespace. But making a sample …

---

## [Issue with character encoding in http request](https://www.ruby-forum.com/t/issue-with-character-encoding-in-http-request/186232)

<div class="topic-metadata">

**Author:** [@droopy](https://www.ruby-forum.com/u/droopy)\
**Replies:** 2\
**Last updated:** [April 8, 2010, 9:21am UTC](https://www.ruby-forum.com/t/issue-with-character-encoding-in-http-request/186232 "2010-04-08T09:21:32Z")

</div>

Hi there, I have an issue with character encoding on http request that I need to handle in my rails apps. Here’s an example of my log : Processing MessagesController#incoming (for 217.117.146.164 at 2010-04-02 16:08…

---

## [Periodically\_call\_remote renders Page in page](https://www.ruby-forum.com/t/periodically-call-remote-renders-page-in-page/186499)

<div class="topic-metadata">

**Author:** [@Ashwin\_V](https://www.ruby-forum.com/u/Ashwin_V)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 9:16am UTC](https://www.ruby-forum.com/t/periodically-call-remote-renders-page-in-page/186499 "2010-04-08T09:16:51Z")

</div>

I am using Periodically\_call\_remote in the following way \<%= periodically\_call\_remote( :update =\> "refresh", :frequency =\> 3, :url =\> { :action =\> :activate }) %\> and the action i am calling is shown b…

---

## [Ruby script - how to write one that deals with different environment?](https://www.ruby-forum.com/t/ruby-script-how-to-write-one-that-deals-with-different-environment/186389)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 11\
**Last updated:** [April 8, 2010, 7:51am UTC](https://www.ruby-forum.com/t/ruby-script-how-to-write-one-that-deals-with-different-environment/186389 "2010-04-08T07:51:59Z")

</div>

hi guys, I would like to write a script that is runned by cron. It will update multiple entries. Any guides for this? I can’t figure out how do we choose which ruby environment (ie. development/test/production) in t…

---

## [500 internal server error sqlite 3](https://www.ruby-forum.com/t/500-internal-server-error-sqlite-3/186510)

<div class="topic-metadata">

**Author:** [@joeyonrails](https://www.ruby-forum.com/u/joeyonrails)\
**Replies:** 1\
**Last updated:** [April 8, 2010, 7:49am UTC](https://www.ruby-forum.com/t/500-internal-server-error-sqlite-3/186510 "2010-04-08T07:49:03Z")

</div>

I’m new to rails and I have created a project in rubymine and I started up the server then i went to one of my actions i created and i got 500 internal server error! I have no idea how to get it working please help He…

---

## [Modelling Question - developing meta system](https://www.ruby-forum.com/t/modelling-question-developing-meta-system/186445)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 8, 2010, 7:12am UTC](https://www.ruby-forum.com/t/modelling-question-developing-meta-system/186445 "2010-04-08T07:12:10Z")

</div>

Hey everyone, Just a quick Q. Can anybody point me to some resources regarding a modeling quandary I am in. I have to develop a meta system that allows users to specify their own model variables. For instance, I ha…

---

## [Open Source UML Tool for Ruby on Rails?](https://www.ruby-forum.com/t/open-source-uml-tool-for-ruby-on-rails/69195)

<div class="topic-metadata">

**Author:** [@lambo4jos](https://www.ruby-forum.com/u/lambo4jos)\
**Replies:** 18\
**Last updated:** [April 8, 2010, 5:31am UTC](https://www.ruby-forum.com/t/open-source-uml-tool-for-ruby-on-rails/69195 "2010-04-08T05:31:04Z")

</div>

I am new to web development, Ruby on Rails, and UML as well. I was wondering if there were any free tools available for UML design. There is a list of free tools on wikipedia under UML tools, but I don’t understand i…

---

## [Best way of sorting/grouping objects](https://www.ruby-forum.com/t/best-way-of-sorting-grouping-objects/186204)

<div class="topic-metadata">

**Author:** [@brent](https://www.ruby-forum.com/u/brent)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 2:54am UTC](https://www.ruby-forum.com/t/best-way-of-sorting-grouping-objects/186204 "2010-04-08T02:54:01Z")

</div>

I have a Model called Page, which has a column called page\_type. I want to display all pages by page type (which can change/be added). What is the best way of doing this? I was, in the view looping through each page\_t…

---

## [Group objects by month](https://www.ruby-forum.com/t/group-objects-by-month/186431)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [April 8, 2010, 2:10am UTC](https://www.ruby-forum.com/t/group-objects-by-month/186431 "2010-04-08T02:10:07Z")

</div>

I have a collection of of objects from an query. I can group them by using: @dogs.group\_by(&:birth\_date) that works fine… and it groups them by date, however, I want to group them by month. How can I do this?

---

## [A Confirmation System?](https://www.ruby-forum.com/t/a-confirmation-system/186420)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 8\
**Last updated:** [April 8, 2010, 1:53am UTC](https://www.ruby-forum.com/t/a-confirmation-system/186420 "2010-04-08T01:53:44Z")

</div>

Hey, I’m not sure how complex this really is, but i hope it isn’t too difficult for you guys to explain here My question is, is there a way to intercept a Submit action (for a scaffold, etc) of a form, and take that …

---

## [Best file uploader?](https://www.ruby-forum.com/t/best-file-uploader/186490)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 4\
**Last updated:** [April 8, 2010, 12:44am UTC](https://www.ruby-forum.com/t/best-file-uploader/186490 "2010-04-08T00:44:40Z")

</div>

Hey guys I’m asking for your opinion on the best file uploader plugin/gem for ruby on rails. Acts as attachment? File column plugin? Fleximage? others? What do you guys think? Whats your favorite, which one should i …

---

## [Namespaced models with has\_many :through](https://www.ruby-forum.com/t/namespaced-models-with-has-many-through/186495)

<div class="topic-metadata">

**Author:** [@zettabyte](https://www.ruby-forum.com/u/zettabyte)\
**Replies:** 0\
**Last updated:** [April 8, 2010, 12:00am UTC](https://www.ruby-forum.com/t/namespaced-models-with-has-many-through/186495 "2010-04-08T00:00:46Z")

</div>

Hi. I’m trying to enable the following has\_many :through relationships on some models that, as you can see, these models have been namespaced which appears to be causing my grief: ==== app/models/school/course.rb cla…

---

## [Problems with no method error with rufus scheduler](https://www.ruby-forum.com/t/problems-with-no-method-error-with-rufus-scheduler/186492)

<div class="topic-metadata">

**Author:** [@skroll](https://www.ruby-forum.com/u/skroll)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/problems-with-no-method-error-with-rufus-scheduler/186492 "2010-04-07T23:18:37Z")

</div>

Hi, I have a problem with rufus. I created a test.rb file in the /config/ initializers folder. test.rb require ‘rubygems’ require ‘rufus/scheduler’ scheduler = Rufus::Scheduler.start\_new scheduler.each ‘10s’ do p…

---

## [Select an existing item or create a new one](https://www.ruby-forum.com/t/select-an-existing-item-or-create-a-new-one/186481)

<div class="topic-metadata">

**Author:** [@keavy](https://www.ruby-forum.com/u/keavy)\
**Replies:** 2\
**Last updated:** [April 7, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/select-an-existing-item-or-create-a-new-one/186481 "2010-04-07T22:28:50Z")

</div>

I have a form that manages a few models, using accepts\_nested\_attributes\_for The new event form passes params like so: “event”=\>{ “name”=\>"", “happenings\_attributes”=\>{ “0”=\>{ “location\_attributes”=\>{ “city”=\>"", …

---

## [Want to get one-by-one error message](https://www.ruby-forum.com/t/want-to-get-one-by-one-error-message/186412)

<div class="topic-metadata">

**Author:** [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/want-to-get-one-by-one-error-message/186412 "2010-04-07T21:13:20Z")

</div>

Dear all, In RoR, on one form if I 've applied validations to 7 fields & while running an application if user insert invalid values in i.e. 3 fields at that time RoR shows error message for all 3 fields. I want error…

---

## [Need help with ActiveWarehouse-ETL-0.9.1 PG connection problem](https://www.ruby-forum.com/t/need-help-with-activewarehouse-etl-0-9-1-pg-connection-problem/186487)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/need-help-with-activewarehouse-etl-0-9-1-pg-connection-problem/186487 "2010-04-07T20:47:00Z")

</div>

I am trying to load conversion data into a postgresql database using activewarehouse-etl. I can create a flat file output from the conversion data without problem. However, when I try to load into the table using th…

---

## [Will rake db:migrate:down VERSION=XXX completely remove that migration from Rails?](https://www.ruby-forum.com/t/will-rake-dbdown-version-xxx-completely-remove-that-migration-from-rails/186432)

<div class="topic-metadata">

**Author:** [@GoodGets](https://www.ruby-forum.com/u/GoodGets)\
**Replies:** 7\
**Last updated:** [April 7, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/will-rake-dbdown-version-xxx-completely-remove-that-migration-from-rails/186432 "2010-04-07T20:17:08Z")

</div>

What exactly does rake db:migrate:down VERSION=XXX do? I understand that it runs the “down” migration, completely removing any columns/ tables that migration may have created, but does this mean that I can can delete…

---

## [Prototype/script-atulo-us guidance needed, I think](https://www.ruby-forum.com/t/prototype-script-atulo-us-guidance-needed-i-think/186417)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 1\
**Last updated:** [April 7, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/prototype-script-atulo-us-guidance-needed-i-think/186417 "2010-04-07T19:19:11Z")

</div>

Hi, I’ve got an app\\views\\expenses\\new.html.erb file displayed at http://www.pastie.org/906145. Q1: Lines 22-26, repeated here create a drop-down list of “vendor names” in true Ajax fashion: they push all lower-posit…

---

## [Array containing fields to display on multiple pages](https://www.ruby-forum.com/t/array-containing-fields-to-display-on-multiple-pages/186482)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [April 7, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/array-containing-fields-to-display-on-multiple-pages/186482 "2010-04-07T18:58:05Z")

</div>

I would like to have an array saving fields to display for an object that is used for it’s form on multiple pages. I have declared the array in each of the controller methods that would use it. for example, def new …

---

## [Cumulative sum using mysql/rails](https://www.ruby-forum.com/t/cumulative-sum-using-mysql-rails/186474)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [April 7, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/cumulative-sum-using-mysql-rails/186474 "2010-04-07T17:19:31Z")

</div>

I’m having an issue generating a cumulative sum by month in rails. This is what I have: @results = Student.connection.select\_all(“SELECT x1.MonthNo , x1.MonthName , x1.Added , SUM(x2.Added) AS RunningTotal FROM …

---

## [Retrieve redirect URLs from an URL](https://www.ruby-forum.com/t/retrieve-redirect-urls-from-an-url/186113)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 4\
**Last updated:** [April 7, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/retrieve-redirect-urls-from-an-url/186113 "2010-04-07T17:00:33Z")

</div>

For a project I am currently working on I am looking for a solution that gives me an ordened list of all the URLs that are in a redirect chain. Lets say I have an URL x, clicking this in a normal browser would redirec…

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

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