# Rails

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

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

---

## [Error: Called id for nil, which would mistakenly be 4](https://www.ruby-forum.com/t/error-called-id-for-nil-which-would-mistakenly-be-4/158254)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 3:53am UTC](https://www.ruby-forum.com/t/error-called-id-for-nil-which-would-mistakenly-be-4/158254 "2009-01-21T03:53:29Z")

</div>

I define a class: class BuildLogger @@build\_logger=nil def self.get\_build\_logger(file\_name=nil) if @@build\_logger == nil ###this line will thrown an error @@build\_logger=Logger.new(“build\_logger”) @@build\_logg…

---

## [Xmlsimple warning](https://www.ruby-forum.com/t/xmlsimple-warning/152746)

<div class="topic-metadata">

**Author:** [@ginty](https://www.ruby-forum.com/u/ginty)\
**Replies:** 4\
**Last updated:** [January 21, 2009, 3:50am UTC](https://www.ruby-forum.com/t/xmlsimple-warning/152746 "2009-01-21T03:50:13Z")

</div>

Hi All, Anyone know how to fix the below warnings which I get when I run most if not all of the ./script executables, some googling reveals the odd mention of it but I haven’t seen a good fix for it. It’s not causing…

---

## [Should I use the validation framework (e.g. add\_to\_base) to pass back multiple data errors that are](https://www.ruby-forum.com/t/should-i-use-the-validation-framework-e-g-add-to-base-to-pass-back-multiple-data-errors-that-are/158185)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [January 21, 2009, 3:21am UTC](https://www.ruby-forum.com/t/should-i-use-the-validation-framework-e-g-add-to-base-to-pass-back-multiple-data-errors-that-are/158185 "2009-01-21T03:21:26Z")

</div>

Hi, I have an “automation” model with some config data. When it runs it looks across other models and does some matching, however it also builds up a list of “duplicate data” type issues identified as part of the r…

---

## [Output on Windows](https://www.ruby-forum.com/t/output-on-windows/157837)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 2\
**Last updated:** [January 21, 2009, 3:12am UTC](https://www.ruby-forum.com/t/output-on-windows/157837 "2009-01-21T03:12:39Z")

</div>

I was using Instant Rails on older XP and now have upgraded to Vista and decided to get away from instant rails and installed all the components seperately. I have been able to get it to work fine except that once sta…

---

## [Select\_date question](https://www.ruby-forum.com/t/select-date-question/158247)

<div class="topic-metadata">

**Author:** [@yudora111](https://www.ruby-forum.com/u/yudora111)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 2:04am UTC](https://www.ruby-forum.com/t/select-date-question/158247 "2009-01-21T02:04:49Z")

</div>

Hi all, I have problem using select\_date. I put it in a form and submit the form. When the page is loaded, user’s selection of the date disappear. What I want to do is very easy. I want to get the start date and end …

---

## [A question about backgroundrb](https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 21, 2009, 2:02am UTC](https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861 "2009-01-21T02:02:43Z")

</div>

I use backgroundrb to run task in background. But when I invoke a worker defined in backgroundrb, I will get this error: can’t dump TCPSocket vendor/plugins/backgroundrb/lib/backgroundrb/bdrb\_connection.rb:72:in dump…

---

## [Help in validates\_uniqueness\_of helper](https://www.ruby-forum.com/t/help-in-validates-uniqueness-of-helper/158183)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 2\
**Last updated:** [January 21, 2009, 12:35am UTC](https://www.ruby-forum.com/t/help-in-validates-uniqueness-of-helper/158183 "2009-01-21T00:35:03Z")

</div>

Hello. In my rails app, the user has to create an account. There are two fields email and alt\_email. The both should be unique. I used validates\_uniqueness\_of helper to validate the fields. Now my problem is the same …

---

## [Is it possible to test and monitor proxy connection?](https://www.ruby-forum.com/t/is-it-possible-to-test-and-monitor-proxy-connection/158237)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 0\
**Last updated:** [January 21, 2009, 12:02am UTC](https://www.ruby-forum.com/t/is-it-possible-to-test-and-monitor-proxy-connection/158237 "2009-01-21T00:02:35Z")

</div>

I have a proxy setting that I need to use to connect to a site. Is there a way to monitor and verify that the connection to the url is actually using the proxy settings? One of the tests that I did was put in a fake …

---

## [Application Architecture - Nested Resources](https://www.ruby-forum.com/t/application-architecture-nested-resources/158201)

<div class="topic-metadata">

**Author:** [@KRD](https://www.ruby-forum.com/u/KRD)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/application-architecture-nested-resources/158201 "2009-01-20T23:35:29Z")

</div>

All, This is will be a bit long winded but here goes… I am working on a medical records application that will provide a web interface (HTML) and REST web services. The application supports many users and many facili…

---

## [Functional testing with restful\_authentication](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/158211)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 9\
**Last updated:** [January 20, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/158211 "2009-01-20T23:34:54Z")

</div>

I don’t need to do functional testing of restful\_authentication, but I do need to do functional testing of controllers that require authentication. Restful\_authentication sets up a session and a current\_user but sessi…

---

## [Alias\_method\_chain causing infinite recursion and stack level too deep](https://www.ruby-forum.com/t/alias-method-chain-causing-infinite-recursion-and-stack-level-too-deep/158228)

<div class="topic-metadata">

**Author:** [@David\_Law](https://www.ruby-forum.com/u/David_Law)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/alias-method-chain-causing-infinite-recursion-and-stack-level-too-deep/158228 "2009-01-20T23:29:02Z")

</div>

I installed the Facebooker plugin and upon placing it on a staging server, I keep running into stack level too deep errors. It seems to stem from Facebooker using alias\_method\_chain to override some of the ActionCont…

---

## [Require factory fails if I am not using rake to run tests](https://www.ruby-forum.com/t/require-factory-fails-if-i-am-not-using-rake-to-run-tests/137423)

<div class="topic-metadata">

**Author:** [@Cynthia\_K](https://www.ruby-forum.com/u/Cynthia_K)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/require-factory-fails-if-i-am-not-using-rake-to-run-tests/137423 "2009-01-20T22:15:55Z")

</div>

I am trying to reuse some code from a Rails 1.2.6 app in edge rails. In the old app, I can run all my tests with ‘rake’ or I can run individual tests using ‘ruby test/functionals/foo\_controller\_test.rb’. But in my edg…

---

## [Inconsistent data in mySQL using string field](https://www.ruby-forum.com/t/inconsistent-data-in-mysql-using-string-field/158222)

<div class="topic-metadata">

**Author:** [@rainyglade](https://www.ruby-forum.com/u/rainyglade)\
**Replies:** 3\
**Last updated:** [January 20, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/inconsistent-data-in-mysql-using-string-field/158222 "2009-01-20T22:05:16Z")

</div>

I have a migration: class CreateCodeRequests \< ActiveRecord::Migration def self.up create\_table :code\_requests do |t| t.string :key\_number t.string :version t.datetime :maint\_end\_date t.string :nls\_name t.string …

---

## [BlackBook Gem](https://www.ruby-forum.com/t/blackbook-gem/157319)

<div class="topic-metadata">

**Author:** [@mudgilgaurav](https://www.ruby-forum.com/u/mudgilgaurav)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/blackbook-gem/157319 "2009-01-20T19:47:59Z")

</div>

Hi All I am new to BlackBook Gem , and i am really exited to implement this utility in my web application to enable the users of my website to fetch their contacts from the AOL , Yahoo , Gmail etc. My Application is …

---

## [Rails Space with version 2.0.2](https://www.ruby-forum.com/t/rails-space-with-version-2-0-2/137380)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/rails-space-with-version-2-0-2/137380 "2009-01-20T17:31:57Z")

</div>

Hi, I have read great reviews about the book Rails Space… But the codes are in Rails 1.2 Since Rails 2.0.2 as arrived, i thought it would be better reading a book with the fresh codes only. i am confused, what shoul…

---

## [Web Services Implementation](https://www.ruby-forum.com/t/web-services-implementation/158177)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/web-services-implementation/158177 "2009-01-20T17:15:05Z")

</div>

Hi Friends, How are you all ?? hope you are doing well. I am going implement web services in rails so thought to ask you any suggestions or hints or links, sources related to web services in rails. Also let me know …

---

## [N00b here, rake error: Expected x.rb to define x](https://www.ruby-forum.com/t/n00b-here-rake-error-expected-x-rb-to-define-x/158202)

<div class="topic-metadata">

**Author:** [@groovetrain](https://www.ruby-forum.com/u/groovetrain)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/n00b-here-rake-error-expected-x-rb-to-define-x/158202 "2009-01-20T17:10:16Z")

</div>

I’ve searched through the forum and google, and to no avail. I cannot seem to find the solution to my problem. No one has ever defined this as a rake problem. Anyway, it’s when my db:migrate tries to process this m…

---

## [Options Multiple Site Deployment On One Box](https://www.ruby-forum.com/t/options-multiple-site-deployment-on-one-box/158207)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/options-multiple-site-deployment-on-one-box/158207 "2009-01-20T15:52:02Z")

</div>

Hi, I was wondering if there was a strategy to consider when running deploying multiple low traffic app’s on the same box. i have 2 or 3 i’d like to deploy on a virtual box (slicehost probably). In the past I’ve depl…

---

## [MySQL and RoR 2.2.2 -- deadlock?](https://www.ruby-forum.com/t/mysql-and-ror-2-2-2-deadlock/158173)

<div class="topic-metadata">

**Author:** [@kedarmhaswade](https://www.ruby-forum.com/u/kedarmhaswade)\
**Replies:** 3\
**Last updated:** [January 20, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/mysql-and-ror-2-2-2-deadlock/158173 "2009-01-20T15:43:17Z")

</div>

Note: Serious criticism follows since I want to see rails improve. I was a happy camper getting along well with introducing myself with RoR 2.2.2 when disaster struck and I think I am not alone (a Google search indicat…

---

## [Js.erb ERROR invalid XML character](https://www.ruby-forum.com/t/js-erb-error-invalid-xml-character/158204)

<div class="topic-metadata">

**Author:** [@da991319](https://www.ruby-forum.com/u/da991319)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/js-erb-error-invalid-xml-character/158204 "2009-01-20T15:15:08Z")

</div>

Good morning, i am trying to write a js.erb. \<% if current\_user.login == “admin” %\> var hide = false; \<% else %\> var hide = true; \<% end %\> or \<% escape\_javascript(if current\_user.login == “admin”) %\> var hide =…

---

## [Do I need an SSL certificate to use ActionMailer 2.2.2?](https://www.ruby-forum.com/t/do-i-need-an-ssl-certificate-to-use-actionmailer-2-2-2/158193)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/do-i-need-an-ssl-certificate-to-use-actionmailer-2-2-2/158193 "2009-01-20T14:52:06Z")

</div>

Hi guys - I’m sorry to post about this issue again but after several days I still cannot get ActionMailer working and I’ve been through every tutorial/forum looking for the answer. I know ActionMailer now requires SSL…

---

## [Zlib error](https://www.ruby-forum.com/t/zlib-error/196885)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 2:26pm UTC](https://www.ruby-forum.com/t/zlib-error/196885 "2009-01-20T14:26:07Z")

</div>

Hi, After installing the rubygems 1.3.1, I face the following issues while installing new gems. Error: arun@mysystem:~/Desktop$ sudo gem install ip2country-0.0.2.gem ERROR: While executing gem … (Zlib::GzipFile::Er…

---

## [Problem running rake test](https://www.ruby-forum.com/t/problem-running-rake-test/196884)

<div class="topic-metadata">

**Author:** [@safestate](https://www.ruby-forum.com/u/safestate)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 12:54pm UTC](https://www.ruby-forum.com/t/problem-running-rake-test/196884 "2009-01-20T12:54:58Z")

</div>

I’m using the One-click 1.8.7rc2 Ruby Windows installer, everything has been working fine up till now, when i want to start getting into testing, i got this error, any reason why? C:/Ruby/bin/ruby -Ilib;test “C:/Ruby/…

---

## [Jobs](https://www.ruby-forum.com/t/jobs/158192)

<div class="topic-metadata">

**Author:** [@cjnarayanan](https://www.ruby-forum.com/u/cjnarayanan)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 11:49am UTC](https://www.ruby-forum.com/t/jobs/158192 "2009-01-20T11:49:25Z")

</div>

Hi Team, Could you please help me 2 my friends needed a immediate job on Ruby on Rails . they have 2+ years of experience in this platform and having the knowledge with more that quite they have aspiring knowledge, …

---

## [Class variables in a model are ok to cache relatively static records within the scope of a brower ca](https://www.ruby-forum.com/t/class-variables-in-a-model-are-ok-to-cache-relatively-static-records-within-the-scope-of-a-brower-ca/158176)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [January 20, 2009, 11:44am UTC](https://www.ruby-forum.com/t/class-variables-in-a-model-are-ok-to-cache-relatively-static-records-within-the-scope-of-a-brower-ca/158176 "2009-01-20T11:44:32Z")

</div>

Hi, Class variables in a model are ok to cache relatively static records within the scope of a brower call aren’t they? That is, the results get “refreshed” effectively each browser call (i.e. per browser call, per …

---

## [Best Practice for form where the model being modified does not match the models being displayed?](https://www.ruby-forum.com/t/best-practice-for-form-where-the-model-being-modified-does-not-match-the-models-being-displayed/158191)

<div class="topic-metadata">

**Author:** [@Brian\_McManus](https://www.ruby-forum.com/u/Brian_McManus)\
**Replies:** 0\
**Last updated:** [January 20, 2009, 10:57am UTC](https://www.ruby-forum.com/t/best-practice-for-form-where-the-model-being-modified-does-not-match-the-models-being-displayed/158191 "2009-01-20T10:57:38Z")

</div>

Sorry for the long title… I was just wanting to make sure I’m close to on the right track with this before I get to far. Say you have a view that’s displaying some models that are not to be edited in a form that edit…

---

## [How to use rake command in Rails application](https://www.ruby-forum.com/t/how-to-use-rake-command-in-rails-application/155382)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 5\
**Last updated:** [January 20, 2009, 10:51am UTC](https://www.ruby-forum.com/t/how-to-use-rake-command-in-rails-application/155382 "2009-01-20T10:51:45Z")

</div>

Hi, I want to clear my logs files when they are exceeding certain limit of memory The size of the files can be determined by using the File.size() and I can clear the log files using the rake log:clear command Bu…

---

## [In functional test, assert\_redirected\_to w prefix](https://www.ruby-forum.com/t/in-functional-test-assert-redirected-to-w-prefix/158136)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [January 20, 2009, 9:12am UTC](https://www.ruby-forum.com/t/in-functional-test-assert-redirected-to-w-prefix/158136 "2009-01-20T09:12:16Z")

</div>

I had to use sub-URI deployment (could not use subdomains…), and when running my functional tests, I the redirected\_to assertion embed the prefix… quite normal ;-)) is there a way to stipulate this prefix in the test …

---

## [InvalidAuthenticityToken error with remote\_form\_for](https://www.ruby-forum.com/t/invalidauthenticitytoken-error-with-remote-form-for/158036)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 2\
**Last updated:** [January 20, 2009, 7:34am UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-error-with-remote-form-for/158036 "2009-01-20T07:34:20Z")

</div>

Hi All - I have a form\_for that I’m trying to convert to remote\_form\_for, and I keep get this error: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): /usr/lib/ruby/gems/1.8/ge…

---

## [Attachment\_fu: save to a default format](https://www.ruby-forum.com/t/attachment-fu-save-to-a-default-format/158085)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 3\
**Last updated:** [January 20, 2009, 6:51am UTC](https://www.ruby-forum.com/t/attachment-fu-save-to-a-default-format/158085 "2009-01-20T06:51:16Z")

</div>

Hi, would anyone have any advices on the next? I allow users to upload images to my app. I’m using attachment\_fu and MiniMagick. There’s two things that I’d like to do: 1- No matter what format the original file is I…

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

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