# Rails

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

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

---

## [How do I use fastercsv to just read the header row and not the whole file?](https://www.ruby-forum.com/t/how-do-i-use-fastercsv-to-just-read-the-header-row-and-not-the-whole-file/173254)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/how-do-i-use-fastercsv-to-just-read-the-header-row-and-not-the-whole-file/173254 "2009-08-05T19:05:57Z")

</div>

How do I use fastercsv to just read the header row and not the whole file? I need to read the header row first and not the whole csv file initially in the web application so I can map the input csv columns to the db …

---

## [ActiveRecord boolean false returning Nil](https://www.ruby-forum.com/t/activerecord-boolean-false-returning-nil/173255)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/activerecord-boolean-false-returning-nil/173255 "2009-08-05T18:41:22Z")

</div>

Hi All, I have a column type of boolean, and when the value in that column is set to ‘false’ (eg. 0 for MySQL), it returns nil. I have tested this in the console, and it doesn’t exhibit this behavior there, only when…

---

## [Firebird issue in fb.so - ruby: symbol lookup error:](https://www.ruby-forum.com/t/firebird-issue-in-fb-so-ruby-symbol-lookup-error/167134)

<div class="topic-metadata">

**Author:** [@mkrauskopf](https://www.ruby-forum.com/u/mkrauskopf)\
**Replies:** 5\
**Last updated:** [August 5, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/firebird-issue-in-fb-so-ruby-symbol-lookup-error/167134 "2009-08-05T16:56:32Z")

</div>

Hi, I want to connect to firebird db via RoR application. But when I attempt to connect then server shutdown with the following error : ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/fb-0.5.9/./fb.so: undefin…

---

## [Change row font on click](https://www.ruby-forum.com/t/change-row-font-on-click/173248)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/change-row-font-on-click/173248 "2009-08-05T16:56:31Z")

</div>

Here is the code to develop my table: Name Date Age Procedure \<% reports.each do |report| %\> "\> \<%=h "#{report.last}, #{report.first}" %\> \<%=h report.date %\> \<% if !report…

---

## [Question about creating migrations from plugins](https://www.ruby-forum.com/t/question-about-creating-migrations-from-plugins/173249)

<div class="topic-metadata">

**Author:** [@cswebgrl](https://www.ruby-forum.com/u/cswebgrl)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/question-about-creating-migrations-from-plugins/173249 "2009-08-05T16:51:29Z")

</div>

I’m finalizing a plugin and am wondering, what is the preferred method is for adding migrations/new tables from a plugin to an app? My migration file creates a table that will stand alone. One method appears to be sim…

---

## [Very strange problem with Gettext and Haml / rake updatepo](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml-rake-updatepo/173252)

<div class="topic-metadata">

**Author:** [@slafochmed](https://www.ruby-forum.com/u/slafochmed)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/very-strange-problem-with-gettext-and-haml-rake-updatepo/173252 "2009-08-05T16:46:21Z")

</div>

Hi, I’m on Rails 2.3.3 and using Haml 2.0.9 for my templates and Gettext-Rails 2.0.4 for the translation. Haml works like a charm and gettext is also working like it should. But I cant get Gettext to parse Haml Files…

---

## [Override ActiveRecord:Base.destroy](https://www.ruby-forum.com/t/override-activerecord-base-destroy/173246)

<div class="topic-metadata">

**Author:** [@DAddYE](https://www.ruby-forum.com/u/DAddYE)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/override-activerecord-base-destroy/173246 "2009-08-05T16:25:35Z")

</div>

Dear rails developpers Im build a new adapter (mongo) I need to override this: # Deletes the record in the database and freezes this instance to reflect that no changes should # be made (since they can’t be persist…

---

## [Strange problem with Rails and Tomcat](https://www.ruby-forum.com/t/strange-problem-with-rails-and-tomcat/173238)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 4\
**Last updated:** [August 5, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/strange-problem-with-rails-and-tomcat/173238 "2009-08-05T15:53:31Z")

</div>

Hi all, IÂ´m having a strange problem in my rails app hosted on Tomcat: The ‘div’ element which stores the validation errors of a model doesnÂ´t seem to be ‘refreshed’ after each request,so I end up with the following …

---

## [Nested Hash Problem](https://www.ruby-forum.com/t/nested-hash-problem/173243)

<div class="topic-metadata">

**Author:** [@avantec](https://www.ruby-forum.com/u/avantec)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/nested-hash-problem/173243 "2009-08-05T15:38:03Z")

</div>

Dear all, I have a hash serv\_value =\> {60=\>{“servicetype\_id”=\>4, “quantity”=\>1, “amount”=\>360.0, “narration”=\>“GTT”}, 6116=\>{“servicetype\_id”=\>1934, “quantity”=\>1, “amount”=\>42500.0, “narration”=\>“HRT.BT SHUNT”}, 78…

---

## [\[ANN\] Lone Star Ruby Conference 2009 - One more week before Late Registration Begins](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-one-more-week-before-late-registration-begins/196986)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2009-one-more-week-before-late-registration-begins/196986 "2009-08-05T15:28:47Z")

</div>

Greetings from Austin - Home of the Lone Star Ruby Conference. Have you checked out the training classes and speakers at this years Lone Star Ruby Conference? It is probably the best Ruby conference to date. LoneStar…

---

## [Form\_for](https://www.ruby-forum.com/t/form-for/173176)

<div class="topic-metadata">

**Author:** [@fisa](https://www.ruby-forum.com/u/fisa)\
**Replies:** 6\
**Last updated:** [August 5, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/form-for/173176 "2009-08-05T15:26:26Z")

</div>

hi everybody… I have a form\_for in that, onclicking submit button i am calling a javascript for validation.If validation fails that form\_for doesnt do anything.But even the validation fails it goes to the controller a…

---

## [Problem embedding images in rss feed via builder?](https://www.ruby-forum.com/t/problem-embedding-images-in-rss-feed-via-builder/173221)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/problem-embedding-images-in-rss-feed-via-builder/173221 "2009-08-05T14:57:10Z")

</div>

I am having no luck embedding images/s in an rss feed I am creating using a builder template. I am sure my image path is correct… I have tried image paths as strings as well and I have placed the xml.image block withi…

---

## [Rake gems (in /opt/SDK/domains/domain1/autodeploy/jruby\_deploy\_test) rake aborted! Please install t](https://www.ruby-forum.com/t/rake-gems-in-opt-sdk-domains-domain1-autodeploy-jruby-deploy-test-rake-aborted-please-install-t/173191)

<div class="topic-metadata">

**Author:** [@Luthien](https://www.ruby-forum.com/u/Luthien)\
**Replies:** 11\
**Last updated:** [August 5, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/rake-gems-in-opt-sdk-domains-domain1-autodeploy-jruby-deploy-test-rake-aborted-please-install-t/173191 "2009-08-05T13:36:59Z")

</div>

hi, RoR. i’m workin with RoR just 3 days, and i have this trouble: rake gems (in /opt/SDK/domains/domain1/autodeploy/jruby\_deploy\_test) rake aborted! Please install the jdbcmysql adapter: gem install activerecord- jd…

---

## [Anyone used acts\_as\_flying\_saucer? problem with pdf\_file](https://www.ruby-forum.com/t/anyone-used-acts-as-flying-saucer-problem-with-pdf-file/173232)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/anyone-used-acts-as-flying-saucer-problem-with-pdf-file/173232 "2009-08-05T13:28:48Z")

</div>

hey all I’m trying to use the plugin acts\_as\_flying\_saucer, which converts html (well, xhtml, strictly speaking) to pdf. It works if i choose the method which saves a file to my local hd, but it doesn’t work if i ch…

---

## [Send\_file, pdf and inline option. Can't display in browser](https://www.ruby-forum.com/t/send-file-pdf-and-inline-option-cant-display-in-browser/173235)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [August 5, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/send-file-pdf-and-inline-option-cant-display-in-browser/173235 "2009-08-05T13:21:22Z")

</div>

hey all i’m trying to send a pdf to the browser, to display inline, like this: send\_file("#{RAILS\_ROOT}/tmp/#{filename}", :filename =\> filename, :disposition =\> "inline") But, it keeps coming through as a …

---

## [Recording errors](https://www.ruby-forum.com/t/recording-errors/173212)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 1:14pm UTC](https://www.ruby-forum.com/t/recording-errors/173212 "2009-08-05T13:14:08Z")

</div>

I am using restful\_authentication in a rails app, but I also wanted to let administrators create news users by piggybacking on the restful\_authentication function. I decided to allow csv imports for creating members i…

---

## [Doubt in retrievind data from habtm?](https://www.ruby-forum.com/t/doubt-in-retrievind-data-from-habtm/173236)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/doubt-in-retrievind-data-from-habtm/173236 "2009-08-05T13:11:13Z")

</div>

hi I have one table called agencies\_contract i need to get data from this table agency\_id contract\_id 1 1 so i need to display agency\_id equivalent to 1 and contract\_id equivalent to 1 this …

---

## [Doh! Two versions of Ruby installed!](https://www.ruby-forum.com/t/doh-two-versions-of-ruby-installed/173075)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 8\
**Last updated:** [August 5, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/doh-two-versions-of-ruby-installed/173075 "2009-08-05T13:01:51Z")

</div>

Hey all I installed FXRuby today using macports and i believe it’s installed another copy of Ruby in /opt/local/bin/ruby ls -l which ruby # =\> -rwxr-xr-x 2 root admin 13412 Aug 1 16:50 /opt/local/bin/ruby cat '…

---

## [Forms, javascript and ajax - hopefully an easy question](https://www.ruby-forum.com/t/forms-javascript-and-ajax-hopefully-an-easy-question/173189)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [August 5, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/forms-javascript-and-ajax-hopefully-an-easy-question/173189 "2009-08-05T12:15:38Z")

</div>

Right now I have a simple form hooked up. Now that the form is smooth and functional, I want to add a feature that I’m not sure how to implement. After a user modifies a form, I’d like to have a visual cue appear som…

---

## [Rows Affected](https://www.ruby-forum.com/t/rows-affected/173179)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 11:45am UTC](https://www.ruby-forum.com/t/rows-affected/173179 "2009-08-05T11:45:12Z")

</div>

Champs, Actually the scenario is:- I am updating attributes for a record in a condition… And then i am flashing a message stating that record updated … But the thing is even if i dont update nething … i mean the if i…

---

## [MySQL noob question: Where can I find the database when I create one?](https://www.ruby-forum.com/t/mysql-noob-question-where-can-i-find-the-database-when-i-create-one/173226)

<div class="topic-metadata">

**Author:** [@jkadarusman](https://www.ruby-forum.com/u/jkadarusman)\
**Replies:** 2\
**Last updated:** [August 5, 2009, 10:40am UTC](https://www.ruby-forum.com/t/mysql-noob-question-where-can-i-find-the-database-when-i-create-one/173226 "2009-08-05T10:40:20Z")

</div>

See my screenshot of the command here. http://a.imagehost.org/0843/mysqladmin.png When I type the following: mysqladmin create \<database\_name\> --user=root --password=xxxxxxxx Is my command executed simply by pressing…

---

## [Authentication problam](https://www.ruby-forum.com/t/authentication-problam/173230)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 10:36am UTC](https://www.ruby-forum.com/t/authentication-problam/173230 "2009-08-05T10:36:48Z")

</div>

i am using restful authentication plug-in in my rails application, it working fine for creating user and login, i want to add other functionality like adding sub user to the main users, and i need some other exra fiel…

---

## [Faild to update sqlite database using activerecord](https://www.ruby-forum.com/t/faild-to-update-sqlite-database-using-activerecord/173227)

<div class="topic-metadata">

**Author:** [@pierr](https://www.ruby-forum.com/u/pierr)\
**Replies:** 2\
**Last updated:** [August 5, 2009, 10:16am UTC](https://www.ruby-forum.com/t/faild-to-update-sqlite-database-using-activerecord/173227 "2009-08-05T10:16:49Z")

</div>

Hi all, I was trying to update the JIS-encoded text in the databse to UTF-8 text but failed (For simplicity, I use “hello” & “world” in the test program below). Please point me the mistake I made here. Thanks. #using …

---

## [\[JOB\] - Contract Work](https://www.ruby-forum.com/t/job-contract-work/173225)

<div class="topic-metadata">

**Author:** [@Kelly\_S\_aBt](https://www.ruby-forum.com/u/Kelly_S_aBt)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 9:22am UTC](https://www.ruby-forum.com/t/job-contract-work/173225 "2009-08-05T09:22:22Z")

</div>

I am looking for a Ruby on Rails developer that can work as a back-up to a primary developer. For the first several weeks there will only be a few hours per week. However, the primary position may open up allowing f…

---

## [\[Job\] Rails expert programmers needed for Canadian company](https://www.ruby-forum.com/t/job-rails-expert-programmers-needed-for-canadian-company/173158)

<div class="topic-metadata">

**Author:** [@vanquisher](https://www.ruby-forum.com/u/vanquisher)\
**Replies:** 1\
**Last updated:** [August 5, 2009, 9:21am UTC](https://www.ruby-forum.com/t/job-rails-expert-programmers-needed-for-canadian-company/173158 "2009-08-05T09:21:47Z")

</div>

Hi folks, Castle Rock Research Corp (http://www.castlerockresearch.com/) is looking for talented Senior Web D.s with a history of commercial product & consumer-oriented web application design and high- end developme…

---

## [Admin section and public site](https://www.ruby-forum.com/t/admin-section-and-public-site/173206)

<div class="topic-metadata">

**Author:** [@klaus](https://www.ruby-forum.com/u/klaus)\
**Replies:** 4\
**Last updated:** [August 5, 2009, 8:23am UTC](https://www.ruby-forum.com/t/admin-section-and-public-site/173206 "2009-08-05T08:23:15Z")

</div>

Hi, I’m learning rails. Just started some month ago. I’ve got some years of experience with php and now I’ve realized rails makes a lot more fun. But anyways, I have a question. There is something I don’t understand. …

---

## [Dynamic menu/role design](https://www.ruby-forum.com/t/dynamic-menu-role-design/172935)

<div class="topic-metadata">

**Author:** [@stardust](https://www.ruby-forum.com/u/stardust)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 7:12am UTC](https://www.ruby-forum.com/t/dynamic-menu-role-design/172935 "2009-08-05T07:12:40Z")

</div>

My project is a small online course. A course has four terms and each term has ten lessons. When you start the course you get access to the course intro and the first term intro and the first lesson. Every week you g…

---

## [Dynamic session domain using Rack](https://www.ruby-forum.com/t/dynamic-session-domain-using-rack/173216)

<div class="topic-metadata">

**Author:** [@vineire77](https://www.ruby-forum.com/u/vineire77)\
**Replies:** 0\
**Last updated:** [August 5, 2009, 2:49am UTC](https://www.ruby-forum.com/t/dynamic-session-domain-using-rack/173216 "2009-08-05T02:49:34Z")

</div>

Rails: 2.3.3 Overview: I want to enable cross domain session support. Eventually, I’ll have several domains for users to choose from, i.e. user.domain1.com or user.domain2.com. I’ve borrowed from the code below, but …

---

## [Error loading rubygems from vendor\_gem\_source\_index](https://www.ruby-forum.com/t/error-loading-rubygems-from-vendor-gem-source-index/173131)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 2\
**Last updated:** [August 5, 2009, 1:46am UTC](https://www.ruby-forum.com/t/error-loading-rubygems-from-vendor-gem-source-index/173131 "2009-08-05T01:46:11Z")

</div>

I’m having trouble running script/generate due to the following error: ./script/…/config/…/vendor/rails/railties/lib/rails/vendor\_gem\_source\_index.rb:1:in require': No such file to load -- rubygems (LoadError) from ./s…

---

## [Windows users? - Can I run multiple clients of one client-rails-server?](https://www.ruby-forum.com/t/windows-users-can-i-run-multiple-clients-of-one-client-rails-server/173181)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 7\
**Last updated:** [August 5, 2009, 12:56am UTC](https://www.ruby-forum.com/t/windows-users-can-i-run-multiple-clients-of-one-client-rails-server/173181 "2009-08-05T00:56:02Z")

</div>

I’m one of the unmentionable users that has been developing in Windows for the last 3 years. We all know that I can start a DOS script/server session on my machine and run the Rails application on my local browser. I…

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

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