# Rails

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

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

---

## [Rails Application error](https://www.ruby-forum.com/t/rails-application-error/115449)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 8\
**Last updated:** [September 26, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/rails-application-error/115449 "2007-09-26T14:13:36Z")

</div>

Hi, My application is giving error "Application error (Apache) Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html". Although am not…

---

## [./script/../config/boot.rb:29: undefined method \`gem' for ma](https://www.ruby-forum.com/t/script-config-boot-rb-undefined-method-gem-for-ma/113273)

<div class="topic-metadata">

**Author:** [@dodgyboz](https://www.ruby-forum.com/u/dodgyboz)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/script-config-boot-rb-undefined-method-gem-for-ma/113273 "2007-09-26T13:29:42Z")

</div>

I am new to svn but have just created a repository on my server using svnserve. I have done all the ignore \*.log files and temp directory stuff and have just tryed to generate my first controller useing script/generat…

---

## [Ajax without submti button?](https://www.ruby-forum.com/t/ajax-without-submti-button/115552)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [September 26, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/ajax-without-submti-button/115552 "2007-09-26T12:50:59Z")

</div>

I have a drop down list, how can I set it up to send request when selecting an option rather than pressing submit button after selection? And how can I save values of checkboxex/radio buttons without submit? Thanks

---

## [Rake DB Migration](https://www.ruby-forum.com/t/rake-db-migration/115572)

<div class="topic-metadata">

**Author:** [@siva1986](https://www.ruby-forum.com/u/siva1986)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/rake-db-migration/115572 "2007-09-26T12:45:52Z")

</div>

Hai All, i have installed Ruby and Rails in my localhost, and i have to download Rubricks CMS and installed in my localhost in the installing process i got below Error Please Say how can i rectify this. \*\* Invoke db:…

---

## [Pdf writer](https://www.ruby-forum.com/t/pdf-writer/115569)

<div class="topic-metadata">

**Author:** [@aya](https://www.ruby-forum.com/u/aya)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/pdf-writer/115569 "2007-09-26T12:24:36Z")

</div>

I have another question, does any one knows how to use pdf.add\_image with PDF::Writer::Graphics.new I use them, but always I get errors thanks

---

## [Unknown type 'inet' for column 'ip'](https://www.ruby-forum.com/t/unknown-type-inet-for-column-ip/89031)

<div class="topic-metadata">

**Author:** [@revlob](https://www.ruby-forum.com/u/revlob)\
**Replies:** 4\
**Last updated:** [September 26, 2007, 11:01am UTC](https://www.ruby-forum.com/t/unknown-type-inet-for-column-ip/89031 "2007-09-26T11:01:10Z")

</div>

I’m using Postgresql as my database backend, and whenver I run “rake db:schema:dump”, the following line appears in db/schema.rb: Could not dump table “comments” because of following StandardError Unknown type ‘inet’ f…

---

## [How to auto-generate a month-by-month archive links?](https://www.ruby-forum.com/t/how-to-auto-generate-a-month-by-month-archive-links/114006)

<div class="topic-metadata">

**Author:** [@rgrgrg](https://www.ruby-forum.com/u/rgrgrg)\
**Replies:** 10\
**Last updated:** [September 26, 2007, 9:21am UTC](https://www.ruby-forum.com/t/how-to-auto-generate-a-month-by-month-archive-links/114006 "2007-09-26T09:21:41Z")

</div>

Hey there, Does anyone know how best to create a list of links that will sort objects by the month in which they were created, and automatically add months as time goes on? I have a method that can find the objects c…

---

## [Rails Controller session scope](https://www.ruby-forum.com/t/rails-controller-session-scope/115433)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 8\
**Last updated:** [September 26, 2007, 8:14am UTC](https://www.ruby-forum.com/t/rails-controller-session-scope/115433 "2007-09-26T08:14:40Z")

</div>

Hi, Is there a way I can set the scope of my controller class to a session. I don’t want to create a new instance of my controller class for each request from a given session. Please any help would be appreciated. T…

---

## [Second ajax request getting locked](https://www.ruby-forum.com/t/second-ajax-request-getting-locked/115458)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 8:12am UTC](https://www.ruby-forum.com/t/second-ajax-request-getting-locked/115458 "2007-09-26T08:12:55Z")

</div>

Hi, I have a page which sends two different ajax request to the controller one after the other. However, the second request doesn’t gets processed unless the controller finishes with the first request, i.e. to say th…

---

## [Conditional attr\_protected](https://www.ruby-forum.com/t/conditional-attr-protected/115558)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 7:49am UTC](https://www.ruby-forum.com/t/conditional-attr-protected/115558 "2007-09-26T07:49:57Z")

</div>

Hi all, first off, let me say I am new to the Rails framework. With that being said, please let me know if there is a better way of doing this. I have a user object that contains some flags, is\_active being one of the…

---

## [Uploading multiple files in mongrel](https://www.ruby-forum.com/t/uploading-multiple-files-in-mongrel/115557)

<div class="topic-metadata">

**Author:** [@Cagdas](https://www.ruby-forum.com/u/Cagdas)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 7:37am UTC](https://www.ruby-forum.com/t/uploading-multiple-files-in-mongrel/115557 "2007-09-26T07:37:51Z")

</div>

in one Http request with multipart type, I put many files and send this request to Rails running with Mongrel. For 10000 files of 1 KB each, it takes about half an hour or an hour until Mongrel “cooks the request” and…

---

## [Rails and ySlow](https://www.ruby-forum.com/t/rails-and-yslow/115401)

<div class="topic-metadata">

**Author:** [@eddiewould](https://www.ruby-forum.com/u/eddiewould)\
**Replies:** 6\
**Last updated:** [September 26, 2007, 7:34am UTC](https://www.ruby-forum.com/t/rails-and-yslow/115401 "2007-09-26T07:34:56Z")

</div>

If anyone has followed Steve Soulder’s tips on optimizing web performance (Yahoo chief performance guy), his most important rule of thumb could be deadly to your rails app. My first blog post: http://www.dominicson.c…

---

## [Missing assocation methods (public\_instance\_methods.length == 0 for an active record model)](https://www.ruby-forum.com/t/missing-assocation-methods-public-instance-methods-length-0-for-an-active-record-model/115547)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 6:48am UTC](https://www.ruby-forum.com/t/missing-assocation-methods-public-instance-methods-length-0-for-an-active-record-model/115547 "2007-09-26T06:48:09Z")

</div>

Hi all, I’m getting a weird “transient” error I’m hoping someone can shed some light on. In short, the first time view a particular page all is well. The second time around, I get a bunch of active record model objec…

---

## [Activerecord multiple databases](https://www.ruby-forum.com/t/activerecord-multiple-databases/115550)

<div class="topic-metadata">

**Author:** [@dusty](https://www.ruby-forum.com/u/dusty)\
**Replies:** 0\
**Last updated:** [September 26, 2007, 6:09am UTC](https://www.ruby-forum.com/t/activerecord-multiple-databases/115550 "2007-09-26T06:09:01Z")

</div>

So, I was looking for a setup that would allow me to easily query multiple databases and not have to re-write my customer finder type queries. Here is what I came up with and it seems to be working for me in my very …

---

## [Working around the year 2038 bug in Ruby's Time class?](https://www.ruby-forum.com/t/working-around-the-year-2038-bug-in-rubys-time-class/60024)

<div class="topic-metadata">

**Author:** [@xavier](https://www.ruby-forum.com/u/xavier)\
**Replies:** 9\
**Last updated:** [September 26, 2007, 5:17am UTC](https://www.ruby-forum.com/t/working-around-the-year-2038-bug-in-rubys-time-class/60024 "2007-09-26T05:17:41Z")

</div>

I would have never imagined that I’d be bitten by the Y2038 bug someday… but it just happened and, trust me, it hurts! I have to deal with a database containing datetime fields with dates up to 2050 and more. Active…

---

## [Online Shopping Application](https://www.ruby-forum.com/t/online-shopping-application/115541)

<div class="topic-metadata">

**Author:** [@Waleed\_H](https://www.ruby-forum.com/u/Waleed_H)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 5:14am UTC](https://www.ruby-forum.com/t/online-shopping-application/115541 "2007-09-26T05:14:40Z")

</div>

Hi All, I have posted this Q’s, but I cannot see it in the group… Anyway I am new in rails, I would like build online shopping for my commodities and I want my customers see what is the new online, I do not want use …

---

## [Memcache-client - how to start server on development](https://www.ruby-forum.com/t/memcache-client-how-to-start-server-on-development/115491)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 5:06am UTC](https://www.ruby-forum.com/t/memcache-client-how-to-start-server-on-development/115491 "2007-09-26T05:06:04Z")

</div>

I’ve been trying to start the memcache-client server on my development box, but haven’t been able to figure out how to do this. It defaults to using “localhost:11211,” but there is nothing running on that port. The r…

---

## [Help with nested creation: what am I doing wrong?](https://www.ruby-forum.com/t/help-with-nested-creation-what-am-i-doing-wrong/115479)

<div class="topic-metadata">

**Author:** [@Zeekar](https://www.ruby-forum.com/u/Zeekar)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 4:58am UTC](https://www.ruby-forum.com/t/help-with-nested-creation-what-am-i-doing-wrong/115479 "2007-09-26T04:58:18Z")

</div>

I’ve got nested scaffolded resource objects as indicated below. All the routing and display stuff seems to work properly, but when I create a new identity, it shows up in the database with a NULL user\_id, even though…

---

## [Gem is installed, but...no such file to load -- localization](https://www.ruby-forum.com/t/gem-is-installed-but-no-such-file-to-load-localization/115544)

<div class="topic-metadata">

**Author:** [@jandot](https://www.ruby-forum.com/u/jandot)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 4:51am UTC](https://www.ruby-forum.com/t/gem-is-installed-but-no-such-file-to-load-localization/115544 "2007-09-26T04:51:40Z")

</div>

Hi all, This problem is driving me crazy. I have re-uploaded my rails application from localhost to the server, and rails refuses to start. The plugin “localization” seems to be the problem. However, it works on loca…

---

## [Strange Exception when running rake test](https://www.ruby-forum.com/t/strange-exception-when-running-rake-test/115521)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [September 26, 2007, 4:51am UTC](https://www.ruby-forum.com/t/strange-exception-when-running-rake-test/115521 "2007-09-26T04:51:17Z")

</div>

I get the following exception sometimes when I run rake test and I have some failures/errors in my test cases. It occurs after units/ functionals/integration complete. Command failed with status (1): \[/usr/bin/ruby18…

---

## [Ruby on Rails | MS SQL Server 2005 | Configuration](https://www.ruby-forum.com/t/ruby-on-rails-ms-sql-server-2005-configuration/115536)

<div class="topic-metadata">

**Author:** [@erstwhileiii](https://www.ruby-forum.com/u/erstwhileiii)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 4:26am UTC](https://www.ruby-forum.com/t/ruby-on-rails-ms-sql-server-2005-configuration/115536 "2007-09-26T04:26:08Z")

</div>

Request: Full description of mechanims required to intergrate current Ruby / Ruby on Rails with MS SQL Server 2005 Environment: Ruby 1.8.6-25 (ruby 1.8.6 (2007-03-13 patchlevel 0) \[i386-mswin32\]) Rails 1.2.3 ruby-db…

---

## [Savage Beast: where are the pagination\_links calculated?](https://www.ruby-forum.com/t/savage-beast-where-are-the-pagination-links-calculated/115538)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 3\
**Last updated:** [September 26, 2007, 4:24am UTC](https://www.ruby-forum.com/t/savage-beast-where-are-the-pagination-links-calculated/115538 "2007-09-26T04:24:57Z")

</div>

I am trying to track down where the pagination\_links are calculated. I have integrated SB into my site, and the show.rhtml for the topics controller references them like this: \<%= \_('Pages:') %\> \<%= pagination\_links @…

---

## [Constructing an array of objects from an array of objects](https://www.ruby-forum.com/t/constructing-an-array-of-objects-from-an-array-of-objects/115531)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [September 26, 2007, 2:50am UTC](https://www.ruby-forum.com/t/constructing-an-array-of-objects-from-an-array-of-objects/115531 "2007-09-26T02:50:02Z")

</div>

On line 1 I have constructed an array of Event objects, which belong\_to an Account object. How might I construct an array of Account objects from this array of Event objects on line 2? 1 notices = Event.find(:all, :co…

---

## [Excluding a user from the validate\_presence of](https://www.ruby-forum.com/t/excluding-a-user-from-the-validate-presence-of/115516)

<div class="topic-metadata">

**Author:** [@oweism](https://www.ruby-forum.com/u/oweism)\
**Replies:** 5\
**Last updated:** [September 26, 2007, 12:34am UTC](https://www.ruby-forum.com/t/excluding-a-user-from-the-validate-presence-of/115516 "2007-09-26T00:34:27Z")

</div>

hi, I am creating a website for a summer institute; i have flaged the student with a zero entry in the table, and the administrator with a one. An admin can edit a students information. However, i don’t want him to e…

---

## [INSERTS with MS SQL Server columns with newid() default values](https://www.ruby-forum.com/t/inserts-with-ms-sql-server-columns-with-newid-default-values/115524)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 25, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/inserts-with-ms-sql-server-columns-with-newid-default-values/115524 "2007-09-25T23:41:07Z")

</div>

My first steps in RoR … and it turns into a bad dream when it come to SQL Server! I have this table ‘Tbl\_People’, with 2 fields id\_People primary key, automatically generated by SQL Server with newid() default…

---

## [Why detest rspec? (was: community poll about testing and spe](https://www.ruby-forum.com/t/why-detest-rspec-was-community-poll-about-testing-and-spe/110241)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 38\
**Last updated:** [September 25, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/why-detest-rspec-was-community-poll-about-testing-and-spe/110241 "2007-09-25T23:36:29Z")

</div>

On 7/24/07, Nathaniel B. removed\_email\_address@domain.invalid wrote: I may be biased, but I would really like and have been looking for an alternative BDD choice besides RSpec. What others are there? I have seen a co…

---

## [\[ANN\] Introducing Fork: a new JavaScript library for Rails 1](https://www.ruby-forum.com/t/ann-introducing-fork-a-new-javascript-library-for-rails-1/82426)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 10\
**Last updated:** [September 25, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/ann-introducing-fork-a-new-javascript-library-for-rails-1/82426 "2007-09-25T23:19:24Z")

</div>

Hi, Fork release 0.1.0 is official! I’ve been hard at work for months to develop core JavaScript libraries for use with Rails. The Fork code is namespaced and similar to the Yahoo! UI philosophy. Fork includes the RJ…

---

## [Has\_many things which have many more things which... you get](https://www.ruby-forum.com/t/has-many-things-which-have-many-more-things-which-you-get/112534)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/has-many-things-which-have-many-more-things-which-you-get/112534 "2007-09-25T23:12:10Z")

</div>

Say I have the following class GrandParentThing \< ActiveRecord::Base has\_many :parent\_things end class ParentThing \< ActiveRecord::Base has\_many :child\_things belongs\_to :grand\_parent\_thing end class ChildThing \< …

---

## [\[Engine Testing\] Dependency issue with ApplicationController](https://www.ruby-forum.com/t/engine-testing-dependency-issue-with-applicationcontroller/87491)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/engine-testing-dependency-issue-with-applicationcontroller/87491 "2007-09-25T23:12:03Z")

</div>

I seem to be having a dependency issue when running my test while applying a mixin implemented by an engine into my Application controller. I found a work around but wanted to post the problem, cause and workarounds i…

---

## [\<someClass railsIsEasy="true" to\_xml\_is\_easy="false"\> \</some](https://www.ruby-forum.com/t/someclass-railsiseasy-true-to-xml-is-easy-false-some/114738)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/someclass-railsiseasy-true-to-xml-is-easy-false-some/114738 "2007-09-25T23:12:03Z")

</div>

The following code will render the subject: format.xml { render :xml =\> @someClass.to\_xml(:except=\>SomeClass.column\_names)} BUT I’m having a hard time with adding attributes railsIsEasy=“true” and to\_xml\_is\_easy=“fa…

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

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