# Rails

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

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

---

## [Argument Error](https://www.ruby-forum.com/t/argument-error/165408)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/argument-error/165408 "2009-04-13T19:03:53Z")

</div>

I used this guide: Rails Internationalization (I18n) API — Ruby on Rails Guides to localize my sample application i’ve set config/environment.rb, controllers/application.rb as it is written in the article #views/home…

---

## [Error reverting back to a previous version of rails](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/error-reverting-back-to-a-previous-version-of-rails/164753 "2009-04-13T18:40:25Z")

</div>

I want to revert back to a previous version of rails (1.2.3) but the project I want to work on was created in 2.0.2. I have uninstalled 2.0.2 and gem installed 1.2.3 but when I run script\\server I get the following er…

---

## [Db:migrate fail's after a single simple scaffold in WindowsXP with sqlite3](https://www.ruby-forum.com/t/db-migrate-fails-after-a-single-simple-scaffold-in-windowsxp-with-sqlite3/165401)

<div class="topic-metadata">

**Author:** [@mgirard1](https://www.ruby-forum.com/u/mgirard1)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/db-migrate-fails-after-a-single-simple-scaffold-in-windowsxp-with-sqlite3/165401 "2009-04-13T18:30:07Z")

</div>

I tried the following in a new directory: C:\\Sources\\rails\> rails blog \[…\] C:\\Sources\\rails\> cd blog C:\\Sources\\rails\> ruby script/generate scaffold Post title:string body:text C:\\Sources\\rails\> rake db:migrate Th…

---

## [ActiveRecord::StatementInvalid in new action on scaffolding](https://www.ruby-forum.com/t/activerecord-statementinvalid-in-new-action-on-scaffolding/164340)

<div class="topic-metadata">

**Author:** [@Darren\_VanBuren](https://www.ruby-forum.com/u/Darren_VanBuren)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-in-new-action-on-scaffolding/164340 "2009-04-13T18:30:07Z")

</div>

I am trying to learn Rails by experimenting with it. Currently, I’m trying on my laptop running Windows 7 (build 7000), with Ruby 1.8.6, RubyGems 1.3.1, and Rails 2.3.2(.1). I of course had to get sqlite3-ruby install…

---

## [ActiveSupport::JSON.decode issue](https://www.ruby-forum.com/t/activesupport-json-decode-issue/165373)

<div class="topic-metadata">

**Author:** [@diabolic](https://www.ruby-forum.com/u/diabolic)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/activesupport-json-decode-issue/165373 "2009-04-13T18:21:55Z")

</div>

Good evening, I’m having a rather odd JSON decoding issue when attempting to decode an RPX JSON response containing the profile data. Using the command test = ActiveSupport::JSON.decode, passing it the string: {“pro…

---

## [Uninitialized constant ActionView::Helpers::AssetTagHelper](https://www.ruby-forum.com/t/uninitialized-constant-actionview-assettaghelper/165100)

<div class="topic-metadata">

**Author:** [@johnrails](https://www.ruby-forum.com/u/johnrails)\
**Replies:** 4\
**Last updated:** [April 13, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-actionview-assettaghelper/165100 "2009-04-13T17:38:26Z")

</div>

Hi All, I just wiped out my hard drive, did a fresh install of os x 10.5, and upgraded to rails 2.3.2. i installed the mysql pkg for os x, and created the databases i needed for the project i was working on before th…

---

## [Database constraints: maintained plugins?](https://www.ruby-forum.com/t/database-constraints-maintained-plugins/165392)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/database-constraints-maintained-plugins/165392 "2009-04-13T17:07:29Z")

</div>

Are there any plugins that add support for foreign key constraints create corresponding validations for NOT NULL constraints etc. are still maintained In the past, I’ve used several plugins by RedHill Consulting, but …

---

## [Problems with jRails and ajax helpers](https://www.ruby-forum.com/t/problems-with-jrails-and-ajax-helpers/165335)

<div class="topic-metadata">

**Author:** [@brentmc79](https://www.ruby-forum.com/u/brentmc79)\
**Replies:** 5\
**Last updated:** [April 13, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/problems-with-jrails-and-ajax-helpers/165335 "2009-04-13T17:04:18Z")

</div>

I working on a Rails 2.2.2 app that uses jRails and any time I attempt to use a Rails ajax helper, I get the following error: index 116545 out of string with this stack trace: vendor/plugins/jrails/lib/jrails.rb:197:…

---

## [Thoughts on CMS integration?](https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/thoughts-on-cms-integration/165310 "2009-04-13T16:39:18Z")

</div>

I am building a small/medium sized ecomm site that will be managed through a little Rails CMS I have built. I’ve built a few CMSs in PHP in the past… In those projects the CMS would always live in its own directory an…

---

## [ActiveRecord - Data Modeling](https://www.ruby-forum.com/t/activerecord-data-modeling/165391)

<div class="topic-metadata">

**Author:** [@Celio\_Motta](https://www.ruby-forum.com/u/Celio_Motta)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/activerecord-data-modeling/165391 "2009-04-13T16:18:49Z")

</div>

Hello! I am coming from ASP.NET straight into Rails world and have read some books and watch many screencasts so I decided to start a project in Rails and this project is actually a Rails version of my ASP.NET site. …

---

## [Rails Guides](https://www.ruby-forum.com/t/rails-guides/165386)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 2:48pm UTC](https://www.ruby-forum.com/t/rails-guides/165386 "2009-04-13T14:48:26Z")

</div>

I am using Rails Guides more frequently now and like them a lot. Very well done indeed. Here is the link: Bharat

---

## [Architectual question: Engine with all common models](https://www.ruby-forum.com/t/architectual-question-engine-with-all-common-models/164929)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 4\
**Last updated:** [April 13, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/architectual-question-engine-with-all-common-models/164929 "2009-04-13T14:05:26Z")

</div>

I am maintaining a large Rails application, that consists of several “interfaces”: The web interface (figures) Import of data from external providers Export of data to a large range of customers It seems to me quite …

---

## [Scopers](https://www.ruby-forum.com/t/scopers/165382)

<div class="topic-metadata">

**Author:** [@comtux](https://www.ruby-forum.com/u/comtux)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/scopers/165382 "2009-04-13T13:46:32Z")

</div>

Anyone know what this sort of a method does? def scoper eval “Helpdesk::#{cname.classify}” end

---

## [Error "ActionController::InvalidAuthenticityToken"](https://www.ruby-forum.com/t/error-actioncontroller-invalidauthenticitytoken/165376)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [April 13, 2009, 12:48pm UTC](https://www.ruby-forum.com/t/error-actioncontroller-invalidauthenticitytoken/165376 "2009-04-13T12:48:02Z")

</div>

Hi, I am using rails 2.2 I an getting this error. “ActionController::InvalidAuthenticityToken” I have an code in my erb file is like this: \<div id="pdf\_title" style="display:none"\> Title: \<%=text\_field(:page, :ti…

---

## [Recognition\_conditions called before overridden from environment.rb](https://www.ruby-forum.com/t/recognition-conditions-called-before-overridden-from-environment-rb/165372)

<div class="topic-metadata">

**Author:** [@hideaki](https://www.ruby-forum.com/u/hideaki)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 10:41am UTC](https://www.ruby-forum.com/t/recognition-conditions-called-before-overridden-from-environment-rb/165372 "2009-04-13T10:41:56Z")

</div>

Hi! I just updated rails 2.0.2 to 2.2.2 and noticed that my overriding ActionController::Routing::Route#recognition\_conditions does not work as expected anymore. I was overriding the method from environment.rb, but I…

---

## [How to display javascript code returned by rjs template?](https://www.ruby-forum.com/t/how-to-display-javascript-code-returned-by-rjs-template/196937)

<div class="topic-metadata">

**Author:** [@jackyang](https://www.ruby-forum.com/u/jackyang)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 10:03am UTC](https://www.ruby-forum.com/t/how-to-display-javascript-code-returned-by-rjs-template/196937 "2009-04-13T10:03:16Z")

</div>

One quick question: How can I see the javascript code generated by my rjs template?

---

## [Rails 2.2.2 deployment using fastcgi](https://www.ruby-forum.com/t/rails-2-2-2-deployment-using-fastcgi/164968)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 2\
**Last updated:** [April 13, 2009, 10:00am UTC](https://www.ruby-forum.com/t/rails-2-2-2-deployment-using-fastcgi/164968 "2009-04-13T10:00:50Z")

</div>

Hi, I have a rails 2.2.2 application, I am deploying it in shared hosting server, I am using fastcgi-script for deployment. But I am getting “500 Internal Server Error” my .htaccess file looks like this. General Apac…

---

## [Shell cmd fails from Rails (not from CLI & Ruby script)](https://www.ruby-forum.com/t/shell-cmd-fails-from-rails-not-from-cli-ruby-script/165369)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [April 13, 2009, 8:54am UTC](https://www.ruby-forum.com/t/shell-cmd-fails-from-rails-not-from-cli-ruby-script/165369 "2009-04-13T08:54:56Z")

</div>

Rails 2.3.2, OS X 10.5.6 I am using the backtick method to run a shell command (happens to be ImageMagick stuff). The command works fine when I use it directly in Terminal. The command work fine if I extract the code …

---

## [Storing request-scoped data in a model](https://www.ruby-forum.com/t/storing-request-scoped-data-in-a-model/165158)

<div class="topic-metadata">

**Author:** [@sshaikh](https://www.ruby-forum.com/u/sshaikh)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 8:10am UTC](https://www.ruby-forum.com/t/storing-request-scoped-data-in-a-model/165158 "2009-04-13T08:10:29Z")

</div>

Hi all, What is the best way to store variables strictly for the lifetime of a Rails’ request? I’m currently storing AR records in Rails.cache. Although this saves a trip to the DB, I feel it’s unnecessary to hit the…

---

## [Select in partial not behaving](https://www.ruby-forum.com/t/select-in-partial-not-behaving/165264)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 10\
**Last updated:** [April 13, 2009, 7:17am UTC](https://www.ruby-forum.com/t/select-in-partial-not-behaving/165264 "2009-04-13T07:17:18Z")

</div>

I have this select in a form: \<%= select(‘contact’, ‘id’, @contacts, {:prompt =\> ‘Select Contact’} , { :onchange =\> remote\_function(:url =\> { :controller =\> ‘contacts’, :action =\> “ajaxshowcontact”, :id =\> @mop.id},…

---

## [Uploading to S3 without hitting the local server](https://www.ruby-forum.com/t/uploading-to-s3-without-hitting-the-local-server/165308)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 6:51am UTC](https://www.ruby-forum.com/t/uploading-to-s3-without-hitting-the-local-server/165308 "2009-04-13T06:51:34Z")

</div>

Hi, I guess my question is rather simple, is it possible to upload to S3 without hitting the local server using Rails? If so, are there any tutorials or similar things around? PS: and what about being able to display …

---

## [User display preferences options](https://www.ruby-forum.com/t/user-display-preferences-options/165319)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 2\
**Last updated:** [April 13, 2009, 6:04am UTC](https://www.ruby-forum.com/t/user-display-preferences-options/165319 "2009-04-13T06:04:13Z")

</div>

Hello, I’m trying to give group administrator power to show/hide different components on group page according to user status (public (no login required), group members(logged in) and website members (logged in)) I th…

---

## [Date\_select and HTML options?](https://www.ruby-forum.com/t/date-select-and-html-options/162803)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 2\
**Last updated:** [April 13, 2009, 4:35am UTC](https://www.ruby-forum.com/t/date-select-and-html-options/162803 "2009-04-13T04:35:24Z")

</div>

I have the following code, but can’t seem to get the class attribute to show up in the generated select elements. I saw something about a bug/patch. However, as am still learning RoR I didn’t want to jump to conclusio…

---

## [Multi-button form](https://www.ruby-forum.com/t/multi-button-form/165350)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 3:52am UTC](https://www.ruby-forum.com/t/multi-button-form/165350 "2009-04-13T03:52:07Z")

</div>

It cannot be this difficult, especially in rails. Here is my form code in a partial for the index action of a controller: \<% form\_tag({:controller =\> controller\_name, :action =\> ‘index’}, {:method =\> :get, :class =\> …

---

## [Blackberry & handhelds](https://www.ruby-forum.com/t/blackberry-handhelds/165332)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 2:31am UTC](https://www.ruby-forum.com/t/blackberry-handhelds/165332 "2009-04-13T02:31:50Z")

</div>

I notice when I go to a site like schwab.com, they have their full format page come up when I log on via a computer. However, if I log on via my blackberry, it;s dramatically stripped down. I realise much of this is d…

---

## [Unit test problem,](https://www.ruby-forum.com/t/unit-test-problem/164803)

<div class="topic-metadata">

**Author:** [@ps\_gem](https://www.ruby-forum.com/u/ps_gem)\
**Replies:** 4\
**Last updated:** [April 13, 2009, 2:00am UTC](https://www.ruby-forum.com/t/unit-test-problem/164803 "2009-04-13T02:00:15Z")

</div>

Hi, I am new in ROR. I have 4 fixtures in my ‘…/test/fixtures’ folder: user.yml, aggregationfeedmaps.yml, aggregations.yml, and feeds.yml. I have few test files in unit tests folder like user\_test.rb, feeds\_test.rb, a…

---

## [Problems with in\_place\_editor\_field](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988)

<div class="topic-metadata">

**Author:** [@sergeypo](https://www.ruby-forum.com/u/sergeypo)\
**Replies:** 3\
**Last updated:** [April 13, 2009, 1:01am UTC](https://www.ruby-forum.com/t/problems-with-in-place-editor-field/164988 "2009-04-13T01:01:22Z")

</div>

Hi guys! I try to use with in\_place\_editor\_field method, but something is wrond. After editing data in form, when I press OK it show “Saving…”. Data itself doesn’t change. My console shows me following: 127.0.0.1 - -…

---

## [Rails 2.3 nested forms with has\_many through checkboxes](https://www.ruby-forum.com/t/rails-2-3-nested-forms-with-has-many-through-checkboxes/165351)

<div class="topic-metadata">

**Author:** [@OKR](https://www.ruby-forum.com/u/OKR)\
**Replies:** 0\
**Last updated:** [April 12, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/rails-2-3-nested-forms-with-has-many-through-checkboxes/165351 "2009-04-12T23:48:05Z")

</div>

I was wondering if anyone knew of a way to combine the new nested forms in rails 2.3 with a has\_many through relationship via checkboxes. Basically I have a page model, a page\_category model and a category\_items join…

---

## [Rake aborted! undefined method \`each' for #\<Mysql:](https://www.ruby-forum.com/t/rake-aborted-undefined-method-each-for-mysql/154494)

<div class="topic-metadata">

**Author:** [@davidf](https://www.ruby-forum.com/u/davidf)\
**Replies:** 12\
**Last updated:** [April 12, 2009, 11:04pm UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-each-for-mysql/154494 "2009-04-12T23:04:38Z")

</div>

I’m struggling with several problems getting my first time ruby on rails environment running. I’m now stuck on this problem too. rake db:migrate generates the following error. This one is on a vista machine. Anyone…

---

## [\[ANN\] assert2 presents assert\_no\_rjs\_, and .should send\_js\_to](https://www.ruby-forum.com/t/ann-assert2-presents-assert-no-rjs-and-should-send-js-to/165301)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 4\
**Last updated:** [April 12, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/ann-assert2-presents-assert-no-rjs-and-should-send-js-to/165301 "2009-04-12T21:54:33Z")

</div>

assert\_no\_rjs\_ now negates all the JavaScript assertions listed here: http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/49fd7c9b9107d577 And assert\_rjs\_ now works in RSpec: it 'should use Ajax to r…

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

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