# Rails

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

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

---

## [We're sorry, but something went wrong on Tomcat](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-on-tomcat/177160)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 15\
**Last updated:** [October 19, 2009, 11:22am UTC](https://www.ruby-forum.com/t/were-sorry-but-something-went-wrong-on-tomcat/177160 "2009-10-19T11:22:25Z")

</div>

I am using JRuby and I have to deploy on Tomcat. My web app is working fine in the dev envirmonment, with Mongel, but when I deploy on Tomcat I get “We’re sorry, but something went wrong on Tomcat”. The problem is tha…

---

## [Deploying rails application](https://www.ruby-forum.com/t/deploying-rails-application/177500)

<div class="topic-metadata">

**Author:** [@Josh6847](https://www.ruby-forum.com/u/Josh6847)\
**Replies:** 2\
**Last updated:** [October 19, 2009, 10:27am UTC](https://www.ruby-forum.com/t/deploying-rails-application/177500 "2009-10-19T10:27:57Z")

</div>

I am looking to set my rails application into production mode. Does anyone have easy instructions on this or good documentation? Thanks in advance. Josh

---

## [\[JOBS\] Seeking technical co-founder for web 2.0 sustainability start-up in Vancouver â€“ equity bas](https://www.ruby-forum.com/t/jobs-seeking-technical-co-founder-for-web-2-0-sustainability-start-up-in-vancouver-a-equity-bas/177501)

<div class="topic-metadata">

**Author:** [@Annalea\_Krebs](https://www.ruby-forum.com/u/Annalea_Krebs)\
**Replies:** 0\
**Last updated:** [October 19, 2009, 9:47am UTC](https://www.ruby-forum.com/t/jobs-seeking-technical-co-founder-for-web-2-0-sustainability-start-up-in-vancouver-a-equity-bas/177501 "2009-10-19T09:47:00Z")

</div>

Do you have a passion to use technology for social and environmental change?! Want to get in on the ground level of a promising company, as a co-founder? This opportunity is equity based, and part-time to start, leadi…

---

## [Attachment\_fu and nested model forms](https://www.ruby-forum.com/t/attachment-fu-and-nested-model-forms/161522)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 3\
**Last updated:** [October 19, 2009, 4:53am UTC](https://www.ruby-forum.com/t/attachment-fu-and-nested-model-forms/161522 "2009-10-19T04:53:55Z")

</div>

Has anyone successfully used attachment\_fu with rails 2.3 nested model forms? I’ve never used attachment\_fu before so I may be doing something wrong there not sure. Here’s what I’ve got: class Product \< ActiveRecord…

---

## [Problem passing id to another model](https://www.ruby-forum.com/t/problem-passing-id-to-another-model/177463)

<div class="topic-metadata">

**Author:** [@ryan8720](https://www.ruby-forum.com/u/ryan8720)\
**Replies:** 3\
**Last updated:** [October 19, 2009, 4:03am UTC](https://www.ruby-forum.com/t/problem-passing-id-to-another-model/177463 "2009-10-19T04:03:23Z")

</div>

I have a rails application that models a house. house contains rooms and rooms have nested attributes for light and small\_appliance. I have a calculator controller, which is how end users will access the application. …

---

## [How to DRY up these methods?](https://www.ruby-forum.com/t/how-to-dry-up-these-methods/177448)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 6\
**Last updated:** [October 19, 2009, 3:31am UTC](https://www.ruby-forum.com/t/how-to-dry-up-these-methods/177448 "2009-10-19T03:31:13Z")

</div>

I’ve clearly go a lot of repetition in the following methods: def name=(value) write\_attribute(:name, if \[0,“0”,""," “\].include? value then nil else value end) end def address=(value) write\_attribute(:address, if \[…

---

## [Hash.new(0) vs. Hash.new { |h,k| h\[k\] = 0 }](https://www.ruby-forum.com/t/hash-new-0-vs-hash-new-h-k-h-k-0/177472)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 3\
**Last updated:** [October 19, 2009, 2:53am UTC](https://www.ruby-forum.com/t/hash-new-0-vs-hash-new-h-k-h-k-0/177472 "2009-10-19T02:53:13Z")

</div>

While putting DRYing some tests, I am trying to initialize a hash as follows: business = Business.new(0) But this returns an error in testing. Specifically: Error: test\_should\_have\_nils\_not\_zeroes\_except\_for\_sales…

---

## [AR.base.connection.execute Not Working](https://www.ruby-forum.com/t/ar-base-connection-execute-not-working/177466)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [October 18, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/ar-base-connection-execute-not-working/177466 "2009-10-18T20:14:01Z")

</div>

Rails 2.3.2, MySQL 5.0.67, mysql-ruby 2.7, ruby 1.8.6 I am using AR.base.connection.execute to handle a particular case where I want to avoid all AR callbacks and optimistic versioning. When the code is run, the query…

---

## [Routing Error if using ssl\_required](https://www.ruby-forum.com/t/routing-error-if-using-ssl-required/177446)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 1\
**Last updated:** [October 18, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/routing-error-if-using-ssl-required/177446 "2009-10-18T19:48:15Z")

</div>

Hi everyone, I am running into a routing error when activating ssl. Everything works fine, when I put ssl\_required :index into the controller I get a routing error Routing Error No route matches “/meinkwikit” with …

---

## [NoMethodError in User sessionsController#new](https://www.ruby-forum.com/t/nomethoderror-in-user-sessionscontroller-new/177465)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 18, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-user-sessionscontroller-new/177465 "2009-10-18T18:46:46Z")

</div>

I’m setting up authentication with Authlogic and I get this error. I’ve done some searching but with no success. I tried setting the current\_user method in Application\_controller to protected and not private, on the r…

---

## [Error in using link\_to](https://www.ruby-forum.com/t/error-in-using-link-to/177451)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 6\
**Last updated:** [October 18, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/error-in-using-link-to/177451 "2009-10-18T18:32:48Z")

</div>

Hi, Problem is \<%= link\_to “Index”, {:controller =\> “account”, :action =\> “index” }, :style =\> “text-decoration:none” %\> above, the link\_to is not generating the necessary code it has to generate It is generating …

---

## [Rails-file-uploading](https://www.ruby-forum.com/t/rails-file-uploading/177431)

<div class="topic-metadata">

**Author:** [@engadinerhaus](https://www.ruby-forum.com/u/engadinerhaus)\
**Replies:** 5\
**Last updated:** [October 18, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/rails-file-uploading/177431 "2009-10-18T18:18:39Z")

</div>

Hello. I am comp. new in RoR and i have problems.I followed this instructions: But when i load http://localhost:3000/upload/index in Safari, i get Template is missing Missing template app\\views\\upload\\uploadfil…

---

## [Dwonload Easy Photo Recovery v2.6 + Portable | 5.51 MB](https://www.ruby-forum.com/t/dwonload-easy-photo-recovery-v2-6-portable-5-51-mb/177474)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 18, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/dwonload-easy-photo-recovery-v2-6-portable-5-51-mb/177474 "2009-10-18T16:31:32Z")

</div>

Easy Photo Recovery guarantees safety of your photos and videos. Modern digital cameras and flash cards allow rewriting photo and video files many times and sometimes important files can be deleted or lost by mistake.…

---

## [Something like a file server](https://www.ruby-forum.com/t/something-like-a-file-server/177467)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 4\
**Last updated:** [October 18, 2009, 11:31am UTC](https://www.ruby-forum.com/t/something-like-a-file-server/177467 "2009-10-18T11:31:51Z")

</div>

Hi, I’m sorry if this is slightly OT, but I’m trying to find a way to do the following. I have a bunch of processes that generate regular update files. Each file may be between 100KB - 4MB in size. On the other side…

---

## [Skip default\_scope when running migrations](https://www.ruby-forum.com/t/skip-default-scope-when-running-migrations/177455)

<div class="topic-metadata">

**Author:** [@snow-templar](https://www.ruby-forum.com/u/snow-templar)\
**Replies:** 2\
**Last updated:** [October 18, 2009, 12:53am UTC](https://www.ruby-forum.com/t/skip-default-scope-when-running-migrations/177455 "2009-10-18T00:53:21Z")

</div>

Hi, I was wondering if there is a way to skip the application of a named\_scope to calls made in legacy migrations. I am working with some old migrations that include some data manipulation tasks, and my default scop…

---

## [My App doesn't send mails](https://www.ruby-forum.com/t/my-app-doesnt-send-mails/176665)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 7\
**Last updated:** [October 17, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/my-app-doesnt-send-mails/176665 "2009-10-17T23:21:47Z")

</div>

Hey everyone I put my developed app first time in production mode. Now I see that the Mails are not sent by the app. The strange think is, that it already sent mails in development environment. But only sometimes. Ho…

---

## [Facebox for Prototype](https://www.ruby-forum.com/t/facebox-for-prototype/177387)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [October 17, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/facebox-for-prototype/177387 "2009-10-17T21:15:37Z")

</div>

Hi guys, I’ve tried asking this on the Facebox google group but the group seems to be inactive. I’m trying out facebox for prototype and everything seems to be fine except for this weird graphical glitch. http://im…

---

## [ActiveResource and validation errors](https://www.ruby-forum.com/t/activeresource-and-validation-errors/176491)

<div class="topic-metadata">

**Author:** [@lathiat](https://www.ruby-forum.com/u/lathiat)\
**Replies:** 2\
**Last updated:** [October 17, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/activeresource-and-validation-errors/176491 "2009-10-17T20:55:07Z")

</div>

Howdy All, I am trying to implement a fairly simple REST controller which I am then interfacing with ActiveResource. The problem I am having is when the validation fails, the errors are not being returned to the mode…

---

## [Hardcore ruby on rails developer](https://www.ruby-forum.com/t/hardcore-ruby-on-rails-developer/177453)

<div class="topic-metadata">

**Author:** [@decidestaffing](https://www.ruby-forum.com/u/decidestaffing)\
**Replies:** 0\
**Last updated:** [October 17, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/hardcore-ruby-on-rails-developer/177453 "2009-10-17T17:25:44Z")

</div>

We are searching for freelance Ruby on Rails Developers to work on several staffing projects: Solid Ruby on Rails experience Significant object-oriented programming experience Web 2.0 Experience Ajax, JavaScript, JQue…

---

## [Installing OSM project - trubles](https://www.ruby-forum.com/t/installing-osm-project-trubles/177418)

<div class="topic-metadata">

**Author:** [@dnica](https://www.ruby-forum.com/u/dnica)\
**Replies:** 2\
**Last updated:** [October 17, 2009, 9:30am UTC](https://www.ruby-forum.com/t/installing-osm-project-trubles/177418 "2009-10-17T09:30:21Z")

</div>

when i trying to install OSM project (openstreetmap.com) i have next error messages (it is rake installing step) - so thats error message dnica@dnica:~/prj/rails/rails\_port$ rake gems:install (in /home/dnica/prj/rails…

---

## [Change column name in view](https://www.ruby-forum.com/t/change-column-name-in-view/177428)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [October 17, 2009, 7:54am UTC](https://www.ruby-forum.com/t/change-column-name-in-view/177428 "2009-10-17T07:54:20Z")

</div>

How can I change the column name from the db so it’s displayed in view in a different way?

---

## [Rename\_column breaks tests?](https://www.ruby-forum.com/t/rename-column-breaks-tests/177436)

<div class="topic-metadata">

**Author:** [@pinbot](https://www.ruby-forum.com/u/pinbot)\
**Replies:** 2\
**Last updated:** [October 17, 2009, 7:03am UTC](https://www.ruby-forum.com/t/rename-column-breaks-tests/177436 "2009-10-17T07:03:40Z")

</div>

Apologies for what is probably a very basic question–but whatever obvious thing I’m missing continues to elude me. Rails 2.3.2 and SQLite3 I create a new project with a single basic scaffold, migrate the database, an…

---

## [scRUBYt vs Anemore vs hpricot](https://www.ruby-forum.com/t/scrubyt-vs-anemore-vs-hpricot/177386)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 2\
**Last updated:** [October 17, 2009, 6:35am UTC](https://www.ruby-forum.com/t/scrubyt-vs-anemore-vs-hpricot/177386 "2009-10-17T06:35:26Z")

</div>

Hello all I am trying to start a project where I have to crawl the web to get some data. I am a bit confused between different options available in RoR. Can anyone share his/her experience with scRUBYt or Anemone or …

---

## [Application Error only in Detached Mode](https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398)

<div class="topic-metadata">

**Author:** [@scotdb](https://www.ruby-forum.com/u/scotdb)\
**Replies:** 1\
**Last updated:** [October 17, 2009, 4:11am UTC](https://www.ruby-forum.com/t/application-error-only-in-detached-mode/177398 "2009-10-17T04:11:58Z")

</div>

Very strange one … If I start my Radiant CMS with simply - script/server -e production it works without problem. However if I start it in detached mode with script/server -e production -d then I get - Application e…

---

## [How do I tell people about my open source Rails project?](https://www.ruby-forum.com/t/how-do-i-tell-people-about-my-open-source-rails-project/177432)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 1\
**Last updated:** [October 17, 2009, 4:09am UTC](https://www.ruby-forum.com/t/how-do-i-tell-people-about-my-open-source-rails-project/177432 "2009-10-17T04:09:02Z")

</div>

I have a site built in RoR that I would to tell people about. Is there some list of RoR projects that people look at? How do I submit my site to that list? It is www.hyop.org. Thanks.

---

## [Download Hide My Ip 2009 And Key](https://www.ruby-forum.com/t/download-hide-my-ip-2009-and-key/177434)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 17, 2009, 2:33am UTC](https://www.ruby-forum.com/t/download-hide-my-ip-2009-and-key/177434 "2009-10-17T02:33:03Z")

</div>

Hide My Ip 2009 Download Hide My Ip 2009 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To…

---

## [AJAX - how to have multiple select form sets implemented?](https://www.ruby-forum.com/t/ajax-how-to-have-multiple-select-form-sets-implemented/177356)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 9\
**Last updated:** [October 17, 2009, 1:28am UTC](https://www.ruby-forum.com/t/ajax-how-to-have-multiple-select-form-sets-implemented/177356 "2009-10-17T01:28:03Z")

</div>

hi, there :slight\_smile: Consider a blogging application whereby a user is trying to add a new blog. He/she has to select a category. Upon selecting a category from a drop down box, a new sub categories drop down box…

---

## [Date validation](https://www.ruby-forum.com/t/date-validation/177410)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 3\
**Last updated:** [October 17, 2009, 12:58am UTC](https://www.ruby-forum.com/t/date-validation/177410 "2009-10-17T00:58:46Z")

</div>

Hello, What is the best way to validate date periods? I have a model which has two date attributes, and the user is not able to create a new record if date1 is greater than date2. I tried using validates\_numericality\_…

---

## [ActionMailer plain/text attachments](https://www.ruby-forum.com/t/actionmailer-plain-text-attachments/177416)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 5\
**Last updated:** [October 17, 2009, 12:46am UTC](https://www.ruby-forum.com/t/actionmailer-plain-text-attachments/177416 "2009-10-17T00:46:28Z")

</div>

Does anyone know how to prevent a plain/text attachment to be inline within an email? Is it as simple as changing the content\_type to an application type? My app (not a web app) is using ActionMailer outside of rails…

---

## [How to get vendor/gems/cucumber-0.4.2 to use vendor/gems/treetop-1.4.2?](https://www.ruby-forum.com/t/how-to-get-vendor-gems-cucumber-0-4-2-to-use-vendor-gems-treetop-1-4-2/177390)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 2\
**Last updated:** [October 16, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/how-to-get-vendor-gems-cucumber-0-4-2-to-use-vendor-gems-treetop-1-4-2/177390 "2009-10-16T23:32:33Z")

</div>

I’ve frozen all the gems used for testing my rails app into vendor/gems but some of the dependent gems are loaded from Do I need to specify each gem in cucumber’s dependency tree in the environment initializer? confi…

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

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