# Rails

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

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

---

## [I18n.t returns a empty hash when a translation is missing](https://www.ruby-forum.com/t/i18n-t-returns-a-empty-hash-when-a-translation-is-missing/191098)

<div class="topic-metadata">

**Author:** [@tdd](https://www.ruby-forum.com/u/tdd)\
**Replies:** 1\
**Last updated:** [July 5, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/i18n-t-returns-a-empty-hash-when-a-translation-is-missing/191098 "2010-07-05T12:26:10Z")

</div>

Hello, I’m migrating from rails 2.2.2 to rails 2.3.8 and I have a strange issue with I18n.translate. In rails 2.2.2 development, when I try to get an untranslated key I have a error like “Translation missing: \[…\]” I…

---

## [Custom Error Page](https://www.ruby-forum.com/t/custom-error-page/191091)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [July 5, 2010, 11:07am UTC](https://www.ruby-forum.com/t/custom-error-page/191091 "2010-07-05T11:07:14Z")

</div>

Greetings can you point me to reading material on how to create custom error page and redirect the user accordingly ?

---

## [Changing Default Layout Generated By Scaffold](https://www.ruby-forum.com/t/changing-default-layout-generated-by-scaffold/191082)

<div class="topic-metadata">

**Author:** [@Adriano\_Dias\_da\_Sil](https://www.ruby-forum.com/u/Adriano_Dias_da_Sil)\
**Replies:** 5\
**Last updated:** [July 5, 2010, 10:38am UTC](https://www.ruby-forum.com/t/changing-default-layout-generated-by-scaffold/191082 "2010-07-05T10:38:25Z")

</div>

Good afternoon everyone. Using the command: script/generate scaffold User name:string login:string password:string It created a layout in html standard for CRUD in app/views/users. I wonder if you can change this lay…

---

## [The change you wanted was rejected](https://www.ruby-forum.com/t/the-change-you-wanted-was-rejected/165676)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 3\
**Last updated:** [July 5, 2010, 10:18am UTC](https://www.ruby-forum.com/t/the-change-you-wanted-was-rejected/165676 "2010-07-05T10:18:46Z")

</div>

We are getting a strange error occasionally from out app, mostly it seems from ajax requests: The change you wanted was rejected. Maybe you tried to change something you didn’t have access to On searching this seems …

---

## [Mysql gem recognized by script/server but not rake](https://www.ruby-forum.com/t/mysql-gem-recognized-by-script-server-but-not-rake/191074)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [July 5, 2010, 10:06am UTC](https://www.ruby-forum.com/t/mysql-gem-recognized-by-script-server-but-not-rake/191074 "2010-07-05T10:06:11Z")

</div>

Hi all, I recently installed the ruby mysql gem (2.8.1) on my Mac Leopard after much trouble (http://groups.google.com/group/rubyonrails-talk/ browse\_thread/thread/586c29ca813cd391/fb5f34c8f9eb9e3f?lnk=gst&q=mysql +g…

---

## [Error in executing the scaffold](https://www.ruby-forum.com/t/error-in-executing-the-scaffold/191070)

<div class="topic-metadata">

**Author:** [@Adriano\_Dias\_da\_Sil](https://www.ruby-forum.com/u/Adriano_Dias_da_Sil)\
**Replies:** 3\
**Last updated:** [July 4, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/error-in-executing-the-scaffold/191070 "2010-07-04T20:54:17Z")

</div>

Good night. I am starting in linux and development in Ruby. I have not much expertise in this area. I’m using ruby + rails + postgres + RadRails. I generated a CRUD for testing as follows below: scaffold Teste nome:…

---

## [Self Reference, Almost There (I Hope!)](https://www.ruby-forum.com/t/self-reference-almost-there-i-hope/190450)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 8:39pm UTC](https://www.ruby-forum.com/t/self-reference-almost-there-i-hope/190450 "2010-07-04T20:39:39Z")

</div>

I’m still struggling with the self reference. I THINK I’m getting close. I have the following tables: class CreateCategories \< ActiveRecord::Migration def self.up create\_table :categories do |t| t.string :name, :lim…

---

## [Password Recovery Feature](https://www.ruby-forum.com/t/password-recovery-feature/191076)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 1\
**Last updated:** [July 4, 2010, 7:06pm UTC](https://www.ruby-forum.com/t/password-recovery-feature/191076 "2010-07-04T19:06:00Z")

</div>

Hello there, I have an application that allows users to register/login etc. However I have a slight problem in that I cannot reset user’s passwords. THis is frustrating to anyone who uses my site as if they forget the…

---

## [Replytotopic Random Issue with Invalid AuthenticityToken](https://www.ruby-forum.com/t/replytotopic-random-issue-with-invalid-authenticitytoken/190630)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 4\
**Last updated:** [July 4, 2010, 6:59pm UTC](https://www.ruby-forum.com/t/replytotopic-random-issue-with-invalid-authenticitytoken/190630 "2010-07-04T18:59:33Z")

</div>

Greetings I would appreciate any thoughts or ideas on the following issue: I have a RoR application with all forms created dynamically. Unfortunately some times when you hit the back button of the browser and try to …

---

## [Jquery ajax.submit() help](https://www.ruby-forum.com/t/jquery-ajax-submit-help/190812)

<div class="topic-metadata">

**Author:** [@piyushc](https://www.ruby-forum.com/u/piyushc)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/jquery-ajax-submit-help/190812 "2010-07-04T18:39:03Z")

</div>

Hi all, I need some quick help in jquery. While using jquery ajax.Submit(), we can specify the target div to be modified with the template rendered by the corresponding action. Is there way using which we can update…

---

## [Validates\_uniqueness\_of fails on update](https://www.ruby-forum.com/t/validates-uniqueness-of-fails-on-update/191069)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [July 4, 2010, 11:44am UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-fails-on-update/191069 "2010-07-04T11:44:42Z")

</div>

According to the docs when you validate on uniqueness it is supposed to skip the check on the column. I am getting failed validation on updates for some reason. Rails 2.3.5

---

## [How to do personal domains like del.icio.us](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671)

<div class="topic-metadata">

**Author:** [@cristianvg](https://www.ruby-forum.com/u/cristianvg)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 11:41am UTC](https://www.ruby-forum.com/t/how-to-do-personal-domains-like-del-icio-us/184671 "2010-07-04T11:41:52Z")

</div>

Hi, I am looking for a solution in my application, i want to provide a personal “domain” to my users just like del.icio.us do, i don’t want a subdomain, i just want that people can choose to show some information and…

---

## [ImageMagick, passenger, rails, attachement\_fu doesn't resize](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 4\
**Last updated:** [July 4, 2010, 11:21am UTC](https://www.ruby-forum.com/t/imagemagick-passenger-rails-attachement-fu-doesnt-resize/191071 "2010-07-04T11:21:52Z")

</div>

Hi guys! So after a couple of months of development today I am finaly deploying! (WOOHOO great day). But i am stuck with a problem I can’t seem to fix: First of all in development all is working perfectly. In deploy…

---

## [Cannor rake db:create](https://www.ruby-forum.com/t/cannor-rake-db-create/191072)

<div class="topic-metadata">

**Author:** [@denniss](https://www.ruby-forum.com/u/denniss)\
**Replies:** 1\
**Last updated:** [July 4, 2010, 11:12am UTC](https://www.ruby-forum.com/t/cannor-rake-db-create/191072 "2010-07-04T11:12:30Z")

</div>

I get this error message denniss$ rake db:create (in /Users/denniss/Documents/RoR/blog) Couldn’t create database for {“adapter”=\>“mysql”, “database”=\>“blog”, “encoding”=\>“utf8”, “pool”=\>5, “username”=\>“root”, “passw…

---

## [DRYing Routes](https://www.ruby-forum.com/t/drying-routes/191065)

<div class="topic-metadata">

**Author:** [@dwormuth](https://www.ruby-forum.com/u/dwormuth)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 8:28am UTC](https://www.ruby-forum.com/t/drying-routes/191065 "2010-07-04T08:28:49Z")

</div>

I have a series of ‘static’ pages for a site that need named routes in Rails 3. I’m trying to DRY the routes file, but can’t seem to find the proper code. The desired output/code is: match ‘/about’ =\> ‘info#about’, :…

---

## [Rails locals var not being recognized](https://www.ruby-forum.com/t/rails-locals-var-not-being-recognized/191062)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [July 4, 2010, 5:19am UTC](https://www.ruby-forum.com/t/rails-locals-var-not-being-recognized/191062 "2010-07-04T05:19:37Z")

</div>

Unusual, I have a render partial with :locals set up but the partial is not recognizing the var being set. \<%= render ‘/shared/dynamic\_attributes’, :locals =\> {:obj =\> @equipment } %\> Error: undefined local variabl…

---

## [Style question: wrapping functionality around existing pkg](https://www.ruby-forum.com/t/style-question-wrapping-functionality-around-existing-pkg/191066)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 0\
**Last updated:** [July 4, 2010, 4:25am UTC](https://www.ruby-forum.com/t/style-question-wrapping-functionality-around-existing-pkg/191066 "2010-07-04T04:25:24Z")

</div>

My application requires “Mechanize with a holdoff”, that is, one that limits its #get and #submit requests to a maximum of one every N seconds. I have a simple Governor class which runs a block with a minimum holdoff…

---

## [Renderer: rendering to \*another\* format inside a renderer](https://www.ruby-forum.com/t/renderer-rendering-to-another-format-inside-a-renderer/191059)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [July 3, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/renderer-rendering-to-another-format-inside-a-renderer/191059 "2010-07-03T22:20:36Z")

</div>

My skeletal renderer looks like this ActionController.add\_renderer :pdf do |template, options| html = render\_to\_string(template, options) … end The trouble here is that render\_to\_string looks for a template for MIME …

---

## [Good Linux Distro for Rails 3?](https://www.ruby-forum.com/t/good-linux-distro-for-rails-3/191045)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 6\
**Last updated:** [July 3, 2010, 8:13pm UTC](https://www.ruby-forum.com/t/good-linux-distro-for-rails-3/191045 "2010-07-03T20:13:36Z")

</div>

This may be the wrong place for this question but i am not sure where to go. What is a good linux distro to get started with rails 3? I have given up on ubuntu and any related distro since the version of gem isnt hig…

---

## [Url error rails 2.3.5](https://www.ruby-forum.com/t/url-error-rails-2-3-5/191030)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [July 3, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/url-error-rails-2-3-5/191030 "2010-07-03T17:21:31Z")

</div>

I have the routes set up for ‘equipment’, standard scaffold. When I try to go to equipment/new this error pops up: Showing app/views/equipment/new.html.erb where line #3 raised: equipment\_url failed to generate from …

---

## [Update multiple fields with onclick](https://www.ruby-forum.com/t/update-multiple-fields-with-onclick/191051)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 2\
**Last updated:** [July 3, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/update-multiple-fields-with-onclick/191051 "2010-07-03T17:16:15Z")

</div>

We’ve all seen the checkout forms with Bill To: and Ship To: I’d like to have a button that says “Ship to Bill To:” and if we click it, it copies all the Ship To: fields across such as phone, email, etc. I’ve been loo…

---

## [Making something available application wide](https://www.ruby-forum.com/t/making-something-available-application-wide/191011)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 6\
**Last updated:** [July 3, 2010, 4:55pm UTC](https://www.ruby-forum.com/t/making-something-available-application-wide/191011 "2010-07-03T16:55:46Z")

</div>

I’d like to display a banner on every page. Ultimately I’ll be tweaking which banner is displayed via different controllers but initially I’d just like to set a single banner application wide and display it in my “\_he…

---

## [Updating Bill To: fields to Ship To:](https://www.ruby-forum.com/t/updating-bill-to-fields-to-ship-to/191046)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 1\
**Last updated:** [July 3, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/updating-bill-to-fields-to-ship-to/191046 "2010-07-03T16:35:17Z")

</div>

You’ve all seen that shopping carts have a checkbox that automatically moves the Bill To: fields (such as name, phone number, etc) across to the Ship To: fields. How would you approach this in Rails? Thank you

---

## [Reposted from Superuser - Installing Ruby on Rails on Ubuntu 10.04: A Living Nightmare](https://www.ruby-forum.com/t/reposted-from-superuser-installing-ruby-on-rails-on-ubuntu-10-04-a-living-nightmare/191047)

<div class="topic-metadata">

**Author:** [@emptyset](https://www.ruby-forum.com/u/emptyset)\
**Replies:** 5\
**Last updated:** [July 3, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/reposted-from-superuser-installing-ruby-on-rails-on-ubuntu-10-04-a-living-nightmare/191047 "2010-07-03T16:07:47Z")

</div>

I’m reposting this here from my original post on Superuser\[1\], to hopefully get more relevant feedback from more experienced RoR users. I need to get a RoR environment up and running, because I have a client that need…

---

## [How can I retrieve the object on an association without going through the database?](https://www.ruby-forum.com/t/how-can-i-retrieve-the-object-on-an-association-without-going-through-the-database/191053)

<div class="topic-metadata">

**Author:** [@ken](https://www.ruby-forum.com/u/ken)\
**Replies:** 1\
**Last updated:** [July 3, 2010, 1:33pm UTC](https://www.ruby-forum.com/t/how-can-i-retrieve-the-object-on-an-association-without-going-through-the-database/191053 "2010-07-03T13:33:42Z")

</div>

Consider the following setup: class Parent \< ActiveRecord::Base has\_many :children end class Child \< ActiveRecord::Base belongs\_to :parent end And this console session: p = Parent.find 41 p.some\_attr = ‘some\_v…

---

## [Best way to internationalize content from database](https://www.ruby-forum.com/t/best-way-to-internationalize-content-from-database/190985)

<div class="topic-metadata">

**Author:** [@andersonleite](https://www.ruby-forum.com/u/andersonleite)\
**Replies:** 4\
**Last updated:** [July 3, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/best-way-to-internationalize-content-from-database/190985 "2010-07-03T12:25:20Z")

</div>

Hello all. It’s ok to internationalize thing at app using rails, but how to deal with content from database ? What’s the best aproach ? I don’t wanna do things like: \<% if english %\> \<%= obj.name\_english%\> \<% else …

---

## ["MySQL server has gone away"](https://www.ruby-forum.com/t/mysql-server-has-gone-away/190906)

<div class="topic-metadata">

**Author:** [@fischer1121](https://www.ruby-forum.com/u/fischer1121)\
**Replies:** 1\
**Last updated:** [July 3, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/mysql-server-has-gone-away/190906 "2010-07-03T12:13:03Z")

</div>

Hi all, I am getting the following error in the middle of a long-running process: “Mysql::Error: Lost connection to MySQL server during query:…” When rescued and retried, it throws the next error: “Mysql::Error: MyS…

---

## [Ruby on Rails - RHEL](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939)

<div class="topic-metadata">

**Author:** [@freddy1](https://www.ruby-forum.com/u/freddy1)\
**Replies:** 6\
**Last updated:** [July 3, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-rhel/190939 "2010-07-03T12:13:02Z")

</div>

Hi, I am fighting to install Redmine therefore I need to install Ruby on Rails to a machine behind many firewalls. OS is RHEL. My idea was to download the packages, make and install… There was some difficulties becau…

---

## [Help with some important information about Rails](https://www.ruby-forum.com/t/help-with-some-important-information-about-rails/191049)

<div class="topic-metadata">

**Author:** [@Carlos\_Zambrano](https://www.ruby-forum.com/u/Carlos_Zambrano)\
**Replies:** 0\
**Last updated:** [July 3, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/help-with-some-important-information-about-rails/191049 "2010-07-03T12:13:02Z")

</div>

Hello how are all My name is Carlos Zambrano, I’m from Ecuador and I’m doing a graduate thesis about Ruby on Rails vs Php on other frameworks such as Zend, Django and Python on Java or Struts. I would like you to he…

---

## [Rails 3 periodically\_call\_remote](https://www.ruby-forum.com/t/rails-3-periodically-call-remote/191044)

<div class="topic-metadata">

**Author:** [@Gonzalo\_RodrSSS\_gue](https://www.ruby-forum.com/u/Gonzalo_RodrSSS_gue)\
**Replies:** 0\
**Last updated:** [July 3, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/rails-3-periodically-call-remote/191044 "2010-07-03T12:13:02Z")

</div>

Hi Â¿What is the equivalent to periodically\_call\_remote in Rails 3? Thank you

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

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