# Rails

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

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

---

## [Best way to select uncommon elements from array](https://www.ruby-forum.com/t/best-way-to-select-uncommon-elements-from-array/183541)

<div class="topic-metadata">

**Author:** [@rahtha](https://www.ruby-forum.com/u/rahtha)\
**Replies:** 4\
**Last updated:** [February 16, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/best-way-to-select-uncommon-elements-from-array/183541 "2010-02-16T19:09:53Z")

</div>

I have two arrays and i want to get all items which are NOT common to both, so basically if i have two arrays A and B, i want all elements in A that are not in B. what is the best way to do this apart from using two n…

---

## [\[JOBS\] Unique Developer Opportunity at Anideo (Singapore)](https://www.ruby-forum.com/t/jobs-unique-developer-opportunity-at-anideo-singapore/183563)

<div class="topic-metadata">

**Author:** [@Benjamin\_Wei](https://www.ruby-forum.com/u/Benjamin_Wei)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/jobs-unique-developer-opportunity-at-anideo-singapore/183563 "2010-02-16T17:09:01Z")

</div>

Anideo, a Singapore and US based web products company founded by 3 Harvard graduates, one of whom started Facebook.com is currently hiring!. You will be creating, coding, and building cutting-edge web applications tha…

---

## [User stamping and Authlogic](https://www.ruby-forum.com/t/user-stamping-and-authlogic/183501)

<div class="topic-metadata">

**Author:** [@marnen](https://www.ruby-forum.com/u/marnen)\
**Replies:** 2\
**Last updated:** [February 16, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/user-stamping-and-authlogic/183501 "2010-02-16T17:08:34Z")

</div>

\[I originally posted this to the Authlogic group, but since it’s more of a general Rails issue, I’m reposting it here. Since I wrote the original, I’ve been leaning more toward using Thread.current.\] Hi folks. I have …

---

## [Changing the :path and :url options of has\_attached\_file in paperclip](https://www.ruby-forum.com/t/changing-the-path-and-url-options-of-has-attached-file-in-paperclip/183498)

<div class="topic-metadata">

**Author:** [@SSshaan](https://www.ruby-forum.com/u/SSshaan)\
**Replies:** 4\
**Last updated:** [February 16, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/changing-the-path-and-url-options-of-has-attached-file-in-paperclip/183498 "2010-02-16T16:05:12Z")

</div>

Hello, I am using the paperclip plugin to upload images and it works absolutely fine. I intend to save my uploaded images to C:\\Application\_name\\public folder. Accordingly, with some study over the i-net, I changed …

---

## [Time out problem](https://www.ruby-forum.com/t/time-out-problem/183546)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 2\
**Last updated:** [February 16, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/time-out-problem/183546 "2010-02-16T15:48:49Z")

</div>

Hi, An app I have had online for a while has started timeing out when I add a new user. I think it is failing on the send activation email action. The error dump is below. Am I right in thinking this is the mailer? I…

---

## [Need a faculty who can take class on ROR at Kochi](https://www.ruby-forum.com/t/need-a-faculty-who-can-take-class-on-ror-at-kochi/183555)

<div class="topic-metadata">

**Author:** [@JOBY\_JOHN](https://www.ruby-forum.com/u/JOBY_JOHN)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/need-a-faculty-who-can-take-class-on-ror-at-kochi/183555 "2010-02-16T14:31:33Z")

</div>

dear all, i need a person who can take class on ROR at Kochi the classes will be from march 5, 2010 9 days 7 hours per day regards JOBY – JOBY JOHN removed\_email\_address@domain.invalid removed\_email\_address@dom…

---

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

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/to-json-failing-with-column-named-test/183554 "2010-02-16T14:05:47Z")

</div>

Hi, I have a model with a column named test, which causes trouble to to\_json. The problems comes from this line serializable\_names.each { |name| serializable\_record\[name\] = @record.send(name) } and more specifical…

---

## [Facing an error while running Cucumber with selenium](https://www.ruby-forum.com/t/facing-an-error-while-running-cucumber-with-selenium/183548)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 12:12pm UTC](https://www.ruby-forum.com/t/facing-an-error-while-running-cucumber-with-selenium/183548 "2010-02-16T12:12:50Z")

</div>

hi friends while running my test cases im getting the following error requested: cmd=isTextPresent 1=sydney sessionId=60d074397ead45d1ad0272a01db41c3c received: “ERROR: Couldn’t access document.body. Is this HTML…

---

## [Strange routing(?) Issue](https://www.ruby-forum.com/t/strange-routing-issue/183547)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 12:04pm UTC](https://www.ruby-forum.com/t/strange-routing-issue/183547 "2010-02-16T12:04:38Z")

</div>

I have a Model event and the following two lines in routes.rb 1 - map.connect “events/:action”, :controller =\> ‘events’, :action =\> / \[a-z\_\]+/i 2 - map.resources :events, :has\_many =\> :comments, :has\_one =\> :address …

---

## [Will\_paginate question](https://www.ruby-forum.com/t/will-paginate-question/183511)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 8\
**Last updated:** [February 16, 2010, 11:24am UTC](https://www.ruby-forum.com/t/will-paginate-question/183511 "2010-02-16T11:24:49Z")

</div>

I have a Persons table created with scaffold. I was trying to flick between records by clicking on Previous and Next links. I was struggling to understand will\_paginate, and finally came up with following solution, an…

---

## [How to deal with user requests that take time to process?](https://www.ruby-forum.com/t/how-to-deal-with-user-requests-that-take-time-to-process/183510)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 1\
**Last updated:** [February 16, 2010, 11:03am UTC](https://www.ruby-forum.com/t/how-to-deal-with-user-requests-that-take-time-to-process/183510 "2010-02-16T11:03:45Z")

</div>

Hi guys, Could you recommend a common design for the following case (or point me in the right direction): the user makes a request the server processes is it, but the process is long therefore it is split into “chun…

---

## [Require 'hirb' at the start of every console](https://www.ruby-forum.com/t/require-hirb-at-the-start-of-every-console/183536)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [February 16, 2010, 10:46am UTC](https://www.ruby-forum.com/t/require-hirb-at-the-start-of-every-console/183536 "2010-02-16T10:46:11Z")

</div>

How do I make the script/console run the following commands automatically at the beginning whenever it starts? ActiveRecord::Base.logger = Logger.new(STDOUT) require ‘hirb’ Hirb::View.enable I try putting these in .…

---

## [Thinking sphinx && globalize2](https://www.ruby-forum.com/t/thinking-sphinx-globalize2/183504)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 3\
**Last updated:** [February 16, 2010, 10:29am UTC](https://www.ruby-forum.com/t/thinking-sphinx-globalize2/183504 "2010-02-16T10:29:13Z")

</div>

Hi all. Could you tell me plz - how to integrate sphinx search with globalize2? I’d like to perform search in models with translations. Thanks a lot.

---

## [Cached\_model & ActiveRecord](https://www.ruby-forum.com/t/cached-model-activerecord/183539)

<div class="topic-metadata">

**Author:** [@heo](https://www.ruby-forum.com/u/heo)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 9:59am UTC](https://www.ruby-forum.com/t/cached-model-activerecord/183539 "2010-02-16T09:59:22Z")

</div>

Is CachedModel still a good candidate for model-based caching? Is there any other that is actively supported and works well with Rails 2.3 that I can try?

---

## [Searchlogic incompatible with error\_messages](https://www.ruby-forum.com/t/searchlogic-incompatible-with-error-messages/183540)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 9:33am UTC](https://www.ruby-forum.com/t/searchlogic-incompatible-with-error-messages/183540 "2010-02-16T09:33:37Z")

</div>

Is searchlogic incompatible with error\_messages? I am following the example at #176 Searchlogic - RailsCasts. If I add \<%= f.error\_messages %\> to the form I get the error below: Showing index.html.erb where line #2 …

---

## [Form\_for helper for nested resources](https://www.ruby-forum.com/t/form-for-helper-for-nested-resources/183531)

<div class="topic-metadata">

**Author:** [@Seirie](https://www.ruby-forum.com/u/Seirie)\
**Replies:** 4\
**Last updated:** [February 16, 2010, 9:14am UTC](https://www.ruby-forum.com/t/form-for-helper-for-nested-resources/183531 "2010-02-16T09:14:18Z")

</div>

Man, I have been trying to figure this one out for hours, hopefully you guys can clue me in. Let’s so you have three “nested” models, for example: Category -\> Post -\> Comment (that is, many comments belong to one post…

---

## [ActiveRecord, Find that return only one column](https://www.ruby-forum.com/t/activerecord-find-that-return-only-one-column/183534)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 5\
**Last updated:** [February 16, 2010, 7:33am UTC](https://www.ruby-forum.com/t/activerecord-find-that-return-only-one-column/183534 "2010-02-16T07:33:04Z")

</div>

Hello, Is it possible to make a “join” on an array of objects? If not, is is possible to return only one column with the find method? #method def self.top\_3\_words Search.find(:all,:limit=\>3, :order =\>“count desc”) …

---

## [Rendering different view for different referrer for same action](https://www.ruby-forum.com/t/rendering-different-view-for-different-referrer-for-same-action/183532)

<div class="topic-metadata">

**Author:** [@samiron](https://www.ruby-forum.com/u/samiron)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 6:38am UTC](https://www.ruby-forum.com/t/rendering-different-view-for-different-referrer-for-same-action/183532 "2010-02-16T06:38:38Z")

</div>

I was wondering about a design pattern. Let me give you a example. Say, in a application there are users and three ways to see users. User list A single user description User with his/her associated group (assume ever…

---

## [\[RAILS\] ActiveMerchant and Wirecard question](https://www.ruby-forum.com/t/rails-activemerchant-and-wirecard-question/183528)

<div class="topic-metadata">

**Author:** [@mickey](https://www.ruby-forum.com/u/mickey)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 4:57am UTC](https://www.ruby-forum.com/t/rails-activemerchant-and-wirecard-question/183528 "2010-02-16T04:57:24Z")

</div>

Hi all, i’m developing a webapps that implement ActiveMerchant and Wirecard payment gateway. my question’s : is wirecard have a sandbox like paypal did? where can i get a test account for this? thanks. – David A…

---

## [State select box to be populated according to country](https://www.ruby-forum.com/t/state-select-box-to-be-populated-according-to-country/183474)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 5\
**Last updated:** [February 16, 2010, 4:33am UTC](https://www.ruby-forum.com/t/state-select-box-to-be-populated-according-to-country/183474 "2010-02-16T04:33:05Z")

</div>

Hi I have the models company,country, state company belongs\_to country country has\_many states state belongs\_to country In my company creation view i have two select boxes for country and state. I could implemen…

---

## [Saving & Retrieving Ranges](https://www.ruby-forum.com/t/saving-retrieving-ranges/183524)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [February 16, 2010, 4:12am UTC](https://www.ruby-forum.com/t/saving-retrieving-ranges/183524 "2010-02-16T04:12:19Z")

</div>

I would like to be able to save a set of age brackets as a range and have it treated as a Ruby range when retrieved from the database. I’ve done quite a bit of searching (maybe my Google-fu just sucks) but haven’t h…

---

## [Simpler alternative to Capistrano for single instance deployments?](https://www.ruby-forum.com/t/simpler-alternative-to-capistrano-for-single-instance-deployments/183514)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 6\
**Last updated:** [February 16, 2010, 3:46am UTC](https://www.ruby-forum.com/t/simpler-alternative-to-capistrano-for-single-instance-deployments/183514 "2010-02-16T03:46:33Z")

</div>

Hi, Just wondering if there is simpler deployment tool for Rails apps than Capistrano that is popular? For simple single server hosted deployments, here’s where my source code is, don’t include these files, deploy to…

---

## [Iterating between two values captured in a form](https://www.ruby-forum.com/t/iterating-between-two-values-captured-in-a-form/183519)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [February 16, 2010, 3:40am UTC](https://www.ruby-forum.com/t/iterating-between-two-values-captured-in-a-form/183519 "2010-02-16T03:40:00Z")

</div>

Hey all, What would be the best way to iterate between two numeric values captured in a form? Something like: UserRequest.find(params\[:user\_request\]) (attribute1…attribute2).each {|x1,x2| … } Something like this po…

---

## [How to upgrade my version of my rails application](https://www.ruby-forum.com/t/how-to-upgrade-my-version-of-my-rails-application/183365)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 1\
**Last updated:** [February 16, 2010, 12:56am UTC](https://www.ruby-forum.com/t/how-to-upgrade-my-version-of-my-rails-application/183365 "2010-02-16T00:56:13Z")

</div>

Hello experts! I am having problem while upgrading my rails version from 1.2.3 to 2.3.4. To tell clearly, my problem is I have upgraded my rails version from 1.2.3 to 2.3.4. But i was not able to run…

---

## [\[ANN\] Red Dirt RubyConf: Rails 3 Theme](https://www.ruby-forum.com/t/ann-red-dirt-rubyconf-rails-3-theme/183506)

<div class="topic-metadata">

**Author:** [@JEG2](https://www.ruby-forum.com/u/JEG2)\
**Replies:** 3\
**Last updated:** [February 16, 2010, 12:04am UTC](https://www.ruby-forum.com/t/ann-red-dirt-rubyconf-rails-3-theme/183506 "2010-02-16T00:04:43Z")

</div>

I just wanted to make sure the Rails community is aware of the Red Dirt RubyConf (http://reddirtrubyconf.com/). While we are a “Ruby” conference, we’ve planned a lot of Rails content with entire sections on Rails 3 (T…

---

## [JOBS: Ruby on Rails Architect/developers in NYC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-architect-developers-in-nyc/183512)

<div class="topic-metadata">

**Author:** [@SilverSearch\_Inc\_Jo](https://www.ruby-forum.com/u/SilverSearch_Inc_Jo)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-architect-developers-in-nyc/183512 "2010-02-15T22:29:54Z")

</div>

If interested, please email your resume at removed\_email\_address@domain.invalid along with a time & number to best reach you. Please put subject as “RUBY ON RAILS, NYC” My firm has been brought on board to assist a gl…

---

## [XML encoding](https://www.ruby-forum.com/t/xml-encoding/183509)

<div class="topic-metadata">

**Author:** [@maiken](https://www.ruby-forum.com/u/maiken)\
**Replies:** 0\
**Last updated:** [February 15, 2010, 10:21pm UTC](https://www.ruby-forum.com/t/xml-encoding/183509 "2010-02-15T22:21:58Z")

</div>

Hello, I generate a .xml using the function to\_xml format.xml { render :xml =\> @pisos.to\_xml(:methods =\> \[:provincia\_nombre, :ayuntamiento\_nombre\]) } And the xml is encoded with UTF-8, I would like to know ho…

---

## [Problem with internationalization](https://www.ruby-forum.com/t/problem-with-internationalization/183468)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 10\
**Last updated:** [February 15, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/problem-with-internationalization/183468 "2010-02-15T21:32:47Z")

</div>

I have I18n working. I translated my en.yml file to German (de.yml) and hae set DE as the default language in environment.rb. Everything is almost working. My problem is that I am getting this ï¿½ char … instead of…

---

## [Basic email](https://www.ruby-forum.com/t/basic-email/182982)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 15, 2010, 9:13pm UTC](https://www.ruby-forum.com/t/basic-email/182982 "2010-02-15T21:13:37Z")

</div>

Hi There, Anyone know of a nice basic way to send an email in ruby on rails? I’m thinking of allowing my site members to reccomend/invite friends by entering their email address and hitting send. At a guess, to begin…

---

## [Making a new project, should I choose rails 2.3.5 or 3.0 .0 beta?](https://www.ruby-forum.com/t/making-a-new-project-should-i-choose-rails-2-3-5-or-3-0-0-beta/183470)

<div class="topic-metadata">

**Author:** [@princezuda](https://www.ruby-forum.com/u/princezuda)\
**Replies:** 5\
**Last updated:** [February 15, 2010, 9:01pm UTC](https://www.ruby-forum.com/t/making-a-new-project-should-i-choose-rails-2-3-5-or-3-0-0-beta/183470 "2010-02-15T21:01:31Z")

</div>

hey, I am making a new project, and I’ve been having trouble deciding between rails and 3.5 and rails 3.0.0 beta one. I realize that rails 3.0.0 should be out of beta sometime mid-summer, which is around the time I …

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

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