# Rails

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

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

---

## [Form\_for Values Are Not Visible](https://www.ruby-forum.com/t/form-for-values-are-not-visible/188571)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 6\
**Last updated:** [May 14, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/form-for-values-are-not-visible/188571 "2010-05-14T15:27:27Z")

</div>

I’m using this form in an edit page to update a person. For some weird reason, when I view this form in the browser… The text field’s value is set to the person’s firstname, but it does not display in the browser. Th…

---

## [Rails 3: Change validation error formatting?](https://www.ruby-forum.com/t/rails-3-change-validation-error-formatting/188443)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [May 14, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/rails-3-change-validation-error-formatting/188443 "2010-05-14T15:16:19Z")

</div>

Hello, I’ve been reading that Rails 3 offers a bunch of new validation features. Is there a way to customize the validation error formatting? For example, I prefer to style the elements surrounding a form input conta…

---

## [Testing on real data](https://www.ruby-forum.com/t/testing-on-real-data/188466)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 14\
**Last updated:** [May 14, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/testing-on-real-data/188466 "2010-05-14T15:09:17Z")

</div>

I’m still a relative newbie to RoR, but I’m finding it a very powerful tool. We have a couple of RoR applications up and in production, and we’re making good use of the automatic testing to make sure they’re bug free. …

---

## [Migration and myisam](https://www.ruby-forum.com/t/migration-and-myisam/188591)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 2:59pm UTC](https://www.ruby-forum.com/t/migration-and-myisam/188591 "2010-05-14T14:59:21Z")

</div>

do rails migrations use mysql default storage engine or do they force using innodb? what happen if innodb is disabled on the mysql server? i want to use only myisam, do i need to change something in the migrations?

---

## [A second production environment](https://www.ruby-forum.com/t/a-second-production-environment/188570)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 2\
**Last updated:** [May 14, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/a-second-production-environment/188570 "2010-05-14T14:38:49Z")

</div>

Hi, I’m attempting to create a second production environment, because I have multiple databases to maintain, and production is much faster. So now I have 2 ‘production style’ environments, called ‘production’ and ‘ap…

---

## [Any way to stop notify(method) in a model?](https://www.ruby-forum.com/t/any-way-to-stop-notify-method-in-a-model/188437)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [May 14, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/any-way-to-stop-notify-method-in-a-model/188437 "2010-05-14T14:31:52Z")

</div>

I am adding a function to check for 2 digit dates and change them into 4 digit before a Date.new has time to choke on it. My model is : class Person \< ActiveRecord::Base belongs\_to :household def before\_validation d…

---

## [Sti](https://www.ruby-forum.com/t/sti/188589)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 1:32pm UTC](https://www.ruby-forum.com/t/sti/188589 "2010-05-14T13:32:22Z")

</div>

Hi While googling i found this old blog. http://sean-carley.blogspot.com/2006/05/when-rails-needs-clue-single-table.html But the problem specified there still exists with even rails 2.3.5 . Why it is not resolved An…

---

## [Empty route namespaced](https://www.ruby-forum.com/t/empty-route-namespaced/188578)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 7:20am UTC](https://www.ruby-forum.com/t/empty-route-namespaced/188578 "2010-05-14T07:20:24Z")

</div>

Is there way to create an empty route but only for namespaced routes? as: /admin/site/ empty string would go to /admin/login or something like that.

---

## [Changing names in an app -- advice wanted](https://www.ruby-forum.com/t/changing-names-in-an-app-advice-wanted/188556)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [May 14, 2010, 5:49am UTC](https://www.ruby-forum.com/t/changing-names-in-an-app-advice-wanted/188556 "2010-05-14T05:49:07Z")

</div>

Hi, I’ve got an app close to ready as version 1, but client wants labels on a form and corresponding column names in the database changed, e.g. the label/column named “purpose” to “description”. I’ve got a form def…

---

