# Rails

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

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

---

## [Views Testing](https://www.ruby-forum.com/t/views-testing/181877)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 6\
**Last updated:** [January 20, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/views-testing/181877 "2010-01-20T15:32:50Z")

</div>

Hello Champs, Can anyone tell me that from where should i start for testing views of my application ? Want to know every possible way. Thanks in advance :slight\_smile:

---

## [:id vs. a\_id:](https://www.ruby-forum.com/t/id-vs-a-id/181945)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/id-vs-a-id/181945 "2010-01-20T15:30:35Z")

</div>

I have a controller a\_bs\_controller that usually has to find A by a\_id:. So, among others, it has these methods: def update this\_a . . . end . . . def this\_a @a = A.find(params\[:a\_id\]) end My difficulty a…

---

## [Cached instance variables in ApplicationController in Rails 2.3.5?](https://www.ruby-forum.com/t/cached-instance-variables-in-applicationcontroller-in-rails-2-3-5/181944)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 3:24pm UTC](https://www.ruby-forum.com/t/cached-instance-variables-in-applicationcontroller-in-rails-2-3-5/181944 "2010-01-20T15:24:09Z")

</div>

Hi there, I’ve noticed a strange problem in my app that seems to only occur under passenger when passenger is restarted for a few minutes: As most people do, I have cached regularly called methods in ApplicationContro…

---

## [Data stream](https://www.ruby-forum.com/t/data-stream/181943)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/data-stream/181943 "2010-01-20T15:19:11Z")

</div>

Hi everyone How can I pput and stream of data in ruby Thanks!!!

---

## [Which d should I choose?](https://www.ruby-forum.com/t/which-d-should-i-choose/181913)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 6\
**Last updated:** [January 20, 2010, 12:32pm UTC](https://www.ruby-forum.com/t/which-d-should-i-choose/181913 "2010-01-20T12:32:05Z")

</div>

Hi I am planning to start a new rails project. I would like to know from two options mysql and postgresql which i should use? Can anyone please compare them? Thanks Tom

---

## [CRITICAL: Rails 3 error : parser.bundle unhandled exception!](https://www.ruby-forum.com/t/critical-rails-3-error-parser-bundle-unhandled-exception/181935)

<div class="topic-metadata">

**Author:** [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/critical-rails-3-error-parser-bundle-unhandled-exception/181935 "2010-01-20T12:28:34Z")

</div>

kristian-mandrups-macbook-pro:rails3\_apps kristianconsult$ rails my\_r3 create create README create .gitignore create Rakefile create config.ru create Gemfile create app … kristian-mandrups-macbook-pro:my\_r…

---

## [Lightbox :/](https://www.ruby-forum.com/t/lightbox/181929)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/lightbox/181929 "2010-01-20T12:14:36Z")

</div>

I’m using a Lightbox on a local site. I’ve built a Gallery that allows a user to upload images in a secure admin area. I have the Lightbox working a treat but I do have one small issue - I’ve grouped the images so the…

---

## [Will\_paginate not working with the ajax](https://www.ruby-forum.com/t/will-paginate-not-working-with-the-ajax/181933)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 11:52am UTC](https://www.ruby-forum.com/t/will-paginate-not-working-with-the-ajax/181933 "2010-01-20T11:52:43Z")

</div>

Hi, I am using “will\_paginate” for pagination purpose. I have a partial with name “my\_friends”, I have a pagination of 25 per page. I have added “\<%= will\_paginate @user\_friend} %\>” in my partial. It is working fine…

---

## [Problems with flash upload, strange failsafe error](https://www.ruby-forum.com/t/problems-with-flash-upload-strange-failsafe-error/181932)

<div class="topic-metadata">

