# Rails

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

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

---

## [Cookies problem](https://www.ruby-forum.com/t/cookies-problem/111542)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/cookies-problem/111542 "2007-08-08T18:10:23Z")

</div>

I seem to have some cookies (semi-)working. Sometimes I get the following error: You have a nil object when you didn’t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.…

---

## [Have Several questions](https://www.ruby-forum.com/t/have-several-questions/111455)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 7\
**Last updated:** [August 8, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/have-several-questions/111455 "2007-08-08T17:52:00Z")

</div>

I’m trying to create a Member class with create, update, and delete methods, but they’re not working because, as I later realized, I programmed my validations that way. Realizing the truth, I have several questions b…

---

## [Mongrel Cluster Warning Messages on Startup/Shutdown](https://www.ruby-forum.com/t/mongrel-cluster-warning-messages-on-startup-shutdown/111565)

<div class="topic-metadata">

**Author:** [@Mike\_P](https://www.ruby-forum.com/u/Mike_P)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-warning-messages-on-startup-shutdown/111565 "2007-08-08T17:37:57Z")

</div>

I recently updated my mongrel installation through gem update and now I am getting the following messages (multiple times) whenever I start or shutdown my clusters. \*\* Ruby version is up-to-date; cgi\_multipart\_eof\_fix…

---

## [Generate scaffold](https://www.ruby-forum.com/t/generate-scaffold/111566)

<div class="topic-metadata">

**Author:** [@rails.impaired](https://www.ruby-forum.com/u/rails.impaired)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/generate-scaffold/111566 "2007-08-08T17:35:57Z")

</div>

script/generate scaffold product fires up: /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/rails\_generator/ generators/components/scaffold/scaffold\_generator.rb which looks like it uses the files located here: /us…

---

## [Selects and the database](https://www.ruby-forum.com/t/selects-and-the-database/111549)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [August 8, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/selects-and-the-database/111549 "2007-08-08T17:10:05Z")

</div>

I have this select drop down menu that I would like to have either show default values for the menu or have it grab from the database the values already selected (as the user can change their selections anytime they w…

---

## [Conditional action - if action = '' do this](https://www.ruby-forum.com/t/conditional-action-if-action-do-this/111557)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/conditional-action-if-action-do-this/111557 "2007-08-08T17:05:23Z")

</div>

hiya, trying to work this out to build a dynamic sidebar, i’ve got the sidebar in a partial, now wondering how to get different elements to hide for certain actions… e.g. \<% if action = ‘about’ %\> about logo \<% en…

---

## [File\_column plugin: get undefined method 'file\_column' error](https://www.ruby-forum.com/t/file-column-plugin-get-undefined-method-file-column-error/111511)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/file-column-plugin-get-undefined-method-file-column-error/111511 "2007-08-08T15:56:12Z")

</div>

I’ve install the ‘file\_column’ plugin properly following instructions from the Rails Cookbook and other sources on the web. The file\_column files are located under vendor\\plugins\\file\_column. I then add this to my c…

---

## [Wanted: Google Maps Programmer](https://www.ruby-forum.com/t/wanted-google-maps-programmer/111555)

<div class="topic-metadata">

**Author:** [@bobk](https://www.ruby-forum.com/u/bobk)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/wanted-google-maps-programmer/111555 "2007-08-08T15:49:02Z")

</div>

HI. I need a quick and simple google map made. All I need is the ability for map points to expire based on dates. So one user will add a time sensitive point. And the next user will filter points by date. Anybody? ema…

---

## [Q about returning to the action that called the method](https://www.ruby-forum.com/t/q-about-returning-to-the-action-that-called-the-method/111540)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/q-about-returning-to-the-action-that-called-the-method/111540 "2007-08-08T15:31:11Z")

</div>

I have a few actions which, after completing, i want to return to the action that called them. Currently the way i’m doing this is passsing through a parameter with the name of the calling method, eg \<%= link\_to ‘Del…

---

## [Hpricot problems when scraping sites with accented character](https://www.ruby-forum.com/t/hpricot-problems-when-scraping-sites-with-accented-character/111468)

<div class="topic-metadata">

**Author:** [@lukens](https://www.ruby-forum.com/u/lukens)\
**Replies:** 6\
**Last updated:** [August 8, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/hpricot-problems-when-scraping-sites-with-accented-character/111468 "2007-08-08T15:08:01Z")

</div>

Hi, I’m using Hpricot to try and grab reviews from various sites, some of these reviews are in French or German, etc, and so contain accented characters. However, these are coming out the other end as a load of quest…

---

## [Opening in Open source Technologies](https://www.ruby-forum.com/t/opening-in-open-source-technologies/111547)

<div class="topic-metadata">

**Author:** [@Azri\_Careers](https://www.ruby-forum.com/u/Azri_Careers)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 2:34pm UTC](https://www.ruby-forum.com/t/opening-in-open-source-technologies/111547 "2007-08-08T14:34:56Z")

</div>

Dear Friends, We are working on Open source Technologies such as PHP, Perl, Python, Ruby on Rails, Flex, OpenACS,Tcl etc… We are looking for an Ruby on Rails Developer as well as who has a passion to work on Open Sou…

---

## [Images not displaying](https://www.ruby-forum.com/t/images-not-displaying/111522)

<div class="topic-metadata">

**Author:** [@pragati](https://www.ruby-forum.com/u/pragati)\
**Replies:** 3\
**Last updated:** [August 8, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/images-not-displaying/111522 "2007-08-08T12:26:24Z")

</div>

I am putting images in public/images folder, and stored the image name in my table column imageURL. When I am calling books.imageURL, no images are getting displayed. Do i need to configure something else? Thanks!

---

## [How to read values from another form](https://www.ruby-forum.com/t/how-to-read-values-from-another-form/111538)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/how-to-read-values-from-another-form/111538 "2007-08-08T12:10:15Z")

</div>

how can I read the values entered in a form from another web page I java you can use javabeans: request.getParameterValues(“IDs”) http://forums.esri.com/Thread.asp?c=158&f=2282&t=229054&mc=4 in .Net you can use that: …

---

## [Pagination help - need drop down like Phpmyadmin](https://www.ruby-forum.com/t/pagination-help-need-drop-down-like-phpmyadmin/111537)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/pagination-help-need-drop-down-like-phpmyadmin/111537 "2007-08-08T12:02:04Z")

</div>

Hello everybody, I need a help as I know how to paginate the content from a table etc. Here I want to display the links to pages in drop down box like in Phpmyadmin. Consider You have total number of page like 50. In…

---

## [\[retry\] @flash deprecated -- fine, but I'm not doing that](https://www.ruby-forum.com/t/retry-flash-deprecated-fine-but-im-not-doing-that/111536)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 11:35am UTC](https://www.ruby-forum.com/t/retry-flash-deprecated-fine-but-im-not-doing-that/111536 "2007-08-08T11:35:17Z")

</div>

There is no mention of @flash in the partial I’m using, but I’m still getting these warnings. Any idea how to get rid of them? Thank you. ---------- Forwarded message ---------- Date: Tue, 7 Aug 2007 15:05:14 +0100 …

---

## [Record size and table size with ActiveRecord?](https://www.ruby-forum.com/t/record-size-and-table-size-with-activerecord/111517)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 11:11am UTC](https://www.ruby-forum.com/t/record-size-and-table-size-with-activerecord/111517 "2007-08-08T11:11:14Z")

</div>

What is the best way to find the record size and table size in a database using ActiveRecord? And will that method indicate actual disk space? If not, how do I do it with SQL commands? Thanks! chirag

---

## [Object.dup doesn't seem to work](https://www.ruby-forum.com/t/object-dup-doesnt-seem-to-work/111534)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 11:03am UTC](https://www.ruby-forum.com/t/object-dup-doesnt-seem-to-work/111534 "2007-08-08T11:03:13Z")

</div>

I have an activerecord class object that I do a .dup on. When I change the “duped” object it changes he orginal. Is this normal? I thought it should be a deep copy. One funny thing I noticed is that virtual attributes…

---

## [15 minute RoR blog help](https://www.ruby-forum.com/t/15-minute-ror-blog-help/111514)

<div class="topic-metadata">

**Author:** [@mariko](https://www.ruby-forum.com/u/mariko)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 10:44am UTC](https://www.ruby-forum.com/t/15-minute-ror-blog-help/111514 "2007-08-08T10:44:10Z")

</div>

Hello, I’m a newbie to rails, ruby, and web development in general, and I’m having trouble with belongs\_to and has\_xxx relationships. For example, right now I’m trying to get the 15 minute blog which is listed on the…

---

## [HTTP progressive output / server push](https://www.ruby-forum.com/t/http-progressive-output-server-push/111465)

<div class="topic-metadata">

**Author:** [@candlerb](https://www.ruby-forum.com/u/candlerb)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 10:36am UTC](https://www.ruby-forum.com/t/http-progressive-output-server-push/111465 "2007-08-08T10:36:09Z")

</div>

Is it possible to override the standard Rails rendering infrastructure for a single controller action, in such a way that I can generated “progressive” HTTP output? That is, the browser can display text as it is gener…

---

## [Question about link\_to\_remote](https://www.ruby-forum.com/t/question-about-link-to-remote/111459)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 10:32am UTC](https://www.ruby-forum.com/t/question-about-link-to-remote/111459 "2007-08-08T10:32:56Z")

</div>

I want to use Ajax.Updater to dynamically update a div with an option { insertion:Insertion.Bottom }, but I can’t find the equivalent in link\_to\_remote. – http://rubyforge.org/projects/ropenwiki/

---

## [London - Looking for partner (engineer) to build startup](https://www.ruby-forum.com/t/london-looking-for-partner-engineer-to-build-startup/111531)

<div class="topic-metadata">

**Author:** [@bogea](https://www.ruby-forum.com/u/bogea)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 10:28am UTC](https://www.ruby-forum.com/t/london-looking-for-partner-engineer-to-build-startup/111531 "2007-08-08T10:28:07Z")

</div>

Hello, I’m looking for a partner to develop a web / mobile 2.0 project. I have a good idea and the goal is to build a team, develop a prototype and get investment to create our own startup. I have a deep experience i…

---

## [Performance problems of my rails application](https://www.ruby-forum.com/t/performance-problems-of-my-rails-application/111513)

<div class="topic-metadata">

**Author:** [@jin](https://www.ruby-forum.com/u/jin)\
**Replies:** 2\
**Last updated:** [August 8, 2007, 10:07am UTC](https://www.ruby-forum.com/t/performance-problems-of-my-rails-application/111513 "2007-08-08T10:07:44Z")

</div>

ActiveRecord I have a query which :include 3 associated model,I have test them,if i include 2 of them the cost is low,about 0.x seconds,but the 3rd one will cost 2-3 seconds if i include it,that is a relationship mode…

---

## [How to create and use RoR module?](https://www.ruby-forum.com/t/how-to-create-and-use-ror-module/111526)

<div class="topic-metadata">

**Author:** [@makenai](https://www.ruby-forum.com/u/makenai)\
**Replies:** 5\
**Last updated:** [August 8, 2007, 10:01am UTC](https://www.ruby-forum.com/t/how-to-create-and-use-ror-module/111526 "2007-08-08T10:01:12Z")

</div>

Cross-posting from comp.lang.ruby Hi, I am quite new to ruby and ruby on rails. I am trying to user helper module in my controller but fail :frowning: I added languages\_helper.rb file to helpers directory in my Ro…

---

## [Data from ruby code to ppt](https://www.ruby-forum.com/t/data-from-ruby-code-to-ppt/111529)

<div class="topic-metadata">

**Author:** [@B\_N](https://www.ruby-forum.com/u/B_N)\
**Replies:** 0\
**Last updated:** [August 8, 2007, 9:49am UTC](https://www.ruby-forum.com/t/data-from-ruby-code-to-ppt/111529 "2007-08-08T09:49:05Z")

</div>

Hi, i am a newbie in ruby. i am searching for some direction for passing my data from Ruby controller to Power point to generate graphs in ppt. thanks in advance. Rgds

---

## [How does form\_for capture the block?](https://www.ruby-forum.com/t/how-does-form-for-capture-the-block/111518)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 9:37am UTC](https://www.ruby-forum.com/t/how-does-form-for-capture-the-block/111518 "2007-08-08T09:37:03Z")

</div>

I’m stumped as to how form\_for actually captures the block and puts it into the output. Looking at the method it’s basically form\_for( arg list ) #… concat( “open tag”, block.binding ) fields\_for( stuff, &block ) …

---

## [How do i validate if a datetime entered in the form has alre](https://www.ruby-forum.com/t/how-do-i-validate-if-a-datetime-entered-in-the-form-has-alre/111519)

<div class="topic-metadata">

**Author:** [@adild99](https://www.ruby-forum.com/u/adild99)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 9:07am UTC](https://www.ruby-forum.com/t/how-do-i-validate-if-a-datetime-entered-in-the-form-has-alre/111519 "2007-08-08T09:07:18Z")

</div>

I am creating a form to capture appointments for specialists and members… the schema of the appointments table looks something like this… id (integer) specialist\_id (integer) member\_id (integer) description (string…

---

## [Dynamic ruby code via load() method / Mongrel Caching](https://www.ruby-forum.com/t/dynamic-ruby-code-via-load-method-mongrel-caching/111498)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 7:37am UTC](https://www.ruby-forum.com/t/dynamic-ruby-code-via-load-method-mongrel-caching/111498 "2007-08-08T07:37:50Z")

</div>

Hi, my RoR application should load some ruby code which is dynamic created outside of the RoR application. In a RoR helper Iuse the ruby “load” Method. On my development environment anything works fine but when I run…

---

## [Top 10 in mysql?](https://www.ruby-forum.com/t/top-10-in-mysql/111415)

<div class="topic-metadata">

**Author:** [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Replies:** 4\
**Last updated:** [August 8, 2007, 6:35am UTC](https://www.ruby-forum.com/t/top-10-in-mysql/111415 "2007-08-08T06:35:46Z")

</div>

Hi, I’m new to rails and I’m trying to find the top ten posted url in my mysql db… so let’s say my db name is links and each item has two fields (userid and url)… I want to find the top 10 posted url by count… how can…

---

## [Session questions - Rails internal operations](https://www.ruby-forum.com/t/session-questions-rails-internal-operations/111445)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 6\
**Last updated:** [August 8, 2007, 4:54am UTC](https://www.ruby-forum.com/t/session-questions-rails-internal-operations/111445 "2007-08-08T04:54:38Z")

</div>

Greetings, I need to explain why carrying around entire objects in the session is a bad idea in Rails. The folks I need to explain this to are relatively new to Rails, coming from a .net background (I personally have…

---

## [Regexp differences between Ruby and ROR \[hpricot\]](https://www.ruby-forum.com/t/regexp-differences-between-ruby-and-ror-hpricot/111295)

<div class="topic-metadata">

**Author:** [@chet\_sanders](https://www.ruby-forum.com/u/chet_sanders)\
**Replies:** 1\
**Last updated:** [August 8, 2007, 4:41am UTC](https://www.ruby-forum.com/t/regexp-differences-between-ruby-and-ror-hpricot/111295 "2007-08-08T04:41:36Z")

</div>

I am trying to get hpricot to work from within rails and ran into this peculiarity. I had a situation where the script runs fine if run as a ruby script but bombs if called from within rails (as a method of a model). …

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

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