# Rails

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

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

---

## [Updated\_at with client time not server time](https://www.ruby-forum.com/t/updated-at-with-client-time-not-server-time/140882)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 5\
**Last updated:** [June 20, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/updated-at-with-client-time-not-server-time/140882 "2008-06-20T21:37:10Z")

</div>

Hi, I use the t.timestamps that are automatically added by rails. So there is the created\_at and updated\_at columns in the DB. When I create an entry those are filled with the server time when the request is created …

---

## [Ad Network Advice Needed](https://www.ruby-forum.com/t/ad-network-advice-needed/141022)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/ad-network-advice-needed/141022 "2008-06-20T21:20:21Z")

</div>

Does anyone have any suggestions for an ad network I can use to manage the placement of ads on my site? For ads, all I want to do is display 120x90 ads with up to 75 characters of text under the ad… just like The De…

---

## [Roo gem](https://www.ruby-forum.com/t/roo-gem/140981)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/roo-gem/140981 "2008-06-20T21:19:10Z")

</div>

Hi, I am using ‘roo gem’ for importing data from xml file. My code is importing data from xml file and storing it in database(MySQL). All is going fine. But my issue is that ,i am importing file which is of 64 Kb s…

---

## [Rails Cookbook recommends adding "scaffold :language" -- fails](https://www.ruby-forum.com/t/rails-cookbook-recommends-adding-scaffold-language-fails/140545)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [June 20, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/rails-cookbook-recommends-adding-scaffold-language-fails/140545 "2008-06-20T20:39:45Z")

</div>

Hi, I following the guidance of Rails Cookbook (First Ed, Jan 2007). I followed the first recommendation on page 27 to: ruby script/generate model language script/generate controller language modify class LanguageCo…

---

## [Can I have different Print &View Passwords for PDFs?](https://www.ruby-forum.com/t/can-i-have-different-print-view-passwords-for-pdfs/141019)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/can-i-have-different-print-view-passwords-for-pdfs/141019 "2008-06-20T20:33:57Z")

</div>

I know I am using pdf::writer to set permissions for printing of the document. I would like to have the ability to set different passwords for printing and viewing (NOT editing) the document. Is that possible?

---

## [Random InvalidAuthenticityToken errors](https://www.ruby-forum.com/t/random-invalidauthenticitytoken-errors/141016)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/random-invalidauthenticitytoken-errors/141016 "2008-06-20T20:20:21Z")

</div>

My login controller seems to be randomly raising InvalidAuthenticityToken errors. I’m using exception\_notifier so I’ve got pretty solid debug output, but I can’t see any pattern to it. They are real users with differe…

---

## [Multiple fields\_for, same model](https://www.ruby-forum.com/t/multiple-fields-for-same-model/141008)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/multiple-fields-for-same-model/141008 "2008-06-20T19:50:23Z")

</div>

I have three fields\_for inside a form\_tag. http://pastie.org/218918 Two of them, correspond to the same model, :customer, (the two objects, billing\_customer and shipping\_customer have been built in the controller met…

---

## [ActiveResource new form](https://www.ruby-forum.com/t/activeresource-new-form/141003)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/activeresource-new-form/141003 "2008-06-20T18:08:27Z")

</div>

Hello, I’m experimenting with ActiveResouce and created a very simple server and client application with a single Person resource. I am getting the following error when trying to use the new person form: undefined m…

---

## [Auto Complete](https://www.ruby-forum.com/t/auto-complete/140998)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/auto-complete/140998 "2008-06-20T17:35:14Z")

</div>

Hello All, The rails auto complete, text\_field\_with\_auto\_complete, compares terms using the SQL function LIKE with wildcards on with side of the keyword. Although flashy, this is pretty much useless in the greater s…

---

## [LDAP Authentication fails with Ã± character i n password](https://www.ruby-forum.com/t/ldap-authentication-fails-with-a-character-i-n-password/140930)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 3\
**Last updated:** [June 20, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/ldap-authentication-fails-with-a-character-i-n-password/140930 "2008-06-20T15:57:28Z")

</div>

Hi Guys, I’ve got a rails application that uses activeldap to authenticate users. Its been working great for about 6 months now, but a user from mexico started using it recently, but can’t seem to login. I’ve narrowe…

---

## [Validate\_presence\_of strange behaviour](https://www.ruby-forum.com/t/validate-presence-of-strange-behaviour/140985)

<div class="topic-metadata">

