# Rails

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

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

---

## [ActionController::InvalidAuthenticityToken (ActionController](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-actioncontroller/124022)

<div class="topic-metadata">

**Author:** [@milazzo](https://www.ruby-forum.com/u/milazzo)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 10:47am UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-actioncontroller/124022 "2008-04-19T10:47:47Z")

</div>

having just updated to Rails 2.0 I’m getting problems with: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): On most of my pages it works fine, but with some of them I just get …

---

## [Form\_for question](https://www.ruby-forum.com/t/form-for-question/135218)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 9:33am UTC](https://www.ruby-forum.com/t/form-for-question/135218 "2008-04-19T09:33:42Z")

</div>

I have a following snippt to make a form. \<% form\_for :post, @post, :url =\> { :action =\> “create” } do |f| -%\> \<%- end -\> What does “:post” and “@post” do respectively? If my understanding is correct, @post is there …

---

## [RAILS Plugin for Twain](https://www.ruby-forum.com/t/rails-plugin-for-twain/135130)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 9:10am UTC](https://www.ruby-forum.com/t/rails-plugin-for-twain/135130 "2008-04-19T09:10:30Z")

</div>

Hi, Any one creating the rails plugin to integrate with Twain? Thanks, Ayyanar. A

---

## [Rescue\_from TamperedWithCookie error?](https://www.ruby-forum.com/t/rescue-from-tamperedwithcookie-error/122537)

<div class="topic-metadata">