**Author:** [@dxg](https://www.ruby-forum.com/u/dxg)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 11:17am UTC](https://www.ruby-forum.com/t/problems-with-flash-upload-strange-failsafe-error/181932 "2010-01-20T11:17:44Z")

</div>

I have an upload page for uploading multiple mp3 files using uploadify. For me it works perfectly, however one of my users reports intermittent problems, and indeed, errors appear in the logs. My set up: Rails 2.3.5…

---

## [Net::http breaks post request, Curb (curl) does not](https://www.ruby-forum.com/t/net-http-breaks-post-request-curb-curl-does-not/181927)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 10:50am UTC](https://www.ruby-forum.com/t/net-http-breaks-post-request-curb-curl-does-not/181927 "2010-01-20T10:50:46Z")

</div>

Hi, I’m having a problem with a simple post request. The issue is that the receiving side fails to process the message because apparently the body of the post message is not sent in a single packet together with the …

---

## [Empty rails log folder](https://www.ruby-forum.com/t/empty-rails-log-folder/181915)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 10:37am UTC](https://www.ruby-forum.com/t/empty-rails-log-folder/181915 "2010-01-20T10:37:21Z")

</div>

The rails log folder is in my .gitignore file. That means the log folder is not in the repository. When I deploy my rails app to the staging server via git pull, the app refuses to work because it does not see a log…

---

## [Mechanize and Hpricot](https://www.ruby-forum.com/t/mechanize-and-hpricot/181916)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 9:18am UTC](https://www.ruby-forum.com/t/mechanize-and-hpricot/181916 "2010-01-20T09:18:54Z")

</div>

Hai friends Im interested to know the mechanize and hpricot gem and their uses please any one help me to know the gem

---

## [Need help with nested forms and habtm](https://www.ruby-forum.com/t/need-help-with-nested-forms-and-habtm/181921)

<div class="topic-metadata">

**Author:** [@nilskassube](https://www.ruby-forum.com/u/nilskassube)\
**Replies:** 0\
**Last updated:** [January 20, 2010, 9:15am UTC](https://www.ruby-forum.com/t/need-help-with-nested-forms-and-habtm/181921 "2010-01-20T09:15:49Z")

</div>

Hi, I’m currently stuck with a problem I just can’t find a clever solution for. I checked every tutorial, issuetracker, API reference I could find but found nothing to “enlighten” me --\> I desperately need your help …

---

## [Formtastic and Access to Variables of Nested Model](https://www.ruby-forum.com/t/formtastic-and-access-to-variables-of-nested-model/181692)

<div class="topic-metadata">

**Author:** [@anmueller](https://www.ruby-forum.com/u/anmueller)\
**Replies:** 3\
**Last updated:** [January 20, 2010, 8:35am UTC](https://www.ruby-forum.com/t/formtastic-and-access-to-variables-of-nested-model/181692 "2010-01-20T08:35:13Z")

</div>

So I’m not even sure if I’ll be able to properly explain what I’m trying to do, but I’ll do my best. Let’s say that I have two models: Document and Option. A Document has many Options (and, by extension, an Option bel…

---

## [Ruby 1.9.1 Rails 2.3.5 and Cucumber](https://www.ruby-forum.com/t/ruby-1-9-1-rails-2-3-5-and-cucumber/181905)

<div class="topic-metadata">

**Author:** [@rorra](https://www.ruby-forum.com/u/rorra)\
**Replies:** 1\
**Last updated:** [January 20, 2010, 1:41am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-rails-2-3-5-and-cucumber/181905 "2010-01-20T01:41:51Z")

</div>

Hey there, Im running on Ubuntu 9.1. I’ve installed rspec gems, cucumber gems. When trying to run the features, I’m getting an error , it seems to be the TestUnit, which is not installed. $rake cucumber features -n …

---

## [Which verb?: Take a bus or take the train](https://www.ruby-forum.com/t/which-verb-take-a-bus-or-take-the-train/181882)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 4\
**Last updated:** [January 19, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/which-verb-take-a-bus-or-take-the-train/181882 "2010-01-19T22:26:57Z")

</div>

Assume that at some point in the user’s processing we come to a page in which the user is to select from one of several choices that will then determine which processing will happen on the next page … perhaps putting …

---

## [Passing parameter thru fields\_for text\_field](https://www.ruby-forum.com/t/passing-parameter-thru-fields-for-text-field/181900)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 10:24pm UTC](https://www.ruby-forum.com/t/passing-parameter-thru-fields-for-text-field/181900 "2010-01-19T22:24:35Z")

</div>

Hello all, I have a helper function called “add\_link” which will insert html to a partial. ProjectsHelper - def add\_link(name, irb=nil) link\_to\_function name do |page| page.insert\_html :top, :irbs, :partial =\> ‘p…

---

## [PGError: ERROR: operator does not exist: character = integer](https://www.ruby-forum.com/t/pgerror-error-operator-does-not-exist-character-integer/181895)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/pgerror-error-operator-does-not-exist-character-integer/181895 "2010-01-19T21:36:37Z")

</div>

Hi, I’m using PostgreSql database with the rails application,In a functionality I’m trying to compare two attributes in a condition, one is of type varchar and other the Integer. While doing so i’m getting the error…

---

## [Rega: deployment](https://www.ruby-forum.com/t/rega-deployment/177272)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/rega-deployment/177272 "2010-01-19T21:23:31Z")

</div>

Hi, I am very new to deploy process… i have an ror application and i am using netbeansIDE6.5. i dont know how to deploy and move the application to production mode . Please explain me how to deploy in step by step

---

## [Error log while appache is starting](https://www.ruby-forum.com/t/error-log-while-appache-is-starting/180043)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/error-log-while-appache-is-starting/180043 "2010-01-19T21:22:06Z")

</div>

Hi, When i start the appache on centOS 5, i am getting the error log(/var/log/httpd/error\_log) as below, \[error\] \*\*\* Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.68…

---

## [The old "index.html" Ruby Rails is coming out of nowhere?](https://www.ruby-forum.com/t/the-old-index-html-ruby-rails-is-coming-out-of-nowhere/181893)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/the-old-index-html-ruby-rails-is-coming-out-of-nowhere/181893 "2010-01-19T20:59:44Z")

</div>

Happy New Year, I haven’t written to this forum in a long time because I thought the painful learning process was behind me. Evidently not, for when I start a new Rails 2.3.5 application and rename the old \\public\\in…

---

## [Passing parameter to open dialog using link\_to\_function](https://www.ruby-forum.com/t/passing-parameter-to-open-dialog-using-link-to-function/177226)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/passing-parameter-to-open-dialog-using-link-to-function/177226 "2010-01-19T20:55:43Z")

</div>

Hello all, I’m having one fun time trying to past a parameter to a javascript function using link\_to\_function. This is what I have… A simple project, controller, views, model. Prototype Window dialog box installed. …

---

## [Gem bundler not creating the environemnt.rb](https://www.ruby-forum.com/t/gem-bundler-not-creating-the-environemnt-rb/181785)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [January 19, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/gem-bundler-not-creating-the-environemnt-rb/181785 "2010-01-19T20:35:44Z")

</div>

Hello list! I’m trying to get gem bundler up and running for a Rails app, but without any success. I’ve followed the guide from Yakuda, but gem bundler is not creating the structure of dir and files I’m expecting. F…

---

## [Print an asterisk along with required fields](https://www.ruby-forum.com/t/print-an-asterisk-along-with-required-fields/181891)

<div class="topic-metadata">

**Author:** [@Bruno\_Grasselli](https://www.ruby-forum.com/u/Bruno_Grasselli)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/print-an-asterisk-along-with-required-fields/181891 "2010-01-19T20:07:03Z")

</div>

Hi guys, For some forms, I have to print an asterisk along with each required field. Like most of the sites does. But, if I have this information in my model (validates\_presence\_of), is there a way to identify wheth…

---

## [Error with WEBrick server](https://www.ruby-forum.com/t/error-with-webrick-server/181884)

<div class="topic-metadata">

**Author:** [@Jihad\_K](https://www.ruby-forum.com/u/Jihad_K)\
**Replies:** 2\
**Last updated:** [January 19, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/error-with-webrick-server/181884 "2010-01-19T19:55:21Z")

</div>

hii i decided to move from windows to linux (ubuntu 9.10) so i installed ruby 1.8 rails 2.3.5 and sqlite 3 but when i lunch my WEBrick server it give me this error : =\>Booting WEBrick =\> Rails 2.3.5 application start…

---

## [Plugin for external ACL Authorization of PHP applications](https://www.ruby-forum.com/t/plugin-for-external-acl-authorization-of-php-applications/181889)

<div class="topic-metadata">

**Author:** [@Eddy\_J](https://www.ruby-forum.com/u/Eddy_J)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/plugin-for-external-acl-authorization-of-php-applications/181889 "2010-01-19T19:32:31Z")

</div>

I’ve been commited to improve an older php application with a lot of messy code. The client wants an ACL authorization scheme. First I tried to implement PHP GACL library as the solution, but the app’s code is so bugg…

---

## [Belongs\_to (polymorphic) or has\_many (through)](https://www.ruby-forum.com/t/belongs-to-polymorphic-or-has-many-through/197019)

<div class="topic-metadata">

**Author:** [@nilskassube](https://www.ruby-forum.com/u/nilskassube)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/belongs-to-polymorphic-or-has-many-through/197019 "2010-01-19T19:22:34Z")

</div>

Hi, I’d be sooo happy I any of you could help me out with a problem I’m currently stuck with :slight\_smile: Basic info I’m on Rails 2.3.5 and love using the formtastic formbuilder :slight\_smile: What I’m working on I…

---

## [How do I find all gem dependencies?](https://www.ruby-forum.com/t/how-do-i-find-all-gem-dependencies/181887)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/how-do-i-find-all-gem-dependencies/181887 "2010-01-19T19:01:29Z")

</div>

I am looking to deploy my rails app into an environment that I don’t control. I don’t want some (future) change in gems to break the app. So I am using rake rails:freeze:gems to freeze the rails version and rake ge…

---

## [Tutorial - Creating a Global REST Controller](https://www.ruby-forum.com/t/tutorial-creating-a-global-rest-controller/181840)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 13\
**Last updated:** [January 19, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/tutorial-creating-a-global-rest-controller/181840 "2010-01-19T18:49:23Z")

</div>

========================================= Creating a Global REST Controller Let’s imagine that you have an application that houses close to 400 controllers. Each of these controllers accesses a specific model that c…

---

## [Auto numbering of childs for a parent](https://www.ruby-forum.com/t/auto-numbering-of-childs-for-a-parent/181853)

<div class="topic-metadata">

**Author:** [@samiron](https://www.ruby-forum.com/u/samiron)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 6:46pm UTC](https://www.ruby-forum.com/t/auto-numbering-of-childs-for-a-parent/181853 "2010-01-19T18:46:16Z")

</div>

I have a Author model and Book model field\_names =\> \[id, name\] class Author \< AR::Base has\_many :books end field\_names =\> \[id, name\] class Book \< AR::Base belong\_to :author, attr\_accessor :serial\_number end Now…

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

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