# Rails

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

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

---

## [Problem with my database.yml - access denied](https://www.ruby-forum.com/t/problem-with-my-database-yml-access-denied/112037)

<div class="topic-metadata">

**Author:** [@kellygreer1](https://www.ruby-forum.com/u/kellygreer1)\
**Replies:** 1\
**Last updated:** [August 15, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/problem-with-my-database-yml-access-denied/112037 "2007-08-15T15:03:28Z")

</div>

Trying to get Rails up and running on my webhost and I keep getting an error when I try to generate the scaffolding. here is there error: Access denied for user ‘kgreer’@‘localhost’ to database ‘kgreer\_DbMain’ Can I…

---

## [How can I use a 'expire\_fragment' in ActiveRecord](https://www.ruby-forum.com/t/how-can-i-use-a-expire-fragment-in-activerecord/112102)

<div class="topic-metadata">

**Author:** [@gaoxt1983](https://www.ruby-forum.com/u/gaoxt1983)\
**Replies:** 0\
**Last updated:** [August 15, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/how-can-i-use-a-expire-fragment-in-activerecord/112102 "2007-08-15T13:40:17Z")

</div>

I must use a ‘expire\_fragment’ in ActiveRecord, I just new an ActionController, and use the expire\_fragment, but it doesn’t work if I use a style like expire\_fragment(:controller=\>‘product’,:action=\>“xxx”,…) this is …

---

## [Performance](https://www.ruby-forum.com/t/performance/111976)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 2\
**Last updated:** [August 15, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/performance/111976 "2007-08-15T13:38:36Z")

</div>

Hi, I read this article: http://mongrel.rubyforge.org/docs/how\_many\_mongrels.html and decided to play around a little bit… I didn’t test it on mongrel, but on a Nginx (on a default page saying “Welcome to nginx”)… j…

---

## [Has\_and\_belongs\_to\_many :neigborcities](https://www.ruby-forum.com/t/has-and-belongs-to-many-neigborcities/112093)

<div class="topic-metadata">

**Author:** [@ina](https://www.ruby-forum.com/u/ina)\
**Replies:** 1\
**Last updated:** [August 15, 2007, 1:05pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-neigborcities/112093 "2007-08-15T13:05:14Z")

</div>

Hi, I am new to Ruby on Rails and - of course - have a problem… I have cities and I want to define neighborcities. I want to do this via a second table (cities\_cities), where the city\_ids are going to be connected. No…

---

## [Rake db:migrate execution error](https://www.ruby-forum.com/t/rake-db-migrate-execution-error/112100)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 15, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-execution-error/112100 "2007-08-15T12:51:14Z")

</div>

Help a newbie please. I have everything install according to hivelogic.com instruction but I get this… Mycomp:~/Sites/music\_library Myname$ rake db:migrate (in /Users/Myname/Sites/music\_library) dyld: NSLinkModule()…

---

## [DEPRECATION WARNING -- fine, but I'm not doing that](https://www.ruby-forum.com/t/deprecation-warning-fine-but-im-not-doing-that/111460)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 4\
**Last updated:** [August 15, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/deprecation-warning-fine-but-im-not-doing-that/111460 "2007-08-15T12:50:13Z")

</div>

When I run my functional tests, I get (pasted from cygwin): Started .E…DEPRECATION WARNING: @flash is deprecated! Call flash.\[\] instead of @flash.\[ \]. Args: \[:note\] See Ruby on Rails — A web-app framework that inclu…

---

## [How to get directory content?](https://www.ruby-forum.com/t/how-to-get-directory-content/112094)

<div class="topic-metadata">

**Author:** [@sineserz](https://www.ruby-forum.com/u/sineserz)\
**Replies:** 2\
**Last updated:** [August 15, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/how-to-get-directory-content/112094 "2007-08-15T12:26:21Z")

</div>

hi, I am trying to collect all controllers names in application. how to get directory contents under /app/controllers/ any1 have any idea I look up the File & FileUtils classes, but cant find anything thanks serz

---

## [Case .. when in view](https://www.ruby-forum.com/t/case-when-in-view/112095)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 0\
**Last updated:** [August 15, 2007, 11:06am UTC](https://www.ruby-forum.com/t/case-when-in-view/112095 "2007-08-15T11:06:48Z")

</div>

I noticed something odd: In a view, i’m using the case/when, but the strange thing is that rails/ruby can’t seem to handle whitespace in front of the “when” statement: \<% when :string then -%\> generates: comp…

---

## [Update dynamic fields automatically in database](https://www.ruby-forum.com/t/update-dynamic-fields-automatically-in-database/112068)

<div class="topic-metadata">

**Author:** [@jaystotz](https://www.ruby-forum.com/u/jaystotz)\
**Replies:** 2\
**Last updated:** [August 15, 2007, 6:17am UTC](https://www.ruby-forum.com/t/update-dynamic-fields-automatically-in-database/112068 "2007-08-15T06:17:34Z")

</div>

I’m working on a shopping cart application and I’ve run into a design question: I have a field in the cart\_lines table called total\_price. That field is really just a calculated field based on qty and unit\_price. If …

---

## [Catching data in model](https://www.ruby-forum.com/t/catching-data-in-model/112070)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 15, 2007, 5:24am UTC](https://www.ruby-forum.com/t/catching-data-in-model/112070 "2007-08-15T05:24:32Z")

</div>

Hello everybody, I am new to ruby on rails so please don’t laugh on my silly doubts. Problem : I am creating check boxes in rhtml file. All the items which are being checked, i am able to catch it in the controller c…

---

## [Sort on dates from has\_many?](https://www.ruby-forum.com/t/sort-on-dates-from-has-many/112067)

<div class="topic-metadata">

**Author:** [@Wyatt\_Draggoo](https://www.ruby-forum.com/u/Wyatt_Draggoo)\
**Replies:** 2\
**Last updated:** [August 15, 2007, 4:14am UTC](https://www.ruby-forum.com/t/sort-on-dates-from-has-many/112067 "2007-08-15T04:14:29Z")

</div>

Hey all, First, still getting into Ruby/Rails, and am drinking from a firehose. A lot of good information on this list if you can get to it! I have an Event model with many Showings. The Showings are simply dates tha…

---

## [Which is efficient fastcgi or mingrel?](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946)

<div class="topic-metadata">

**Author:** [@swaroopkanth](https://www.ruby-forum.com/u/swaroopkanth)\
**Replies:** 5\
**Last updated:** [August 15, 2007, 1:28am UTC](https://www.ruby-forum.com/t/which-is-efficient-fastcgi-or-mingrel/111946 "2007-08-15T01:28:21Z")

</div>

which is efficient,fastcgi or mingrel?

---

## [Need to convince a client to go with Rails instead of ASP.NE](https://www.ruby-forum.com/t/need-to-convince-a-client-to-go-with-rails-instead-of-asp-ne/112003)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 5\
**Last updated:** [August 15, 2007, 1:12am UTC](https://www.ruby-forum.com/t/need-to-convince-a-client-to-go-with-rails-instead-of-asp-ne/112003 "2007-08-15T01:12:20Z")

</div>

Hi All, I’m having a bit of a problem. I have a client that will simply not get off their ASP kick. They have an existing infrastructure using ASP.NET and, oddly enough, MySQL. They don’t know why, but they are in…

---

## [Model design question](https://www.ruby-forum.com/t/model-design-question/112075)

<div class="topic-metadata">

**Author:** [@r.g](https://www.ruby-forum.com/u/r.g)\
**Replies:** 2\
**Last updated:** [August 15, 2007, 1:06am UTC](https://www.ruby-forum.com/t/model-design-question/112075 "2007-08-15T01:06:19Z")

</div>

Hello, I’m creating an app that will collect and display user-submitted comments for several different content types. They comment structure will be the same for each type. I see two ways of doing this: define be…

---

## [Validates\_uniqueness\_of doesn't work if value tested is nume](https://www.ruby-forum.com/t/validates-uniqueness-of-doesnt-work-if-value-tested-is-nume/110758)

<div class="topic-metadata">

**Author:** [@Kiriakos\_Georgiou](https://www.ruby-forum.com/u/Kiriakos_Georgiou)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-doesnt-work-if-value-tested-is-nume/110758 "2007-08-14T23:13:11Z")

</div>

Hello all, I am working through the depot example in the rails book. If I add a validates\_uniqueness\_of to a string column in the model, and then try to create a record with a number in this string column I get an SQ…

---

## [Strange safari behavior](https://www.ruby-forum.com/t/strange-safari-behavior/111980)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/strange-safari-behavior/111980 "2007-08-14T22:34:06Z")

</div>

i’m having some very strange behavior with safari on mac osx… using restful routes in an app, trying to follow a link like /blog/2;edit this works fine in firefox & safari when running locally. if i deploy it to my …

---

## [Sybase Adapter for Ruby on Rails on Windows 2000 - abnormal](https://www.ruby-forum.com/t/sybase-adapter-for-ruby-on-rails-on-windows-2000-abnormal/111730)

<div class="topic-metadata">

**Author:** [@stitcher](https://www.ruby-forum.com/u/stitcher)\
**Replies:** 6\
**Last updated:** [August 14, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/sybase-adapter-for-ruby-on-rails-on-windows-2000-abnormal/111730 "2007-08-14T22:29:06Z")

</div>

Hi! I’m trying to use Sybase adapter to connect to legacy Sybase ASE 12.5, I’ve copied all the required libraries to the appropriate places :-)) But the strange thing is that I can query the database only twice. The …

---

## [Action caching and server aliases](https://www.ruby-forum.com/t/action-caching-and-server-aliases/112064)

<div class="topic-metadata">

**Author:** [@cleaner416](https://www.ruby-forum.com/u/cleaner416)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/action-caching-and-server-aliases/112064 "2007-08-14T22:19:05Z")

</div>

I’m having some trouble with caching (namely expiring action caches) on my production server: I have a site that can be accessed by both domain.com and www.domain.com. The problem is that pages cached through action …

---

## [Upgrade without downtime?](https://www.ruby-forum.com/t/upgrade-without-downtime/112015)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/upgrade-without-downtime/112015 "2007-08-14T20:23:49Z")

</div>

Hi List! I’ve been thinking for a while about how to upgrade a running rails installation without any downtime for the users. Let’s say you fixed some bugs without doing any changes to the db schema or anything that …

---

## [Need help cleaning up a model method](https://www.ruby-forum.com/t/need-help-cleaning-up-a-model-method/112025)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/need-help-cleaning-up-a-model-method/112025 "2007-08-14T19:43:21Z")

</div>

Hi, I need a little help cleaning up the method below. In my .NET days I would have let this pass, but I am trying to be a good ruby citizen by keeping things simple. This is from a seller model which has many vehicl…

---

## [Save ActiveRecord attribute without type checking](https://www.ruby-forum.com/t/save-activerecord-attribute-without-type-checking/111873)

<div class="topic-metadata">

**Author:** [@jumboboy](https://www.ruby-forum.com/u/jumboboy)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/save-activerecord-attribute-without-type-checking/111873 "2007-08-14T19:08:41Z")

</div>

I want to do a “raw” update an attribute on a ActiveRecord model without Rails doing type checks on the underlying column in my db. In other words - I want the create/update equivalent of “attributes\_before\_type\_cast”…

---

## [PLEASE help me if you can](https://www.ruby-forum.com/t/please-help-me-if-you-can/112052)

<div class="topic-metadata">

**Author:** [@enricoeur](https://www.ruby-forum.com/u/enricoeur)\
**Replies:** 2\
**Last updated:** [August 14, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/please-help-me-if-you-can/112052 "2007-08-14T18:38:25Z")

</div>

I’m a beginner, i have created for my web application 2 tables “videos” and “category”. I want to create a controller for display all videos by category, for do that i write a Category controlle rwith this ACTION def…

---

## [Debugging from inside emacs](https://www.ruby-forum.com/t/debugging-from-inside-emacs/112048)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/debugging-from-inside-emacs/112048 "2007-08-14T18:09:45Z")

</div>

I have yet to get the ruby debugger to work from inside emacs. I have rdebug.el but nothing really seems to work. I can do stuff like next, etc. At the start of each output line is two control-Z’s but it does not f…

---

## [Find\_by\_sql vs connection.select\_all](https://www.ruby-forum.com/t/find-by-sql-vs-connection-select-all/112036)

<div class="topic-metadata">

**Author:** [@BowmanS\_Eric\_R](https://www.ruby-forum.com/u/BowmanS_Eric_R)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/find-by-sql-vs-connection-select-all/112036 "2007-08-14T17:27:29Z")

</div>

I was trying to do SUM based mySQL query simliar to the following: SELECT SUM(updated\_on - created\_on) AS total from signups If I were to run this command in the mySQL console I would get a result. However, if I were…

---

## [Noobkit - Rails doc on steroids](https://www.ruby-forum.com/t/noobkit-rails-doc-on-steroids/112046)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/noobkit-rails-doc-on-steroids/112046 "2007-08-14T17:06:27Z")

</div>

Hey everyone! Here’s my elevator pitch: Noobkit (http://www.noobkit.com) is basically RDoc on steroids currently covering 26 Gems, including Rails and Ruby Core. It’s got full index search, browser search extensions …

---

## [Problem with link\_to\_function resulting rjs error, please he](https://www.ruby-forum.com/t/problem-with-link-to-function-resulting-rjs-error-please-he/110957)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 3\
**Last updated:** [August 14, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/problem-with-link-to-function-resulting-rjs-error-please-he/110957 "2007-08-14T16:51:26Z")

</div>

Hello all, i am trying to add some ajax effect to the page and use the link\_to\_funtion tag to toggle a “comment form” div. but when i click on the link, firefox gives me error box saying: RJS error TypeError: Effect…

---

## [Observe\_field not working with Internet Explorer](https://www.ruby-forum.com/t/observe-field-not-working-with-internet-explorer/111940)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/observe-field-not-working-with-internet-explorer/111940 "2007-08-14T16:50:56Z")

</div>

I have the following observe field in one of my rhtml files: \<%= observe\_field(“order\_plan”, :frequency =\> 0.2, :url =\> {:action =\> :update\_list}, :with =\> “id”) %\> this works fine in firefox but Internet Explorer (6 …

---

## [Password\_salt](https://www.ruby-forum.com/t/password-salt/112038)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [August 14, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/password-salt/112038 "2007-08-14T16:39:23Z")

</div>

I have been working a mthed that encryptes a password. It is something that I have done a few times before but I am getting a message saying: Can’t find method password\_salt In my model I am doing require ‘digest/sha2…

---

## [Incremental Validations](https://www.ruby-forum.com/t/incremental-validations/112040)

<div class="topic-metadata">

**Author:** [@mbholder](https://www.ruby-forum.com/u/mbholder)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/incremental-validations/112040 "2007-08-14T16:16:18Z")

</div>

Hi there, I am creating a project where users have a profile that they can choose to update all at once or update once in a while. This leads to some of the “User” model being updated at different times (in a few di…

---

## [Reporting Options](https://www.ruby-forum.com/t/reporting-options/112039)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 0\
**Last updated:** [August 14, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/reporting-options/112039 "2007-08-14T16:15:18Z")

</div>

Hi, This may have been placed in the wrong group, but: is there a reporting application out there that can integrate with Rails? If not, does anyone know of a reporting solution (like CrystalReports for example) tha…

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

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