# Rails

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

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

---

## [Tests: StandardError: No fixture with name 'first'...?](https://www.ruby-forum.com/t/tests-standarderror-no-fixture-with-name-first/89801)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [May 18, 2007, 1:23am UTC](https://www.ruby-forum.com/t/tests-standarderror-no-fixture-with-name-first/89801 "2007-05-18T01:23:51Z")

</div>

Hi all I have created a scaffold for the model Country. Without touching anything of the test files after they have been created I ran the tests: rake test And that’s the horrible output: chraftbuech:~/Webwork/pgboo…

---

## [RubyonRails Conference Portland - Need to Cancel / Transfer](https://www.ruby-forum.com/t/rubyonrails-conference-portland-need-to-cancel-transfer/103976)

<div class="topic-metadata">

**Author:** [@ajay](https://www.ruby-forum.com/u/ajay)\
**Replies:** 2\
**Last updated:** [May 18, 2007, 1:17am UTC](https://www.ruby-forum.com/t/rubyonrails-conference-portland-need-to-cancel-transfer/103976 "2007-05-18T01:17:51Z")

</div>

Hello, I have a confirmed registration to Ruby On Rails conference and due to unfortunate circumstances I may have to cancel my trip to Portland. Does anybody knows whether Registration can be transferred this close …

---

## [Trying to great MemCached like a SESSION array](https://www.ruby-forum.com/t/trying-to-great-memcached-like-a-session-array/104441)

<div class="topic-metadata">

**Author:** [@eddy](https://www.ruby-forum.com/u/eddy)\
**Replies:** 0\
**Last updated:** [May 18, 2007, 12:29am UTC](https://www.ruby-forum.com/t/trying-to-great-memcached-like-a-session-array/104441 "2007-05-18T00:29:34Z")

</div>

hi. can someone help in what i’m doing wrong? i just want to treat this CACHE as if it were a session / variable that was an array. def test CACHE\[:test\] = \[\] an\_array = %w{ foo bar baz} an\_array.each { |i| CACHE\[…

---

## [Link in mails](https://www.ruby-forum.com/t/link-in-mails/104426)

<div class="topic-metadata">

**Author:** [@acras](https://www.ruby-forum.com/u/acras)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/link-in-mails/104426 "2007-05-17T22:16:28Z")

</div>

Hi, I am using the activeMailer. Wich is the best way to add links to actions in my RoR app into the mail content? I didn’t get link-to to work. Thanks – Ricardo A. removed\_email\_address@domain.invalid Acras Dese…

---

## [Manipulation of javascript object via RJS](https://www.ruby-forum.com/t/manipulation-of-javascript-object-via-rjs/104423)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/manipulation-of-javascript-object-via-rjs/104423 "2007-05-17T21:30:05Z")

</div>

Hi All I would like to manipulate a javascript object which I’ve created as follows: … HTML stuff… here This object is used to manage the page (like replace DIVs depending on the actions of the user) So, what I wo…

---

## [Easy and reliable way to keep database views updated?](https://www.ruby-forum.com/t/easy-and-reliable-way-to-keep-database-views-updated/104297)

<div class="topic-metadata">

**Author:** [@joachimgross](https://www.ruby-forum.com/u/joachimgross)\
**Replies:** 3\
**Last updated:** [May 17, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/easy-and-reliable-way-to-keep-database-views-updated/104297 "2007-05-17T20:53:40Z")

</div>

I’m using a lot of database views to create various lists in my RoR applications and I’ve problems keeping them updated. The problem is, that some of my views are depending on some other views. So I have for example: …

---

## [Make dynamical URL for binary data in rails](https://www.ruby-forum.com/t/make-dynamical-url-for-binary-data-in-rails/104422)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/make-dynamical-url-for-binary-data-in-rails/104422 "2007-05-17T20:13:35Z")

</div>

All, I would like to do following thing: when the request reaches certain method in a controller, I want to read binary data (e.g. an image) from database and dynamically make up a URL (without writing that out physi…

---

## [Simple thing in PHP, a braincracker for me in Ruby](https://www.ruby-forum.com/t/simple-thing-in-php-a-braincracker-for-me-in-ruby/104391)

<div class="topic-metadata">

**Author:** [@Reinier\_L](https://www.ruby-forum.com/u/Reinier_L)\
**Replies:** 4\
**Last updated:** [May 17, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/simple-thing-in-php-a-braincracker-for-me-in-ruby/104391 "2007-05-17T20:05:30Z")

</div>

Hi, I have a PHP background, and learning Ruby is great fun. I want to build a mini app that I already have in PHP to Ruby. It’s a personal planner, where I plan days (the days are chopped in three pieces 09:00 12:0…

---

## [Drop down list with AJAX(?)](https://www.ruby-forum.com/t/drop-down-list-with-ajax/104408)

<div class="topic-metadata">

**Author:** [@asetzler](https://www.ruby-forum.com/u/asetzler)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/drop-down-list-with-ajax/104408 "2007-05-17T19:45:49Z")

</div>

Hi, I’ve been trying to create a specific drop down list. The list, apart from normal elements read from a database, should have additional element called ‘Other.’ which when selected should cause the drop down list …

---

## [Scaffolding tries to connect to wrong db](https://www.ruby-forum.com/t/scaffolding-tries-to-connect-to-wrong-db/104362)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/scaffolding-tries-to-connect-to-wrong-db/104362 "2007-05-17T19:17:11Z")

</div>

Hello, Im getting an error when trying to scaffold, rails tries to connect to the wrong database, I am running RoR on windows. When I try to acces localhost:3000/contexts I get this Mysql::Error in ContextsController…

---

## [Approaching a ranking system (concept)](https://www.ruby-forum.com/t/approaching-a-ranking-system-concept/104418)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/approaching-a-ranking-system-concept/104418 "2007-05-17T19:11:24Z")

</div>

I’m making a music recommendation site and on the front page I’d like to show the latest 10 albums based on activity. Instead of just sorting by votes Id like a more accurate approach to what gets on the front page (l…

---

## [Bug or Feature / @var.save](https://www.ruby-forum.com/t/bug-or-feature-var-save/104415)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/bug-or-feature-var-save/104415 "2007-05-17T18:44:14Z")

</div>

Hi all, I have just a little problem. I want to save an object back to my database table. if I do itlike that: e = Event.new(params) e.save! e.id returns the correct id of the created db entry however if I do it l…

---

## [Can partial\_2 called by partail\_1 access partial\_1's locals?](https://www.ruby-forum.com/t/can-partial-2-called-by-partail-1-access-partial-1s-locals/104413)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/can-partial-2-called-by-partail-1-access-partial-1s-locals/104413 "2007-05-17T18:19:07Z")

</div>

I have partial\_2 that renders some links. It is sometimes called directly with a :locals hash. I also have partial\_1 that renders the top and bottom of some pages and it is also called with a :locals hash. I’d like t…

---

## [Multiple Select Dropdown and Array](https://www.ruby-forum.com/t/multiple-select-dropdown-and-array/104355)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/multiple-select-dropdown-and-array/104355 "2007-05-17T17:00:49Z")

</div>

I was working on this a couple of months back and could not figure out what I was doing wrong. I came back to it today and wanted to post again to see if any of you had an idea. Here is the problem. I have this code…

---

## [Ajax and opera webbrowser, ajax no worky](https://www.ruby-forum.com/t/ajax-and-opera-webbrowser-ajax-no-worky/104404)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/ajax-and-opera-webbrowser-ajax-no-worky/104404 "2007-05-17T16:40:16Z")

</div>

hi, i just recently got a small internet tablet nokia n800 that uses opera. however, when browsing to my sites that use ajax, they dont work well. a person in another forum posted this bit of code… function DoAjaxStu…

---

## [Activerecord standalone and ODBC](https://www.ruby-forum.com/t/activerecord-standalone-and-odbc/90733)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 3\
**Last updated:** [May 17, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/activerecord-standalone-and-odbc/90733 "2007-05-17T16:32:47Z")

</div>

i’m trying to connect to a SQL Server from my ruby script, to fetch some data to a new database (using MySQL) but i get these errors: paulo@shuffle:/tmp/sql$ ruby test.rb WARNING: no ODBC driver manager found. /usr/…

---

## [DB Connections with hardcoded database.yml username? How do](https://www.ruby-forum.com/t/db-connections-with-hardcoded-database-yml-username-how-do/104401)

<div class="topic-metadata">

**Author:** [@dbaman](https://www.ruby-forum.com/u/dbaman)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/db-connections-with-hardcoded-database-yml-username-how-do/104401 "2007-05-17T16:10:35Z")

</div>

I’m a bit (OK…a lot) confused about the way Rails establishes a DB connection with the login/passwd that is hardcoded in database.yml, even in production mode. I’m using Rails to develop internal, inward-facing apps f…

---

## [\`rails app\_name\` =\> Exec format error (Errno:ENOEXEC)](https://www.ruby-forum.com/t/rails-app-name-exec-format-error-errno-enoexec/104075)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/rails-app-name-exec-format-error-errno-enoexec/104075 "2007-05-17T15:54:29Z")

</div>

Hi, I’m trying to run the ‘rails’ command from a ruby script. I’m able to do something like svn this\_and\_that just fine, but I can’t seem to execute the rails command using: rails new\_app It keeps throwing an error…

---

## [Postgres geometric types support](https://www.ruby-forum.com/t/postgres-geometric-types-support/104358)

<div class="topic-metadata">

**Author:** [@Jon\_Smillie](https://www.ruby-forum.com/u/Jon_Smillie)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/postgres-geometric-types-support/104358 "2007-05-17T15:45:28Z")

</div>

I’ve been trying to get rails to work successfully with the native geometric types in postgres (point, box, etc), but out of the box rails dumbs these down to string types. This means that when rake creates my test d…

---

## [OpenID Sample Application](https://www.ruby-forum.com/t/openid-sample-application/104267)

<div class="topic-metadata">

**Author:** [@Benjamin\_C](https://www.ruby-forum.com/u/Benjamin_C)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/openid-sample-application/104267 "2007-05-17T15:08:20Z")

</div>

In case you haven’t seen it, a few days ago I posted a sample Rails application that integrates the open\_id\_authentication and restful\_rails plugins to give you a good start at building a OpenID- enabled application. …

---

## [Sending dynamic variable from view to RJS file (AJAX)](https://www.ruby-forum.com/t/sending-dynamic-variable-from-view-to-rjs-file-ajax/104387)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 2:52pm UTC](https://www.ruby-forum.com/t/sending-dynamic-variable-from-view-to-rjs-file-ajax/104387 "2007-05-17T14:52:19Z")

</div>

How do I send a dynamic variable (album\_id) too an ajax RJS file copied below? This works fine with a static span ID but Im not sure how to transfer the album.id VOTE2.rjs page.replace\_html ‘\<%= @albums.id %\>’, @al…

---

## [Changes to core methods](https://www.ruby-forum.com/t/changes-to-core-methods/104354)

<div class="topic-metadata">

**Author:** [@keynan](https://www.ruby-forum.com/u/keynan)\
**Replies:** 1\
**Last updated:** [May 17, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/changes-to-core-methods/104354 "2007-05-17T14:50:18Z")

</div>

\##I am trying to get these put into the next version of rails any help or suggestions would be great thanks from prototype helper in action view def remote\_funtion(options) function = \[\] if options\[:requests\] and op…

---

## [Dispatch.fcgi && lighttpd file upload](https://www.ruby-forum.com/t/dispatch-fcgi-lighttpd-file-upload/104040)

<div class="topic-metadata">

**Author:** [@shai](https://www.ruby-forum.com/u/shai)\
**Replies:** 4\
**Last updated:** [May 17, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-lighttpd-file-upload/104040 "2007-05-17T12:37:27Z")

</div>

Hi, as i’m aware that there are not too many out there still using dispatch.fcgi && lighttpd (rather moving to mongrels && nginx ) , i’ll try to make this simple: how do i limit a file upload size in lighttpd? am i s…

---

## ["Find me in app/views/hello/index.rhtml" loads, but no such](https://www.ruby-forum.com/t/find-me-in-app-views-hello-index-rhtml-loads-but-no-such/104365)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 6\
**Last updated:** [May 17, 2007, 11:26am UTC](https://www.ruby-forum.com/t/find-me-in-app-views-hello-index-rhtml-loads-but-no-such/104365 "2007-05-17T11:26:17Z")

</div>

I’m following http://wiki.rubyonrails.org/rails/pages/Tutorial http://localhost:3000/hello gives: "Hello#index Find me in app/views/hello/index.rhtml" which is the expected output. What’s not expected is: \[thufir@l…

---

## [Trying to impliment the Rails Flickr screen cast](https://www.ruby-forum.com/t/trying-to-impliment-the-rails-flickr-screen-cast/104377)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 11:18am UTC](https://www.ruby-forum.com/t/trying-to-impliment-the-rails-flickr-screen-cast/104377 "2007-05-17T11:18:16Z")

</div>

I am trying to experiment with Flickr so I am following the screen cast on the Rails web site. I have installed the flickr gem and got an API key from flickr. I am having an issue when I try to run the example though …

---

## [Reviewing Books on ROR](https://www.ruby-forum.com/t/reviewing-books-on-ror/104367)

<div class="topic-metadata">

**Author:** [@shayantani](https://www.ruby-forum.com/u/shayantani)\
**Replies:** 5\
**Last updated:** [May 17, 2007, 11:15am UTC](https://www.ruby-forum.com/t/reviewing-books-on-ror/104367 "2007-05-17T11:15:14Z")

</div>

If anybody is interested with reviewing books on Ruby on Rails, please reply to this message. Regards Shayantani

---

## [Eager](https://www.ruby-forum.com/t/eager/104359)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 3\
**Last updated:** [May 17, 2007, 10:44am UTC](https://www.ruby-forum.com/t/eager/104359 "2007-05-17T10:44:13Z")

</div>

Hi i’m trying to have an eager loading on 4 tables. those tables are : products, store\_entries, stores, store\_shipping\_countries. and i don’t know how to load “store\_shipping\_countries” in the include parameter when…

---

## [Dont use column name in errors](https://www.ruby-forum.com/t/dont-use-column-name-in-errors/104353)

<div class="topic-metadata">

**Author:** [@archangel77](https://www.ruby-forum.com/u/archangel77)\
**Replies:** 2\
**Last updated:** [May 17, 2007, 10:04am UTC](https://www.ruby-forum.com/t/dont-use-column-name-in-errors/104353 "2007-05-17T10:04:09Z")

</div>

How can I customize Rails in order not to use the column name in the error messages? I’d like to provide custom labels to be show in the error messages.

---

## [fieldWithErrors and DIV tab](https://www.ruby-forum.com/t/fieldwitherrors-and-div-tab/162697)

<div class="topic-metadata">

**Author:** [@Yves-Eric](https://www.ruby-forum.com/u/Yves-Eric)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 9:32am UTC](https://www.ruby-forum.com/t/fieldwitherrors-and-div-tab/162697 "2007-05-17T09:32:07Z")

</div>

Hi all, I just hit a layout problem due to the fact that Rails wraps DIV tags around fields with errors, as already reported in bug #3587 (http:// dev.rubyonrails.org/ticket/3587). Is there anything new regarding this …

---

## [fieldWithErrors and DIV tab](https://www.ruby-forum.com/t/fieldwitherrors-and-div-tab/104373)

<div class="topic-metadata">

**Author:** [@Yves-Eric](https://www.ruby-forum.com/u/Yves-Eric)\
**Replies:** 0\
**Last updated:** [May 17, 2007, 9:32am UTC](https://www.ruby-forum.com/t/fieldwitherrors-and-div-tab/104373 "2007-05-17T09:32:07Z")

</div>

Hi all, I just hit a layout problem due to the fact that Rails wraps DIV tags around fields with errors, as already reported in bug #3587 (http:// dev.rubyonrails.org/ticket/3587). Is there anything new regarding this …

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

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