# Rails

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

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

---

## [Where do you find load errors in view helper?](https://www.ruby-forum.com/t/where-do-you-find-load-errors-in-view-helper/192729)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 1\
**Last updated:** [August 4, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/where-do-you-find-load-errors-in-view-helper/192729 "2010-08-04T17:26:37Z")

</div>

This is rails3 I wrote a fairly complex view helper for one of my model and there is apparently a syntax error since the model did not load. I can’t find anywhere where the error would be logged. In the console I pa…

---

## [How to deal with gender](https://www.ruby-forum.com/t/how-to-deal-with-gender/192409)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 35\
**Last updated:** [August 4, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-deal-with-gender/192409 "2010-08-04T17:21:11Z")

</div>

Appreciate this is a path well travelled probably. What’s the best way of to deal with gender. i.e. a Person is either Male or Female (generally and fot my purposes I’ll stick with that rule). So is it best to go Per…

---

## [Output haml document tree & subfolders to another directory as html files](https://www.ruby-forum.com/t/output-haml-document-tree-subfolders-to-another-directory-as-html-files/192730)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 1\
**Last updated:** [August 4, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/output-haml-document-tree-subfolders-to-another-directory-as-html-files/192730 "2010-08-04T16:54:38Z")

</div>

I building themes with haml for a CMS based on php and zend framework. Although I could implement haml directly into it, I rather use ruby and therefore try to find a solution for this: Go true a complete document tr…

---

## [PDFKit Fork() Function Unimplemented Error - HELP!](https://www.ruby-forum.com/t/pdfkit-fork-function-unimplemented-error-help/192661)

<div class="topic-metadata">

