# Rails

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

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

---

## [Back button behavior has changed again in Safari 3.1, after doing a dom update via ajax/RJS](https://www.ruby-forum.com/t/back-button-behavior-has-changed-again-in-safari-3-1-after-doing-a-dom-update-via-ajax-rjs/132413)

<div class="topic-metadata">

**Author:** [@Yuval](https://www.ruby-forum.com/u/Yuval)\
**Replies:** 6\
**Last updated:** [April 21, 2008, 6:07am UTC](https://www.ruby-forum.com/t/back-button-behavior-has-changed-again-in-safari-3-1-after-doing-a-dom-update-via-ajax-rjs/132413 "2008-04-21T06:07:39Z")

</div>

GAH! Here is the firefox behavior, which is perfect: View page 1 Update some text by using link\_to\_remote or remote\_form\_for, along with an RJS replace or replace\_html Navigate to page 2 Hit back Page was cached with…

---

## [Restarting apps on reboot](https://www.ruby-forum.com/t/restarting-apps-on-reboot/135165)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 6\
**Last updated:** [April 21, 2008, 5:46am UTC](https://www.ruby-forum.com/t/restarting-apps-on-reboot/135165 "2008-04-21T05:46:02Z")

</div>

i have an unbuntu server that i installed rails on using the free peepcode screencast on deprec. all is well unless the computer restarts. none of the apps come up on their own, and if i try to restart them with capis…

---

## [Uneditable Fields in edit form](https://www.ruby-forum.com/t/uneditable-fields-in-edit-form/135009)

<div class="topic-metadata">

**Author:** [@muyayi](https://www.ruby-forum.com/u/muyayi)\
**Replies:** 5\
**Last updated:** [April 21, 2008, 5:06am UTC](https://www.ruby-forum.com/t/uneditable-fields-in-edit-form/135009 "2008-04-21T05:06:18Z")

</div>

When using active scaffold, Is there a way to display form fields as uneditable in edit form? Thanks a lot…

---

## [Rubyonrails.org domain grabbed?](https://www.ruby-forum.com/t/rubyonrails-org-domain-grabbed/135299)

<div class="topic-metadata">

**Author:** [@Jan-Christian\_F](https://www.ruby-forum.com/u/Jan-Christian_F)\
**Replies:** 9\
**Last updated:** [April 21, 2008, 5:00am UTC](https://www.ruby-forum.com/t/rubyonrails-org-domain-grabbed/135299 "2008-04-21T05:00:27Z")

</div>

Erm, is it just me, or has rubyonrails.org just been grabbed? I get a typical traffic grabber / placeholder page, and NetSol whois doesn’t look good either … Jan

---

## [How to prevent user content from messing up my markup?](https://www.ruby-forum.com/t/how-to-prevent-user-content-from-messing-up-my-markup/135166)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 4:44am UTC](https://www.ruby-forum.com/t/how-to-prevent-user-content-from-messing-up-my-markup/135166 "2008-04-21T04:44:06Z")

</div>

On my website, I have a page that allows users to leave comments. I’m using Rick O.'s Whitelist plugin (http://svn.techno-weenie.net/ projects/plugins/white\_list/) to only allow a, b and i tags in user comments. Thi…

---

## [Is http://weblog.rubyonrails.org/ down?](https://www.ruby-forum.com/t/is-http-weblog-rubyonrails-org-down/135316)

<div class="topic-metadata">

**Author:** [@kapslok](https://www.ruby-forum.com/u/kapslok)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 3:53am UTC](https://www.ruby-forum.com/t/is-http-weblog-rubyonrails-org-down/135316 "2008-04-21T03:53:49Z")

</div>

Clicking on the link to the Weblog from the Ruby On Rails web site leads to some travel landing page. Not sure if this is happening everywhere geographically… Can anyone else throw any light on this?

---

## [Problems with displaying validation message](https://www.ruby-forum.com/t/problems-with-displaying-validation-message/135128)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 3\
**Last updated:** [April 21, 2008, 3:20am UTC](https://www.ruby-forum.com/t/problems-with-displaying-validation-message/135128 "2008-04-21T03:20:03Z")

</div>

Hi, Sorry I didn’t post the right thing. I have two tables category and book. I have a hidden category\_id field in the create book page. So by right if I submit an empty create book form, an error message box will s…

---

## [PGP encryption from RoR?](https://www.ruby-forum.com/t/pgp-encryption-from-ror/135071)

<div class="topic-metadata">

**Author:** [@sbrocher](https://www.ruby-forum.com/u/sbrocher)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 1:39am UTC](https://www.ruby-forum.com/t/pgp-encryption-from-ror/135071 "2008-04-21T01:39:16Z")

</div>

Hi, I have a web app that will be generating some files that need be transmitted through FTP to another server but, before doing so, they must be PGP encrypted with, naturally, the public PGP key of the receiver. Sa…

---

## [InstantRails, Firefox, and Gmail](https://www.ruby-forum.com/t/instantrails-firefox-and-gmail/135296)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 1:00am UTC](https://www.ruby-forum.com/t/instantrails-firefox-and-gmail/135296 "2008-04-21T01:00:14Z")

</div>

After a couple of false starts, I just installed the next to latest version of InstantRails and worked through the O’Reilly tutorial by Bill W… Ruby Rocks! I’m sold. I just have one teensy little problem, though. Fire…

---

## [Spammer just spammed wiki](https://www.ruby-forum.com/t/spammer-just-spammed-wiki/135309)

<div class="topic-metadata">

**Author:** [@Boguslaw](https://www.ruby-forum.com/u/Boguslaw)\
**Replies:** 1\
**Last updated:** [April 21, 2008, 12:40am UTC](https://www.ruby-forum.com/t/spammer-just-spammed-wiki/135309 "2008-04-21T00:40:56Z")

</div>

Hi I was just looking for some info on Rails Wiki, but then I noticed a long list of links to shop or something. For example: http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations IP: 77.122.97.53 Sincere…

---

## [Why is respond\_to always rending the RXML view?](https://www.ruby-forum.com/t/why-is-respond-to-always-rending-the-rxml-view/135291)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/why-is-respond-to-always-rending-the-rxml-view/135291 "2008-04-20T23:36:36Z")

</div>

I’m having a problem in Rails 2 where respond\_to is always rendering the RXML view even in the HTML rendering response. Can anyone tell me why this might be happening? Here’s a code snippet: respond\_to do |accepts| …

---

## [FormBuilder object in a helper?](https://www.ruby-forum.com/t/formbuilder-object-in-a-helper/135257)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 9\
**Last updated:** [April 20, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/formbuilder-object-in-a-helper/135257 "2008-04-20T21:06:45Z")

</div>

I want to DRY up my form-for. #new.html.erb \<% form\_for @organization, :url =\> organization\_path do |f| %\> \<%= f.label :church\_name, “Church Name:” %\> \<%= f.text\_field :church\_name, :class =\> ‘input-field’, :size =\>…

---

## [Render index view and RJS on load?](https://www.ruby-forum.com/t/render-index-view-and-rjs-on-load/132186)

<div class="topic-metadata">

**Author:** [@tparkin](https://www.ruby-forum.com/u/tparkin)\
**Replies:** 8\
**Last updated:** [April 20, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/render-index-view-and-rjs-on-load/132186 "2008-04-20T20:47:52Z")

</div>

Hi, I’ve searched for a while online and been unable to find anything concerning this. I have a controller with an index action, which has an index view. This view renders the index page but also needs to execute som…

---

## [Attachment\_fu does not work with internet explorer?](https://www.ruby-forum.com/t/attachment-fu-does-not-work-with-internet-explorer/135239)

<div class="topic-metadata">

**Author:** [@silkodyssey](https://www.ruby-forum.com/u/silkodyssey)\
**Replies:** 3\
**Last updated:** [April 20, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/attachment-fu-does-not-work-with-internet-explorer/135239 "2008-04-20T20:45:27Z")

</div>

I am having a problem with Attachment\_fu. I have some code that’s based on the code from the Mark Clark tutorial. Everything works fine on firefox but on Internet Explorer it doesn’t. I click the upload button and not…

---

## [Non-conventional actions and Atom feeds](https://www.ruby-forum.com/t/non-conventional-actions-and-atom-feeds/135228)

<div class="topic-metadata">

**Author:** [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Replies:** 4\
**Last updated:** [April 20, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/non-conventional-actions-and-atom-feeds/135228 "2008-04-20T19:35:00Z")

</div>

I would like to provide Atom feeds in response to different actions. I am aware that eg map.resources :posts helps me generate a feed as a request for /posts.:format, but as I am getting into problems, I see that I do…

---

## [XML into database](https://www.ruby-forum.com/t/xml-into-database/135275)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [April 20, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/xml-into-database/135275 "2008-04-20T18:59:12Z")

</div>

Hi, I like to save www-forms into one text-field in database by using XML. Example: Bill Gates .... And not to make 100\*n fields into table. Is there any easy way for this? Add/Edit/Show data…?

---

## [Problem with RJS, partials, controllers and life](https://www.ruby-forum.com/t/problem-with-rjs-partials-controllers-and-life/135286)

<div class="topic-metadata">

**Author:** [@leoncelot](https://www.ruby-forum.com/u/leoncelot)\
**Replies:** 2\
**Last updated:** [April 20, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/problem-with-rjs-partials-controllers-and-life/135286 "2008-04-20T18:54:29Z")

</div>

Hello everyone I am new to Rails, to web development and to web forums. This is my first ever web forum account and my first ever post to one. Let this show you just how much I want to learn RoR. Allow me to illustra…

---

## [Is there a way to import Exchange rates automatically?](https://www.ruby-forum.com/t/is-there-a-way-to-import-exchange-rates-automatically/135214)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 20, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-import-exchange-rates-automatically/135214 "2008-04-20T18:08:02Z")

</div>

Hi I want to show product prices in many currencies Is there a way to import Exchange rates automatically? Thanks Erez

---

## [Authentication / Roles](https://www.ruby-forum.com/t/authentication-roles/135284)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/authentication-roles/135284 "2008-04-20T18:02:42Z")

</div>

Hello, I have installed restful\_authentication and authentication plugin ( Google Code Archive - Long-term storage for Google Code Project Hosting. ) Login, signup and activation is working, but I find it very difficu…

---

## [Autocomplete error please help](https://www.ruby-forum.com/t/autocomplete-error-please-help/135285)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/autocomplete-error-please-help/135285 "2008-04-20T17:18:26Z")

</div>

Hi, I need to implement auto complete in my form. I have installed autocaomplete for rails 2.0 in the person form i have \<%form\_for(:person,:url=\>{:action =\>“submit\_tag”} do p %\> First Name:\<%= text\_field\_with\_auto…

---

## [\[ANN\] CapGun 0.0.2 released](https://www.ruby-forum.com/t/ann-capgun-0-0-2-released/135287)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/ann-capgun-0-0-2-released/135287 "2008-04-20T17:10:18Z")

</div>

CapGun has been updated to 0.0.2. CapGun is a super simple deployment notifications for Capistrano. Changes in this version: converts the release times to the current time zone; improved docs. More info: Log bugs, …

---

## [Thesaurus - use rails/database, or serve files via apache?](https://www.ruby-forum.com/t/thesaurus-use-rails-database-or-serve-files-via-apache/135251)

<div class="topic-metadata">

**Author:** [@mlopke](https://www.ruby-forum.com/u/mlopke)\
**Replies:** 4\
**Last updated:** [April 20, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/thesaurus-use-rails-database-or-serve-files-via-apache/135251 "2008-04-20T16:46:04Z")

</div>

I need to serve thesaurus content via AJAX requests. I can think of several ways to do it, but performance will definitely be an issue - if there are thousands upon thousands of requests, I want to make sure it’s as f…

---

## [Invalid authenticity tokens when using subdomains](https://www.ruby-forum.com/t/invalid-authenticity-tokens-when-using-subdomains/127535)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [April 20, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/invalid-authenticity-tokens-when-using-subdomains/127535 "2008-04-20T16:36:41Z")

</div>

Does anyone have experience with using subdomains and rails? The example that I used to help me out was from the Advanced Rails Recipes book, but I can’t get it working as it should. I continually get authenticity to…

---

## [Routing error](https://www.ruby-forum.com/t/routing-error/135279)

<div class="topic-metadata">

**Author:** [@nish](https://www.ruby-forum.com/u/nish)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/routing-error/135279 "2008-04-20T14:46:50Z")

</div>

when i create the rails application and start the web server i encounter a routing error saying that it cant find the required method in the controller. but the method does exist. how to go about this??

---

## [Polymorphism messing with me](https://www.ruby-forum.com/t/polymorphism-messing-with-me/135262)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/polymorphism-messing-with-me/135262 "2008-04-20T14:43:19Z")

</div>

Maybe one of you guys can figure this out: User has\_many :comments Comment belongs\_to :user belongs\_to :commentable, :polymorphic =\> true Story has\_many :comments, :as =\> commentable I have a story (variable ca…

---

## [Vlidations](https://www.ruby-forum.com/t/vlidations/135277)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/vlidations/135277 "2008-04-20T14:37:27Z")

</div>

hi im anas Im using model validatios,it check’s in the model… instead of that when i click the view’s submit button (i.e. .rhtml file which contain the form details )it’l check validations such as… ("emptyness,numer…

---

## [Uploadng images(needy)](https://www.ruby-forum.com/t/uploadng-images-needy/135268)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 2\
**Last updated:** [April 20, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/uploadng-images-needy/135268 "2008-04-20T14:14:53Z")

</div>

thanq for suggestions… but im using fileutils and im giving user to upload only one image… so for that im using filutils in app…i wrote the code as #File.open("/public/images/#{self.id}",“wb”) { |f| f.write(params(…

---

## [\[ANN\] ActsAsOptions plugin for Rails 2.0](https://www.ruby-forum.com/t/ann-actsasoptions-plugin-for-rails-2-0/135278)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/ann-actsasoptions-plugin-for-rails-2-0/135278 "2008-04-20T14:07:26Z")

</div>

Hi, I’ve made a simple plugin for Rails 2.0 to generate options for tag. script/plugin install http://janx.googlecode.com/svn/trunk/acts\_as\_options After installed, add the ‘acts\_as\_options’ line to your model: cl…

---

## [Validations](https://www.ruby-forum.com/t/validations/135264)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/validations/135264 "2008-04-20T14:06:16Z")

</div>

plzzz… any one help me in validations… that how can i connect to application.js(in ‘public’ folder) for simple validations such as ‘emptyness’ or ‘numericality’ from my view before going to submit to database thanq… …

---

## [Require in environment.rb is failing in unit test](https://www.ruby-forum.com/t/require-in-environment-rb-is-failing-in-unit-test/135272)

<div class="topic-metadata">

**Author:** [@gobi](https://www.ruby-forum.com/u/gobi)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/require-in-environment-rb-is-failing-in-unit-test/135272 "2008-04-20T13:46:19Z")

</div>

When I run unit test it fails. /home/gobi/workspace/0001\_myweb/config/environment.rb:1:in require': no such file to load -- action\_mailer (LoadError) from /home/gobi/workspace/0001\_myweb/config/environment.rb:1 from ./t…

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

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