## [Overriding \<div class="fieldWithErrors"\>](https://www.ruby-forum.com/t/overriding-div-class-fieldwitherrors/86966)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 7\
**Last updated:** [May 14, 2010, 5:37am UTC](https://www.ruby-forum.com/t/overriding-div-class-fieldwitherrors/86966 "2010-05-14T05:37:25Z")

</div>

Does anyone know how to override the behaviour when a form field is incorrect? Thanks, Dan

---

## [Submit\_to\_remote dosent work for me](https://www.ruby-forum.com/t/submit-to-remote-dosent-work-for-me/188574)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 4:54am UTC](https://www.ruby-forum.com/t/submit-to-remote-dosent-work-for-me/188574 "2010-05-14T04:54:41Z")

</div>

earlier i used submit\_to\_remote with rails stranded javascript :defaults and that works fine. after that i changed rails :defaults javascript to jquery. now the submit\_to\_remote dosen’t work for me . any Ideas??

---

## [Rails layouts](https://www.ruby-forum.com/t/rails-layouts/188568)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 3\
**Last updated:** [May 14, 2010, 3:30am UTC](https://www.ruby-forum.com/t/rails-layouts/188568 "2010-05-14T03:30:59Z")

</div>

Hey Right now, I have a lot of controllers/views Half of them require one type of layout, the other half requires another type of layout. right now, the first half of my views uses the application.html.erb Now, ther…

---

## [Stripping back all migrations: is it wise?](https://www.ruby-forum.com/t/stripping-back-all-migrations-is-it-wise/188567)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 4\
**Last updated:** [May 14, 2010, 1:57am UTC](https://www.ruby-forum.com/t/stripping-back-all-migrations-is-it-wise/188567 "2010-05-14T01:57:21Z")

</div>

During this development project, I’ve evolved from “Total Rails Noob” to “Rails Tyro, Class IV”. (And I thank everyone on this list who has helped me along!) I’ve also accrued 67 migrations as I’ve thrashed around an…

---

## [To "loop through" the instance variables of ActiveRecord?](https://www.ruby-forum.com/t/to-loop-through-the-instance-variables-of-activerecord/188564)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 6\
**Last updated:** [May 14, 2010, 1:01am UTC](https://www.ruby-forum.com/t/to-loop-through-the-instance-variables-of-activerecord/188564 "2010-05-14T01:01:08Z")

</div>

to wrap each instance variable of an ActiveRecord object between “ ” and “”, is there a way to “loop through” them, at least in the debug mode, no matter there is getter methods to get them or not, or at least the one…

---

## [Rails 3, Paperclip and checking out particular revisions](https://www.ruby-forum.com/t/rails-3-paperclip-and-checking-out-particular-revisions/188569)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [May 14, 2010, 12:54am UTC](https://www.ruby-forum.com/t/rails-3-paperclip-and-checking-out-particular-revisions/188569 "2010-05-14T00:54:08Z")

</div>

Hey, got a weird one. I’ve been playing with a couple of Rails 3 apps and today I have broken both. Seemingly by updating my paperclip gem. Gemfile … gem ‘paperclip’, :git =\> ‘git://github.com/thoughtbot/paperclip.gi…

---

## [Is there a way not to break 3 lines of code into 3 \<% %\>?](https://www.ruby-forum.com/t/is-there-a-way-not-to-break-3-lines-of-code-into-3/188560)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 5\
**Last updated:** [May 13, 2010, 11:33pm UTC](https://www.ruby-forum.com/t/is-there-a-way-not-to-break-3-lines-of-code-into-3/188560 "2010-05-13T23:33:45Z")

</div>

In the view code, say it is \<% @stories.each do |s| %\> \<%= “ #{h s.inspect}” %\> \<% end %\> it would be breaking the code into 3 \<% %\> and \<%= %\> is there a way to just have one \<% %\> or \<%= %\> so as to keep the …

---

## [Comparison between the versions of Ruby](https://www.ruby-forum.com/t/comparison-between-the-versions-of-ruby/188559)

<div class="topic-metadata">

**Author:** [@Giordano\_Alves](https://www.ruby-forum.com/u/Giordano_Alves)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/comparison-between-the-versions-of-ruby/188559 "2010-05-13T22:37:08Z")

</div>

Does anyone know where I can find a comparison between the versions of ruby? Ruby 1.8, ruby1.9, jruby, rubyee…

---

## [Primeiros Passos](https://www.ruby-forum.com/t/primeiros-passos/188558)

<div class="topic-metadata">

**Author:** [@Michel\_Candido](https://www.ruby-forum.com/u/Michel_Candido)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/primeiros-passos/188558 "2010-05-13T22:35:58Z")

</div>

Boa tarde pessoal gostaria de saber se alguem poderia me passar algumas dicas para comecar a desenvolver com ruby, estou iniciando hoje e gostaria de saber se algum de voces tem alguma apostila ou dica?? valeu

---

## [Help with partials - newbie](https://www.ruby-forum.com/t/help-with-partials-newbie/188555)

<div class="topic-metadata">

**Author:** [@sso](https://www.ruby-forum.com/u/sso)\
**Replies:** 1\
**Last updated:** [May 13, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/help-with-partials-newbie/188555 "2010-05-13T21:57:20Z")

</div>

The way this works I’m getting a table for each subsection. All I really want is a for each subsection. It makes sense why this is happening I’m just not sure of the most appropriate way to work around this. An…

---

## [Easy way to make Rails use MySQL on Windows?](https://www.ruby-forum.com/t/easy-way-to-make-rails-use-mysql-on-windows/188523)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 5\
**Last updated:** [May 13, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/easy-way-to-make-rails-use-mysql-on-windows/188523 "2010-05-13T21:19:18Z")

</div>

I set up Rails from scratch using the methods on: http://rubyonrails.org/download and also: gem install sqlite3-ruby download sqlite3.dll into c:\\ruby\\bin change config/database.yml adapter lines for dev, test, prod…

---

## [\[JOBS\] Looking for a Smart Developer](https://www.ruby-forum.com/t/jobs-looking-for-a-smart-developer/188551)

<div class="topic-metadata">

**Author:** [@HRHRHR](https://www.ruby-forum.com/u/HRHRHR)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-a-smart-developer/188551 "2010-05-13T19:43:17Z")

</div>

Type: Permanent or Contract Benefits: Health care, Laptop / computer Common Ground Publishing is building new kinds of knowledge communities, innovative in their messages and media by setting new standards in confere…

---

## [Problem with ActiveRecord::Base.logger](https://www.ruby-forum.com/t/problem-with-activerecord-base-logger/188548)

<div class="topic-metadata">

**Author:** [@rogergl](https://www.ruby-forum.com/u/rogergl)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-base-logger/188548 "2010-05-13T19:42:42Z")

</div>

I’m using jruby and ActiveRecord in a Swing based application. Until now I used Rails 2.3.5. Today I migrated to Rails 3 which seems to work ok. The only problem I have is that I can no longer use the ActiveRecord l…

---

## [Creating application with rails 2.3.5 and cassandra database](https://www.ruby-forum.com/t/creating-application-with-rails-2-3-5-and-cassandra-database/188547)

<div class="topic-metadata">

**Author:** [@Raghavendra\_J](https://www.ruby-forum.com/u/Raghavendra_J)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/creating-application-with-rails-2-3-5-and-cassandra-database/188547 "2010-05-13T19:42:07Z")

</div>

Hi all Pls help me with creating rails application with rails 2.3.5 and cassandra database

---

## [J2EE/RoR Developer -- Greenville, SC](https://www.ruby-forum.com/t/j2ee-ror-developer-greenville-sc/188549)

<div class="topic-metadata">

**Author:** [@FGPTech](https://www.ruby-forum.com/u/FGPTech)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/j2ee-ror-developer-greenville-sc/188549 "2010-05-13T19:42:07Z")

</div>

We are working with a client on the following Developer opportunity… • J2EE and/or Ruby on Rails (RoR) • At least one of the following databases: DB2, SQL Server, or Oracle • Minimum 3 years experience • Respons…

---

## [What Works](https://www.ruby-forum.com/t/what-works/188508)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 6\
**Last updated:** [May 13, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/what-works/188508 "2010-05-13T19:18:42Z")

</div>

So I installed 1.9.2dev and now the rails server doesn’t work. I have rails beta3 release 3 What do I need to go back to for things to work?? When the fix something where do you download the fix? Thanks

---

## ["rake TEST=test/unit/whatever\_test.rb" is executed 3 times](https://www.ruby-forum.com/t/rake-test-test-unit-whatever-test-rb-is-executed-3-times/187969)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/rake-test-test-unit-whatever-test-rb-is-executed-3-times/187969 "2010-05-13T18:18:46Z")

</div>

Hi you all, I execute "rake TEST= test/unit/whatever\_test.rb, and it is executed 3 times. That it, the output is something like: c:/ruby … “test/unit/whatever\_test.rb” Loaded suite … Started F Finished in 0.8 … …

---

## [Moving to Montana (any rails people live in Montana?)](https://www.ruby-forum.com/t/moving-to-montana-any-rails-people-live-in-montana/188391)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 3\
**Last updated:** [May 13, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/moving-to-montana-any-rails-people-live-in-montana/188391 "2010-05-13T18:16:02Z")

</div>

Hey Group, Montana can be a dry and weary land when it comes to developers. I’m wondering if there are any Ruby or Rails developers in the state? I’m currently in Utah, but moving at the end of the month. I would love…

---

## [Changing foreign key values](https://www.ruby-forum.com/t/changing-foreign-key-values/188542)

<div class="topic-metadata">

**Author:** [@adam\_wead](https://www.ruby-forum.com/u/adam_wead)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/changing-foreign-key-values/188542 "2010-05-13T16:38:52Z")

</div>

Hi all, I have a simple inventory application that consists of rooms with many items (computers, printers, etc). I’d like to create a form for moving an existing item to another room. This means changing the value …

---

## [Ruby on Rails opportunity in New Orleans](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-orleans/188541)

<div class="topic-metadata">

**Author:** [@sid137](https://www.ruby-forum.com/u/sid137)\
**Replies:** 0\
**Last updated:** [May 13, 2010, 4:28pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-opportunity-in-new-orleans/188541 "2010-05-13T16:28:15Z")

</div>

Hi Everyone, I am an IT recruiter with TEKsystems and we are working with a client that develops applications for e-commerce websites. They are looking to add another Ruby on Rails developer to their team. The company…

---

## [Why is this t() call failing?](https://www.ruby-forum.com/t/why-is-this-t-call-failing/188537)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [May 13, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/why-is-this-t-call-failing/188537 "2010-05-13T16:27:44Z")

</div>

Can anyone see why this is failing? It’s probably something dumb on my part but i’m stumped :confused: ActionView::TemplateError (interpolation argument :date\_string missing in “Created on {{:date\_string}} at {{:time…

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

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