# Rails

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

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

---

## [Gem 1.3.0, netbeans 6.1 "Missing the Rails gem"](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462)

<div class="topic-metadata">

**Author:** [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 3:20am UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462 "2008-10-09T03:20:19Z")

</div>

I’m on ubuntu 8.04 and I’m using netbeans 6.1 with native ruby option. root@castor-laptop:/home/castor# gem --version 1.3.0 root@castor-laptop:/home/castor# ruby --version ruby 1.8.6 (2007-09-24 patchlevel 111) \[i48…

---

## [Error running "script/console --sandbox" on Edge](https://www.ruby-forum.com/t/error-running-script-console-sandbox-on-edge/149337)

<div class="topic-metadata">

**Author:** [@Mike\_Breen](https://www.ruby-forum.com/u/Mike_Breen)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 2:58am UTC](https://www.ruby-forum.com/t/error-running-script-console-sandbox-on-edge/149337 "2008-10-09T02:58:39Z")

</div>

Loading development environment in sandbox (Rails 2.2.0) Any modifications you make will be rolled back on exit /my\_project/vendor/rails/activerecord/lib/active\_record/base.rb: 1760:in method\_missing':NoMethodError: u…

---

## [Acts as ferret](https://www.ruby-forum.com/t/acts-as-ferret/150486)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 2\
**Last updated:** [October 9, 2008, 2:55am UTC](https://www.ruby-forum.com/t/acts-as-ferret/150486 "2008-10-09T02:55:55Z")

</div>

So i have acts as ferret working nicely except for one problem. I can’t for the life of me filter results on a parent model! For example we have a tree that goes Account-\>User-\>Article Article.find\_by\_contents(“hello…

---

## [No such file or directory, file\_column problem](https://www.ruby-forum.com/t/no-such-file-or-directory-file-column-problem/149181)

<div class="topic-metadata">

**Author:** [@changwu](https://www.ruby-forum.com/u/changwu)\
**Replies:** 6\
**Last updated:** [October 9, 2008, 2:52am UTC](https://www.ruby-forum.com/t/no-such-file-or-directory-file-column-problem/149181 "2008-10-09T02:52:31Z")

</div>

Hi,All: I met a strange problem with file\_column. My application worked well before I changed my Model, I only changed the size of picture. but cause the following problems: No such file or directory - D:/WORK\_HOME/…

---

## [ActiveRecord adding quotes where it should not using JDBC Oracle Driver](https://www.ruby-forum.com/t/activerecord-adding-quotes-where-it-should-not-using-jdbc-oracle-driver/150485)

<div class="topic-metadata">

**Author:** [@DavidPaquet](https://www.ruby-forum.com/u/DavidPaquet)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 2:03am UTC](https://www.ruby-forum.com/t/activerecord-adding-quotes-where-it-should-not-using-jdbc-oracle-driver/150485 "2008-10-09T02:03:03Z")

</div>

Hi everyone, So here is my problem : I’m using the Oracle JDBC Driver (with JRuby) to talk to a legacy database. I also use set\_table\_name directive since my model doesn’t have the same name as my table. class Pers…

---

## [IE issues (go figure)](https://www.ruby-forum.com/t/ie-issues-go-figure/150484)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 0\
**Last updated:** [October 9, 2008, 1:46am UTC](https://www.ruby-forum.com/t/ie-issues-go-figure/150484 "2008-10-09T01:46:04Z")

</div>

So, I have this issue with IE. The code below is from my view and makes an ajax call to return a list of subcategories. The form works just dandy in Chrome/Safari, and Firefox, but IE the Submit button does absolute…

---

## [Prototype Based Validation with form\_remote\_tag](https://www.ruby-forum.com/t/prototype-based-validation-with-form-remote-tag/97206)

<div class="topic-metadata">

**Author:** [@Paul\_Shannon](https://www.ruby-forum.com/u/Paul_Shannon)\
**Replies:** 1\
**Last updated:** [October 9, 2008, 12:58am UTC](https://www.ruby-forum.com/t/prototype-based-validation-with-form-remote-tag/97206 "2008-10-09T00:58:39Z")

</div>

Hello, I am attempting to use validation.js from http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp e/ with form\_remote\_tag. The rails form helper binds the needed Ajax.Updater to the onSubmit a…

---

## [CookieStore::CookieOverflow](https://www.ruby-forum.com/t/cookiestore-cookieoverflow/150471)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/cookiestore-cookieoverflow/150471 "2008-10-08T23:35:45Z")

</div>

I have recently upgraded to rails 2.1.0. and since I have, the parts of my app that deal with CookieStore (sessions) has failed to work any longer. In Crome and most other browsers my code simply fails, IE7 is a littl…

---

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

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/javascript-help/150466 "2008-10-08T23:28:35Z")

</div>

I have a blog on my site and would like readers to be able to recommend comments. I added an integer column to my comments table called ‘agree’ and have a link to a controller which increments the entry in that column…

---

## [Weird Deprecation Warning](https://www.ruby-forum.com/t/weird-deprecation-warning/150461)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 4\
**Last updated:** [October 8, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/weird-deprecation-warning/150461 "2008-10-08T23:08:39Z")

</div>

I am getting the following message in my development.log after installing mongrel\_service, installing the service and starting the service. DEPRECATION WARNING: config.action\_view.cache\_template\_extensions option has…

---

## [Hpricot loop question to read table row values](https://www.ruby-forum.com/t/hpricot-loop-question-to-read-table-row-values/150388)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 6\
**Last updated:** [October 8, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/hpricot-loop-question-to-read-table-row-values/150388 "2008-10-08T21:41:06Z")

</div>

Hi. I’ve got a file that contains a table that looks like this: column title a column title b row 1 a row 1 b row 2 a row 2 b row 3 a row 3 b row 4 a row 4 b I need to read the rows starting with …

---

## [ActiveRecord filesystem based backend](https://www.ruby-forum.com/t/activerecord-filesystem-based-backend/150396)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 7\
**Last updated:** [October 8, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/activerecord-filesystem-based-backend/150396 "2008-10-08T21:00:31Z")

</div>

Hi, I hoping to find/write an ActiveRecord backend which stores each record as a file in a directory, rather than as a row in a table in a database. I’m not concerned about scaling or concurrency issues. My questions …

---

## [A small doublt](https://www.ruby-forum.com/t/a-small-doublt/150220)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 7\
**Last updated:** [October 8, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/a-small-doublt/150220 "2008-10-08T20:58:10Z")

</div>

i don’t understand that request … response process in rails framework . is a single thread(ruby green thread) created for everyone request? then that single thread will be living upto the response send. am i correct …

---

## [Recent Upgrade to 2.1.0 not working IE7](https://www.ruby-forum.com/t/recent-upgrade-to-2-1-0-not-working-ie7/150359)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 10\
**Last updated:** [October 8, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/recent-upgrade-to-2-1-0-not-working-ie7/150359 "2008-10-08T20:13:19Z")

</div>

I recently upgraded to Rails 2.1.0 and thought that everything worked - I work mostly in FireFox and Crome - but when I went to do testing in IE7, pretty much nothing works. I have my app broken down into about 10 sep…

---

## [Using image\_tag and send\_data](https://www.ruby-forum.com/t/using-image-tag-and-send-data/150435)

<div class="topic-metadata">

**Author:** [@lastps](https://www.ruby-forum.com/u/lastps)\
**Replies:** 11\
**Last updated:** [October 8, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/using-image-tag-and-send-data/150435 "2008-10-08T19:44:41Z")

</div>

I am using image\_tag to load an image that I’ve saved to the database (using attachment\_fu if you’re curious but that’s probably not relevant here): VIEW \<%= image\_tag ‘/photo/get\_image/5’ %\> CONTROLLER def get\_ima…

---

## [The performance debate](https://www.ruby-forum.com/t/the-performance-debate/150255)

<div class="topic-metadata">

**Author:** [@Raistlin\_M](https://www.ruby-forum.com/u/Raistlin_M)\
**Replies:** 11\
**Last updated:** [October 8, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/the-performance-debate/150255 "2008-10-08T19:30:34Z")

</div>

Is Ruby faster than PHP? Is Ruby on Rails faster than PHP on CakePHP? Is Ruby on Rails faster than PHP? Is Ruby faster than PHP on CakePHP?

---

## [Memory leak problem](https://www.ruby-forum.com/t/memory-leak-problem/226028)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 1\
**Last updated:** [October 8, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/memory-leak-problem/226028 "2008-10-08T19:10:33Z")

</div>

I have a txt file with some data that i need to import to de database. I’m using ruby to import those data but i have a major problem, when i 've a large amount of data i run out of memory. File.open("#{RAILS\_ROOT}/p…

---

## [Problem with DateTime in query](https://www.ruby-forum.com/t/problem-with-datetime-in-query/150445)

<div class="topic-metadata">

**Author:** [@cjharrelson](https://www.ruby-forum.com/u/cjharrelson)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/problem-with-datetime-in-query/150445 "2008-10-08T19:07:01Z")

</div>

Here is a strange one for you: I am using rails 2.1.0. I am also using the Time zones feature. I have a User model that has many enrollments. The Enrollments model has several named scopes, one of which is today: T…

---

## [Update only selected columns](https://www.ruby-forum.com/t/update-only-selected-columns/150377)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 3\
**Last updated:** [October 8, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/update-only-selected-columns/150377 "2008-10-08T19:05:25Z")

</div>

I’m working on an “update your profile” page. One of the fields is the user’s password. I have a couple of validation rules set up in the user model regarding the password’s minimum and maximum length and it not bei…

---

## [URIs are transformed from view to controller](https://www.ruby-forum.com/t/uris-are-transformed-from-view-to-controller/150449)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 5\
**Last updated:** [October 8, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/uris-are-transformed-from-view-to-controller/150449 "2008-10-08T18:46:46Z")

</div>

Hi you all I have a form with button tags that represent a uri, so, for example, I have: Where “url” is a variable containing a URI. The URI appears on the view correctly so, in case of a URI such as http://hello.…

---

## [Getting value from time\_select](https://www.ruby-forum.com/t/getting-value-from-time-select/150439)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [October 8, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/getting-value-from-time-select/150439 "2008-10-08T17:35:13Z")

</div>

When I try to get the value of a time\_select into a flash\[:notice\], just to check it, I get nil. What ever I try I can’t deal with it. It goes into the db alright as mysql time, so that’s fine (e.g. 10:00:00). Could s…

---

## [Exception handling is driving me nuts](https://www.ruby-forum.com/t/exception-handling-is-driving-me-nuts/150401)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/exception-handling-is-driving-me-nuts/150401 "2008-10-08T16:45:31Z")

</div>

I am utterly unable to control how exceptions are handled in my application and it’s driving me nuts The idea is simple. I have a SOAP handler like this. class RtiController \< ApplicationController begin wsdl\_servi…

---

## [Pass option value to InstanceMethods define\_method](https://www.ruby-forum.com/t/pass-option-value-to-instancemethods-define-method/150368)

<div class="topic-metadata">

**Author:** [@vidmantas](https://www.ruby-forum.com/u/vidmantas)\
**Replies:** 6\
**Last updated:** [October 8, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/pass-option-value-to-instancemethods-define-method/150368 "2008-10-08T15:03:38Z")

</div>

Hello, I’m trying to develop a ActiveRecord plugin but run into the following problem: I pass arguments to write\_inheritable\_attribute :some\_field, ‘value’ class\_inheritable\_reader :some\_field in ClassMethods mod…

---

## [Private method \`gsub' called for 2:Fixnum](https://www.ruby-forum.com/t/private-method-gsub-called-for-2-fixnum/150423)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/private-method-gsub-called-for-2-fixnum/150423 "2008-10-08T14:53:01Z")

</div>

RoR Error: “private method \`gsub’ called for 2:Fixnum” I am new to RoR and trying to complete “RailsSpace Social Networking” example, all works fine until I have implemented cookies using authorization\_token, and star…

---

## [ActiveRecord::Calculations::ClassMethods\>\>count doesn't behave as in Rails 1.1.6](https://www.ruby-forum.com/t/activerecord-classmethods-count-doesnt-behave-as-in-rails-1-1-6/150429)

<div class="topic-metadata">

**Author:** [@clemens](https://www.ruby-forum.com/u/clemens)\
**Replies:** 3\
**Last updated:** [October 8, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/activerecord-classmethods-count-doesnt-behave-as-in-rails-1-1-6/150429 "2008-10-08T14:51:24Z")

</div>

ScheduleItem.count(\[“id = ?”, 204\]) used to work as expected in Rails 1.1.6, i.e. returning the count of rows where id = 204 … In 2.1.1 I get the error: "ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordErro…

---

## [Manuals?](https://www.ruby-forum.com/t/manuals/150426)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [October 8, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/manuals/150426 "2008-10-08T13:52:37Z")

</div>

Even though it’s in Google’s index the Rails manual (http://railsmanual.com/etc) is always out of action and seems to have been for a very long time. Anyone got any idea which site we should use or somewhere we can do…

---

## [Undefined method add called for ActsAsFerret::Remote::Server](https://www.ruby-forum.com/t/undefined-method-add-called-for-actsasferret-server/150420)

<div class="topic-metadata">

**Author:** [@irsami1982](https://www.ruby-forum.com/u/irsami1982)\
**Replies:** 0\
**Last updated:** [October 8, 2008, 11:43am UTC](https://www.ruby-forum.com/t/undefined-method-add-called-for-actsasferret-server/150420 "2008-10-08T11:43:17Z")

</div>

undefined method \`add’ called for #ActsAsFerret::Remote::Server:0x7f5be279ea38 I am currently using ferret (0.11.6) and act\_as\_ferret (0.4.3) My project is using rails 2.1.1 and ruby 1.8.6 along with sqlite3 and Webr…

---

## [How to divert routes resources in rails 2.1.1?](https://www.ruby-forum.com/t/how-to-divert-routes-resources-in-rails-2-1-1/150402)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [October 8, 2008, 11:09am UTC](https://www.ruby-forum.com/t/how-to-divert-routes-resources-in-rails-2-1-1/150402 "2008-10-08T11:09:40Z")

</div>

i created scaffold Post when i check in the browser everything is fine if i give my own link in any page \<%=link\_to “new\_action”,:action=\>‘new\_action’ %\> it always go to show action only how to override this ?

---

## [Submit\_tag and input type="button"](https://www.ruby-forum.com/t/submit-tag-and-input-type-button/150415)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 0\
**Last updated:** [October 8, 2008, 10:51am UTC](https://www.ruby-forum.com/t/submit-tag-and-input-type-button/150415 "2008-10-08T10:51:25Z")

</div>

Hi there, It’s 1.47 am and I am kinda tired of searching for answers now. I hope someone would respond. I have a javascript to validate date and display error message. I also have an ajax form that returns the value …

---

## [Measuring a user's storage (in the db)](https://www.ruby-forum.com/t/measuring-a-users-storage-in-the-db/150412)

<div class="topic-metadata">

**Author:** [@liseki](https://www.ruby-forum.com/u/liseki)\
**Replies:** 0\
**Last updated:** [October 8, 2008, 10:48am UTC](https://www.ruby-forum.com/t/measuring-a-users-storage-in-the-db/150412 "2008-10-08T10:48:22Z")

</div>

Just a quick question. In a typical rails app, how do you go about measuring the amount of storage (in the db) used by each user? Say in a typical photo sharing site, how do you measure how much space each user is tak…

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

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