# Rails

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

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

---

## [Need to use dates earlier than 1900 (Time library says out o](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109647)

<div class="topic-metadata">

**Author:** [@bunny](https://www.ruby-forum.com/u/bunny)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/need-to-use-dates-earlier-than-1900-time-library-says-out-o/109647 "2007-07-17T15:55:25Z")

</div>

Hi, I am currently using the calendar\_grid library, which uses the Time library. My issue is that need to generate calendar grids before 1900 but the Time library does not support any dates before then. Is there an…

---

## [Rails Noob, Math or Array Issue?](https://www.ruby-forum.com/t/rails-noob-math-or-array-issue/109430)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 17, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/rails-noob-math-or-array-issue/109430 "2007-07-17T15:49:24Z")

</div>

Let’s say that below is the math for figuring out a unit in a popular diet program: @fiber = Array.new(@food.fiber, 4) @points = (@food.calories / 50) + (@food.fat / 12) - (@fiber.min / And that for personal use, …

---

## [RSpec - concerns about mocking](https://www.ruby-forum.com/t/rspec-concerns-about-mocking/109547)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 4\
**Last updated:** [July 17, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/rspec-concerns-about-mocking/109547 "2007-07-17T15:49:24Z")

</div>

I’m getting into RSpec more after getting the awesome Peepcode screencast about it. So far I love it, but coming form Test::Unit with Rails, I have some concerns about the recommendation to mock models and database c…

---

## [How to display an image that is stored on a file store outsi](https://www.ruby-forum.com/t/how-to-display-an-image-that-is-stored-on-a-file-store-outsi/109581)

<div class="topic-metadata">

**Author:** [@Silvy](https://www.ruby-forum.com/u/Silvy)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-display-an-image-that-is-stored-on-a-file-store-outsi/109581 "2007-07-17T15:10:17Z")

</div>

I would like know how do I display images that are stored on a file store outside the public folder. I will be creating these images outside the web application but wanted to display the images. What are the options a…

---

## [Adding extra variable to a class, how to access it?](https://www.ruby-forum.com/t/adding-extra-variable-to-a-class-how-to-access-it/102203)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 10\
**Last updated:** [July 17, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/adding-extra-variable-to-a-class-how-to-access-it/102203 "2007-07-17T14:32:42Z")

</div>

somple question here but pretty confusing on my side. i have a model towns that is mapped to my towns table. can i add an extra variable to the class and access it in my view? basicall what i am trying to do is return…

---

## [How to pass values in ajax pagination](https://www.ruby-forum.com/t/how-to-pass-values-in-ajax-pagination/109633)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/how-to-pass-values-in-ajax-pagination/109633 "2007-07-17T13:51:07Z")

</div>

Hi all, i am new to ROR, i don't how to pass the values in ajax pagination, so can anyone please tell me, how to pass the values? this is my pagination code: \<%= pagination\_links\_with\_ajax @audit\_trail\_pages, { :elem…

---

## [Glossy or Matte screen for programming](https://www.ruby-forum.com/t/glossy-or-matte-screen-for-programming/109529)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 9\
**Last updated:** [July 17, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/glossy-or-matte-screen-for-programming/109529 "2007-07-17T13:44:57Z")

</div>

I am planning to buy Macbook pro. They offer glossy or matte screen for the same price. Which type would you reccommend, looking from spending-lot-of-time-programming perspective? (Of course this is not Ruby specific …

---

## [BackgrounDRb question](https://www.ruby-forum.com/t/backgroundrb-question/109632)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/backgroundrb-question/109632 "2007-07-17T13:26:14Z")

</div>

Two actualy: How to automatically delete worker when the job is done? Must the backgroundrb be restarted if the worker code has changed. Or is there another way. If it has anything to do with this I have :rails\_env: …

---

## [HELP: undefined method cattr\_accessor](https://www.ruby-forum.com/t/help-undefined-method-cattr-accessor/109618)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 17, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/help-undefined-method-cattr-accessor/109618 "2007-07-17T13:07:54Z")

</div>

hi to all, when i try to generate a new model, i get the following error message. D:\\InstantRails\\rails\_apps\\AR\_ODBC\>ruby script/generate model amempldept D:/Projekt/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/li…

---

## [Manipulate mp3 files using Ruby](https://www.ruby-forum.com/t/manipulate-mp3-files-using-ruby/109629)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/manipulate-mp3-files-using-ruby/109629 "2007-07-17T12:52:52Z")

</div>

Hi everyone! I want to edit mp3 files (cut, join, do other stuff) using ruby. would ffmpeg via rmovie (http://rmovie.rubyforge.org/) be the answer? If not, can you recommend something better to work with? Thanks Ram…

---

## [Setting the proxy server for RoR application](https://www.ruby-forum.com/t/setting-the-proxy-server-for-ror-application/109627)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 12:38pm UTC](https://www.ruby-forum.com/t/setting-the-proxy-server-for-ror-application/109627 "2007-07-17T12:38:51Z")

</div>

Hi ~ I written a RoR application that need to feed the web content using web service or make a get or post request to another server. However the RoR application server is located behind the proxy, so that if my web …

---

## [Can active record support: 'find' parent objects, but filter](https://www.ruby-forum.com/t/can-active-record-support-find-parent-objects-but-filter/109600)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 11:56am UTC](https://www.ruby-forum.com/t/can-active-record-support-find-parent-objects-but-filter/109600 "2007-07-17T11:56:00Z")

</div>

Hi, Can active record handle the following? Or do I need to stick to “.find\_by\_sql” to do this: select parent.id, parent.title, parent.description from parent, child where parent.id = child.parent\_id AND child.memo …

---

## [:application variable not staying set](https://www.ruby-forum.com/t/application-variable-not-staying-set/109275)

<div class="topic-metadata">

**Author:** [@paulnva](https://www.ruby-forum.com/u/paulnva)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 11:48am UTC](https://www.ruby-forum.com/t/application-variable-not-staying-set/109275 "2007-07-17T11:48:44Z")

</div>

In trying to setup staging of various environments, I am having a problem setting the variables when other tasks are called. In deploy.rb I have: for safety, set to development in case env is not set. set :rails\_env, …

---

## [FileColumn](https://www.ruby-forum.com/t/filecolumn/109619)

<div class="topic-metadata">

**Author:** [@pshussain](https://www.ruby-forum.com/u/pshussain)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 11:44am UTC](https://www.ruby-forum.com/t/filecolumn/109619 "2007-07-17T11:44:06Z")

</div>

Hai every one I have problem in File Column I could not upload files using FileColumn I got this error \<\< Do not know how to handle a string with value ‘F:\\Hussain\_Private\\DATABASE.JPG’ that was passed to a file\_col…

---

## [Backgroundrb scheduler stops](https://www.ruby-forum.com/t/backgroundrb-scheduler-stops/109614)

<div class="topic-metadata">

**Author:** [@levent](https://www.ruby-forum.com/u/levent)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 10:50am UTC](https://www.ruby-forum.com/t/backgroundrb-scheduler-stops/109614 "2007-07-17T10:50:35Z")

</div>

I have two scheduled tasks: background\_schedules.yml mail\_sender\_1: :class: :mail\_sender\_worker :job\_key: :job\_key\_mail\_sender\_1 :worker\_method: :do\_work :trigger\_args: :start: \<%= Time.now + 5.seconds %\> :end: \<%…

---

## [Need Help \[urgent\]](https://www.ruby-forum.com/t/need-help-urgent/109611)

<div class="topic-metadata">

**Author:** [@reddy](https://www.ruby-forum.com/u/reddy)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 10:46am UTC](https://www.ruby-forum.com/t/need-help-urgent/109611 "2007-07-17T10:46:37Z")

</div>

Hi all, I recently started working on ruby on rails to develop some web interface. I am facing so many problems during development. Input: I am using already existing database: Data base contains two tables 1. signa…

---

## [Passing data between controllers](https://www.ruby-forum.com/t/passing-data-between-controllers/109606)

<div class="topic-metadata">

**Author:** [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 10:44am UTC](https://www.ruby-forum.com/t/passing-data-between-controllers/109606 "2007-07-17T10:44:52Z")

</div>

hi, i want to pass the data between the controller, Eg: def a num = 10 print num end def b print num end if i load the b i want to get 10, how to do this? I tried to return the num that dint work. how to do t…

---

## [Transactions with two models](https://www.ruby-forum.com/t/transactions-with-two-models/109605)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 9:30am UTC](https://www.ruby-forum.com/t/transactions-with-two-models/109605 "2007-07-17T09:30:12Z")

</div>

Hi, In Agile Web D. with Rails section on Transactions (p 381) there are two main examples. making changes in two records in the same database table making changes in two records each in a different database I want…

---

## [\[ANN\]: JSON-RPC 1.1 plugin for Rails](https://www.ruby-forum.com/t/ann-json-rpc-1-1-plugin-for-rails/109604)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 9:21am UTC](https://www.ruby-forum.com/t/ann-json-rpc-1-1-plugin-for-rails/109604 "2007-07-17T09:21:11Z")

</div>

“json\_rpc” is a complete implementation of the JSON-RPC 1.1 protocol, as described in the JSON-RPC 1.1 Specification draft, which may be found at http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html. JSON-RPC 1.1 is …

---

## [Problem using filecolumn for file upload](https://www.ruby-forum.com/t/problem-using-filecolumn-for-file-upload/109609)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:29am UTC](https://www.ruby-forum.com/t/problem-using-filecolumn-for-file-upload/109609 "2007-07-17T08:29:45Z")

</div>

I have uploaded filecloumn plugin using instructions from: http://www.kanthak.net/opensource/file\_column/index.html#download And in my model I am giving : class Company \< ActiveRecord::Base file\_column :logo\_filepath…

---

## [Sake error on Windows](https://www.ruby-forum.com/t/sake-error-on-windows/109523)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 8:21am UTC](https://www.ruby-forum.com/t/sake-error-on-windows/109523 "2007-07-17T08:21:01Z")

</div>

I have installed sake (gem install sake) on Windows machine. Now whenever I run sake on Windows, I get following error/message Define INLINEDIR or HOME in your environment and try again I googled about it and could n…

---

## [\[ANN\] St. Louis Ruby User Group Meeting - Monday July 9th -](https://www.ruby-forum.com/t/ann-st-louis-ruby-user-group-meeting-monday-july-9th/109601)

<div class="topic-metadata">

**Author:** [@jbell38](https://www.ruby-forum.com/u/jbell38)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:16am UTC](https://www.ruby-forum.com/t/ann-st-louis-ruby-user-group-meeting-monday-july-9th/109601 "2007-07-17T08:16:00Z")

</div>

Next meeting: Building a Ruby on Rails application from the beginning using BDD/TDD (The first in a continuing series on building Ruby on Rails web applications) Date and Time: Monday, July 9th 6:00pm - 7:30pm (next…

---

## [Quick help needed by a novice](https://www.ruby-forum.com/t/quick-help-needed-by-a-novice/109603)

<div class="topic-metadata">

**Author:** [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:16am UTC](https://www.ruby-forum.com/t/quick-help-needed-by-a-novice/109603 "2007-07-17T08:16:00Z")

</div>

Hi I have done this so far… First of all I installed Active Scaffold Created a model for a table named products (modelname: product) Run rake db\_migrate so I have a nice table with a bunch of fields Created a model f…

---

## [Deploying onto production server and paths](https://www.ruby-forum.com/t/deploying-onto-production-server-and-paths/109607)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:16am UTC](https://www.ruby-forum.com/t/deploying-onto-production-server-and-paths/109607 "2007-07-17T08:16:00Z")

</div>

I have had no problems with my development system but I have migrated all over to my production server and it’s not loading javascripts, stylesheets, images, etc. because the ‘/public’ isn’t in the path according to t…

---

## [Ruby on Rail Problem](https://www.ruby-forum.com/t/ruby-on-rail-problem/193997)

<div class="topic-metadata">

**Author:** [@dpdpdp](https://www.ruby-forum.com/u/dpdpdp)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:02am UTC](https://www.ruby-forum.com/t/ruby-on-rail-problem/193997 "2007-07-17T08:02:58Z")

</div>

Hi, I have just started with RubyOnRail using Aptana Ruby on Rails plug-in…however I am not able to get the defaut functionality of scaffold to work if the column names have underscore . How do u go about using unders…

---

## [Ruby on Rail Problem](https://www.ruby-forum.com/t/ruby-on-rail-problem/109599)

<div class="topic-metadata">

**Author:** [@dpdpdp](https://www.ruby-forum.com/u/dpdpdp)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 8:01am UTC](https://www.ruby-forum.com/t/ruby-on-rail-problem/109599 "2007-07-17T08:01:58Z")

</div>

Hi, I have just started with RubyOnRail using Aptana Ruby on Rails plug-in…however I am not able to get the defaut functionality of scaffold to work if the column names have underscore . How do u go about using unders…

---

## [Blobs](https://www.ruby-forum.com/t/blobs/109549)

<div class="topic-metadata">

**Author:** [@perskog](https://www.ruby-forum.com/u/perskog)\
**Replies:** 2\
**Last updated:** [July 17, 2007, 7:08am UTC](https://www.ruby-forum.com/t/blobs/109549 "2007-07-17T07:08:55Z")

</div>

Hi@All! I completely new to RoR. I have a table which looks like this: \[ id | width:int | height:int | data: blob \] The blob contains a matrix of double precision values (64 bits). Apparently RoR gives me a string w…

---

## [Flash Errors](https://www.ruby-forum.com/t/flash-errors/109591)

<div class="topic-metadata">

**Author:** [@bradigan](https://www.ruby-forum.com/u/bradigan)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 6:11am UTC](https://www.ruby-forum.com/t/flash-errors/109591 "2007-07-17T06:11:51Z")

</div>

I have a form and a model with some validation. /event/new/ When I just click an empty form (or fill in a few fields) I do get my validation error no problem. However, if I click the link at the top of the page that …

---

## [A copy of "Module X" has been removed from the module tree b](https://www.ruby-forum.com/t/a-copy-of-module-x-has-been-removed-from-the-module-tree-b/109466)

<div class="topic-metadata">

**Author:** [@alvim](https://www.ruby-forum.com/u/alvim)\
**Replies:** 1\
**Last updated:** [July 17, 2007, 6:10am UTC](https://www.ruby-forum.com/t/a-copy-of-module-x-has-been-removed-from-the-module-tree-b/109466 "2007-07-17T06:10:51Z")

</div>

Hi! This will be a long one, sorry about that. I’ve been playing with Ruby and Rails for the last year, but only getting a little more “serious” now. I like how one line in a model (“has\_many”, for example) will cr…

---

## [Uninitialized constant ExceptionNotifiable deploy\_with\_migra](https://www.ruby-forum.com/t/uninitialized-constant-exceptionnotifiable-deploy-with-migra/109593)

<div class="topic-metadata">

**Author:** [@paulnva](https://www.ruby-forum.com/u/paulnva)\
**Replies:** 0\
**Last updated:** [July 17, 2007, 5:40am UTC](https://www.ruby-forum.com/t/uninitialized-constant-exceptionnotifiable-deploy-with-migra/109593 "2007-07-17T05:40:49Z")

</div>

I have installed the exception\_notification plugin, and it works fine when system is deployed to production. and I have not problems deploying to dev, and not test environments. However, when I try to do a deploy\_with…

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

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