# Rails

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

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

---

## [JRuby/glassfish v3 logging problem](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 3\
**Last updated:** [May 3, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/jruby-glassfish-v3-logging-problem/165934 "2009-05-03T12:14:29Z")

</div>

Hi all, Ive just tried to run my app with jruby and glassfish. It seems to work mostly fine, except one weird thing. Glassfish turns over log/development.log when its size hits 1.9MB, renames it to something like de…

---

## [Mysql Gem Error](https://www.ruby-forum.com/t/mysql-gem-error/167049)

<div class="topic-metadata">

**Author:** [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Replies:** 1\
**Last updated:** [May 3, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/mysql-gem-error/167049 "2009-05-03T12:13:53Z")

</div>

Hi, I recently froze the gems on a project in OSX and now I am getting this mysql gem error. Status: 500 Internal Server Error dlopen(/opt/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle, 9): no suitable ima…

---

## [I downloaded rails-2.3.2.zip. How do I install it?](https://www.ruby-forum.com/t/i-downloaded-rails-2-3-2-zip-how-do-i-install-it/167070)

<div class="topic-metadata">

**Author:** [@tvn4jcxv1vq6](https://www.ruby-forum.com/u/tvn4jcxv1vq6)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 11:45am UTC](https://www.ruby-forum.com/t/i-downloaded-rails-2-3-2-zip-how-do-i-install-it/167070 "2009-05-03T11:45:23Z")

</div>

I’ve installed Ruby using the one-click installer for Windows. As said, I downloaded the zip package for RoR and unzipped it to my local hard disk. There is no main install.rb for RoR, but there is one install.rb for …

---

## [Number\_to\_currency() in the view?](https://www.ruby-forum.com/t/number-to-currency-in-the-view/167033)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 3\
**Last updated:** [May 3, 2009, 11:41am UTC](https://www.ruby-forum.com/t/number-to-currency-in-the-view/167033 "2009-05-03T11:41:34Z")

</div>

On p. 93, AWDWR(3rd) it says, …we could do this: \<%= sprintf("$0.02f", product.price) % This would work, but it embeds knowledge of currency formatting into the view. Should we want to internationalize the applicat…

---

## [Calculations on a virtual attribute](https://www.ruby-forum.com/t/calculations-on-a-virtual-attribute/167073)

<div class="topic-metadata">

**Author:** [@holden](https://www.ruby-forum.com/u/holden)\
**Replies:** 1\
**Last updated:** [May 3, 2009, 11:35am UTC](https://www.ruby-forum.com/t/calculations-on-a-virtual-attribute/167073 "2009-05-03T11:35:07Z")

</div>

I is possible to do calculations on a virtual attribute… such as sum, or count I tried using the same as I would on a DB column but of course that doesn’t work. ie. Pricelist.sum(:cyberguide) I have a table with 2 f…

---

## [Architecture discussion](https://www.ruby-forum.com/t/architecture-discussion/167075)

<div class="topic-metadata">

**Author:** [@sumit](https://www.ruby-forum.com/u/sumit)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 11:34am UTC](https://www.ruby-forum.com/t/architecture-discussion/167075 "2009-05-03T11:34:30Z")

</div>

I am new in ROR . I need to design my ROR web application that support distribute environment(different client like web client and mobile client). I struck with the MVC model of ROR as i am J2EE developer. I want to s…

---

## [Strange NoMethodError when trying to work in production mode](https://www.ruby-forum.com/t/strange-nomethoderror-when-trying-to-work-in-production-mode/166895)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 4\
**Last updated:** [May 3, 2009, 8:16am UTC](https://www.ruby-forum.com/t/strange-nomethoderror-when-trying-to-work-in-production-mode/166895 "2009-05-03T08:16:03Z")

</div>

Hi - I’m trying to see how my app behaves in production environment by running the development server with -e production: appdir~$ ./script/server -p production =\> Booting Mongrel =\> Rails 2.3.2 application starting …

---

## [Trouble deploying with cap, nginx, thin, git](https://www.ruby-forum.com/t/trouble-deploying-with-cap-nginx-thin-git/167067)

<div class="topic-metadata">

**Author:** [@ciscor](https://www.ruby-forum.com/u/ciscor)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 8:04am UTC](https://www.ruby-forum.com/t/trouble-deploying-with-cap-nginx-thin-git/167067 "2009-05-03T08:04:43Z")

</div>

I’ve been following along with these Slicehost tutorials on deploying a Rails app: http://articles.slicehost.com/2009/2/20/ubuntu-intrepid-thin-web-server-for-ruby http://articles.slicehost.com/2009/3/13/ubuntu-intrep…

---

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

<div class="topic-metadata">

**Author:** [@siansor](https://www.ruby-forum.com/u/siansor)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 1:34am UTC](https://www.ruby-forum.com/t/problem-with-migration/167056 "2009-05-03T01:34:03Z")

</div>

Hi I have a problem im migration ruby script/generate migration add\_price class AddPrice \< ActiveRecord::Migration def self.up add\_column :products, :price, :precesion =\> 8, :scale =\> 2 , :default =\> 0 end d…

---

## [How to generate external secure form for clients in Rails](https://www.ruby-forum.com/t/how-to-generate-external-secure-form-for-clients-in-rails/167059)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 1:30am UTC](https://www.ruby-forum.com/t/how-to-generate-external-secure-form-for-clients-in-rails/167059 "2009-05-03T01:30:46Z")

</div>

Hello, I have an application where businesses can create accounts and add information about their clients. I would like to be able to generate a form that they can put on their website so that clients can automatical…

---

## [Session values not being stored](https://www.ruby-forum.com/t/session-values-not-being-stored/166729)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/session-values-not-being-stored/166729 "2009-05-02T22:20:54Z")

</div>

This is sort of a repeat post. I apologize in advance but the other one got one reply and was not that helpful to solve the problem I’m having. Evironment is Rails 2.3.2. and Ruby 1.8.6 (patchlevel 111). Windows XP. …

---

## [Ruby on Rails Certification](https://www.ruby-forum.com/t/ruby-on-rails-certification/166948)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 4\
**Last updated:** [May 2, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-certification/166948 "2009-05-02T21:58:37Z")

</div>

Is there any Ruby on Rails certification available for RoR developers? I am thinking of getting into RoR development, but would like to get certified if possible so I have something to stick on my resume. Thanks

---

## [Ext Js and Rails](https://www.ruby-forum.com/t/ext-js-and-rails/167048)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/ext-js-and-rails/167048 "2009-05-02T21:44:34Z")

</div>

Hello, I need some help to integrate Ext JS with Rails. If anyone has the experience I am willing to pay for few hours of consultation. Please contact me directly. Thanks, Bala

---

## [Layout antics](https://www.ruby-forum.com/t/layout-antics/166958)

<div class="topic-metadata">

**Author:** [@dwormuth](https://www.ruby-forum.com/u/dwormuth)\
**Replies:** 5\
**Last updated:** [May 2, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/layout-antics/166958 "2009-05-02T18:53:18Z")

</div>

I have a strange problem with my layout file. I think it may be due to nested partials, but removing the deepest nested partial call does not clear the problem. I have an application wide layout (application.html.erb)…

---

## [Net::SMTPAuthenticationError with use of gmail smtp](https://www.ruby-forum.com/t/net-smtpauthenticationerror-with-use-of-gmail-smtp/167044)

<div class="topic-metadata">

**Author:** [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/net-smtpauthenticationerror-with-use-of-gmail-smtp/167044 "2009-05-02T18:46:28Z")

</div>

Before today my mail service is working well. But i got suddenly Error for Net::SMTPAuthenticationError And get error page with following message 421 4.7.0 Temporary System Problem. Try again later (HS). m29sm196254…

---

## [Redirecting from a View](https://www.ruby-forum.com/t/redirecting-from-a-view/166942)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 6\
**Last updated:** [May 2, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/redirecting-from-a-view/166942 "2009-05-02T18:01:14Z")

</div>

I’d sure like to be able to insert a redirect\_to within a rescue clause of a view. Anyone have any ideas how I might be able to do that? Thanks for any input. ... doug

---

## [Linking to RJS files from multiple locations](https://www.ruby-forum.com/t/linking-to-rjs-files-from-multiple-locations/167032)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/linking-to-rjs-files-from-multiple-locations/167032 "2009-05-02T17:10:50Z")

</div>

Hi, I have a simple RJS file which adds some text to a div like so… VIEW \<%= button\_to\_remote “Test”, :url =\> {:action =\> ‘test’} %\> RJS page.insert\_html :bottom, “testdiv”, “test value” This works fine, however I’…

---

## [Redirect\_to issue - lost port number](https://www.ruby-forum.com/t/redirect-to-issue-lost-port-number/167026)

<div class="topic-metadata">

**Author:** [@MikeDucharme](https://www.ruby-forum.com/u/MikeDucharme)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 12:35pm UTC](https://www.ruby-forum.com/t/redirect-to-issue-lost-port-number/167026 "2009-05-02T12:35:45Z")

</div>

Hi all, I found an issue with “redirect\_to” by accident and hoped someone could fill me in on what is happening. If I try to do a redirect to somewhere that doesn’t exist, the port number will be dropped from the url…

---

## [Unicode + aspell problem](https://www.ruby-forum.com/t/unicode-aspell-problem/167024)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [May 2, 2009, 11:57am UTC](https://www.ruby-forum.com/t/unicode-aspell-problem/167024 "2009-05-02T11:57:39Z")

</div>

I use raspell plugin for aspell. Problem is unicode and not english languages, How to check for example russian text? Aspell doesn’t support Unicode, so what I can do?

---

## [MacVim and rails.vim not working](https://www.ruby-forum.com/t/macvim-and-rails-vim-not-working/166923)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 8\
**Last updated:** [May 2, 2009, 9:20am UTC](https://www.ruby-forum.com/t/macvim-and-rails-vim-not-working/166923 "2009-05-02T09:20:01Z")

</div>

Hi, I’m having trouble getting rails.vim working. Unzipping the rails.vim download on my Desktop produced a rails folder with this structure: rails —autoload -----rails.vim —doc -----rails.txt —plugin -----rail…

---

## [Can rails environments be loaded only once and then execute rake tasks without loading it again an](https://www.ruby-forum.com/t/can-rails-environments-be-loaded-only-once-and-then-execute-rake-tasks-without-loading-it-again-an/166418)

<div class="topic-metadata">

**Author:** [@Canvas](https://www.ruby-forum.com/u/Canvas)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 8:10am UTC](https://www.ruby-forum.com/t/can-rails-environments-be-loaded-only-once-and-then-execute-rake-tasks-without-loading-it-again-an/166418 "2009-05-02T08:10:52Z")

</div>

Hi there guys, I have a daemon that executes a rake task periodically in a loop in the backend. And every time it runs the rake task, rails environment is reloaded. Is there a way that the rails environment is loaded …

---

## [Valid hashed passwords](https://www.ruby-forum.com/t/valid-hashed-passwords/166959)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 2:32am UTC](https://www.ruby-forum.com/t/valid-hashed-passwords/166959 "2009-05-02T02:32:57Z")

</div>

Hey all - just wanted to check if I’m going about this in the right way… I have class User, user has a password Password should only be valid if it’s between 6 and 16 chars in length. New user is created if everythi…

---

## [Attachment\_fu inside a form for a different model](https://www.ruby-forum.com/t/attachment-fu-inside-a-form-for-a-different-model/127362)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 2:26am UTC](https://www.ruby-forum.com/t/attachment-fu-inside-a-form-for-a-different-model/127362 "2009-05-02T02:26:34Z")

</div>

I’m getting very confused trying to use attachment\_fu, but i’m sure the answer is simple to one of you… I have a model called ‘MusicService’, which has a logo associated with it. Logos have been set up to belong\_to :…

---

## [Upgrading to 2.3](https://www.ruby-forum.com/t/upgrading-to-2-3/166973)

<div class="topic-metadata">

**Author:** [@ihihih](https://www.ruby-forum.com/u/ihihih)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 2:10am UTC](https://www.ruby-forum.com/t/upgrading-to-2-3/166973 "2009-05-02T02:10:44Z")

</div>

I’m having trouble upgrading my app from rails 2.2.2 to 2.3.2. I’ve successfully installed the 2.3.2 gem (when I type ‘rails -v’ i get “Rails 2.3.2”) and I’ve changed the environment.rb file to use 2.3.2, but ‘rake r…

---

## [Polymorphic -\> polymorphic relations](https://www.ruby-forum.com/t/polymorphic-polymorphic-relations/166985)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 1:47am UTC](https://www.ruby-forum.com/t/polymorphic-polymorphic-relations/166985 "2009-05-02T01:47:56Z")

</div>

I have 2 polymorphic models that I am trying to relate to each other: class Company \< ActiveRecord::Base belongs\_to :business, :polymorphic =\> true has\_many :people has\_and\_belongs\_to\_many :mops end class Person \< …

---

## [How to do select with sum?](https://www.ruby-forum.com/t/how-to-do-select-with-sum/166949)

<div class="topic-metadata">

**Author:** [@miga](https://www.ruby-forum.com/u/miga)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 1:44am UTC](https://www.ruby-forum.com/t/how-to-do-select-with-sum/166949 "2009-05-02T01:44:25Z")

</div>

Is there a way to rewrite the following Model method avoiding connection.select? class LineOrder \< ActivateRecord::Base belongs\_to :auction belongs\_to :operation … def self.amounts\_by\_year(search) search\_company =…

---

## [RESTful User Registration](https://www.ruby-forum.com/t/restful-user-registration/167013)

<div class="topic-metadata">

**Author:** [@srj](https://www.ruby-forum.com/u/srj)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 1:42am UTC](https://www.ruby-forum.com/t/restful-user-registration/167013 "2009-05-02T01:42:05Z")

</div>

I would like to create a website that will require users to Register. There will be a three step registration process - the user will click “Register” on the home page, and that will take them to Registration Page 1…

---

## [Problem with button\_to\_remote on 2.3.2](https://www.ruby-forum.com/t/problem-with-button-to-remote-on-2-3-2/166934)

<div class="topic-metadata">

**Author:** [@eddier](https://www.ruby-forum.com/u/eddier)\
**Replies:** 1\
**Last updated:** [May 2, 2009, 1:39am UTC](https://www.ruby-forum.com/t/problem-with-button-to-remote-on-2-3-2/166934 "2009-05-02T01:39:45Z")

</div>

I have a link\_to\_remote call which works as expected: \<%= link\_to\_remote “-”, { :url =\> { :action =\> :remove\_from\_cart, :id =\> cart\_item.product} }, { :href =\> url\_for(:action =\> :remove\_from\_cart, :id =\> cart\_item.pr…

---

## [Exception notifier and rails 2.3, does it work?](https://www.ruby-forum.com/t/exception-notifier-and-rails-2-3-does-it-work/166906)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 3\
**Last updated:** [May 2, 2009, 1:24am UTC](https://www.ruby-forum.com/t/exception-notifier-and-rails-2-3-does-it-work/166906 "2009-05-02T01:24:33Z")

</div>

Hi, i’ve just installed exception notifier, set in the enviroment.rb (i’ve tried also in an inizializer file and in production.rb in the enviroments folder) ExceptionNotifier.exception\_recipients = %w(removed\_email\_ad…

---

## [Where can I find Ruby on Rails work?](https://www.ruby-forum.com/t/where-can-i-find-ruby-on-rails-work/167009)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [May 2, 2009, 12:57am UTC](https://www.ruby-forum.com/t/where-can-i-find-ruby-on-rails-work/167009 "2009-05-02T00:57:04Z")

</div>

Hello, Where can I find Ruby on Rails work? I have about 2 years of experience with Ruby/Ruby on Rails and I’ve taught classes in Ruby and Ruby on Rails. I just moved back to America from overseas, so I don’t reall…

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

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