**Author:** [@dmarkow](https://www.ruby-forum.com/u/dmarkow)\
**Replies:** 2\
**Last updated:** [August 4, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/pdfkit-fork-function-unimplemented-error-help/192661 "2010-08-04T16:54:25Z")

</div>

Hello All, We’re working on a project on a Windows machine that will use PDFKit to convert an HTML page to a PDF. I have followed all the instructions at GitHub (GitHub - jdpace/PDFKit: PDFKit has moved to https://gi…

---

## [Drop down menu](https://www.ruby-forum.com/t/drop-down-menu/192700)

<div class="topic-metadata">

**Author:** [@disruptive](https://www.ruby-forum.com/u/disruptive)\
**Replies:** 10\
**Last updated:** [August 4, 2010, 4:50pm UTC](https://www.ruby-forum.com/t/drop-down-menu/192700 "2010-08-04T16:50:54Z")

</div>

I have a series of countries listed in a table in the following form: id, country\_name I want to pull these in and I’m trying everything under the sun from a variety of different peoples pages. I just cannot get anyth…

---

## [Mate -w](https://www.ruby-forum.com/t/mate-w/192687)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 5\
**Last updated:** [August 4, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/mate-w/192687 "2010-08-04T16:09:29Z")

</div>

I used this command to specify the text editor: $ git config --global core.editor “mate -w” How can I remove this configuration as I’m getting this error: error: cannot run mate -w: No such file or directory Or, how …

---

## [T() and 4 variables](https://www.ruby-forum.com/t/t-and-4-variables/192709)

<div class="topic-metadata">

**Author:** [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Replies:** 8\
**Last updated:** [August 4, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/t-and-4-variables/192709 "2010-08-04T14:56:08Z")

</div>

Hi everyone, I am facing a weird issue with the translation helper. When i try to display a localized string with 4 variables, here what i get : my\_string: “We successfully add {{count}} credits available from {{sta…

---

## [Need syntax help for the conditions argument in the find (ie Active Record) method](https://www.ruby-forum.com/t/need-syntax-help-for-the-conditions-argument-in-the-find-ie-active-record-method/192721)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 2\
**Last updated:** [August 4, 2010, 2:46pm UTC](https://www.ruby-forum.com/t/need-syntax-help-for-the-conditions-argument-in-the-find-ie-active-record-method/192721 "2010-08-04T14:46:11Z")

</div>

hi guys in relation to the “find” method in Active Record, can anyone tell me how to write the syntax for the following? entries created within the past 2 hours, AND entries that do not have a status of “Sold” at th…

---

## [Passenger Vs Mongrel](https://www.ruby-forum.com/t/passenger-vs-mongrel/192722)

<div class="topic-metadata">

**Author:** [@hari\_bhat](https://www.ruby-forum.com/u/hari_bhat)\
**Replies:** 1\
**Last updated:** [August 4, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/passenger-vs-mongrel/192722 "2010-08-04T14:32:43Z")

</div>

Hi Guys, I am running app using passenger but still booting with mongrel in console if i write ruby script/server =\> Booting Mongrel =\> Rails 2.3.5 application starting on http://0.0.0.0:3…

---

## [YAUANA: Yet Anather, Unknown Action - No Action respong to](https://www.ruby-forum.com/t/yauana-yet-anather-unknown-action-no-action-respong-to/192708)

<div class="topic-metadata">

**Author:** [@laj](https://www.ruby-forum.com/u/laj)\
**Replies:** 1\
**Last updated:** [August 4, 2010, 1:45pm UTC](https://www.ruby-forum.com/t/yauana-yet-anather-unknown-action-no-action-respong-to/192708 "2010-08-04T13:45:14Z")

</div>

Hi all, I’m facing with a strange situation because I’ve 2 different results on different machines with the same code. My route.rb is quite simple: ActionController::Routing::Routes.draw do |map| map.connect ‘:contr…

---

## [Config.gem 'hpricot' still wants require 'hpricot'](https://www.ruby-forum.com/t/config-gem-hpricot-still-wants-require-hpricot/192716)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [August 4, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/config-gem-hpricot-still-wants-require-hpricot/192716 "2010-08-04T13:25:52Z")

</div>

Why do I need to add require ‘hpricot’ if I already have defined config.gem ‘hpricot’ in environment.rb? The strange thing is that when I use script/console I can use Hpricot directly Oo

---

## [Handling an html5 drag n' drop upload](https://www.ruby-forum.com/t/handling-an-html5-drag-n-drop-upload/189734)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [August 4, 2010, 11:40am UTC](https://www.ruby-forum.com/t/handling-an-html5-drag-n-drop-upload/189734 "2010-08-04T11:40:53Z")

</div>

Hi, I’ve started implementing an html5 drag n’ drop upload feature. It’s to the point where the file is being uploaded and on the server-side I can fetch the filename with request.env\[‘HTTP\_X\_FILE\_NAME’\], but how to s…

---

## [SystemExit: exit](https://www.ruby-forum.com/t/systemexit-exit/192629)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 2\
**Last updated:** [August 4, 2010, 10:46am UTC](https://www.ruby-forum.com/t/systemexit-exit/192629 "2010-08-04T10:46:20Z")

</div>

ActionView::TemplateError (SystemExit: exit: SELECT \* FROM product\_stocklevels WHERE (product\_stocklevels.product\_id = 831 AND (size = ‘W44 L 32’ AND stock \> 0)) LIMIT 1) Before I paste more code, has anyone come acr…

---

## [Require gems messing up rails install?](https://www.ruby-forum.com/t/require-gems-messing-up-rails-install/192567)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 2\
**Last updated:** [August 4, 2010, 4:17am UTC](https://www.ruby-forum.com/t/require-gems-messing-up-rails-install/192567 "2010-08-04T04:17:24Z")

</div>

I have a strange issue. My rails environment is fully functional with enterprise ruby, rails 2.3.5, running on passenger in production. In my .irbrc I am trying to include wirble gem for auto completion and coloring s…

---

## [Error with Gem Outdated command](https://www.ruby-forum.com/t/error-with-gem-outdated-command/189355)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 3\
**Last updated:** [August 4, 2010, 2:25am UTC](https://www.ruby-forum.com/t/error-with-gem-outdated-command/189355 "2010-08-04T02:25:20Z")

</div>

Trying to run ‘gem outdated’ on OS X (10.6.3) and I’m getting: sudo gem outdated ERROR: While executing gem … (NoMethodError) undefined method \`first’ for nil:NilClass Here’s my info: john$ gem env RubyGems Envir…

---

## [Parent controller\_name (nested)](https://www.ruby-forum.com/t/parent-controller-name-nested/192684)

<div class="topic-metadata">

**Author:** [@Rodrigo\_MendonSSSSa](https://www.ruby-forum.com/u/Rodrigo_MendonSSSSa)\
**Replies:** 0\
**Last updated:** [August 4, 2010, 1:11am UTC](https://www.ruby-forum.com/t/parent-controller-name-nested/192684 "2010-08-04T01:11:52Z")

</div>

Hi people, i have this route in rails http://localhost:3002/gdm/9/cd/posts/10/comments we can see we have a namespace with prefix in gdm/9/cd/ also we have two controllers i will create a helper, and need get ther …

---

## [Re: Re: Strange error message when rendering the scaffold form](https://www.ruby-forum.com/t/re-re-strange-error-message-when-rendering-the-scaffold-form/192685)

<div class="topic-metadata">

**Author:** [@Cesar\_Sanz](https://www.ruby-forum.com/u/Cesar_Sanz)\
**Replies:** 0\
**Last updated:** [August 4, 2010, 1:04am UTC](https://www.ruby-forum.com/t/re-re-strange-error-message-when-rendering-the-scaffold-form/192685 "2010-08-04T01:04:15Z")

</div>

Stop your server and run it again -original message- Subject: \[Rails\] Re: Strange error message when rendering the scaffold form From: Jeff removed\_email\_address@domain.invalid Date: 08/03/2010 14:10 On Aug 3, 2:14…

---

## [Rails 3 download - where?](https://www.ruby-forum.com/t/rails-3-download-where/192678)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 4\
**Last updated:** [August 4, 2010, 12:16am UTC](https://www.ruby-forum.com/t/rails-3-download-where/192678 "2010-08-04T00:16:46Z")

</div>

I’m trying to update my rails from 2.3.8 to 3.0, where can I get the kit from ? Thanks, Dani

---

## [Restfull routes, link\_to, and additional paramters](https://www.ruby-forum.com/t/restfull-routes-link-to-and-additional-paramters/192666)

<div class="topic-metadata">

**Author:** [@flamingsole](https://www.ruby-forum.com/u/flamingsole)\
**Replies:** 1\
**Last updated:** [August 3, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/restfull-routes-link-to-and-additional-paramters/192666 "2010-08-03T23:26:30Z")

</div>

I am trying to do a link\_to with multiple to create an object. Everything works until ad the second parameter in. As soon as I add the second parameter, it forgets to add any information about the first one. link\_to “…

---

## [Rails 2.3.8 and html\_safe](https://www.ruby-forum.com/t/rails-2-3-8-and-html-safe/192657)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 7\
**Last updated:** [August 3, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/rails-2-3-8-and-html-safe/192657 "2010-08-03T22:26:34Z")

</div>

Hi, Can somebody update me on the state of html\_safe strings in rails 2.3.8? I know rails 2.3.6 and 2.3.7 broke a lot of code because strings were being escaped when they shouldn’t have been and I thought this was all …

---

## [Strange error message when rendering the scaffold form](https://www.ruby-forum.com/t/strange-error-message-when-rendering-the-scaffold-form/192674)

<div class="topic-metadata">

**Author:** [@rodrigo3n](https://www.ruby-forum.com/u/rodrigo3n)\
**Replies:** 1\
**Last updated:** [August 3, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/strange-error-message-when-rendering-the-scaffold-form/192674 "2010-08-03T22:10:58Z")

</div>

Hello everyone, I am developing my application and I created a scaffold called listas, but when I acess /listas/new I get this error message: NoMethodError in Listas#new Showing /home/rodrigo3n/code/listeiroo/app/vie…

---

## [\[ANN\] NullDB 0.0.1](https://www.ruby-forum.com/t/ann-nulldb-0-0-1/129394)

<div class="topic-metadata">

**Author:** [@avdi](https://www.ruby-forum.com/u/avdi)\
**Replies:** 12\
**Last updated:** [August 3, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/ann-nulldb-0-0-1/129394 "2010-08-03T21:50:59Z")

</div>

== What NullDB is a Rails database connection adapter that interprets common database operations as no-ops. It is the Null Object pattern as applied to database adapters. == How Once installed, NullDB can be used m…

---

## [InvalidToken for a Flash upload](https://www.ruby-forum.com/t/invalidtoken-for-a-flash-upload/192542)

<div class="topic-metadata">

**Author:** [@lilyweb](https://www.ruby-forum.com/u/lilyweb)\
**Replies:** 1\
**Last updated:** [August 3, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/invalidtoken-for-a-flash-upload/192542 "2010-08-03T21:47:03Z")

</div>

Hi, I am developping a small Flash app to upload multiple files with a progress bar in a Rails site. Rails handles the server side. I have a controller that displays the view containing the flash, and it also provide…

---

## [Rendering multiline Javascript by using JSONP in rails](https://www.ruby-forum.com/t/rendering-multiline-javascript-by-using-jsonp-in-rails/192662)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 3\
**Last updated:** [August 3, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/rendering-multiline-javascript-by-using-jsonp-in-rails/192662 "2010-08-03T21:29:29Z")

</div>

Hello everybody, In a controller I try to render a javascript google ad to print it into some HTML using JSONP, like this So I do: render :text “var s\_response = { content: '\<script type="text/ javascript"\>\<\\/scri…

---

## [Segmentation fault from mysql\_adapter.rb](https://www.ruby-forum.com/t/segmentation-fault-from-mysql-adapter-rb/163321)

<div class="topic-metadata">

**Author:** [@divyamohan](https://www.ruby-forum.com/u/divyamohan)\
**Replies:** 15\
**Last updated:** [August 3, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/segmentation-fault-from-mysql-adapter-rb/163321 "2010-08-03T21:09:13Z")

</div>

Hello, I’m a rails newbie. I wrote a simple application to navigate between 2 pages. This is my controller file class SayController \< ApplicationController def hello end def gudbye end end I have 2 rhtml files i…

---

## [Prevent Helper Automatically Escaping String](https://www.ruby-forum.com/t/prevent-helper-automatically-escaping-string/192665)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 8\
**Last updated:** [August 3, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/prevent-helper-automatically-escaping-string/192665 "2010-08-03T21:03:53Z")

</div>

I’m writing a helper to generate the display of a product and its information as retrieved from the database. Several HTML tags are part of this. As I’m building the string I want included in the HTML, Rails is autom…

---

## [The Future OF RUBY and RUBY ON RAILS](https://www.ruby-forum.com/t/the-future-of-ruby-and-ruby-on-rails/192561)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 5\
**Last updated:** [August 3, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/the-future-of-ruby-and-ruby-on-rails/192561 "2010-08-03T20:47:12Z")

</div>

DO you guys see Ruby and Ruby on Rails sticking around for a while? and do you see an increase in demand for ruby/ruby on rails developers? Regards

---

## [How to CSS](https://www.ruby-forum.com/t/how-to-css/192649)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [August 3, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/how-to-css/192649 "2010-08-03T19:02:29Z")

</div>

Hi, It’s not specifically related to Rails, but how do you arrange your CSS files? I used to dump everything in a gigantic screen.css file. Then I noticed that some rules only appeared in a few pages. Therefore I am…

---

## [Complex associations](https://www.ruby-forum.com/t/complex-associations/192618)

<div class="topic-metadata">

**Author:** [@Trish](https://www.ruby-forum.com/u/Trish)\
**Replies:** 7\
**Last updated:** [August 3, 2010, 6:13pm UTC](https://www.ruby-forum.com/t/complex-associations/192618 "2010-08-03T18:13:07Z")

</div>

I am working on a project that has some complex table associations, and I am having a hard time declaring this association in a Model, and fear it can’t be done. Here is an example of my issue… class StoreType \< Acti…

---

## [ActiveRecord - find MySQL connection/thread ID for query](https://www.ruby-forum.com/t/activerecord-find-mysql-connection-thread-id-for-query/192638)

<div class="topic-metadata">

**Author:** [@MichaSSSSl](https://www.ruby-forum.com/u/MichaSSSSl)\
**Replies:** 4\
**Last updated:** [August 3, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/activerecord-find-mysql-connection-thread-id-for-query/192638 "2010-08-03T17:35:03Z")

</div>

Hi, Is it possible, when using a find method with a Model, to record the MySQL thread ID for the subsequent database query? Does ActiveRecord expose this? Many thanks, Michaël

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

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