# Rails

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

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

---

## [Ajax response strip script tag from response](https://www.ruby-forum.com/t/ajax-response-strip-script-tag-from-response/161288)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/ajax-response-strip-script-tag-from-response/161288 "2009-02-25T12:40:57Z")

</div>

An newbie question. I have a “script” tag included in the response of an ajax call (from a link\_to\_remote) But this script tag is in the response(seen in firebug) but not on the webpage. It is stripped by something. …

---

## [Complex forms and :index =\> nil issues](https://www.ruby-forum.com/t/complex-forms-and-index-nil-issues/161114)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 9:59am UTC](https://www.ruby-forum.com/t/complex-forms-and-index-nil-issues/161114 "2009-02-25T09:59:22Z")

</div>

Hi - I’m trying to figure out how to group nested fields in the form such that they all submit with a certain order. I followed the complex forms railscast (#75 Complex Forms Part 3 - RailsCasts), but I’m trying to su…

---

## [Disable double-click with link\_to\_remote](https://www.ruby-forum.com/t/disable-double-click-with-link-to-remote/161097)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 9:00am UTC](https://www.ruby-forum.com/t/disable-double-click-with-link-to-remote/161097 "2009-02-25T09:00:50Z")

</div>

I’m using link\_to\_remote to load and show a number of partials and am looking for a way to prevent multiple clicks on the link. I tried searching around, but couldn’t really find anything. The way it is set up now i…

---

## [NoMethodError with custom RAILS\_ENV](https://www.ruby-forum.com/t/nomethoderror-with-custom-rails-env/160954)

<div class="topic-metadata">

**Author:** [@Filip\_T](https://www.ruby-forum.com/u/Filip_T)\
**Replies:** 4\
**Last updated:** [February 25, 2009, 9:00am UTC](https://www.ruby-forum.com/t/nomethoderror-with-custom-rails-env/160954 "2009-02-25T09:00:49Z")

</div>

Hi, I’ve just deployed my application to staging server, using RAILS\_ENV=staging (Ruby 1.8.7, mod\_rails). The application works fine in production (using setup as above), but I keep on getting this error (both in mod…

---

## [Win32ole not wokring](https://www.ruby-forum.com/t/win32ole-not-wokring/126814)

<div class="topic-metadata">

**Author:** [@cbourne](https://www.ruby-forum.com/u/cbourne)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 8:50am UTC](https://www.ruby-forum.com/t/win32ole-not-wokring/126814 "2009-02-25T08:50:09Z")

</div>

Hi, I am new to Ruby and have been having many problems getting win32ole to work. It seams to be that the following libraries that win32ole needs to compile itself are missing. Does anyone know here I can get them and…

---

## [Simple Tree view code required](https://www.ruby-forum.com/t/simple-tree-view-code-required/161178)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 7:05am UTC](https://www.ruby-forum.com/t/simple-tree-view-code-required/161178 "2009-02-25T07:05:21Z")

</div>

Hi all, Being a newbie in Ruby, I’m really fed up trying almost all the available tree examples in net like YUI Tree, dhtmlxTree, LiveTree in vain. None of them worked for me. Could anyone please give me a simple exa…

---

## [Creating a rails plugin](https://www.ruby-forum.com/t/creating-a-rails-plugin/160544)

<div class="topic-metadata">

**Author:** [@amita0204](https://www.ruby-forum.com/u/amita0204)\
**Replies:** 11\
**Last updated:** [February 25, 2009, 5:21am UTC](https://www.ruby-forum.com/t/creating-a-rails-plugin/160544 "2009-02-25T05:21:45Z")

</div>

I am trying to develop a rails plugin. I am referring to instructions on: http://guides.rubyonrails.org/creating\_plugins.html I am quite confused about where should I start. If I need to add MVC to my plugin, then d…

---

## [Undefined method \`model' for ContactController:Class](https://www.ruby-forum.com/t/undefined-method-model-for-contactcontroller-class/161236)

<div class="topic-metadata">

**Author:** [@sankarkumar](https://www.ruby-forum.com/u/sankarkumar)\
**Replies:** 5\
**Last updated:** [February 25, 2009, 4:25am UTC](https://www.ruby-forum.com/t/undefined-method-model-for-contactcontroller-class/161236 "2009-02-25T04:25:45Z")

</div>

Hi , I’m getting “undefined method \`model’ for ContactController:Class” Basically this is my first RoR application. Can you please somebody help to resolve this. Steps I have followed, 1)ruby script/generate model c…

---

## [Free SMS limit (using sms\_fu)](https://www.ruby-forum.com/t/free-sms-limit-using-sms-fu/161222)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 3:45am UTC](https://www.ruby-forum.com/t/free-sms-limit-using-sms-fu/161222 "2009-02-25T03:45:07Z")

</div>

I have been using SMS\_fu but it seems too good to be true for production. I’m wondering, is there any sort of limit on email to sms depending on the carrier that you can send in a given amount of time? I remember rea…

---

## [Problem registering Mime type](https://www.ruby-forum.com/t/problem-registering-mime-type/160113)

<div class="topic-metadata">

**Author:** [@zufar](https://www.ruby-forum.com/u/zufar)\
**Replies:** 2\
**Last updated:** [February 25, 2009, 2:30am UTC](https://www.ruby-forum.com/t/problem-registering-mime-type/160113 "2009-02-25T02:30:04Z")

</div>

I am facing problem trying to register pdf Mime type. I am doing this in environment.rb: RAILS\_GEM\_VERSION = ‘2.1.0’ unless defined? RAILS\_GEM\_VERSION require File.join(File.dirname(FILE), ‘boot’) #Pagination requi…

---

## [RoR 2.2.2 and MySQL -- HELP](https://www.ruby-forum.com/t/ror-2-2-2-and-mysql-help/157130)

<div class="topic-metadata">

**Author:** [@jabauer](https://www.ruby-forum.com/u/jabauer)\
**Replies:** 15\
**Last updated:** [February 25, 2009, 1:49am UTC](https://www.ruby-forum.com/t/ror-2-2-2-and-mysql-help/157130 "2009-02-25T01:49:36Z")

</div>

On Monday I “upgraded” from Rails 1.2.6 to 2.2.2 (also upgrading to gem 1.3.1) but in the process have lost the ability to connect with my mysql database. After finally reinstalling the MySQL gem with the following g…

---

## [Freezing rails in windows brings up a "permission denied"](https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146)

<div class="topic-metadata">

**Author:** [@Stex](https://www.ruby-forum.com/u/Stex)\
**Replies:** 1\
**Last updated:** [February 25, 2009, 12:43am UTC](https://www.ruby-forum.com/t/freezing-rails-in-windows-brings-up-a-permission-denied/161146 "2009-02-25T00:43:50Z")

</div>

Hi, it’s the first time for me to get a rails-application running on webspace, so I have to freeze my application to include my gems and rails. I tried many times with new and existing applications but always got an…

---

## [Restful\_authentication with rails 2.2](https://www.ruby-forum.com/t/restful-authentication-with-rails-2-2/160286)

<div class="topic-metadata">

**Author:** [@Rodrigo\_MuiSSSSo](https://www.ruby-forum.com/u/Rodrigo_MuiSSSSo)\
**Replies:** 3\
**Last updated:** [February 25, 2009, 12:39am UTC](https://www.ruby-forum.com/t/restful-authentication-with-rails-2-2/160286 "2009-02-25T00:39:15Z")

</div>

Guys, I am using restful\_authentication with rails 2.2 an realized that when a user tries to sign up the activation code that is set to his email is different from the one in the database. Do you know if this is an i…

---

## [Cannot activate feedtools gem due to frozen rails install](https://www.ruby-forum.com/t/cannot-activate-feedtools-gem-due-to-frozen-rails-install/160916)

<div class="topic-metadata">

**Author:** [@rroman81](https://www.ruby-forum.com/u/rroman81)\
**Replies:** 2\
**Last updated:** [February 24, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/cannot-activate-feedtools-gem-due-to-frozen-rails-install/160916 "2009-02-24T23:39:42Z")

</div>

I got feedtools 0.23 installed. I am trying to familiarize with the gem but when i do “require ‘feed\_tools’” in script/console of the app, i get this: Gem::Exception: can’t activate activerecord (\>= 1.10.1, runtime), …

---

## [Named route called "connect"](https://www.ruby-forum.com/t/named-route-called-connect/161270)

<div class="topic-metadata">

**Author:** [@dodeantn](https://www.ruby-forum.com/u/dodeantn)\
**Replies:** 1\
**Last updated:** [February 24, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/named-route-called-connect/161270 "2009-02-24T23:34:38Z")

</div>

Hi, is it possible to create a named route called “connect”? There’s no way to do it the “normal” way (e.g. map.connect :controller =\> “connect”, :action =\> “index”) since connect is the name of a predefined method i…

---

## [Multiple models one form and a one-to-one relationship](https://www.ruby-forum.com/t/multiple-models-one-form-and-a-one-to-one-relationship/161266)

<div class="topic-metadata">

**Author:** [@Stefan\_Frede](https://www.ruby-forum.com/u/Stefan_Frede)\
**Replies:** 3\
**Last updated:** [February 24, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/multiple-models-one-form-and-a-one-to-one-relationship/161266 "2009-02-24T23:31:05Z")

</div>

Hi! I’ve got a not so unfamiliar multiple models in one form problem. Due to the complex forms railscast I’ve got it up and running for a one-to- many relationship but now I have a one-to-one relationship and I didn’…

---

## [Collection of Partials, :as Option No Good, TemplateError](https://www.ruby-forum.com/t/collection-of-partials-as-option-no-good-templateerror/161258)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 3\
**Last updated:** [February 24, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/collection-of-partials-as-option-no-good-templateerror/161258 "2009-02-24T23:23:24Z")

</div>

I’m trying to render a collection of partials using :as. It raises an undefined local variable exception. Not sure why: ~/delivery-log/app/views/packages $ ls -1 \_package.html.erb \_package\_list.html.erb index.html.e…

---

## [RubyGems 1.3, Ruby 1.9.1-p0](https://www.ruby-forum.com/t/rubygems-1-3-ruby-1-9-1-p0/161191)

<div class="topic-metadata">

**Author:** [@genzeb](https://www.ruby-forum.com/u/genzeb)\
**Replies:** 6\
**Last updated:** [February 24, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/rubygems-1-3-ruby-1-9-1-p0/161191 "2009-02-24T23:21:37Z")

</div>

I am newbie to RoR and trying to install on CentOS. Installing of Ruby from ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz and that went smoothly. % ruby -v ruby 1.9.1p0 (2009-01-30 revision 21907) \[i686-l…

---

## [Hiding form when clicking outside field](https://www.ruby-forum.com/t/hiding-form-when-clicking-outside-field/161105)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [February 24, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/hiding-form-when-clicking-outside-field/161105 "2009-02-24T23:13:12Z")

</div>

im guessing this is somethign to do with prototype but i want a form which comprises of one field to disapear if the user clicks anywhere outside of that field. Ive seen this doen on rememberthemilk.com but not sure h…

---

## [Nesting nested resources in routes.rb?](https://www.ruby-forum.com/t/nesting-nested-resources-in-routes-rb/161267)

<div class="topic-metadata">

**Author:** [@joshua-asem](https://www.ruby-forum.com/u/joshua-asem)\
**Replies:** 0\
**Last updated:** [February 24, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/nesting-nested-resources-in-routes-rb/161267 "2009-02-24T23:03:39Z")

</div>

Is there any way to do this using :has\_many? Thanks, – Josh http://iammrjoshua.com

---

## [CSRF protection and verify :method](https://www.ruby-forum.com/t/csrf-protection-and-verify-method/161198)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 2\
**Last updated:** [February 24, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/csrf-protection-and-verify-method/161198 "2009-02-24T22:37:27Z")

</div>

Hi rortalk, I’ve been looking at my under development site’s exposure to csrf attacks. While it is a good thing that rails provides request forgery protection for not-gets, it seems to me that for it to actually be m…

---

## [Unable to set the replay-to in ActionMailer](https://www.ruby-forum.com/t/unable-to-set-the-replay-to-in-actionmailer/161160)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [February 24, 2009, 10:01pm UTC](https://www.ruby-forum.com/t/unable-to-set-the-replay-to-in-actionmailer/161160 "2009-02-24T22:01:09Z")

</div>

Hi, Users can contact me through a form that sends emails through ActionMailer, the problem is that I can’t set “reply\_to”, and the “from” is actually set to my account on the server which sends the email, so I have …

---

## [Strange AR error ( column does not exist)](https://www.ruby-forum.com/t/strange-ar-error-column-does-not-exist/161050)

<div class="topic-metadata">

**Author:** [@Felixyz](https://www.ruby-forum.com/u/Felixyz)\
**Replies:** 2\
**Last updated:** [February 24, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/strange-ar-error-column-does-not-exist/161050 "2009-02-24T21:52:38Z")

</div>

I’m trying to deploy a Rails app on a platform using Thin, after some horrible sessions trying to make it work with fcgi. All is going well, but my Application controller throws this error: ActiveRecord::StatementInva…

---

## [Rails on Apache](https://www.ruby-forum.com/t/rails-on-apache/161224)

<div class="topic-metadata">

**Author:** [@angaps](https://www.ruby-forum.com/u/angaps)\
**Replies:** 3\
**Last updated:** [February 24, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/rails-on-apache/161224 "2009-02-24T19:18:02Z")

</div>

Hai I want to run my rails application in the apache server, the steps i followed are: Here we ll go for deploying rails with apache. Install Ruby and Rails. Install Apache HTTP Server. Win32 Binary without cry…

---

## [SELF JOIN to compare two successive rows](https://www.ruby-forum.com/t/self-join-to-compare-two-successive-rows/161246)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 0\
**Last updated:** [February 24, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/self-join-to-compare-two-successive-rows/161246 "2009-02-24T18:00:56Z")

</div>

Hi, I have a DB that different computers add entries to roughly every 10 seconds. Later on I want to check “gaps”, when two entries from one computer are further than 20 seconds apart and other things that have to do …

---

## [Parse problem](https://www.ruby-forum.com/t/parse-problem/161196)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [February 24, 2009, 5:57pm UTC](https://www.ruby-forum.com/t/parse-problem/161196 "2009-02-24T17:57:57Z")

</div>

I am using Time.parse for creating time object like start\_date = Time.parse("#{event.from\_year.to\_s}-#{event.from\_month.to\_s}-#{event.from\_day.to\_s} #{event.from\_time.to\_s}") end\_date = Time.parse("#{event.to\_year.t…

---

## [Validates](https://www.ruby-forum.com/t/validates/161205)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [February 24, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/validates/161205 "2009-02-24T17:56:10Z")

</div>

If I have a table: users(id, name, address, city) How can I validate: Name must be entered, but address and city can be null, but if there is address, there also must be a city. So city can’t be null, if address is n…

---

## [Rails Music Composer](https://www.ruby-forum.com/t/rails-music-composer/161245)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [February 24, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/rails-music-composer/161245 "2009-02-24T17:49:39Z")

</div>

I have official Released a Rails Music Application…Called Literature 2 Music http://www.literature2music.com Thanks for checking it out… Gabrielg1976

---

## [XMLRPC calling question](https://www.ruby-forum.com/t/xmlrpc-calling-question/161172)

<div class="topic-metadata">

**Author:** [@Don\_F](https://www.ruby-forum.com/u/Don_F)\
**Replies:** 5\
**Last updated:** [February 24, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/xmlrpc-calling-question/161172 "2009-02-24T17:27:09Z")

</div>

I have a mashup I need to d with a site that uses xmlrpc. I am trying to understand the the call method. I have the following items that need to be passed to the remote site. methodName and the following structure …

---

## [Show/hide divs according to selection box](https://www.ruby-forum.com/t/show-hide-divs-according-to-selection-box/160869)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 4\
**Last updated:** [February 24, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/show-hide-divs-according-to-selection-box/160869 "2009-02-24T17:17:07Z")

</div>

hi all, I have 3 divs (with id) and according to a selection made in a selection box I want to show the corresponding div and hide the 2 other divs eg: selectionbox car bike motor So when car is selected div c…

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

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