# Rails

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

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

---

## [ActiveRecord::Base.transaction MySQL Lock Errors](https://www.ruby-forum.com/t/activerecord-base-transaction-mysql-lock-errors/185752)

<div class="topic-metadata">

**Author:** [@pablolemonski](https://www.ruby-forum.com/u/pablolemonski)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/activerecord-base-transaction-mysql-lock-errors/185752 "2010-03-25T16:44:01Z")

</div>

Hi there, is there any known issues when using ActiveRecord::Base.transaction with models who tables have constraints applied? I have two models: one (is associated with model two) two (has MySQL foreign key and uni…

---

## [How to open Pdf or doc file in firefox](https://www.ruby-forum.com/t/how-to-open-pdf-or-doc-file-in-firefox/185744)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 4:43pm UTC](https://www.ruby-forum.com/t/how-to-open-pdf-or-doc-file-in-firefox/185744 "2010-03-25T16:43:15Z")

</div>

Hello champs, Currently i have given a link to my document as like:- ‘/controller/action/holidaylist.xls’ and i have placed this file in my own created directory ‘ABC’ at RAILS\_ROOT only. And in my controller, i have…

---

## [Upload file error in rails(urgent)](https://www.ruby-forum.com/t/upload-file-error-in-rails-urgent/185722)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/upload-file-error-in-rails-urgent/185722 "2010-03-25T16:39:09Z")

</div>

hi when i tried to runone of my file upload application in rails i am getting an error lik this. can any one please help mme? ActionView::TemplateError (upload\_avatar\_user\_url failed to generate from {…

---

## [How to create a search-agent](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 2:15pm UTC](https://www.ruby-forum.com/t/how-to-create-a-search-agent/185701 "2010-03-25T14:15:42Z")

</div>

hi, im currently utilizing searchlogic. now they want me to add a “searchagent”, meaning u can save your criterias and get notified whenever something suitable hits the database. am i correct that all i need to do i…

---

## [Reference to Prototype missing?](https://www.ruby-forum.com/t/reference-to-prototype-missing/185713)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 11:28am UTC](https://www.ruby-forum.com/t/reference-to-prototype-missing/185713 "2010-03-25T11:28:52Z")

</div>

I added the following to a new.html.erb file: \<%= button\_to\_function “ShowList” do |page| page\[:vendor\_droplist\].toggle end %\> I ran the Rails application and got consecutive popups: Caption: RJS error: Body: Re…

---

## [Need to parse a User uploaded file, but don't care if it's saved](https://www.ruby-forum.com/t/need-to-parse-a-user-uploaded-file-but-dont-care-if-its-saved/185590)

<div class="topic-metadata">

**Author:** [@GoodGets](https://www.ruby-forum.com/u/GoodGets)\
**Replies:** 6\
**Last updated:** [March 25, 2010, 9:51am UTC](https://www.ruby-forum.com/t/need-to-parse-a-user-uploaded-file-but-dont-care-if-its-saved/185590 "2010-03-25T09:51:07Z")

</div>

parsing the file’s not the problem, just not sure what to do with it before or after. I was thinking about uploading the files using Paperclip, parsing it, then deleting itfrom the database. But, that all seems a li…

---

## [Call a controller action from a different view](https://www.ruby-forum.com/t/call-a-controller-action-from-a-different-view/185720)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 11\
**Last updated:** [March 25, 2010, 9:49am UTC](https://www.ruby-forum.com/t/call-a-controller-action-from-a-different-view/185720 "2010-03-25T09:49:22Z")

</div>

Hi, I am new in RoR and i am lost in a simple action. In my home page i am trying to call a create action from a different controller. Here is how i do it: \<%= link\_to “Join!”, :controller =\> “participants”,:action …

---

## [\[JOBS\] Individual Contractors on Ruby and Rails in India](https://www.ruby-forum.com/t/jobs-individual-contractors-on-ruby-and-rails-in-india/185731)

<div class="topic-metadata">

**Author:** [@samir](https://www.ruby-forum.com/u/samir)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 9:06am UTC](https://www.ruby-forum.com/t/jobs-individual-contractors-on-ruby-and-rails-in-india/185731 "2010-03-25T09:06:03Z")

</div>

Hello, Anyone know any individual contractors who are experienced in Ruby and Rails who can work on a project ideally in Ahmadabad, Baroda in Gujarat state India? If not, I would like individual resumes from anywhere…

---

## [Migrations for views](https://www.ruby-forum.com/t/migrations-for-views/185724)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 9:06am UTC](https://www.ruby-forum.com/t/migrations-for-views/185724 "2010-03-25T09:06:03Z")

</div>

Hi All, How to add the migrations for the MySQL views? any idea?? any gem available? have any one created migrations for mysql views?? Please let me know asap?? I am totally struck with this… Thanks, Ramu.

---

## [Accessing object attributes](https://www.ruby-forum.com/t/accessing-object-attributes/185693)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 8:52am UTC](https://www.ruby-forum.com/t/accessing-object-attributes/185693 "2010-03-25T08:52:34Z")

</div>

I have an hash of display names and their corresponding object attribute names called @columns. As I iterate through @columns, what is the syntax for accessing the attribute of the object using c? I get an error on th…

---

## [Mechanize](https://www.ruby-forum.com/t/mechanize/185703)

<div class="topic-metadata">

**Author:** [@Nirav\_Parekh](https://www.ruby-forum.com/u/Nirav_Parekh)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 6:23am UTC](https://www.ruby-forum.com/t/mechanize/185703 "2010-03-25T06:23:20Z")

</div>

Hi I am trying to submit an asp form using Mechanize. I have to parse this site in order to get the results http://www.vitranexpress.com/home/CombinedHome.aspx So for this I have to log in the site which I was succe…

---

## [Attack on Twitter](https://www.ruby-forum.com/t/attack-on-twitter/185677)

<div class="topic-metadata">

**Author:** [@pakothawade](https://www.ruby-forum.com/u/pakothawade)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 5:52am UTC](https://www.ruby-forum.com/t/attack-on-twitter/185677 "2010-03-25T05:52:55Z")

</div>

Hello, Does anyone know the reason for the vulnerability in Twitter when a lot of DOS attacks were made? Were they due to the design of the application or the server where they hosted got attacked? Thanks, Pratik

---

## [Googla Analytics and RJS](https://www.ruby-forum.com/t/googla-analytics-and-rjs/185718)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 5:00am UTC](https://www.ruby-forum.com/t/googla-analytics-and-rjs/185718 "2010-03-25T05:00:14Z")

</div>

Hi guys, I’m trying to make google Analytics track an action that updates the view via AJAX. What I did is: page.call ‘pageTracker.\_trackPageview’, ‘/votes/create’ if Rails.env == ‘production’ but for some reason it…

---

## [Store created\_at in Hawaii's time zone UTC-10](https://www.ruby-forum.com/t/store-created-at-in-hawaiis-time-zone-utc-10/185665)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 4:30am UTC](https://www.ruby-forum.com/t/store-created-at-in-hawaiis-time-zone-utc-10/185665 "2010-03-25T04:30:31Z")

</div>

Hi, I have to use Hawaii’s time zone which is UTC-10 for my created\_at. Can anyone tell me how can I solve this problem? Thanks, Tushar

---

## [Rails 3 with Shoulda](https://www.ruby-forum.com/t/rails-3-with-shoulda/185716)

<div class="topic-metadata">

**Author:** [@Lailson\_B](https://www.ruby-forum.com/u/Lailson_B)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 1:43am UTC](https://www.ruby-forum.com/t/rails-3-with-shoulda/185716 "2010-03-25T01:43:34Z")

</div>

Hey there, Is anybody using Shoulda with a Rails 3 app? Just add gem “shoulda” to the Gemfile and bundle it doesn’t work: some warnings show up and an exception is raised. I noticed there’s a rails3 branch at Githu…

---

## [Upcoming app \> Research and Prep](https://www.ruby-forum.com/t/upcoming-app-research-and-prep/185632)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 12\
**Last updated:** [March 25, 2010, 1:18am UTC](https://www.ruby-forum.com/t/upcoming-app-research-and-prep/185632 "2010-03-25T01:18:58Z")

</div>

Hey everyone. I’m a one person team and in the next month need to produce and deploy an application. I’ve been playing with rails for a little over a year now and recently deployed my first app as a private contract. …

---

## [Select\_tag with options\_for\_select not populating DB](https://www.ruby-forum.com/t/select-tag-with-options-for-select-not-populating-db/185712)

<div class="topic-metadata">

**Author:** [@The\_programmer](https://www.ruby-forum.com/u/The_programmer)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/select-tag-with-options-for-select-not-populating-db/185712 "2010-03-24T23:39:29Z")

</div>

I’m trying to get my animal app to let users populate info about each animal. The code below partially works. It shows the drop down menu, and it shows the names of what I wanted it to be the names of the Databases. I…

---

## [Attr\_accessor in AR models?](https://www.ruby-forum.com/t/attr-accessor-in-ar-models/185708)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/attr-accessor-in-ar-models/185708 "2010-03-24T22:37:27Z")

</div>

Am I correct in thinking that one cannot use attr\_accessor in ActiveRecord models? I have success when using either cattr\_accessor or mattr\_accessor but not the native Ruby method. Am I missing something here, or is t…

---

## [Dispatch.cgi, dispatch.fcgi, dispatch.rb not present in Public folder](https://www.ruby-forum.com/t/dispatch-cgi-dispatch-fcgi-dispatch-rb-not-present-in-public-folder/197127)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 5\
**Last updated:** [March 24, 2010, 9:31pm UTC](https://www.ruby-forum.com/t/dispatch-cgi-dispatch-fcgi-dispatch-rb-not-present-in-public-folder/197127 "2010-03-24T21:31:54Z")

</div>

I’m doing a series of ruby on rails tutorials and it got to a part where i need to edit the following files that should be automatically inside the public folder: dispatch.cgi,dispatch.fcgi,dispatch.rb but I have none…

---

## [Trouble starting the server, HELP PLEASE!](https://www.ruby-forum.com/t/trouble-starting-the-server-help-please/185695)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/trouble-starting-the-server-help-please/185695 "2010-03-24T21:19:36Z")

</div>

can anybody tell me what is going wrong from the information taken from the development log below. WHen i start WEBrick and try and view a page on the localhost i get the following error, “We’re sorry, but something w…

---

## [Netbeans on ubuntu](https://www.ruby-forum.com/t/netbeans-on-ubuntu/185618)

<div class="topic-metadata">

**Author:** [@Viorel](https://www.ruby-forum.com/u/Viorel)\
**Replies:** 13\
**Last updated:** [March 24, 2010, 9:17pm UTC](https://www.ruby-forum.com/t/netbeans-on-ubuntu/185618 "2010-03-24T21:17:51Z")

</div>

I just installed Netbeans 6.7 on Ubuntu 9.4 and all seems to be OK, except I get the following error when I try rake tasks: Rails requires RubyGems \>= 1.3.2 (you have 1.3.1). Please gem update --system and try again. T…

---

## [Dispatch.cgi, dispatch.fcgi, dispatch.rb not present in Public folder](https://www.ruby-forum.com/t/dispatch-cgi-dispatch-fcgi-dispatch-rb-not-present-in-public-folder/185706)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/dispatch-cgi-dispatch-fcgi-dispatch-rb-not-present-in-public-folder/185706 "2010-03-24T21:16:40Z")

</div>

I’m doing a series of ruby on rails tutorials and it got to a part where i need to edit the following files that should be automatically inside the public folder: dispatch.cgi,dispatch.fcgi,dispatch.rb but I have none…

---

## [Auto Trim w/ Erubis (Rails 3.0 beta)](https://www.ruby-forum.com/t/auto-trim-w-erubis-rails-3-0-beta/185600)

<div class="topic-metadata">

**Author:** [@cult\_hero](https://www.ruby-forum.com/u/cult_hero)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/auto-trim-w-erubis-rails-3-0-beta/185600 "2010-03-24T20:18:44Z")

</div>

Hey, I’m relatively new to Rails. (I was actually a Merb guy before) and I’m getting my feet wet with the beta. It doesn’t appear that auto trim is enabled with Erubis by default. What’s the “proper” way to enable thi…

---

## [Tuple spaces and rails](https://www.ruby-forum.com/t/tuple-spaces-and-rails/185696)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/tuple-spaces-and-rails/185696 "2010-03-24T18:58:55Z")

</div>

Hey all, in building an application that will require multiple ajax calls occuring concurently to different database tables in order to display data in a form, and then require user input to modify data and then upda…

---

## [NGINX login problem](https://www.ruby-forum.com/t/nginx-login-problem/185689)

<div class="topic-metadata">

**Author:** [@Chuck\_Kyberian](https://www.ruby-forum.com/u/Chuck_Kyberian)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/nginx-login-problem/185689 "2010-03-24T17:51:13Z")

</div>

Hi, I have a problem with login to my application. I use nginx as load-balancer and mongrel cluster as application servers. I have 2 servers and 8 mongrels per server. When I try to login directly on mongrel, everyth…

---

## [Rubyzip not recognized in rails](https://www.ruby-forum.com/t/rubyzip-not-recognized-in-rails/185659)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/rubyzip-not-recognized-in-rails/185659 "2010-03-24T17:46:33Z")

</div>

First of all, Let me list my configurations: FreeBSD 8.0 Ruby 1.9.1p376 Rails 2.3.5 rubyzip 0.9.4 installed in /usr/local/lib/ruby19/gems/1.9/gems/ rubyzip-0.9.4 I have placed the following line inside Rails::Initi…

---

## [Server wont start](https://www.ruby-forum.com/t/server-wont-start/185663)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 2\
**Last updated:** [March 24, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/server-wont-start/185663 "2010-03-24T16:52:54Z")

</div>

In my command line I type script/server and I get the following error below: /usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:826:in report\_activate\_error': RubyGem version error: rack(0.9.1 not ~\> 1.0.1) (Gem::LoadError…

---

## [Unpacked wrong version of gem, can't get back](https://www.ruby-forum.com/t/unpacked-wrong-version-of-gem-cant-get-back/185674)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/unpacked-wrong-version-of-gem-cant-get-back/185674 "2010-03-24T16:20:57Z")

</div>

Hey all I got myself into a bit of a corner. I unpacked hpricot 0.8.2 into my vendor/gems folder then realised that i needed to unpack 0.8.1 instead. No problem, i thought, i’ll just delete that folder out of gems, c…

---

## [Cookie overflow?](https://www.ruby-forum.com/t/cookie-overflow/168898)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 9\
**Last updated:** [March 24, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/cookie-overflow/168898 "2010-03-24T16:17:56Z")

</div>

I altered a controller to use a session variable in place of an instance variable, and this happened Status: 500 Internal Server Error ActionController::Session::CookieStore::CookieOverflow In the docs, it does say: …

---

## [Javascript add text fields](https://www.ruby-forum.com/t/javascript-add-text-fields/185679)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/javascript-add-text-fields/185679 "2010-03-24T16:00:00Z")

</div>

I am trying to add a functionality similar to adding an attachment to an email in Gmail. I have a form to create object1. One field is to add a book reference. When you click the link “add book” a popup opens with th…

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

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