# Rails

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

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

---

## [Removing attribute prefix from validation error messages](https://www.ruby-forum.com/t/removing-attribute-prefix-from-validation-error-messages/176201)

<div class="topic-metadata">

**Author:** [@bgumbiker](https://www.ruby-forum.com/u/bgumbiker)\
**Replies:** 7\
**Last updated:** [September 29, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/removing-attribute-prefix-from-validation-error-messages/176201 "2009-09-29T12:07:17Z")

</div>

Hello, Any idea how to remove attribute name from validation error messages? thanks, bogumbiker

---

## [NoMethodError : undefined method \`stringify\_keys!' for "2":String](https://www.ruby-forum.com/t/nomethoderror-undefined-method-stringify-keys-for-2-string/176154)

<div class="topic-metadata">

**Author:** [@maddy](https://www.ruby-forum.com/u/maddy)\
**Replies:** 3\
**Last updated:** [September 29, 2009, 10:32am UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-stringify-keys-for-2-string/176154 "2009-09-29T10:32:55Z")

</div>

Hi, I have been trying to create a small Rails application. In one of the steps, I am facing this error as “NoMethodError in ContactController#update … undefined method \`stringify\_keys!’ for “2”:String”. Let me giv…

---

## [Links to external content](https://www.ruby-forum.com/t/links-to-external-content/176279)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 29, 2009, 10:05am UTC](https://www.ruby-forum.com/t/links-to-external-content/176279 "2009-09-29T10:05:24Z")

</div>

Hello everybody. I have a tricky situation with external links in my Rails application. I have online shopping catalog. All goods have “vendor information” field where URL to vendor’s information about particular shop…

---

## [Rjb: Java classes in Rails](https://www.ruby-forum.com/t/rjb-java-classes-in-rails/176298)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [September 29, 2009, 9:53am UTC](https://www.ruby-forum.com/t/rjb-java-classes-in-rails/176298 "2009-09-29T09:53:59Z")

</div>

Hi, For those who might not be aware, rjb is a killer gem for using java classes inside your rails app (or any ruby code). Check it out at: http://rubyforge.org/projects/rjb/ I was able to successfully use it in one …

---

## [Problem with RESTful resource and ActiveScaffold](https://www.ruby-forum.com/t/problem-with-restful-resource-and-activescaffold/176337)

<div class="topic-metadata">

**Author:** [@PanosJee](https://www.ruby-forum.com/u/PanosJee)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:34am UTC](https://www.ruby-forum.com/t/problem-with-restful-resource-and-activescaffold/176337 "2009-09-29T09:34:57Z")

</div>

Hello everyone, I am trying to use a RESTful controller for user inside a namespace using AS and one outside for registration and so on. When i try to visit the namespaced url I get Unknown action. Once i replace act…

---

## [Rails syntax help](https://www.ruby-forum.com/t/rails-syntax-help/176334)

<div class="topic-metadata">

**Author:** [@foxpro](https://www.ruby-forum.com/u/foxpro)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 9:23am UTC](https://www.ruby-forum.com/t/rails-syntax-help/176334 "2009-09-29T09:23:50Z")

</div>

Hi Guys, I am very new to Ruby and Rails, am trying to understand the syntax of it. I got this code from a book but can’t understand what does "\</ option\>“end.to\_s” do. Here is the complete “view” code. Note: This co…

---

## [Javascript call fails when it renders a partial which has a javascript call](https://www.ruby-forum.com/t/javascript-call-fails-when-it-renders-a-partial-which-has-a-javascript-call/176339)

<div class="topic-metadata">

**Author:** [@darkhelmet](https://www.ruby-forum.com/u/darkhelmet)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 9:19am UTC](https://www.ruby-forum.com/t/javascript-call-fails-when-it-renders-a-partial-which-has-a-javascript-call/176339 "2009-09-29T09:19:44Z")

</div>

So I have a setup like this: Render a view which has a link\_to\_function which does an insert\_html, and the partial that it inserts has a link\_to\_function which does something like a page.call(‘alert’, ‘foo’) The ‘foo…

---

## [Timeout issue and custom solution](https://www.ruby-forum.com/t/timeout-issue-and-custom-solution/176308)

<div class="topic-metadata">

**Author:** [@zatta105](https://www.ruby-forum.com/u/zatta105)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 8:12am UTC](https://www.ruby-forum.com/t/timeout-issue-and-custom-solution/176308 "2009-09-29T08:12:24Z")

</div>

We’re using nginx with HAProxy and mongrel as well as monit and we’re integrating with SAP using Piers H.'s sapnwrfc gem. It contains a C-extension which calls itself an SAP provided C-library for RFC calls. In genera…

---

## [Navigation Tabs](https://www.ruby-forum.com/t/navigation-tabs/176328)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 7:35am UTC](https://www.ruby-forum.com/t/navigation-tabs/176328 "2009-09-29T07:35:31Z")

</div>

Folks, I am looking to add/create some nested tabs to a beginner site and want to easily create/maintain the tabs. Googling around I found Tabs On Rails at http://code.simonecarletti.com/wiki/tabsonrails. I suspect t…

---

## [App best practice \> Client Credit Information](https://www.ruby-forum.com/t/app-best-practice-client-credit-information/176249)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 7\
**Last updated:** [September 29, 2009, 7:20am UTC](https://www.ruby-forum.com/t/app-best-practice-client-credit-information/176249 "2009-09-29T07:20:19Z")

</div>

Hey Everyone, I’m in the process of laying out a new app for a client. They need to be able to receive customers credit information (for a credit check done manually) via the website. So I have a few questions regard…

---

## [Rendering Text in a New Frame](https://www.ruby-forum.com/t/rendering-text-in-a-new-frame/176327)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 7:13am UTC](https://www.ruby-forum.com/t/rendering-text-in-a-new-frame/176327 "2009-09-29T07:13:17Z")

</div>

Is there some way that I can render text in a new frame? Thanks. ... doug

---

## [Trying to pull data out of XML doc using REXML](https://www.ruby-forum.com/t/trying-to-pull-data-out-of-xml-doc-using-rexml/176129)

<div class="topic-metadata">

**Author:** [@accipiter](https://www.ruby-forum.com/u/accipiter)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 6:45am UTC](https://www.ruby-forum.com/t/trying-to-pull-data-out-of-xml-doc-using-rexml/176129 "2009-09-29T06:45:11Z")

</div>

I am trying to get some info from an XML doc that kinda looks like: ... ... ... ... ... ... You get the picture… I’m trying to…

---

## [Form Name or ID](https://www.ruby-forum.com/t/form-name-or-id/176314)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 29, 2009, 4:16am UTC](https://www.ruby-forum.com/t/form-name-or-id/176314 "2009-09-29T04:16:57Z")

</div>

Hi all: I have a form and I want to use the same code for “new” and “edit” methods rendering the view code in a partial. This view code is working for the “new” method but do not for the “edit”, cause of the name of…

---

## [Invitation to connect on LinkedIn](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/176320)

<div class="topic-metadata">

**Author:** [@Tim\_Rand](https://www.ruby-forum.com/u/Tim_Rand)\
**Replies:** 0\
**Last updated:** [September 29, 2009, 4:03am UTC](https://www.ruby-forum.com/t/invitation-to-connect-on-linkedin/176320 "2009-09-29T04:03:01Z")

</div>

LinkedIn Tim Rand requested to add you as a connection on LinkedIn: Mitin, I’d like to add you to my professional network on LinkedIn. Tim Accept invitation from Tim Rand View invitation from Tim Rand LinkedIn …

---

## [Foxy fixtures :has\_one :class\_name](https://www.ruby-forum.com/t/foxy-fixtures-has-one-class-name/176251)

<div class="topic-metadata">

**Author:** [@ccuilla](https://www.ruby-forum.com/u/ccuilla)\
**Replies:** 4\
**Last updated:** [September 29, 2009, 3:57am UTC](https://www.ruby-forum.com/t/foxy-fixtures-has-one-class-name/176251 "2009-09-29T03:57:25Z")

</div>

I’ve been trying to update my Rails project to the new “foxy fixtures” approach but have run into the following (vexing) problem. My models looks like this: class Account \< ActiveRecord::Base has\_one :administrat…

---

## [Filter activeresource response body](https://www.ruby-forum.com/t/filter-activeresource-response-body/176266)

<div class="topic-metadata">

**Author:** [@slavix](https://www.ruby-forum.com/u/slavix)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 3:49am UTC](https://www.ruby-forum.com/t/filter-activeresource-response-body/176266 "2009-09-29T03:49:33Z")

</div>

Hello, I have an ActiveResource model that loads imperfectly structured json from a third party service. I need to catch response before its parsed by the model and make a few corrections on the json. How should I go…

---

## [How disable log for entire action?](https://www.ruby-forum.com/t/how-disable-log-for-entire-action/176316)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [September 29, 2009, 3:05am UTC](https://www.ruby-forum.com/t/how-disable-log-for-entire-action/176316 "2009-09-29T03:05:03Z")

</div>

I need to run some info/debug logging in production environment to find a very elusive problem. However, I have load balancers which whack a very simple request very frequently to ensure the entire app stack is active…

---

## [Select helper](https://www.ruby-forum.com/t/select-helper/176287)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 6\
**Last updated:** [September 29, 2009, 2:10am UTC](https://www.ruby-forum.com/t/select-helper/176287 "2009-09-29T02:10:01Z")

</div>

How do I amend the form helper: \<%= select(“lead”, “associate\_id”, Associate.all.collect {|p| \[ p.to\_s, p.id \] }, {:include\_blank =\> ‘’}) %\> (which is magnificently SIMPLE, and I don’t want to convolute it here, whic…

---

## [Increment Count and display](https://www.ruby-forum.com/t/increment-count-and-display/176293)

<div class="topic-metadata">

**Author:** [@bbrocks](https://www.ruby-forum.com/u/bbrocks)\
**Replies:** 3\
**Last updated:** [September 29, 2009, 1:20am UTC](https://www.ruby-forum.com/t/increment-count-and-display/176293 "2009-09-29T01:20:50Z")

</div>

hello, I have a column hit in my responses table, and I need to create a button beside every response. And when the button is clicked, the counter value should be incremented and displayed on the same page. I created…

---

## [Facebook connect problem](https://www.ruby-forum.com/t/facebook-connect-problem/176312)

<div class="topic-metadata">

**Author:** [@Margareth\_FloriSSSS](https://www.ruby-forum.com/u/Margareth_FloriSSSS)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 12:39am UTC](https://www.ruby-forum.com/t/facebook-connect-problem/176312 "2009-09-29T00:39:10Z")

</div>

Hi. I’m trying to allow users can connect with their facebook user. I already have the connect button, and the aplicaction indetify is there is a session or not. Here is my problem. I create an application on faceb…

---

## [Basic Rails problem with has\_many nil values and permalinks](https://www.ruby-forum.com/t/basic-rails-problem-with-has-many-nil-values-and-permalinks/176304)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 7\
**Last updated:** [September 28, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/basic-rails-problem-with-has-many-nil-values-and-permalinks/176304 "2009-09-28T22:38:05Z")

</div>

Hi, I have a model property with has\_many. I find the property and then I need to find the name of the building or the neighborhood that the property belongs to. The property is not always assigned a building or ne…

---

## [Preceding zero](https://www.ruby-forum.com/t/preceding-zero/176235)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 9\
**Last updated:** [September 28, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/preceding-zero/176235 "2009-09-28T20:46:06Z")

</div>

hi. I want to format a Integer value to a hour with a preceding zero.(two digits) eg. 8 =\> 08 Exists a Ruby or Rails function for that? thanks Michael

---

## [How to ensure two tables reference the same record in a third table?](https://www.ruby-forum.com/t/how-to-ensure-two-tables-reference-the-same-record-in-a-third-table/176174)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 7\
**Last updated:** [September 28, 2009, 8:45pm UTC](https://www.ruby-forum.com/t/how-to-ensure-two-tables-reference-the-same-record-in-a-third-table/176174 "2009-09-28T20:45:07Z")

</div>

class Part \< ActiveRecord::Base has\_many :lots has\_many :components # or, maybe not end class Lot \< ActiveRecord::Base belongs\_to :part has\_many :components end class Component \< ActiveRecord::Base belongs\_to :p…

---

## [Generate a page and save as HTML](https://www.ruby-forum.com/t/generate-a-page-and-save-as-html/176297)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [September 28, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/generate-a-page-and-save-as-html/176297 "2009-09-28T20:43:26Z")

</div>

Is there a way to generate content, and then save the resulting HTML (including application layout, etc) ?

---

## [Seeds.rb and rake test tasks](https://www.ruby-forum.com/t/seeds-rb-and-rake-test-tasks/176290)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 5\
**Last updated:** [September 28, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/seeds-rb-and-rake-test-tasks/176290 "2009-09-28T20:14:40Z")

</div>

We’ve started using seeds.rb to populate some low-level required data into our database, but we’re having some issues with this data getting removed and not re-entered while running the tests. Is seeding part of the t…

---

## [Non UTC database with TimeZone support? (Rails 2.3.4)](https://www.ruby-forum.com/t/non-utc-database-with-timezone-support-rails-2-3-4/176300)

<div class="topic-metadata">

**Author:** [@Javan\_Makhmali](https://www.ruby-forum.com/u/Javan_Makhmali)\
**Replies:** 0\
**Last updated:** [September 28, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/non-utc-database-with-timezone-support-rails-2-3-4/176300 "2009-09-28T20:12:55Z")

</div>

I have an existing database where all dates/times are in PST and I’m interested in adding time zone support for our users. My setup: environment.rb config.active\_record.default\_timezone = :local config.time\_zone = ‘P…

---

## [Test driven development advice](https://www.ruby-forum.com/t/test-driven-development-advice/176250)

<div class="topic-metadata">

**Author:** [@drewB](https://www.ruby-forum.com/u/drewB)\
**Replies:** 2\
**Last updated:** [September 28, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/test-driven-development-advice/176250 "2009-09-28T20:00:02Z")

</div>

I am attempting to use Test Driven Development for the first time and was hoping for a little advice. I am just starting a new section of the website that will ultimately contain a couple controllers and about 6 mode…

---

## [\[ANN\] Switchboard - Easy to use global ActiveRecord event listeners](https://www.ruby-forum.com/t/ann-switchboard-easy-to-use-global-activerecord-event-listeners/176243)

<div class="topic-metadata">

**Author:** [@zilkey](https://www.ruby-forum.com/u/zilkey)\
**Replies:** 1\
**Last updated:** [September 28, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/ann-switchboard-easy-to-use-global-activerecord-event-listeners/176243 "2009-09-28T19:57:07Z")

</div>

Switchboard is a simple, event-observing framework for ActiveRecord. It’s designed to make it easy to add observers for all models in your app, and to easily turn them on and off selectively. Intallation gem sources …

---

## [Counting words for visual details](https://www.ruby-forum.com/t/counting-words-for-visual-details/176265)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [September 28, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/counting-words-for-visual-details/176265 "2009-09-28T19:35:26Z")

</div>

I’ve made a survey in Rails where I want people to pick three words, characteristics for different personality types, from a list of 30 words for 20 different visual details such as linear, organic, symmetry, etc. I …

---

## [Job Post - ROR Jr Programmer - Austin, TX](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/176299)

<div class="topic-metadata">

**Author:** [@amwfllc](https://www.ruby-forum.com/u/amwfllc)\
**Replies:** 0\
**Last updated:** [September 28, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/job-post-ror-jr-programmer-austin-tx/176299 "2009-09-28T19:23:44Z")

</div>

Ruby on Rails Programmer - Junior Our client, based in Austin, TX, is looking for a Ruby on Rails Programmer to join their dynamic team of experienced programmers. As a Ruby on Rails Programmer, you will perform a cri…

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

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