# Rails

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

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

---

## [Process uploaded file without saving in model](https://www.ruby-forum.com/t/process-uploaded-file-without-saving-in-model/130331)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/process-uploaded-file-without-saving-in-model/130331 "2008-02-27T14:05:18Z")

</div>

Hi, I want to upload files to be processed without being saved in a model. Sure, I can create an acts\_as\_attachment model for these and not save the uploaded file, but is there any more direct solution? Thanks, Helz…

---

## [Select boxes](https://www.ruby-forum.com/t/select-boxes/130330)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/select-boxes/130330 "2008-02-27T13:32:41Z")

</div>

I am trying to understand the best way to apply javascript to two select boxes. If the user changes the selection in box A, a given option in box B would dynamically become selected. Does rails provide help with task…

---

## [Creating graph using Ruport](https://www.ruby-forum.com/t/creating-graph-using-ruport/130323)

<div class="topic-metadata">

**Author:** [@seena](https://www.ruby-forum.com/u/seena)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/creating-graph-using-ruport/130323 "2008-02-27T13:32:39Z")

</div>

hi, cud anybody plz tell how to veiw or show a graph that has been created using the ruport gem… i have created the graph n report refering “http://ruportbook.com/introducing\_ruport.html”. but at the end it is not s…

---

## [Association problems?](https://www.ruby-forum.com/t/association-problems/130265)

<div class="topic-metadata">

**Author:** [@Olav\_MSSS\_ller](https://www.ruby-forum.com/u/Olav_MSSS_ller)\
**Replies:** 5\
**Last updated:** [February 27, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/association-problems/130265 "2008-02-27T12:54:17Z")

</div>

Hiho, yep, I’m a newbie :wink: I can’t get this to work. I have the classes “Wishlist” and “User”. class Wishlist \< ActiveRecord::Base belongs\_to :owner, :class\_name =\> “User”, :foreign\_key =\> “user\_id” has\_and\_belo…

---

## [Association problem in one direction](https://www.ruby-forum.com/t/association-problem-in-one-direction/130262)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/association-problem-in-one-direction/130262 "2008-02-27T12:31:51Z")

</div>

I have these models class Game \< ActiveRecord::Base belongs\_to :home\_team, :class\_name =\> ‘Team’ belongs\_to :away\_team, :class\_name =\> ‘Team’ belongs\_to :field end class Person \< ActiveRecord::Base has\_many :affil…

---

## [Problem installing webOrb =\> Plugin not found: "http://themidnightcoders.net:8089/svn/weborb"](https://www.ruby-forum.com/t/problem-installing-weborb-plugin-not-found-http-themidnightcoders-net-8089-svn-weborb/130289)

<div class="topic-metadata">

**Author:** [@Beselga](https://www.ruby-forum.com/u/Beselga)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/problem-installing-weborb-plugin-not-found-http-themidnightcoders-net-8089-svn-weborb/130289 "2008-02-27T12:20:03Z")

</div>

I’m trying to install weborb in my applications but it is not working as you can see: C:\\RoR\\mijnapplication\>ruby script/plugin install http://themidnightcoders.net:8 089/svn/weborb --force to reinstall ./README ./…

---

## [Find or find\_by\_sql: select \* and more](https://www.ruby-forum.com/t/find-or-find-by-sql-select-and-more/129879)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 6\
**Last updated:** [February 27, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/find-or-find-by-sql-select-and-more/129879 "2008-02-27T12:12:42Z")

</div>

Hi, I’m trying to retrieve ALL fields from an Oracle database table, as well as a subset of them, under a different name. The equivalent select statement would be: SELECT \*, NAME\_EN AS NAME, DESC\_EN AS DESCRIPTION FR…

---

## [Struggling with formhelper select tag](https://www.ruby-forum.com/t/struggling-with-formhelper-select-tag/130285)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/struggling-with-formhelper-select-tag/130285 "2008-02-27T12:01:43Z")

</div>

Hi - There are two basic cases where I want to use FormHelper (form\_for) to create select tags: Where the options come from another table Where the options come from a manually created list or hash An example of 1 m…

---

## [Chat with other live webcams (many with sound!)](https://www.ruby-forum.com/t/chat-with-other-live-webcams-many-with-sound/130325)

<div class="topic-metadata">

**Author:** [@Verona\_dsm](https://www.ruby-forum.com/u/Verona_dsm)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 11:32am UTC](https://www.ruby-forum.com/t/chat-with-other-live-webcams-many-with-sound/130325 "2008-02-27T11:32:48Z")

</div>

Chat with other live webcams (many with sound!) while you watch them, they watch you! http://rengotgp.servik.com/view\_CAMvideoi.htm

---

## [Weird "session-bug" when using multiple calls](https://www.ruby-forum.com/t/weird-session-bug-when-using-multiple-calls/130241)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 10:34am UTC](https://www.ruby-forum.com/t/weird-session-bug-when-using-multiple-calls/130241 "2008-02-27T10:34:40Z")

</div>

Hi! Can someone understand why this happens? http://pastebin.com/mde5f1b7 #controller class StartController \< ApplicationController append\_before\_filter :get\_page\_settings def get\_page\_settings() session\[:testlis…

---

## [\[ANN\] Tarantula 0.0.1 released!](https://www.ruby-forum.com/t/ann-tarantula-0-0-1-released/130290)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 9:07am UTC](https://www.ruby-forum.com/t/ann-tarantula-0-0-1-released/130290 "2008-02-27T09:07:55Z")

</div>

The Tarantula is a fuzzy spider. It crawls your rails app, fuzzing inputs and analyzing what comes back. We have pointed Tarantula at about 20 Rails applications, both commercial and open source, and have never failed…

---

## [Missing Helper file helpers/all\_helper.rb?](https://www.ruby-forum.com/t/missing-helper-file-helpers-all-helper-rb/130238)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 7:41am UTC](https://www.ruby-forum.com/t/missing-helper-file-helpers-all-helper-rb/130238 "2008-02-27T07:41:10Z")

</div>

Hi, I have this line in my application.rb controller: helper :all # include all helpers, all the time which in the 1.2.3 Rails Gem environment I’m in, is causing this error: We’re sorry, but something went wrong. W…

---

## [Question regarding collection\_select](https://www.ruby-forum.com/t/question-regarding-collection-select/130301)

<div class="topic-metadata">

**Author:** [@tallp](https://www.ruby-forum.com/u/tallp)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 6:53am UTC](https://www.ruby-forum.com/t/question-regarding-collection-select/130301 "2008-02-27T06:53:04Z")

</div>

Hello: I have two models: Users Categories I have successfully used this helper in the “new” and “edit” views: \<%= collection\_select(:user, :cat\_id, @categories, :id, :name) %\> This gets me a nice drop down list wi…

---

## [Record count](https://www.ruby-forum.com/t/record-count/130299)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 6:17am UTC](https://www.ruby-forum.com/t/record-count/130299 "2008-02-27T06:17:43Z")

</div>

I have in controller @search\_sd\_ticket\_result = ServiceDeskTicket.find\_where(:all ) do |sd| sd.number.downcase =~ “%”+@sd\_ticket\_number.downcase+"%" if !@sd\_ticket\_number==nil sd.service\_desk\_status\_id== @sd\_ticket\_…

---

## [Please, help me install rails without internet](https://www.ruby-forum.com/t/please-help-me-install-rails-without-internet/130287)

<div class="topic-metadata">

**Author:** [@sumo](https://www.ruby-forum.com/u/sumo)\
**Replies:** 2\
**Last updated:** [February 27, 2008, 5:40am UTC](https://www.ruby-forum.com/t/please-help-me-install-rails-without-internet/130287 "2008-02-27T05:40:32Z")

</div>

I read documents, they almost install rails depending on Internet connection. My computer don’t connect internet. Who can tell me how to install rails without internet connection. Thanks

---

## [\[ANN\] No-Cookie session support plugin v1.1](https://www.ruby-forum.com/t/ann-no-cookie-session-support-plugin-v1-1/130295)

<div class="topic-metadata">

**Author:** [@Long](https://www.ruby-forum.com/u/Long)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 5:18am UTC](https://www.ruby-forum.com/t/ann-no-cookie-session-support-plugin-v1-1/130295 "2008-02-27T05:18:45Z")

</div>

Just a quick note to let people know of a new release. The new release improved coding and addressed compatibility issue with Rails 1.2. Also documentation was rewritten and moved to a new home (link below). http://f…

---

## [Re: rubyonrails.org vs rubyonrails.com](https://www.ruby-forum.com/t/re-rubyonrails-org-vs-rubyonrails-com/130294)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 5:14am UTC](https://www.ruby-forum.com/t/re-rubyonrails-org-vs-rubyonrails-com/130294 "2008-02-27T05:14:04Z")

</div>

no sorry ----- Original Message ---- From: Jason R. removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent: Tuesday, February 26, 2008 2:03:31 PM Subject: \[Rails\] Re: rubyonrails.org vs r…

---

## [A weird problem with open-uri](https://www.ruby-forum.com/t/a-weird-problem-with-open-uri/130234)

<div class="topic-metadata">

**Author:** [@stanislav](https://www.ruby-forum.com/u/stanislav)\
**Replies:** 1\
**Last updated:** [February 27, 2008, 4:52am UTC](https://www.ruby-forum.com/t/a-weird-problem-with-open-uri/130234 "2008-02-27T04:52:04Z")

</div>

Hi all, I found a very weird problem/bug with open-uri today. In my application I have this line: html\_file = open(@story.url) It raises this Exception: OpenURI::HTTPError - 404 Not Found This is the url: jwak.net -…

---

## [Customize resource routes](https://www.ruby-forum.com/t/customize-resource-routes/130109)

<div class="topic-metadata">

**Author:** [@tmtmtm](https://www.ruby-forum.com/u/tmtmtm)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 3:59am UTC](https://www.ruby-forum.com/t/customize-resource-routes/130109 "2008-02-27T03:59:03Z")

</div>

Hi all, I have this application that lists videogames, which i am rewriting to follow REST. I need to have this url : /games/xbox360/halo-3 ( map.connect “/ games/:platform\_id/:permalink”,:controller =\> “games”,:ac…

---

## [Download Rails Manual](https://www.ruby-forum.com/t/download-rails-manual/129715)

<div class="topic-metadata">

**Author:** [@SmallPaul](https://www.ruby-forum.com/u/SmallPaul)\
**Replies:** 4\
**Last updated:** [February 27, 2008, 3:43am UTC](https://www.ruby-forum.com/t/download-rails-manual/129715 "2008-02-27T03:43:14Z")

</div>

I would like to download the Rails manual featured at http://railsmanual.org/list/methods/rails/2.0.1 If your advice is in fact to use wget, please provide the exact command I need to issue; however, ideally I would p…

---

## [Creating selection from yml file?](https://www.ruby-forum.com/t/creating-selection-from-yml-file/130282)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 0\
**Last updated:** [February 27, 2008, 2:36am UTC](https://www.ruby-forum.com/t/creating-selection-from-yml-file/130282 "2008-02-27T02:36:55Z")

</div>

Hello RoR developers, I have a template.yml file. template: work\_sheet\_csv: work\_sheet\_csv templatename1: template\_of\_roster templatename2: template\_of\_roster1 templatename3: template\_of\_roster2 templatename4: tem…

---

## [Rails 2.0.2 MySQL 'year' datatype missing from ActiveRecord?](https://www.ruby-forum.com/t/rails-2-0-2-mysql-year-datatype-missing-from-activerecord/130240)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 5\
**Last updated:** [February 27, 2008, 12:57am UTC](https://www.ruby-forum.com/t/rails-2-0-2-mysql-year-datatype-missing-from-activerecord/130240 "2008-02-27T00:57:24Z")

</div>

Hi all, This is my first post to the forum, and I’ll point out right away that I’m a noob to everything, Ruby, Rails, MySQL, etc., so I expect that I’m wrong here, but is the ‘year’ datatype missing from ActiveRecord …

---

## [How to validate presence of children?](https://www.ruby-forum.com/t/how-to-validate-presence-of-children/130243)

<div class="topic-metadata">

**Author:** [@samckayak](https://www.ruby-forum.com/u/samckayak)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/how-to-validate-presence-of-children/130243 "2008-02-26T23:42:45Z")

</div>

What is the best way to require the presence of a has\_one child or set constraints on the number of has\_many children? The only thing I’ve been able to come up with is to manually make my transaction, eg: def create …

---

## [Redirecting to page from the model](https://www.ruby-forum.com/t/redirecting-to-page-from-the-model/130275)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/redirecting-to-page-from-the-model/130275 "2008-02-26T23:35:07Z")

</div>

How should I handle redirecting to pages from the model? Basically I have credit cards that get processed in a model. If successful, I want the user to be redirected to a certain page, of unsuccessful I would like the…

---

## [Undefined local variable or method "acts\_as\_list"?](https://www.ruby-forum.com/t/undefined-local-variable-or-method-acts-as-list/129911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 26, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-acts-as-list/129911 "2008-02-26T23:06:52Z")

</div>

Hi, I’m getting the error below, and I’m not sure where to find “acts\_as\_list” … NameError in SpecialsController#printer undefined local variable or method \`acts\_as\_list’ for #\<Class: 0xb7a46994\> RAILS\_ROOT: /usr/lo…

---

## [Problem with posting with acts as taggable on steroids](https://www.ruby-forum.com/t/problem-with-posting-with-acts-as-taggable-on-steroids/130261)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/problem-with-posting-with-acts-as-taggable-on-steroids/130261 "2008-02-26T23:01:33Z")

</div>

hi all i’m trying to have a post with tags included but i’m getting undefined method \`tag\_with’ i’ve already added acts\_as\_taggable to the model and on the controller the code for creating the post is: def create @…

---

## [Parsing strings](https://www.ruby-forum.com/t/parsing-strings/186766)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/parsing-strings/186766 "2008-02-26T22:46:55Z")

</div>

I’m trying to parse ical strings (not that ical strings are all that special) but I’m trying to break them down for date calculations… so if I have a value like this… @events\[0\].recurrence\_rules =\> \[“FREQ=YEARLY;INTE…

---

## [Has\_many association where the source model can be in several columns](https://www.ruby-forum.com/t/has-many-association-where-the-source-model-can-be-in-several-columns/128169)

<div class="topic-metadata">

**Author:** [@njnjnj](https://www.ruby-forum.com/u/njnjnj)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/has-many-association-where-the-source-model-can-be-in-several-columns/128169 "2008-02-26T21:52:08Z")

</div>

Hello all, I have an application dealing with User and Transaction objects, each transaction going from a source user to a target user. I have defined the following associations in user.rb : has\_many :transactions\_as…

---

## [How to use \_() in a class that isn't a child of application](https://www.ruby-forum.com/t/how-to-use-in-a-class-that-isnt-a-child-of-application/130264)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/how-to-use-in-a-class-that-isnt-a-child-of-application/130264 "2008-02-26T21:47:09Z")

</div>

Hi, Does someone know how to use gettext() or \_() in a class which is not a child class of application controller? Thanks you very much Sayoyo

---

## [Script/runner failure](https://www.ruby-forum.com/t/script-runner-failure/130258)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/script-runner-failure/130258 "2008-02-26T21:10:06Z")

</div>

Rails 1.2.6 on Fedora (development) This works… $ pwd /home/storage/users/craig/svn/th-db/branches/phase5 script/console Loading development environment. ThCalsController.get\_calendars =\> nil (which is a satisfa…

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

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