# Rails

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

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

---

## [Rails 2.1 upgrade problem with PostgreSQL 8.1](https://www.ruby-forum.com/t/rails-2-1-upgrade-problem-with-postgresql-8-1/143784)

<div class="topic-metadata">

**Author:** [@Justin\_Wienckowski](https://www.ruby-forum.com/u/Justin_Wienckowski)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/rails-2-1-upgrade-problem-with-postgresql-8-1/143784 "2008-07-22T19:04:12Z")

</div>

Hey folks, I’ve been upgrading an application from rails 1.2.6 and 2.1, and most of it has gone smoothly, with one exception. ActiveRecord is producing the following error on many queries with a PostgreSQL 8.1.5 dat…

---

## [File.open.each() while using a 2 level hash](https://www.ruby-forum.com/t/file-open-each-while-using-a-2-level-hash/143777)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/file-open-each-while-using-a-2-level-hash/143777 "2008-07-22T18:58:19Z")

</div>

I am doing: SourceHash = {} File.open(“file\_to\_open”).each {|line| SourceHash\[var\[3\]\] = {} puts SourceHash\[‘VALUE’\]\[‘cktid’\] } var is just an array of each csv value. The error says undefined method \[\] for nil:Nil…

---

## [How to convert video in .flv format and grab the screenshots](https://www.ruby-forum.com/t/how-to-convert-video-in-flv-format-and-grab-the-screenshots/143752)

<div class="topic-metadata">

**Author:** [@deepali\_k](https://www.ruby-forum.com/u/deepali_k)\
**Replies:** 2\
**Last updated:** [July 22, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/how-to-convert-video-in-flv-format-and-grab-the-screenshots/143752 "2008-07-22T18:50:07Z")

</div>

Please tell me how to grab screen shot and convert the video in flv format

---

## [My Take on Hello World for Ruby on Rails](https://www.ruby-forum.com/t/my-take-on-hello-world-for-ruby-on-rails/143759)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/my-take-on-hello-world-for-ruby-on-rails/143759 "2008-07-22T18:43:53Z")

</div>

Morning folks, Following is my take on ruby on rails and highlighting its strength in this quick tutorial : Do proofread it and give me your thoughts on this…

---

## [Model Inheritance Scope](https://www.ruby-forum.com/t/model-inheritance-scope/143763)

<div class="topic-metadata">

**Author:** [@aawilson](https://www.ruby-forum.com/u/aawilson)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/model-inheritance-scope/143763 "2008-07-22T18:20:34Z")

</div>

I have a method that creates an instance of a form from a class. The class the form is created from is from a hierarchy that exists through single-table inheritance in our database. Since instances of forms are not …

---

## [ActionWebService & soap](https://www.ruby-forum.com/t/actionwebservice-soap/143690)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 2\
**Last updated:** [July 22, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/actionwebservice-soap/143690 "2008-07-22T18:14:31Z")

</div>

Hi everyone, I’m writing a Rails application which accepts file uploads via a form and tracks them in a database - pretty simple stuff. I now want to write a soap api to enable similar functionality from php scripts. …

---

## [ProxyTimeout](https://www.ruby-forum.com/t/proxytimeout/143780)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/proxytimeout/143780 "2008-07-22T18:07:51Z")

</div>

I’m using Apache Proxy (Apache 2.2.3) with mongrel\_cluster and in production, I have a report that is hitting the timeout limit (sometimes, not always). It seems to limit at 2 minutes. According to Apache documentati…

---

## [Update\_all along with conditions, validations and callbacks](https://www.ruby-forum.com/t/update-all-along-with-conditions-validations-and-callbacks/143776)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/update-all-along-with-conditions-validations-and-callbacks/143776 "2008-07-22T17:49:03Z")

</div>

hi, I want to update the database given a where clause. Basically i want a function like ActiveRecord::base.update\_attributes along with a parameter for condition. http://www.railsbrain.com/api/rails-1.2.6/doc/index.…

---

## [Complex Active Record Associations](https://www.ruby-forum.com/t/complex-active-record-associations/143774)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/complex-active-record-associations/143774 "2008-07-22T17:26:45Z")

</div>

Hi, I have a weird situation that I’m hoping to find a better way to solve. I have a situation where I need to only allow users to have certain data based on a division. I think I’m using finder\_sql way too much thou…

---

## [Protect\_from\_forgery and page caching issue](https://www.ruby-forum.com/t/protect-from-forgery-and-page-caching-issue/143771)

<div class="topic-metadata">

**Author:** [@de\_Villamil\_FrSSSSd](https://www.ruby-forum.com/u/de_Villamil_FrSSSSd)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/protect-from-forgery-and-page-caching-issue/143771 "2008-07-22T17:02:07Z")

</div>

Hello, Using Rails 2.0.2, I have an issue with page caching and protect\_from\_forgery : In application.rb, I have this protect\_from\_forgery :secret =\> ‘1c8b953667056f1a3c324d6b369f6158’, :only =\> \[:create, :edit, :up…

---

## [How to upload video and grab image in windows platform](https://www.ruby-forum.com/t/how-to-upload-video-and-grab-image-in-windows-platform/143765)

<div class="topic-metadata">

**Author:** [@deepali\_k](https://www.ruby-forum.com/u/deepali_k)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/how-to-upload-video-and-grab-image-in-windows-platform/143765 "2008-07-22T16:10:29Z")

</div>

Hi, I am working on Video Library project.It is running on windows platform.I have installed r-image and ffmpeg. Right now I am able to upload .mov format video and the image is also generated at runtime.But other ex…

---

## [Select drop down list](https://www.ruby-forum.com/t/select-drop-down-list/143486)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 5\
**Last updated:** [July 22, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/select-drop-down-list/143486 "2008-07-22T15:59:54Z")

</div>

I’m having some trouble with this select tag. I have a simple search form that passes parameters with GET. I have the search by name working fine but want to add a drop down list to search by classification as well. …

---

## [Observer](https://www.ruby-forum.com/t/observer/143653)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 3\
**Last updated:** [July 22, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/observer/143653 "2008-07-22T15:57:00Z")

</div>

Hi, I have to make an observer if a modification is done on 3 differents classes Hotel, Server, ServerUser. class HotelObserver \< ActiveRecord::Observer observe Hotel, Server, ServerUser def after\_create(model) ge…

---

## [Error with Chronic after installing a different plugin](https://www.ruby-forum.com/t/error-with-chronic-after-installing-a-different-plugin/139537)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 4\
**Last updated:** [July 22, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/error-with-chronic-after-installing-a-different-plugin/139537 "2008-07-22T15:32:01Z")

</div>

I’ve had Chronic installed for some time and it’s been working well. Yesterday I loaded ImageMagick and RMagick and ran “gem update --system” (part of RMagick’s installation instructions). I haven’t had time to do an…

---

## [Submitting form\_remote\_tag with text button?](https://www.ruby-forum.com/t/submitting-form-remote-tag-with-text-button/143755)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/submitting-form-remote-tag-with-text-button/143755 "2008-07-22T14:52:24Z")

</div>

I’m trying to submit a form\_remote\_tag using a text link, but tell the form to submit with javascript seems to try and submit the form without using AJAX. The reason I need to use text links is that they need to under…

---

## [RJS opener.reload()](https://www.ruby-forum.com/t/rjs-opener-reload/143738)

<div class="topic-metadata">

**Author:** [@indra](https://www.ruby-forum.com/u/indra)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/rjs-opener-reload/143738 "2008-07-22T14:06:52Z")

</div>

Hello, I have a problem with RJS. I have a popup and by pressing a button within it I want to: close this popup, which functions fine with onClick in the view and reload the opener page of the popup after the called …

---

## [Cannot change :id in form.select(..)](https://www.ruby-forum.com/t/cannot-change-id-in-form-select/143751)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/cannot-change-id-in-form-select/143751 "2008-07-22T14:03:59Z")

</div>

Hi All I have the following code form\_for :MyPrice, :url =\> … form.file\_field :uploaded\_data, :size =\> 17 form.text\_field :price, :class =\> :price\_digits form.text\_field :price, :class =\> :price\_frac This works fine…

---

## [Script/generate namespaced controllers](https://www.ruby-forum.com/t/script-generate-namespaced-controllers/143748)

<div class="topic-metadata">

**Author:** [@crossblaim](https://www.ruby-forum.com/u/crossblaim)\
**Replies:** 4\
**Last updated:** [July 22, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/script-generate-namespaced-controllers/143748 "2008-07-22T13:56:30Z")

</div>

does this happen to anyone else? edge rails. kain-osx:careme kain$ script/generate controller api/documents index show create app/controllers/api create app/helpers/api create app/views/api/documents create tes…

---

## [Rails 2.1 and migrations](https://www.ruby-forum.com/t/rails-2-1-and-migrations/143702)

<div class="topic-metadata">

**Author:** [@tekin](https://www.ruby-forum.com/u/tekin)\
**Replies:** 11\
**Last updated:** [July 22, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-migrations/143702 "2008-07-22T13:55:55Z")

</div>

Hi, I thought I’d post here as the ticket relating to this issue\[1\] was getting a little cluttered with comments. I’m trying to stimulate some debate as to the best way to proceed with regard to how engines handles m…

---

## [Acts a tsearch search multiple models](https://www.ruby-forum.com/t/acts-a-tsearch-search-multiple-models/143749)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/acts-a-tsearch-search-multiple-models/143749 "2008-07-22T13:36:56Z")

</div>

Hi, I have a Job model and a location model. So ajob belongs to a location and a location can have many jobs. Im trying to use acts as tsearch to search for keywords that match everything in the Jobs and Locations …

---

## [Max length for posted data (HTTP POST)?](https://www.ruby-forum.com/t/max-length-for-posted-data-http-post/143640)

<div class="topic-metadata">

**Author:** [@Birgit\_A](https://www.ruby-forum.com/u/Birgit_A)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/max-length-for-posted-data-http-post/143640 "2008-07-22T13:01:54Z")

</div>

Hi all, I’m trying to process some XML that is posted by 3rd party software (FreeSWITCH). We’re running JRuby 1.1 on Rails 2.0.2 The data that is http posted to my RoR application looks like: cdr=, i.e cdr=\<?xml ver…

---

## [AR: Many models on one table](https://www.ruby-forum.com/t/ar-many-models-on-one-table/143741)

<div class="topic-metadata">

**Author:** [@bones](https://www.ruby-forum.com/u/bones)\
**Replies:** 2\
**Last updated:** [July 22, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/ar-many-models-on-one-table/143741 "2008-07-22T12:10:44Z")

</div>

Let’s say I have this table: CREATE TABLE people ( id serial unique, person\_type varchar(32) check type in (‘staff’, ‘customer’), name varchar(256) ); Now, since I store staff and customers in the same table I’d li…

---

## [Form\_for and select ( =\> f.select)](https://www.ruby-forum.com/t/form-for-and-select-f-select/143660)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 9\
**Last updated:** [July 22, 2008, 11:55am UTC](https://www.ruby-forum.com/t/form-for-and-select-f-select/143660 "2008-07-22T11:55:04Z")

</div>

Hi All I’m trying to combine the from\_for and select helpers Right now I have form\_for :service, :url =\> … do |f| select(“abc”, “xyz\_id”, @my\_arr.collect {|item| \[ item, “bla” \] }, {:prompt =\> “opt1”} ) … end Wha…

---

## [How to parse a json in REST](https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716)

<div class="topic-metadata">

**Author:** [@bishal](https://www.ruby-forum.com/u/bishal)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 10:10am UTC](https://www.ruby-forum.com/t/how-to-parse-a-json-in-rest/143716 "2008-07-22T10:10:29Z")

</div>

Hi all ! Can anyone suggest me a simple way of parsing a json returned by a RESTFUL server. I am in a need to make restful calls to my REST server, which returns json and should be able to make method calls to the ser…

---

## [Syntax error, unexpected ')'](https://www.ruby-forum.com/t/syntax-error-unexpected/143639)

<div class="topic-metadata">

**Author:** [@ponravikumar](https://www.ruby-forum.com/u/ponravikumar)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 10:09am UTC](https://www.ruby-forum.com/t/syntax-error-unexpected/143639 "2008-07-22T10:09:54Z")

</div>

Hi, I tried the sample program for AJAX from the following site. I created a table called catalogs and set the values. I tried to load the data while entering the title of the book in the text field, I am getting …

---

## [How to workout with option buttons](https://www.ruby-forum.com/t/how-to-workout-with-option-buttons/143730)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 10:04am UTC](https://www.ruby-forum.com/t/how-to-workout-with-option-buttons/143730 "2008-07-22T10:04:05Z")

</div>

I need a form development with the following requirements… I have the employee form he has a dependent or may not so i took the option buttons yes/no based on that the data to be stored in the database either ‘y’/‘n’. …

---

## [Annotate Your ActiveRecord Models with Comments About Your Table Structure - Rails Plugin of the We](https://www.ruby-forum.com/t/annotate-your-activerecord-models-with-comments-about-your-table-structure-rails-plugin-of-the-we/143729)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 9:57am UTC](https://www.ruby-forum.com/t/annotate-your-activerecord-models-with-comments-about-your-table-structure-rails-plugin-of-the-we/143729 "2008-07-22T09:57:37Z")

</div>

Hello, I have kicked off a new Rails Plugin of the Week series with the annotate-models gem. What’s annotate-models? The annotate-models gem lets you annotate your ActiveRecord models with a comment block listing all…

---

## [RubyOnRails max perfomance](https://www.ruby-forum.com/t/rubyonrails-max-perfomance/143725)

<div class="topic-metadata">

**Author:** [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 9:41am UTC](https://www.ruby-forum.com/t/rubyonrails-max-perfomance/143725 "2008-07-22T09:41:14Z")

</div>

Hello! I use rubyonrails with apache2. I have configured apache with FastCGI. When I test my project with fastcgi it’s normal, that perfomance (speed) is very hight. But when I change some ruby-libs (rb-files), I mus…

---

## [Shallow over http or ftp not supported](https://www.ruby-forum.com/t/shallow-over-http-or-ftp-not-supported/140348)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 5:03am UTC](https://www.ruby-forum.com/t/shallow-over-http-or-ftp-not-supported/140348 "2008-07-22T05:03:17Z")

</div>

I am trying to install a custom plugin in my Rails app: script/plugin install http://git.eyequeue.net/plugins/mt\_capistrano.git Instead of installing the plugin, I get the following error: shallow over http or ftp n…

---

## [HOWTO:DB data format stays in seconds yet user interface can use hh:mm:ss selector](https://www.ruby-forum.com/t/howto-db-data-format-stays-in-seconds-yet-user-interface-can-use-hhss-selector/143715)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 3:58am UTC](https://www.ruby-forum.com/t/howto-db-data-format-stays-in-seconds-yet-user-interface-can-use-hhss-selector/143715 "2008-07-22T03:58:59Z")

</div>

Hello all, my ‘time’ column in the DB is in integer representing the length of videos in seconds. if I want to let the user pick a point in the movie and play it from there, I think it works better for the general pu…

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

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