# Rails

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

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

---

## [Marshal Data Too Short Error](https://www.ruby-forum.com/t/marshal-data-too-short-error/66541)

<div class="topic-metadata">

**Author:** [@Eran](https://www.ruby-forum.com/u/Eran)\
**Replies:** 1\
**Last updated:** [April 15, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/marshal-data-too-short-error/66541 "2007-04-15T19:12:55Z")

</div>

I am using Ruby 1.8.2 on WinXP and am receiving a “Marshal Data Too Short” error. I havent been able to repeat the error as it seems to happen randomly in my rails program. However, the version of Ruby I’m using alrea…

---

## [Replace\_html other controller](https://www.ruby-forum.com/t/replace-html-other-controller/92066)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 1\
**Last updated:** [April 15, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/replace-html-other-controller/92066 "2007-04-15T18:28:35Z")

</div>

I’m using the replace\_html for updating a div element. How can I update it with an action from other controller? I’m looking for something like this page.replace\_html 'div1', :controller=\> ‘users’ ,:action=\>‘…

---

## [Poll sidebar for Typo / Which authentication system do you u](https://www.ruby-forum.com/t/poll-sidebar-for-typo-which-authentication-system-do-you-u/92070)

<div class="topic-metadata">

**Author:** [@sbusso](https://www.ruby-forum.com/u/sbusso)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/poll-sidebar-for-typo-which-authentication-system-do-you-u/92070 "2007-04-15T18:07:28Z")

</div>

To celebrate my new poll sidebar, I would like to invite everybody to answer which authentication system do you use for your projects? Please follow the survey … http://www.rubynaut.net Feel free to comment your answe…

---

## [Adding (dynamically) new functionallities to a view](https://www.ruby-forum.com/t/adding-dynamically-new-functionallities-to-a-view/92068)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/adding-dynamically-new-functionallities-to-a-view/92068 "2007-04-15T17:50:08Z")

</div>

Hi All I have written a couple of controllers that can do some specific task. I also have a main view (created by, lets say, the main controller). Everytime I add a new controller I have to update the main controller’…

---

## [Strange upload problem](https://www.ruby-forum.com/t/strange-upload-problem/92063)

<div class="topic-metadata">

**Author:** [@Geoffroy](https://www.ruby-forum.com/u/Geoffroy)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/strange-upload-problem/92063 "2007-04-15T15:56:49Z")

</div>

Hello, I’m using file\_column to upload files to the server. I can upload everything, except .jpg and .png (the two formats I need). If I try to trick the server and replace the extension, it doesn’t work. I assume th…

---

## [Typo](https://www.ruby-forum.com/t/typo/92052)

<div class="topic-metadata">

**Author:** [@Maurice\_FSSS\_h](https://www.ruby-forum.com/u/Maurice_FSSS_h)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/typo/92052 "2007-04-15T12:45:22Z")

</div>

Hi (I’m a newbie.) I typed ‘script/generate model’ to read about the options of that command, and I found a typo in the usage descriptions. It currently reads ‘Usage: script/generate generate ModelName \[field:type, f…

---

## [Capistrano/Dreamhost (svn: 'config' is not a working copy)](https://www.ruby-forum.com/t/capistrano-dreamhost-svn-config-is-not-a-working-copy/91947)

<div class="topic-metadata">

**Author:** [@MSKessinger](https://www.ruby-forum.com/u/MSKessinger)\
**Replies:** 1\
**Last updated:** [April 15, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/capistrano-dreamhost-svn-config-is-not-a-working-copy/91947 "2007-04-15T12:10:56Z")

</div>

Hello, I am using this tutorial: http://wiki.dreamhost.com/index.php/Capistrano All seems to be working fine until I am asked to enter this command: svn add config/deploy.rb lib/tasks/capistrano.rake I am getting th…

---

## [I'm new to Ruby On Rails](https://www.ruby-forum.com/t/im-new-to-ruby-on-rails/92051)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 6\
**Last updated:** [April 15, 2007, 11:58am UTC](https://www.ruby-forum.com/t/im-new-to-ruby-on-rails/92051 "2007-04-15T11:58:55Z")

</div>

Hi, guys. I’m so happy to join this group. I’m new to ROR. And I haven’t learned or used any other program langueage before. I’m intrest in develop web-based database-driven prgramming. My company need to develop a b…

---

## [Can't access session from helper?!](https://www.ruby-forum.com/t/cant-access-session-from-helper/91888)

<div class="topic-metadata">

**Author:** [@teddio](https://www.ruby-forum.com/u/teddio)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 11:48am UTC](https://www.ruby-forum.com/t/cant-access-session-from-helper/91888 "2007-04-15T11:48:50Z")

</div>

Hi, I’m receiving this pretty standard error message: undefined local variable or method \`session’ for ApplicantHelper::Filter:Class All my searches have returned results where the developer is trying to access the …

---

## [To\_json adds double quote to beginning and end of string](https://www.ruby-forum.com/t/to-json-adds-double-quote-to-beginning-and-end-of-string/91948)

<div class="topic-metadata">

**Author:** [@hamrin](https://www.ruby-forum.com/u/hamrin)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 10:59am UTC](https://www.ruby-forum.com/t/to-json-adds-double-quote-to-beginning-and-end-of-string/91948 "2007-04-15T10:59:47Z")

</div>

Hello all, I have a question regarding the to\_json function. If I create a string in script/console, and then apply the to\_json method, it will take the first and last double quote as part of the string. Is this behav…

---

## [How to ajax](https://www.ruby-forum.com/t/how-to-ajax/92049)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 10:49am UTC](https://www.ruby-forum.com/t/how-to-ajax/92049 "2007-04-15T10:49:08Z")

</div>

dear all, I have a index.rhtml. And the preceding section of this page is a static html. Such as “Hello”. And the remain section is AJAX function call to a long time work. I want the page show it’s preceding section …

---

## [Rails ActiveRecord UTC time zone problem](https://www.ruby-forum.com/t/rails-activerecord-utc-time-zone-problem/91990)

<div class="topic-metadata">

**Author:** [@ginger72](https://www.ruby-forum.com/u/ginger72)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 9:30am UTC](https://www.ruby-forum.com/t/rails-activerecord-utc-time-zone-problem/91990 "2007-04-15T09:30:39Z")

</div>

I configured ActiveRecord in my environment.rb file to use UTC as follows: config.active\_record.default\_timezone = :utc I am using MySQL 5.0.x In a table, called comments, model Comment, there is a field called crea…

---

## [How to obtain the selected value from collection\_select](https://www.ruby-forum.com/t/how-to-obtain-the-selected-value-from-collection-select/92045)

<div class="topic-metadata">

**Author:** [@zermoh](https://www.ruby-forum.com/u/zermoh)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 7:41am UTC](https://www.ruby-forum.com/t/how-to-obtain-the-selected-value-from-collection-select/92045 "2007-04-15T07:41:56Z")

</div>

Hi, I’m want to obtain the selected value from collection\_select and to use it to display something from the same table or other tables. There is my short code : country name \<%= collection\_select(:country, :countr…

---

## [Reprocess Attachment\_fu Thumbnails?](https://www.ruby-forum.com/t/reprocess-attachment-fu-thumbnails/92033)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 1\
**Last updated:** [April 15, 2007, 6:54am UTC](https://www.ruby-forum.com/t/reprocess-attachment-fu-thumbnails/92033 "2007-04-15T06:54:24Z")

</div>

Howdy, We had to change the number and specs for thumbnails generated by attachment\_fu and so now we need a way to go back and have it re- render/create those versions. How can we do this programatically? Re-uploadin…

---

## [Railsplayground.com down?](https://www.ruby-forum.com/t/railsplayground-com-down/92041)

<div class="topic-metadata">

**Author:** [@stefanish](https://www.ruby-forum.com/u/stefanish)\
**Replies:** 5\
**Last updated:** [April 15, 2007, 6:19am UTC](https://www.ruby-forum.com/t/railsplayground-com-down/92041 "2007-04-15T06:19:23Z")

</div>

I can’t access my account page, my hosting page or their main site? Anyone else having this issue as well? traceroutes and pings return nothing at present.

---

## [How do I allow multiple shopping carts per user?](https://www.ruby-forum.com/t/how-do-i-allow-multiple-shopping-carts-per-user/92026)

<div class="topic-metadata">

**Author:** [@jakedh](https://www.ruby-forum.com/u/jakedh)\
**Replies:** 4\
**Last updated:** [April 15, 2007, 5:33am UTC](https://www.ruby-forum.com/t/how-do-i-allow-multiple-shopping-carts-per-user/92026 "2007-04-15T05:33:26Z")

</div>

I’m creating an order entry application based on the depot application in Dave T.'s book “Agile Web D. with Rails”, except one major difference is that I want the user to be allowed to have any number of orders open …

---

## [Possible Active Record bug using :select in find method](https://www.ruby-forum.com/t/possible-active-record-bug-using-select-in-find-method/92034)

<div class="topic-metadata">

**Author:** [@wolleybook](https://www.ruby-forum.com/u/wolleybook)\
**Replies:** 2\
**Last updated:** [April 15, 2007, 3:29am UTC](https://www.ruby-forum.com/t/possible-active-record-bug-using-select-in-find-method/92034 "2007-04-15T03:29:12Z")

</div>

Hi, I am writing a small rails application that uses Ruby(1.8.5) with ActiveRecord (1.15.3) . I realized that if i use the find method with the optional parameter :select with only the required columns to look for r…

---

## [Expire\_fragment from observer (not sweeper!)](https://www.ruby-forum.com/t/expire-fragment-from-observer-not-sweeper/92038)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 2:02am UTC](https://www.ruby-forum.com/t/expire-fragment-from-observer-not-sweeper/92038 "2007-04-15T02:02:09Z")

</div>

Hi all, I’m trying to expire a cached fragment when a model is updated. The usual way to do this is with a sweeper, but sweepers only work when an action is being called at the same time - I need to expire a cached …

---

## [Displaying euro sign? browser displays as question mark](https://www.ruby-forum.com/t/displaying-euro-sign-browser-displays-as-question-mark/91570)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 5\
**Last updated:** [April 15, 2007, 1:40am UTC](https://www.ruby-forum.com/t/displaying-euro-sign-browser-displays-as-question-mark/91570 "2007-04-15T01:40:21Z")

</div>

could anyone tell me how to get the euro sign to display properly? it shows up in my \*.rhtml files as \<80\>500 (should be $500, with the $ replaced with euro sign) when viewed in vi, and displays as a question mark in…

---

## [SQLServer IDENTITY\_INSERT](https://www.ruby-forum.com/t/sqlserver-identity-insert/48230)

<div class="topic-metadata">

**Author:** [@christer.nilsson](https://www.ruby-forum.com/u/christer.nilsson)\
**Replies:** 6\
**Last updated:** [April 15, 2007, 1:00am UTC](https://www.ruby-forum.com/t/sqlserver-identity-insert/48230 "2007-04-15T01:00:41Z")

</div>

When running the first test in the AWDR book I ran into this error message: Execute OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Cannot insert explicit value for identity column in table ‘Users…

---

## [Http://rubyonrails.com/docs spring clean up?](https://www.ruby-forum.com/t/http-rubyonrails-com-docs-spring-clean-up/92035)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [April 15, 2007, 12:14am UTC](https://www.ruby-forum.com/t/http-rubyonrails-com-docs-spring-clean-up/92035 "2007-04-15T00:14:01Z")

</div>

At the bottom there are two broken links under OS Repos “Hieraki and RForum”. Don’t know if anyone cares or not… – -mike

---

## [Memcached - multiple puts and deletes?](https://www.ruby-forum.com/t/memcached-multiple-puts-and-deletes/92028)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 2\
**Last updated:** [April 14, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/memcached-multiple-puts-and-deletes/92028 "2007-04-14T23:54:55Z")

</div>

Hi, I have recently started using memcached to store my ‘Vehicle’ models which are expensive to construct (have may related models). I am also using memcache-client to fetch these models, sometimes many at a time usi…

---

## [Basic: lost mysql command line after install](https://www.ruby-forum.com/t/basic-lost-mysql-command-line-after-install/92014)

<div class="topic-metadata">

**Author:** [@Wanzie](https://www.ruby-forum.com/u/Wanzie)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/basic-lost-mysql-command-line-after-install/92014 "2007-04-14T23:37:58Z")

</div>

I’ve searched the archives and went through the FAQ’s and install HOWTO’s. But after following the current (4/11/07) install guide on Dan’s Hivelogic page, successfully, through every step. I’ve gotten no errors me…

---

## [Link\_to with parameters](https://www.ruby-forum.com/t/link-to-with-parameters/92024)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/link-to-with-parameters/92024 "2007-04-14T22:17:54Z")

</div>

using link\_to\_remote I can do the following : \<%= link\_to\_remote “Localisation GoogleMap”, :url =\> {:controller =\> ‘profils’, :action =\> ‘locate\_me’, :id =\> current\_user}, :with =\> “‘lat=’+encodeURIComponent($F(‘latit…

---

## [Filter customization](https://www.ruby-forum.com/t/filter-customization/92029)

<div class="topic-metadata">

**Author:** [@cinek](https://www.ruby-forum.com/u/cinek)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/filter-customization/92029 "2007-04-14T21:53:22Z")

</div>

It’s more of a Ruby question than Rails specifically, but anyway… I’m trying to make a generic filter that could be customized with options (it’s for authorization, but that doesn’t matter). Currently I see two sensib…

---

## [Any similar to mysql\_insert\_id (PHP) in RoR](https://www.ruby-forum.com/t/any-similar-to-mysql-insert-id-php-in-ror/91987)

<div class="topic-metadata">

**Author:** [@wynners33](https://www.ruby-forum.com/u/wynners33)\
**Replies:** 3\
**Last updated:** [April 14, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/any-similar-to-mysql-insert-id-php-in-ror/91987 "2007-04-14T21:01:50Z")

</div>

I used a PHP function mysql\_insert\_id to get the ID generated from the previous INSERT operation. I wonder if there is something similar that I can use in Ruby/Rails? Thanks in advance!

---

## [Distinguishing "update or create context" from within after\_](https://www.ruby-forum.com/t/distinguishing-update-or-create-context-from-within-after/92006)

<div class="topic-metadata">

**Author:** [@rovnak](https://www.ruby-forum.com/u/rovnak)\
**Replies:** 1\
**Last updated:** [April 14, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/distinguishing-update-or-create-context-from-within-after/92006 "2007-04-14T20:45:49Z")

</div>

Hi, Of course, I like the callbacks in active record. However, it seems that it would be valuable to be able to distinguish whether an after\_save is being invoked as part of a create as opposed to part of an update s…

---

## [Do I have to use Rails to use a database?](https://www.ruby-forum.com/t/do-i-have-to-use-rails-to-use-a-database/91768)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 10\
**Last updated:** [April 14, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/do-i-have-to-use-rails-to-use-a-database/91768 "2007-04-14T18:43:41Z")

</div>

I’ve learned the basics of Ruby, and have been making websites with xhtml, css, and eruby. I used IO.readlines and text files to store and access info on menu items (http://partysushi.com/menu.rhtml) but it is appare…

---

## [Active Record questions](https://www.ruby-forum.com/t/active-record-questions/92023)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/active-record-questions/92023 "2007-04-14T18:37:42Z")

</div>

Hi All, I’ve just started learning Ruby on Rails. It’s an amazing framework! I have some Active Record questions. Any help would be greatly appreciated by this RoR n00b! Active Record has many operations such as :c…

---

## [\[ANN\] Test Driven Ajax - assert\_xpath, assert\_javascript, &](https://www.ruby-forum.com/t/ann-test-driven-ajax-assert-xpath-assert-javascript/92017)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [April 14, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/ann-test-driven-ajax-assert-xpath-assert-javascript/92017 "2007-04-14T18:04:39Z")

</div>

Railsers et al: Anyone developing Ajax applications needs to read my new Short Cut, at O’Reilly: http://www.oreilly.com/catalog/9780596510657/ “Test Driven Ajax (on Rails)” The paper shows how to write an Ajax websi…

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

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