**Author:** [@elmy-liddiard](https://www.ruby-forum.com/u/elmy-liddiard)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/validate-presence-of-strange-behaviour/140985 "2008-06-20T14:42:12Z")

</div>

Folks, I need some help to understand some strange behaviour when using validates\_presence\_of I have a form that updates table row. One field is text and I require it to be completed. With no validation in place in …

---

## [Install ruby on rails on windows server 2003](https://www.ruby-forum.com/t/install-ruby-on-rails-on-windows-server-2003/140928)

<div class="topic-metadata">

**Author:** [@real](https://www.ruby-forum.com/u/real)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/install-ruby-on-rails-on-windows-server-2003/140928 "2008-06-20T14:40:22Z")

</div>

Hi, I’m brand new to ruby on rails since today. I have a windows web server 2003. I want to run ruby on rails. What do I have to install ? Thanks Real

---

## [500 Error on Ruby on Rails](https://www.ruby-forum.com/t/500-error-on-ruby-on-rails/140984)

<div class="topic-metadata">

**Author:** [@Pascal\_Kirtz](https://www.ruby-forum.com/u/Pascal_Kirtz)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/500-error-on-ruby-on-rails/140984 "2008-06-20T13:14:14Z")

</div>

Hi I get a 500 Error on my apache + fcgi server. I tried ruby dispatch.fcgi and I get this. Content-Type: text/html; charset=utf-8 Set-Cookie: \_AMC\_session\_id=dfec4eea61243e40a06ed51566a6ce9a; path=/ Status: 302 Fou…

---

## [\[ANN\] Transparent Message](https://www.ruby-forum.com/t/ann-transparent-message/72018)

<div class="topic-metadata">

**Author:** [@SSSSSbastien\_Gruhie](https://www.ruby-forum.com/u/SSSSSbastien_Gruhie)\
**Replies:** 5\
**Last updated:** [June 20, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/ann-transparent-message/72018 "2008-06-20T12:56:30Z")

</div>

Hi I have done a little JS class to display “transparent message” on a page. It’s a nice way to display flash\[:error/:notice\] messages (a rails helper is included) but you can do a lot of more things with it. It’s u…

---

## [Transparent-message](https://www.ruby-forum.com/t/transparent-message/140982)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/transparent-message/140982 "2008-06-20T12:51:37Z")

</div>

Hi I was trying to use Transparent flash message for my rails application (based on prototype)as below http://transparent-message.xilinus.com/ Here I put transparent\_message\_helper.rb in app/helpers and the javascr…

---

## [Skip validation when this\_action](https://www.ruby-forum.com/t/skip-validation-when-this-action/140968)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [June 20, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/skip-validation-when-this-action/140968 "2008-06-20T12:40:42Z")

</div>

How can I write a condition in a validation that will skip validation if it comes from a certain action? :if =\> don’t\_validate\_when\_this\_action Or how do you handle this, with validation, when you have an update form …

---

## [I need to show some Rails projects. Examples?](https://www.ruby-forum.com/t/i-need-to-show-some-rails-projects-examples/140976)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 11:00am UTC](https://www.ruby-forum.com/t/i-need-to-show-some-rails-projects-examples/140976 "2008-06-20T11:00:33Z")

</div>

I need to show to some people some Rails projects so they can see the power of Rails, I mean, what Rails can do. Any good examples?

---

## [About paginating\_find](https://www.ruby-forum.com/t/about-paginating-find/140969)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 10:34am UTC](https://www.ruby-forum.com/t/about-paginating-find/140969 "2008-06-20T10:34:05Z")

</div>

Hi, I would like to use Welcome cardboardrocket.com - BlueHost.com pluggin with a partial. But I don’t understand why it’s not possible to remplace in the app/views/articles/index.html.erb view this code: \<% @articl…

---

## [Edit bot on wiki.rubyonrails.org](https://www.ruby-forum.com/t/edit-bot-on-wiki-rubyonrails-org/140974)

<div class="topic-metadata">

**Author:** [@sos4nt](https://www.ruby-forum.com/u/sos4nt)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 10:32am UTC](https://www.ruby-forum.com/t/edit-bot-on-wiki-rubyonrails-org/140974 "2008-06-20T10:32:18Z")

</div>

The RailsWebHosts page (http://wiki.rubyonrails.org/rails/pages/ RailsWebHosts) is continuously being overwritten by Anonymous Coward (69.89.22.134) every 5 minutes. A reverse DNS lookup shows that this IP resolves to…

---

## [Apt fails to install rails 2.1.0](https://www.ruby-forum.com/t/apt-fails-to-install-rails-2-1-0/140964)

<div class="topic-metadata">

**Author:** [@codebrick](https://www.ruby-forum.com/u/codebrick)\
**Replies:** 3\
**Last updated:** [June 20, 2008, 10:21am UTC](https://www.ruby-forum.com/t/apt-fails-to-install-rails-2-1-0/140964 "2008-06-20T10:21:06Z")

</div>

Hey all, I’m runnin Ubuntu 7.10 tryin to get the latest of rails up n running. Whenever I run apt-get install rails --include-dependencies, it installs just fine, however its installing 1.2.4 Problem! if I try to ju…

---

## [BitNami RubyStack now includes Git, Nginx and ruby19](https://www.ruby-forum.com/t/bitnami-rubystack-now-includes-git-nginx-and-ruby19/140972)

<div class="topic-metadata">

**Author:** [@beltran](https://www.ruby-forum.com/u/beltran)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 10:15am UTC](https://www.ruby-forum.com/t/bitnami-rubystack-now-includes-git-nginx-and-ruby19/140972 "2008-06-20T10:15:34Z")

</div>

We took into account your requests and RubyStack 1.2 includes updated components, additionally nginx + nginx fair proxy balancer module, git, ruby19 and many new useful gems. It is available for Linux, OS X and Windo…

---

## [Customising url](https://www.ruby-forum.com/t/customising-url/140965)

<div class="topic-metadata">

**Author:** [@sneha](https://www.ruby-forum.com/u/sneha)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 9:03am UTC](https://www.ruby-forum.com/t/customising-url/140965 "2008-06-20T09:03:22Z")

</div>

Hi, In my web application i need to select date and and vendor to display the corresponding data When i select the date, it doesn’t get displayed in the url i.e the url remains the same but when i select the vendor …

---

## [Problem when changing default sqlite to mysql](https://www.ruby-forum.com/t/problem-when-changing-default-sqlite-to-mysql/140668)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 1\
**Last updated:** [June 20, 2008, 9:02am UTC](https://www.ruby-forum.com/t/problem-when-changing-default-sqlite-to-mysql/140668 "2008-06-20T09:02:11Z")

</div>

hi all, i installed rails 2.1.0 just now before i was working with rails 1.2.6. when i try to check the application enviroment link in the index page of the application it gave me " MissingSourceFile in Rails/infoCon…

---

## [Google, MSN, Yahoo spiders crawling off my 'database universe'?](https://www.ruby-forum.com/t/google-msn-yahoo-spiders-crawling-off-my-database-universe/140911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 8:30am UTC](https://www.ruby-forum.com/t/google-msn-yahoo-spiders-crawling-off-my-database-universe/140911 "2008-06-20T08:30:11Z")

</div>

I recently figured out how to create a fairly complex Google Sitemap file and am happy to share this code with anyone who asks. As I have a highly nested database a common URL for me will look something like; mywebsit…

---

## [Page caching and maximum number of files per directory](https://www.ruby-forum.com/t/page-caching-and-maximum-number-of-files-per-directory/140898)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 4\
**Last updated:** [June 20, 2008, 8:22am UTC](https://www.ruby-forum.com/t/page-caching-and-maximum-number-of-files-per-directory/140898 "2008-06-20T08:22:29Z")

</div>

I am using ubuntu with ext3 file system. How many files can I store inside a directory? Is it an effect way to save all 100,000 cached files inside one directory if it is allowed? Or will it be worth arranging these f…

---

## [Key not found error](https://www.ruby-forum.com/t/key-not-found-error/139884)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [June 20, 2008, 7:59am UTC](https://www.ruby-forum.com/t/key-not-found-error/139884 "2008-06-20T07:59:04Z")

</div>

Any ideas what the problem is here? It’s showing up on the edit page for a restful resource. Extracted source (around line #3): 1: Editing content 2: 3: \<% form\_for(\[:admin, @content\]) do |f| %\> 4: \<%= f.error\_m…

---

## [Test Drivenn Development in Rails](https://www.ruby-forum.com/t/test-drivenn-development-in-rails/139975)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 9\
**Last updated:** [June 20, 2008, 7:29am UTC](https://www.ruby-forum.com/t/test-drivenn-development-in-rails/139975 "2008-06-20T07:29:11Z")

</div>

Hello everyone I had a few questions I just downloaded rcov and have it up my question is are there any good sites that teach you how to write TDD in rails. or any books that can teach me the fundamentals of TDD in ra…

---

## [Ferret Gem Installation on Windows](https://www.ruby-forum.com/t/ferret-gem-installation-on-windows/126635)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 9\
**Last updated:** [June 20, 2008, 7:27am UTC](https://www.ruby-forum.com/t/ferret-gem-installation-on-windows/126635 "2008-06-20T07:27:25Z")

</div>

Trying to install ferret on my windows XP environment. Using InstantRails 2.0 with RoR 2.0.2, and NetBeans 6.0. I had successfully installed and built RailsSpace in InstantRails 1.7, but am trying to upgrade RailsSp…

---

## [Javascript help](https://www.ruby-forum.com/t/javascript-help/140959)

<div class="topic-metadata">

**Author:** [@vshyam121](https://www.ruby-forum.com/u/vshyam121)\
**Replies:** 0\
**Last updated:** [June 20, 2008, 7:05am UTC](https://www.ruby-forum.com/t/javascript-help/140959 "2008-06-20T07:05:58Z")

</div>

Hi, I have a lot of trouble finding information about using javascript with ror, which is the reason for this second question on a similar topic. Any way, right now I have a bunch of rhtml files with links in them th…

---

## [Observe\_field](https://www.ruby-forum.com/t/observe-field/140893)

<div class="topic-metadata">

**Author:** [@supriyaiiita](https://www.ruby-forum.com/u/supriyaiiita)\
**Replies:** 5\
**Last updated:** [June 20, 2008, 7:00am UTC](https://www.ruby-forum.com/t/observe-field/140893 "2008-06-20T07:00:27Z")

</div>

I have been trying to pass a collection\_select parameter and a text field parameter to observe\_field so that it watches both the parameters simultaneously. but what i can see is , when i select some value from drop d…

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

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