# Rails

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

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

---

## [Problem with instance vars in explicit multipart email using ActionMailer](https://www.ruby-forum.com/t/problem-with-instance-vars-in-explicit-multipart-email-using-actionmailer/175727)

<div class="topic-metadata">

**Author:** [@jacib](https://www.ruby-forum.com/u/jacib)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 3:36pm UTC](https://www.ruby-forum.com/t/problem-with-instance-vars-in-explicit-multipart-email-using-actionmailer/175727 "2009-09-18T15:36:12Z")

</div>

Hi everyone, I’m having trouble accessing instance vars passed to my email template as part of an explicit multipart message, and I wonder if anyone here could help me. The task at hand is to deliver email with only …

---

## [No such file to load -- iconv](https://www.ruby-forum.com/t/no-such-file-to-load-iconv/175332)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [September 18, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-iconv/175332 "2009-09-18T14:10:45Z")

</div>

trying to update an application (2.3.2 to 2.3.4) I run rake rails:update --trace got the error : rake aborted! no such file to load – iconv /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in \`gem\_or…

---

## [Rack error](https://www.ruby-forum.com/t/rack-error/175714)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/rack-error/175714 "2009-09-18T13:00:15Z")

</div>

Hi I’ve just started exploring about rack and created by config.ru file under config folder in my application. when I try to run the “rackup” command, I get an error saying Configuration config.ru not found. I’ve j…

---

## [How to avoid (Net::SMTPFatalError) "555 5.5.2 Syntax error](https://www.ruby-forum.com/t/how-to-avoid-net-smtpfatalerror-555-5-5-2-syntax-error/166254)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 9\
**Last updated:** [September 18, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/how-to-avoid-net-smtpfatalerror-555-5-5-2-syntax-error/166254 "2009-09-18T12:50:12Z")

</div>

Hi all, I have written code to send mails through action\_mailer, where in I called MassNotifier.deliver\_forward\_review\_link(current\_user.profile.display\_name,email,params\[:notification\]\[:message\],params\[:title\],params…

---

## [Css selector?](https://www.ruby-forum.com/t/css-selector/175723)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/css-selector/175723 "2009-09-18T12:41:44Z")

</div>

hi, I have 6 css files, with different styles and layouts. How can i change between these files through my view? remco

---

## [Problem date\_select with active\_form](https://www.ruby-forum.com/t/problem-date-select-with-active-form/175639)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 10\
**Last updated:** [September 18, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/problem-date-select-with-active-form/175639 "2009-09-18T12:24:11Z")

</div>

hi, i have a problem with date\_select and and active\_form plugin example: view: form\_for( “contact”, :url =\> { :action =\> “form\_contact” } ) do |f| … other code … f.date\_select :period, :order =\> \[:day, :month, :ye…

---

## [Paperclip - when validation fails, hold onto attachments](https://www.ruby-forum.com/t/paperclip-when-validation-fails-hold-onto-attachments/173868)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 11:53am UTC](https://www.ruby-forum.com/t/paperclip-when-validation-fails-hold-onto-attachments/173868 "2009-09-18T11:53:22Z")

</div>

I’ve seen this with paperclip before I think, anyone know how to fix it? When my validation fails the form is re-rendered with the validation error messages, all fine. However, the paperclip attachments that were prev…

---

## [What's the best wait for a plugin to autoload](https://www.ruby-forum.com/t/whats-the-best-wait-for-a-plugin-to-autoload/175716)

<div class="topic-metadata">

**Author:** [@matthuhiggins](https://www.ruby-forum.com/u/matthuhiggins)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 10:39am UTC](https://www.ruby-forum.com/t/whats-the-best-wait-for-a-plugin-to-autoload/175716 "2009-09-18T10:39:22Z")

</div>

Let’s say I have a plugin for for ActionController. I only want the plugin loaded if ActionController is loaded. Rails has put a lot of effort into autoloading only the necessary files during startup. Is there a good …

---

## [Put rack folder in vendo folder](https://www.ruby-forum.com/t/put-rack-folder-in-vendo-folder/175690)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 9:36am UTC](https://www.ruby-forum.com/t/put-rack-folder-in-vendo-folder/175690 "2009-09-18T09:36:43Z")

</div>

or in general how to put gems there? I have a patch to apply to “rack/ methodoverride.rb” but I can’t find it… how can I copy rack in vendor and not modify the system wide file? the rake gems:unpack or install don’t w…

---

## [Yikes! stack level too deep](https://www.ruby-forum.com/t/yikes-stack-level-too-deep/175663)

<div class="topic-metadata">

**Author:** [@windtrack](https://www.ruby-forum.com/u/windtrack)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 8:37am UTC](https://www.ruby-forum.com/t/yikes-stack-level-too-deep/175663 "2009-09-18T08:37:36Z")

</div>

I’m not able to get past this… Basically I’m displaying my “Participant” and wish to display participant details which includes several partials. I’ve studied this over and over and I cannot fathom how an infinite l…

---

## [Pass session value in database field](https://www.ruby-forum.com/t/pass-session-value-in-database-field/175647)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 6:22am UTC](https://www.ruby-forum.com/t/pass-session-value-in-database-field/175647 "2009-09-18T06:22:58Z")

</div>

Hello - Noobie question I’m sure… I’m trying to pass a session value to a database field ‘user’ when the user creates a new blog entry. The session value is created when the user logs on to the site. I have this in…

---

## [Can i use "form\_remote\_tag" inside the "form\_tag"?](https://www.ruby-forum.com/t/can-i-use-form-remote-tag-inside-the-form-tag/175674)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 5:58am UTC](https://www.ruby-forum.com/t/can-i-use-form-remote-tag-inside-the-form-tag/175674 "2009-09-18T05:58:58Z")

</div>

Hi all, How can i use form\_remote\_tag inside the form\_tag helper . My application has following view subscribe.html.haml form\_tag :action =\> :subscribe do /other form element %input{:type=\>‘radio’, :name=\>‘tariff…

---

## [User login and authentication](https://www.ruby-forum.com/t/user-login-and-authentication/175543)

<div class="topic-metadata">

**Author:** [@phibo](https://www.ruby-forum.com/u/phibo)\
**Replies:** 6\
**Last updated:** [September 18, 2009, 4:29am UTC](https://www.ruby-forum.com/t/user-login-and-authentication/175543 "2009-09-18T04:29:53Z")

</div>

Being a rails newbie, I started to design our first rails-based webapp. This app should not only be used via browsers, but we also want to provide a (RESTful) api. I love the ‘convention over configuration’ paradigm, …

---

## [Race condition in C-Adapter causes deadlock](https://www.ruby-forum.com/t/race-condition-in-c-adapter-causes-deadlock/175705)

<div class="topic-metadata">

**Author:** [@Howard\_Y](https://www.ruby-forum.com/u/Howard_Y)\
**Replies:** 2\
**Last updated:** [September 18, 2009, 2:26am UTC](https://www.ruby-forum.com/t/race-condition-in-c-adapter-causes-deadlock/175705 "2009-09-18T02:26:27Z")

</div>

Hi, I understand that ActiveRecord is threadsafe, but because the C- adapters for both postgresql and mysql use blocking calls, it’s surprisingly easy to cause deadlock. assume Balance is a model that tracks the bala…

---

## [OCI8 libraries (some errors fixed, some more remain)](https://www.ruby-forum.com/t/oci8-libraries-some-errors-fixed-some-more-remain/175704)

<div class="topic-metadata">

**Author:** [@catel1](https://www.ruby-forum.com/u/catel1)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 1:32am UTC](https://www.ruby-forum.com/t/oci8-libraries-some-errors-fixed-some-more-remain/175704 "2009-09-18T01:32:01Z")

</div>

I posted a thread about errors I had installing OCI8 libraries on Solaris 10 Sparc machine. I don’t have root access. I finally managed to fix that error by editing rbconfig.rb file and correctin ‘cc’ path there. It h…

---

## [Problem starting in Webrick server](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662)

<div class="topic-metadata">

**Author:** [@maddy](https://www.ruby-forum.com/u/maddy)\
**Replies:** 3\
**Last updated:** [September 18, 2009, 1:13am UTC](https://www.ruby-forum.com/t/problem-starting-in-webrick-server/175662 "2009-09-18T01:13:17Z")

</div>

Hi, I am learning Ruby on Rails and using a book as a guide. I am stuck at a particular chapter on Rails, where I am unable to start the Webrick server. But before going into the problem, let me give you a brief on t…

---

## [Scott Hughes is out of the office](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/175702)

<div class="topic-metadata">

**Author:** [@Scott\_Hughes](https://www.ruby-forum.com/u/Scott_Hughes)\
**Replies:** 0\
**Last updated:** [September 18, 2009, 1:11am UTC](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/175702 "2009-09-18T01:11:32Z")

</div>

I will be out of the office starting September 17, 2009 and will not return until September 21, 2009. Please direct any questions you have to Brian Esler or Andy Brymer in my absence. Thank You

---

## [Remove 1 HABTM association at a time](https://www.ruby-forum.com/t/remove-1-habtm-association-at-a-time/175692)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 10\
**Last updated:** [September 17, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/remove-1-habtm-association-at-a-time/175692 "2009-09-17T22:42:53Z")

</div>

hi - i have two models, A and B, and each habtm the other if I do a = A.new b = B.new a.bs \<\< b a.bs \<\< b a.bs \<\< b this creates 3 records in the join table. Is there any way for me to remove only one of these? …

---

## [Removing eval from seed.rb code](https://www.ruby-forum.com/t/removing-eval-from-seed-rb-code/175614)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 6\
**Last updated:** [September 17, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/removing-eval-from-seed-rb-code/175614 "2009-09-17T22:31:01Z")

</div>

I have written the below code in my seed.rb file. It takes my old data in tab delimited format and brings it into the Rails database. I want to remove the eval statement as I understand there are problems with eval. …

---

## [LoadError: RubyGem version error: rake-compiler(0.6.0 not](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921)

<div class="topic-metadata">

**Author:** [@jmail137](https://www.ruby-forum.com/u/jmail137)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/loaderror-rubygem-version-error-rake-compiler-0-6-0-not/172921 "2009-09-17T20:08:19Z")

</div>

i tried running the following from commands for creating a class Story and instance of class called story in Rails script console. (pg 102/103 from Simply Rails 2 book. P. Lenz) I get the following error: Gem::Loa…

---

## [Piece of code that runs only once](https://www.ruby-forum.com/t/piece-of-code-that-runs-only-once/175636)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 5\
**Last updated:** [September 17, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/piece-of-code-that-runs-only-once/175636 "2009-09-17T19:45:29Z")

</div>

hi, an strange error is happening here in User model i have the following method: def falta\_votar Category.find(:all) - votes.collect {|v| v.category} end and in the default.html.erb layout i have: \<%= current\_user…

---

## ["Only get, put, and delete requests are allowed" on an XML request... why?](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed-on-an-xml-request-why/175687)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed-on-an-xml-request-why/175687 "2009-09-17T19:24:26Z")

</div>

My app on rails 2.3.2 has a standard scaffold for a resource “thing” I try to edit a “thing” like this: curl -d ‘pallone’ ‘http://0.0.0.0:3000/ things/1’ -d ‘\_method=put’ -H ‘Content-type: application/xml’ and …

---

## [(rails question) placing link\_to inside javascript tags? Options](https://www.ruby-forum.com/t/rails-question-placing-link-to-inside-javascript-tags-options/175683)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/rails-question-placing-link-to-inside-javascript-tags-options/175683 "2009-09-17T19:15:39Z")

</div>

Hey everyone, I’m wondering if anyone has tried to use the link\_to function inside Any help is appreciated. Chris

---

## [Pages aren't loading](https://www.ruby-forum.com/t/pages-arent-loading/175684)

<div class="topic-metadata">

**Author:** [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Replies:** 1\
**Last updated:** [September 17, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/pages-arent-loading/175684 "2009-09-17T18:27:02Z")

</div>

Hello, I have a problem with this situation. When I type in address of the web, the title page loads, but when I click a link, nothing’ll happen. The thing is, that when I reload the page(by F5), the page don’t rel…

---

## [Test weirdness](https://www.ruby-forum.com/t/test-weirdness/175681)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/test-weirdness/175681 "2009-09-17T16:32:17Z")

</div>

Hi gurus, I have this in routes.rb: map.root :controller =\> ‘items’ This in my method controller redirect\_to\_root( msg = ‘Oops!’ ) And this in my application controller def redirect\_to\_root( msg = nil ) flash\[ :no…

---

## [\[ANN\] Two workshops in Chicago: Rails and jQuery](https://www.ruby-forum.com/t/ann-two-workshops-in-chicago-rails-and-jquery/175680)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [September 17, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/ann-two-workshops-in-chicago-rails-and-jquery/175680 "2009-09-17T16:03:01Z")

</div>

Hello all, I just wanted to drop a note to this list about two new workshops we’re doing in Chicago, coming up in October: Saturday, Oct 17: Essential Javascript with jQuery Saturday, Oct 24: Rails for Everyone For …

---

## [Observe\_field on multiple select box](https://www.ruby-forum.com/t/observe-field-on-multiple-select-box/175596)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/observe-field-on-multiple-select-box/175596 "2009-09-17T15:56:37Z")

</div>

Hi All, I want to use observe\_field on multiple select box. following is my code \<%= select\_tag ‘usa\[states\]\[\]’, options\_from\_collection\_for\_select(state, :state, :state, nil), :multiple =\> true, :class=\>“multi\_sele…

---

## [How to (re)run validations on existing data](https://www.ruby-forum.com/t/how-to-re-run-validations-on-existing-data/175675)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 3\
**Last updated:** [September 17, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/how-to-re-run-validations-on-existing-data/175675 "2009-09-17T15:26:08Z")

</div>

Suppose one had a hypothetical situation in which records were entered into a database which were later determined to be invalid. In this supposedly hypothetical situation, the agile programmer might add validations…

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/175659)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/no-subject/175659 "2009-09-17T15:02:08Z")

</div>

HiDestinationID^Name^City^StateProvince^Country^Latitude^Longitude^Type {B75F49C9-7B62-44E7-92FE-0A7F0CCEDF14}^ Sardinia de Galdar Beach^Gran Canary^ES^28.151890^-15.696225^2 {F920BB01-7E65-4E7F-B312-826A299CB154}^10 …

---

## [Loking for: fpdf for rails](https://www.ruby-forum.com/t/loking-for-fpdf-for-rails/175671)

<div class="topic-metadata">

**Author:** [@Sergio\_ASGmail](https://www.ruby-forum.com/u/Sergio_ASGmail)\
**Replies:** 2\
**Last updated:** [September 17, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/loking-for-fpdf-for-rails/175671 "2009-09-17T13:16:11Z")

</div>

The two sites I found are not working Any sugestion?

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

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