# Rails

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

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

---

## [Standard ActiveRecord validation message](https://www.ruby-forum.com/t/standard-activerecord-validation-message/171041)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [June 25, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/standard-activerecord-validation-message/171041 "2009-06-25T18:28:28Z")

</div>

in testing my app I just use the validations validates\_presence\_of :first\_name, :last\_name, :email validates\_presence\_of :academy, :message =\> “You must select an Academy” validates\_presence\_of :role, :message =\> “…

---

## [Ways to install streamlined](https://www.ruby-forum.com/t/ways-to-install-streamlined/171010)

<div class="topic-metadata">

**Author:** [@lookin](https://www.ruby-forum.com/u/lookin)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/ways-to-install-streamlined/171010 "2009-06-25T18:08:31Z")

</div>

The versoin of rails I used is 2.0.2. I want rails work with streamlined. At first, I should install streamlined. I try: ruby script/plugin install git://github.com/relevance/streamlined It says: Plugin not found: \[…

---

## [Ruby on Rails Versioning (Development vs. Production)](https://www.ruby-forum.com/t/ruby-on-rails-versioning-development-vs-production/171042)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-versioning-development-vs-production/171042 "2009-06-25T17:39:56Z")

</div>

So, I finally went and did it based on a lot of your feedback to me with some questions I had been asking. I was formerly on Ruby 1.9.1-p129 and Rails 2.3.2. I was having a lot of issues with trying to get Postgresql…

---

## [Global condition clause](https://www.ruby-forum.com/t/global-condition-clause/171039)

<div class="topic-metadata">

**Author:** [@billv](https://www.ruby-forum.com/u/billv)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/global-condition-clause/171039 "2009-06-25T17:12:12Z")

</div>

I would like to restrict database calls globally. Specifically, I have a project mgt program and want to restrict access to projects on a user basis. Among others, I have a user and project model. I can place a con…

---

## [Redirect http to https](https://www.ruby-forum.com/t/redirect-http-to-https/171037)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/redirect-http-to-https/171037 "2009-06-25T17:09:16Z")

</div>

We are runnning Rails 2.1/Mongrel/Apache setup and I’m attempting to configure Rails/Apache to force ssl. I’ve added the following line in my httpd-ssl.conf file, under the VirtualHost: RequestHeader set X\_FORWARDED\_…

---

## [Request.host, proxy chains and HTTP\_X\_FORWARDED\_HOST](https://www.ruby-forum.com/t/request-host-proxy-chains-and-http-x-forwarded-host/171034)

<div class="topic-metadata">

**Author:** [@delboy](https://www.ruby-forum.com/u/delboy)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/request-host-proxy-chains-and-http-x-forwarded-host/171034 "2009-06-25T16:37:02Z")

</div>

Hi, We’ve an application that uses url\_for in controllers and views. In views, url\_for generates a relative url (as if :only\_path where used). All is fine there. However, in controllers, url\_for generates a full url,…

---

## [Join Tables](https://www.ruby-forum.com/t/join-tables/170998)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/join-tables/170998 "2009-06-25T14:50:49Z")

</div>

I just have a few questions about join tables. From my understanding the following applies (correct me if I’m wrong): 1.Join tables are always named with the names of the two associated tables, in alphabetical order,…

---

## [Great Opening for ROR](https://www.ruby-forum.com/t/great-opening-for-ror/171029)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/great-opening-for-ror/171029 "2009-06-25T14:23:11Z")

</div>

This is JEEVITHA from Progressions. (About PROGRESSIONS: Progressions, a TOTAL HR Solutions company with deep domain knowledge spanning recruitment consultancy, placements, contract staffing, flexi staffing, permanent…

---

## [Edit is not working properly for radio\_button](https://www.ruby-forum.com/t/edit-is-not-working-properly-for-radio-button/153593)

<div class="topic-metadata">

**Author:** [@raji](https://www.ruby-forum.com/u/raji)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 1:51pm UTC](https://www.ruby-forum.com/t/edit-is-not-working-properly-for-radio-button/153593 "2009-06-25T13:51:12Z")

</div>

Hi, I m trying to edit contact info… all other data other than radio button are getting reflected in edit page … But the same works fine while creating new contact i.e it allows only one email id to be set as primary…

---

## [How to skip css class](https://www.ruby-forum.com/t/how-to-skip-css-class/171019)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/how-to-skip-css-class/171019 "2009-06-25T13:21:37Z")

</div>

Is it possible to avoid applying rails default FieldWithErrors css class for particular input fields. if not how to avoid on the whole. Thanks a bunch

---

## [Thinking sphinx search error](https://www.ruby-forum.com/t/thinking-sphinx-search-error/171027)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 1:07pm UTC](https://www.ruby-forum.com/t/thinking-sphinx-search-error/171027 "2009-06-25T13:07:32Z")

</div>

Hello All, I wanted to implement sphinx search. I have following models. Blog # post model has column “channel\_feature\_id” has\_many :posts, :foreign\_key =\> “channel\_feature\_id” ------ Post # Indexes for thinking sphin…

---

## [How to add html element to flash \[:notice\]?](https://www.ruby-forum.com/t/how-to-add-html-element-to-flash-notice/171020)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-add-html-element-to-flash-notice/171020 "2009-06-25T13:03:26Z")

</div>

Hello all, I confused about how to add HTML control like anchor tag to flash\[:notice\]. This is my code flash\[:notice\]= “You are all ready subscribed to#{@subscription.tariff\_plan\_id} service. Please Unsubscribe to …

---

## [Restful\_ACL "undefined method \`is\_readable\_by'"](https://www.ruby-forum.com/t/restful-acl-undefined-method-is-readable-by/171013)

<div class="topic-metadata">

**Author:** [@shoni](https://www.ruby-forum.com/u/shoni)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 11:58am UTC](https://www.ruby-forum.com/t/restful-acl-undefined-method-is-readable-by/171013 "2009-06-25T11:58:19Z")

</div>

Hi All, I am getting “undefined method \`is\_readable\_by’” in restful\_acl. any idea how to fix this? Thanks, Shahroon

---

## [Accepts\_nested\_attributes\_for :reject\_if issue](https://www.ruby-forum.com/t/accepts-nested-attributes-for-reject-if-issue/170964)

<div class="topic-metadata">

**Author:** [@andiug](https://www.ruby-forum.com/u/andiug)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 11:49am UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-reject-if-issue/170964 "2009-06-25T11:49:10Z")

</div>

I have the following models: class Order \< ActiveRecord::Base belongs\_to :billing\_address belongs\_to :shipping\_address accepts\_nested\_attributes\_for :billing\_address accepts\_nested\_attributes\_for :shipping\_address, …

---

## [Core\_rl\_magick\_.dll not found](https://www.ruby-forum.com/t/core-rl-magick-dll-not-found/171021)

<div class="topic-metadata">

**Author:** [@doelsengupta](https://www.ruby-forum.com/u/doelsengupta)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 11:37am UTC](https://www.ruby-forum.com/t/core-rl-magick-dll-not-found/171021 "2009-06-25T11:37:55Z")

</div>

I have installed Image\_magick,rmagick and scruffy for creating graphs in ruby application. whenever i am trying to run the .rb file it is showing core\_rl\_magick\_.dll not found. Then I uninstalled all the gems amd ima…

---

## [Named\_scopes](https://www.ruby-forum.com/t/named-scopes/171006)

<div class="topic-metadata">

**Author:** [@talex83](https://www.ruby-forum.com/u/talex83)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 10:56am UTC](https://www.ruby-forum.com/t/named-scopes/171006 "2009-06-25T10:56:39Z")

</div>

Hey all, I’m learning rails and am trying to put together a generic ACL check for all models. I’ve been able to sucessfully implement it as a method for all models by decorating ActiveRecord::Base. But when I try t…

---

## [How to disable form elements under any div?](https://www.ruby-forum.com/t/how-to-disable-form-elements-under-any-div/170966)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 4\
**Last updated:** [June 25, 2009, 10:33am UTC](https://www.ruby-forum.com/t/how-to-disable-form-elements-under-any-div/170966 "2009-06-25T10:33:46Z")

</div>

Hello All, how do i disable child form elements of any div \[ html obj \], so that they will not get posted. Is there any other way, to toggle form elements while form post ?? form elements form elements …

---

## [Update google maps dynamically](https://www.ruby-forum.com/t/update-google-maps-dynamically/171014)

<div class="topic-metadata">

**Author:** [@td919](https://www.ruby-forum.com/u/td919)\
**Replies:** 0\
**Last updated:** [June 25, 2009, 10:10am UTC](https://www.ruby-forum.com/t/update-google-maps-dynamically/171014 "2009-06-25T10:10:01Z")

</div>

Hi, I am new to Ruby on Rails. I am trying to integrate Google Map with Ruby on Rails, and I am totally stuck. I can initiate the map centered at a hardcoded lat and lng in my index view, with other locations displaye…

---

## [Permission denied](https://www.ruby-forum.com/t/permission-denied/171007)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 9:51am UTC](https://www.ruby-forum.com/t/permission-denied/171007 "2009-06-25T09:51:35Z")

</div>

Hi, when i do rails myfirstrailsapp at the command prompt on windows…i get the error Permission denied - myfirstrailsapp/public/javascripts/ prototype.js. what should i do now? I am using ruby 1.8.6 (2008-08-11 patch…

---

## [Clear form field](https://www.ruby-forum.com/t/clear-form-field/170844)

<div class="topic-metadata">

**Author:** [@pkatare](https://www.ruby-forum.com/u/pkatare)\
**Replies:** 1\
**Last updated:** [June 25, 2009, 8:30am UTC](https://www.ruby-forum.com/t/clear-form-field/170844 "2009-06-25T08:30:35Z")

</div>

Hi all, I want to clear password field and confirm password field after both are not match.currently both field cotain data after both are not match. Is there any way of doing this?. Thanks Prashant

---

## [Question about HABTM](https://www.ruby-forum.com/t/question-about-habtm/170979)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 4:06am UTC](https://www.ruby-forum.com/t/question-about-habtm/170979 "2009-06-25T04:06:01Z")

</div>

I’ve started looking into the uses of HABTM with linked tables. My greatest problem right now is visualizing and connecting some of my tables together with one another. Let me provide a brief example: Again, using f…

---

## [ActiveResource:: HttpMock](https://www.ruby-forum.com/t/activeresource-httpmock/170981)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 25, 2009, 3:53am UTC](https://www.ruby-forum.com/t/activeresource-httpmock/170981 "2009-06-25T03:53:26Z")

</div>

I’m trying to set up testing on my ActiveResource project. The HttpMock appears to be what I want, but whenever I use the code in the “documentation”, I get the error NameError: uninitialized constant ActiveResource:…

---

## [Can't get remote\_function working on rails 2.3.2](https://www.ruby-forum.com/t/cant-get-remote-function-working-on-rails-2-3-2/170853)

<div class="topic-metadata">

**Author:** [@naijaguy](https://www.ruby-forum.com/u/naijaguy)\
**Replies:** 7\
**Last updated:** [June 25, 2009, 2:08am UTC](https://www.ruby-forum.com/t/cant-get-remote-function-working-on-rails-2-3-2/170853 "2009-06-25T02:08:09Z")

</div>

I’ve tried moving the code around in different ways, but so far I haven’t gotten remote\_function to work for me (I’m using Rails 2.3.2 on my Mac). I want to make an AJAX call when I double-click a word on my page, an…

---

## [Gem path issue wiith passenger (n00b)dave](https://www.ruby-forum.com/t/gem-path-issue-wiith-passenger-n00b-dave/170958)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [June 25, 2009, 1:29am UTC](https://www.ruby-forum.com/t/gem-path-issue-wiith-passenger-n00b-dave/170958 "2009-06-25T01:29:18Z")

</div>

Hi, I’m to stage my first rails deployment using passenger and have hit a snag. I think I’ve narrowed it down to a gem path issue. Trouble is, I don’t how to fix it. Can someone point me to the file(s) I need to edi…

---

## [I18N: allocator undefined for Proc](https://www.ruby-forum.com/t/i18n-allocator-undefined-for-proc/170982)

<div class="topic-metadata">

**Author:** [@migrate](https://www.ruby-forum.com/u/migrate)\
**Replies:** 3\
**Last updated:** [June 25, 2009, 12:55am UTC](https://www.ruby-forum.com/t/i18n-allocator-undefined-for-proc/170982 "2009-06-25T00:55:25Z")

</div>

Hello all, I’m trying to translate my application using the I18N feature and it was working fine until I added a couple of new entries to the en.yml files. Now in every action in my application I always get the follow…

---

## [URI::InvalidURIError with open-uri and Google Maps](https://www.ruby-forum.com/t/uri-invalidurierror-with-open-uri-and-google-maps/170774)

<div class="topic-metadata">

**Author:** [@Matthias\_Baumgart](https://www.ruby-forum.com/u/Matthias_Baumgart)\
**Replies:** 2\
**Last updated:** [June 25, 2009, 12:29am UTC](https://www.ruby-forum.com/t/uri-invalidurierror-with-open-uri-and-google-maps/170774 "2009-06-25T00:29:57Z")

</div>

Hello, I’m getting an URI::InvalidURIError in my controller when I use german characters in the uri. Google accepts them but open-uri not. How to encode them? That’s my controller simplified: def index require ‘ope…

---

## [Cookies.delete doesn't work...?](https://www.ruby-forum.com/t/cookies-delete-doesnt-work/170897)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 10\
**Last updated:** [June 24, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/cookies-delete-doesnt-work/170897 "2009-06-24T22:55:38Z")

</div>

Hello - I’m trying to have an account information and link bar at the top of the screen, i.e: removed\_email\_address@domain.invalid | My Profile | Logout This bar should be up there even when the user is on a cached p…

---

## [Seems Complex----validation](https://www.ruby-forum.com/t/seems-complex-validation/170956)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [June 24, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/seems-complex-validation/170956 "2009-06-24T22:38:29Z")

</div>

Hi everyone, i have 20 fields in users table. in my admin profile module the admin can modify his infomation. but only 12 fields he can able to modify. for the users email field is not mandatory.but for admin email i…

---

## [At my wits end ! Controlling passed in negative values from a form](https://www.ruby-forum.com/t/at-my-wits-end-controlling-passed-in-negative-values-from-a-form/170967)

<div class="topic-metadata">

**Author:** [@rajive\_jain](https://www.ruby-forum.com/u/rajive_jain)\
**Replies:** 2\
**Last updated:** [June 24, 2009, 8:50pm UTC](https://www.ruby-forum.com/t/at-my-wits-end-controlling-passed-in-negative-values-from-a-form/170967 "2009-06-24T20:50:33Z")

</div>

Hi, I am trying to validate a numeric value passed in from a form, which is saved in a MySQL db as decimal(9,2) Now problem is I need to ensure people don’t enter a form value like -. 003. In my validations, I have a…

---

## [FasterCVS and Rails](https://www.ruby-forum.com/t/fastercvs-and-rails/170476)

<div class="topic-metadata">

**Author:** [@migrate](https://www.ruby-forum.com/u/migrate)\
**Replies:** 12\
**Last updated:** [June 24, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/fastercvs-and-rails/170476 "2009-06-24T20:02:44Z")

</div>

Hello all, I’m trying to import some csv data (that has latin characters) using faster csv but I keep getting a MalformedCSVError: “Unclosed quoted field on line 1.” “/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/…

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

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