**Author:** [@trevorturk](https://www.ruby-forum.com/u/trevorturk)\
**Replies:** 7\
**Last updated:** [April 19, 2008, 8:43am UTC](https://www.ruby-forum.com/t/rescue-from-tamperedwithcookie-error/122537 "2008-04-19T08:43:47Z")

</div>

I submitted a ticket about this, but I thought perhaps I should ping this mailing list as well. When deploying an an app that was upgraded to run on Rails 2.0 and use cookie sessions, users that are logged into the si…

---

## [Http://groups.google.co.il/group/rubyonrails-talk/post?hl=iw](https://www.ruby-forum.com/t/http-groups-google-co-il-group-rubyonrails-talk-post-hl-iw/135211)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 8:31am UTC](https://www.ruby-forum.com/t/http-groups-google-co-il-group-rubyonrails-talk-post-hl-iw/135211 "2008-04-19T08:31:23Z")

</div>

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

---

## [Best way to "flag" an item?](https://www.ruby-forum.com/t/best-way-to-flag-an-item/135199)

<div class="topic-metadata">

**Author:** [@a2ahmad](https://www.ruby-forum.com/u/a2ahmad)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 7:39am UTC](https://www.ruby-forum.com/t/best-way-to-flag-an-item/135199 "2008-04-19T07:39:17Z")

</div>

Anyone have a favorite way to flag an item (like a product) that might be inappropriate, spam, etc…? I know there is acts\_as\_flaggable however it seems to have mixed reviews. Wondering if there is another good soluti…

---

## [Using render in observe\_field before](https://www.ruby-forum.com/t/using-render-in-observe-field-before/134400)

<div class="topic-metadata">

**Author:** [@rays](https://www.ruby-forum.com/u/rays)\
**Replies:** 5\
**Last updated:** [April 19, 2008, 6:23am UTC](https://www.ruby-forum.com/t/using-render-in-observe-field-before/134400 "2008-04-19T06:23:22Z")

</div>

I want to use render(:partial =\> “loading”) in observe\_field’s before. For example: Can not run \<%= observe\_field ‘username’, :on =\> ‘blur’, :update =\> ‘check\_username’, :url =\> {:action =\> ‘check\_username’}, :befo…

---

## [Anyone using RailsProductGenerator?](https://www.ruby-forum.com/t/anyone-using-railsproductgenerator/135202)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 5:15am UTC](https://www.ruby-forum.com/t/anyone-using-railsproductgenerator/135202 "2008-04-19T05:15:39Z")

</div>

I need a solution provides a: “first tier … single base application that encapsulates common functionality for your product. The second tier consists of several customized applications that inherit and extend function…

---

## [How to make a 126 rails project when 2.02 is installed with windows](https://www.ruby-forum.com/t/how-to-make-a-126-rails-project-when-2-02-is-installed-with-windows/135125)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 7\
**Last updated:** [April 19, 2008, 3:56am UTC](https://www.ruby-forum.com/t/how-to-make-a-126-rails-project-when-2-02-is-installed-with-windows/135125 "2008-04-19T03:56:34Z")

</div>

How do I make a 126 rails project when 2.02 is installed? I posted this question and got this answer: You can generate a NEW rails 1.2.6 project like this $rails 1.2.6 myproject That will probably work on a linix mac…

---

## [Has\_many and belongs\_to with non-primary foreign keys](https://www.ruby-forum.com/t/has-many-and-belongs-to-with-non-primary-foreign-keys/135182)

<div class="topic-metadata">

**Author:** [@tomfakes](https://www.ruby-forum.com/u/tomfakes)\
**Replies:** 3\
**Last updated:** [April 19, 2008, 3:19am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-with-non-primary-foreign-keys/135182 "2008-04-19T03:19:38Z")

</div>

Hi, I’m having a bit of trouble with my first Rails app. I have two tables: create\_table :items do |t| t.column :created\_at, :timestamp t.column :user\_id, :int t.column :text, :text end create\_table :users do |t…

---

## [Tab highlighting and redirect\_to](https://www.ruby-forum.com/t/tab-highlighting-and-redirect-to/135150)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 6\
**Last updated:** [April 19, 2008, 2:49am UTC](https://www.ruby-forum.com/t/tab-highlighting-and-redirect-to/135150 "2008-04-19T02:49:48Z")

</div>

Hi In the controller i have the code def sd\_resolution\_save\_from\_search\_sd\_ticket #Some code here sd\_resolution\_save\_common\_function redirect\_to(:action =\> ‘show\_details’, :id =\> params\[:id\],:activeTab =\> 1) end S…

---

## [Help with background rb triggers!](https://www.ruby-forum.com/t/help-with-background-rb-triggers/134790)

<div class="topic-metadata">

**Author:** [@p0pnfresh](https://www.ruby-forum.com/u/p0pnfresh)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 2:33am UTC](https://www.ruby-forum.com/t/help-with-background-rb-triggers/134790 "2008-04-19T02:33:43Z")

</div>

Hi, I’m currently working with backgroundrb and need some help with workers triggers. I have two app servers with the same rails application and one worker that executes every day at 00:00. In my backgroundrb config …

---

## [Nested Intervals](https://www.ruby-forum.com/t/nested-intervals/135196)

<div class="topic-metadata">

**Author:** [@MaddyTheGoose](https://www.ruby-forum.com/u/MaddyTheGoose)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 2:20am UTC](https://www.ruby-forum.com/t/nested-intervals/135196 "2008-04-19T02:20:36Z")

</div>

Has anyone used or seen use of Nested Intervals (see http://www.sigmod.org/sigmod/record/issues/0506/p47-article-tropashko.pdf) in Ruby on Rails? I need something like Nested Sets but also need something that can hand…

---

## [MySQL Query - number of rows](https://www.ruby-forum.com/t/mysql-query-number-of-rows/135194)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [April 19, 2008, 1:46am UTC](https://www.ruby-forum.com/t/mysql-query-number-of-rows/135194 "2008-04-19T01:46:12Z")

</div>

Hello, Stupid question, but how can I find out how many rows my SQL query returned? @grab\_new\_entries = NewEntries.connection.select\_all(“SELECT displayname AS displayname FROM new\_entries”) @grab\_new\_entries.num\_ro…

---

## [Howto run a non-app script in console](https://www.ruby-forum.com/t/howto-run-a-non-app-script-in-console/135189)

<div class="topic-metadata">

**Author:** [@mat30](https://www.ruby-forum.com/u/mat30)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 1:19am UTC](https://www.ruby-forum.com/t/howto-run-a-non-app-script-in-console/135189 "2008-04-19T01:19:07Z")

</div>

To save some typing I’d like to create and run any script in the console window. By ‘any script’ I mean non-application related, that is a script that doos not exist within the application structure. This would help …

---

## [Modrails](https://www.ruby-forum.com/t/modrails/135184)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 5\
**Last updated:** [April 19, 2008, 1:07am UTC](https://www.ruby-forum.com/t/modrails/135184 "2008-04-19T01:07:31Z")

</div>

i just discovered this and i find it very strange nobody mentioned it on this forum yet. i think it is great news: an apache module for rails, super easy deployment, ideal for shared hosting and even a little faster …

---

## [Undefined method \`time\_zone=' on Rails 2.0.2.9129 on Mac OS X](https://www.ruby-forum.com/t/undefined-method-time-zone-on-rails-2-0-2-9129-on-mac-os-x/133508)

<div class="topic-metadata">

**Author:** [@ncancelliere](https://www.ruby-forum.com/u/ncancelliere)\
**Replies:** 12\
**Last updated:** [April 19, 2008, 1:02am UTC](https://www.ruby-forum.com/t/undefined-method-time-zone-on-rails-2-0-2-9129-on-mac-os-x/133508 "2008-04-19T01:02:49Z")

</div>

I just did a gem update and it broke my rails application. I had to go back to 2.0.2, because 2.0.2.9129 produces this error on Mac OS X Leopard: /Users/nicholas/RubyDev/dummy/config/environment.rb:38: undefined met…

---

## [Link\_to\_remote sumbit\_to\_remote](https://www.ruby-forum.com/t/link-to-remote-sumbit-to-remote/135168)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 6\
**Last updated:** [April 18, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/link-to-remote-sumbit-to-remote/135168 "2008-04-18T23:38:00Z")

</div>

Why is it that \<%= link\_to\_remote “add round”, :url =\> { :action =\> :add\_round }, :class =\> “blueL”, :update =\> “rounds”, :method =\> “put” %\> works while \<%= submit\_to\_remote ‘name’, “add round”, :url =\> { :action …

---

## [Translating international characters](https://www.ruby-forum.com/t/translating-international-characters/134679)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 4\
**Last updated:** [April 18, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/translating-international-characters/134679 "2008-04-18T23:08:45Z")

</div>

Hi I need to convert strings with international characters to strings with corresponding ASCII codes. For example é, è, ë, and ê (and all other e-related versions) should convert to e and so on. Does anyone have a go…

---

## [Writing database backed plugin tests](https://www.ruby-forum.com/t/writing-database-backed-plugin-tests/135173)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/writing-database-backed-plugin-tests/135173 "2008-04-18T22:09:21Z")

</div>

I’m trying to write tests for a plugin that includes an active record model. This means that my plugin tests need to have access to a database, as well as a skeleton rails stack. Is there any resources out there that…

---

## [How can I do that with datetime?](https://www.ruby-forum.com/t/how-can-i-do-that-with-datetime/134933)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/how-can-i-do-that-with-datetime/134933 "2008-04-18T22:01:01Z")

</div>

I have this code in a new form: \<%= \_('Adquired in') %\> \<%= f.date\_select :sales\_date, :discard\_day =\> true, :order =\> \[:month,:year\] %\> I want to use something like that: Setting::Month\[ticket.sal…

---

## [Synchronize mongrel cluster](https://www.ruby-forum.com/t/synchronize-mongrel-cluster/135117)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 2\
**Last updated:** [April 18, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/synchronize-mongrel-cluster/135117 "2008-04-18T20:36:03Z")

</div>

Hi everyone, I would like to know if there’s a way to synchronize the actions in a mongrel cluster. Basically, how do I make sure that a specific controller action gets executed by only one mongrel server at one time…

---

## [Render / responds to parent / rjs question](https://www.ruby-forum.com/t/render-responds-to-parent-rjs-question/135158)

<div class="topic-metadata">

**Author:** [@gmg\_dev](https://www.ruby-forum.com/u/gmg_dev)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/render-responds-to-parent-rjs-question/135158 "2008-04-18T20:09:20Z")

</div>

Help! I am so close. Here’s the thing, I am committed to ding it this way for a number of reasons. I have inherited a codebase that was done pretty well, and I can’t really be reinventing the wheel over and over. Wha…

---

## [Find all items which have these tags](https://www.ruby-forum.com/t/find-all-items-which-have-these-tags/135164)

<div class="topic-metadata">

**Author:** [@Tobi\_R](https://www.ruby-forum.com/u/Tobi_R)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/find-all-items-which-have-these-tags/135164 "2008-04-18T19:39:56Z")

</div>

Hi This works: Item.find(:all, :include =\> ‘tags’, :conditions =\> \[“tags.name = ?”,“Rainproof”\]) This works as well: Item.find(:all, :include =\> ‘tags’, :conditions =\> “tags.name in (‘Rainproof’,‘Bowl’)”) (Here wi…

---

## [Rails for dummies](https://www.ruby-forum.com/t/rails-for-dummies/135169)

<div class="topic-metadata">

**Author:** [@PB0711](https://www.ruby-forum.com/u/PB0711)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/rails-for-dummies/135169 "2008-04-18T19:23:13Z")

</div>

Hellos all, I’m new to this so I have one really stupid question. When I make my website is the whole thing going to be encoded in my\_test\_controller.rb if I do ‘ruby script\\generate controller MyTest’ as “ONLamp” sa…

---

## [Rored](https://www.ruby-forum.com/t/rored/135167)

<div class="topic-metadata">

**Author:** [@kschu](https://www.ruby-forum.com/u/kschu)\
**Replies:** 0\
**Last updated:** [April 18, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/rored/135167 "2008-04-18T18:30:50Z")

</div>

Anyone know what happened to rored? Their site is dead - I’d like to get a copy of it if anyone has it Thanks

---

## [Sorting Helper issue](https://www.ruby-forum.com/t/sorting-helper-issue/135135)

<div class="topic-metadata">

**Author:** [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Replies:** 3\
**Last updated:** [April 18, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/sorting-helper-issue/135135 "2008-04-18T18:12:29Z")

</div>

Hi Friends, I am very new to RoR. I have now got the pager working for my listing page and was trying to get the sorting to work. However I get this error: MissingSourceFile in PeopleController#index Missing helper …

---

## [Modify an AR model attribute before reading into form\_for](https://www.ruby-forum.com/t/modify-an-ar-model-attribute-before-reading-into-form-for/135159)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/modify-an-ar-model-attribute-before-reading-into-form-for/135159 "2008-04-18T18:06:37Z")

</div>

Hi, I’m trying to modify an AR model’s foo attribute before reading into the model’s edit form. I’ve tried the following: class Model def foo "the foo attribute is " + read\_attribute(:foo) end end If I use a form…

---

## [Database adaptor password in production.log](https://www.ruby-forum.com/t/database-adaptor-password-in-production-log/134515)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/database-adaptor-password-in-production-log/134515 "2008-04-18T18:05:27Z")

</div>

So, as I’m working on migrating my app from Rails 1.2.1 to Rails 1.2.6, suddenly my database adaptor password is showing up in production log on startup. This could be because use " ActiveRecord::Base.allow\_concurrenc…

---

## [Create FileColumn Image without a From](https://www.ruby-forum.com/t/create-filecolumn-image-without-a-from/135163)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/create-filecolumn-image-without-a-from/135163 "2008-04-18T17:32:33Z")

</div>

Hey, im creating a new bookmark with a form and i’m uploading an image with File Column. This works well! But another function is to copy this bookmark. That means it will be created a new Object, with an new Id. All…

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

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