# Rails

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

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

---

## [Installing Rails 2.0](https://www.ruby-forum.com/t/installing-rails-2-0/146869)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/installing-rails-2-0/146869 "2008-08-26T12:32:28Z")

</div>

Help! I cant install Rails 2.0. Can anybody help me? kb1@kb1-laptop:~/zeugs/rails/blog$ ruby script/server Missing the Rails 2.0 gem. Please gem install -v=2.0 rails, update your RAILS\_GEM\_VERSION setting in config/en…

---

## [Date store problem in rails 2.0](https://www.ruby-forum.com/t/date-store-problem-in-rails-2-0/146852)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 11:50am UTC](https://www.ruby-forum.com/t/date-store-problem-in-rails-2-0/146852 "2008-08-26T11:50:32Z")

</div>

I am facing one strange problem with date\_select tag. I am using it for getting birth date from user. I am using rails 2.0.2, and to save birth date in database, I am using DATETIME as datatype. But when I put year be…

---

## [AJAX tabs cannot pass instance variable to partial](https://www.ruby-forum.com/t/ajax-tabs-cannot-pass-instance-variable-to-partial/146873)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 11:38am UTC](https://www.ruby-forum.com/t/ajax-tabs-cannot-pass-instance-variable-to-partial/146873 "2008-08-26T11:38:11Z")

</div>

I have been trying to understand what Flinn said in http://www.actsasflinn.com/Ajax\_Tabs/index.html# {{Problem }} I don’t understand how to pass the instance variable to the partial. in the main html “url\_for(:action…

---

## [Looking for shipping services Plugin](https://www.ruby-forum.com/t/looking-for-shipping-services-plugin/146857)

<div class="topic-metadata">

**Author:** [@jacob\_v\_thomas](https://www.ruby-forum.com/u/jacob_v_thomas)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 11:24am UTC](https://www.ruby-forum.com/t/looking-for-shipping-services-plugin/146857 "2008-08-26T11:24:06Z")

</div>

Hi all , i would like to impletement 3’rd party shipping services like UPS USPS Fedex what i would like to know is that, is there any plugin available for implementation. i had gone through shipping gem , it has o…

---

## [Undefined method \`find'](https://www.ruby-forum.com/t/undefined-method-find/146870)

<div class="topic-metadata">

**Author:** [@justus](https://www.ruby-forum.com/u/justus)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 11:12am UTC](https://www.ruby-forum.com/t/undefined-method-find/146870 "2008-08-26T11:12:55Z")

</div>

Hello, I have an application with multiple models that works perfectly fine in both development and production. Now I added yet another model & database table ‘Cluster’ - no fundamental difference to the other models…

---

## [Utf-8 encoding problem for text field](https://www.ruby-forum.com/t/utf-8-encoding-problem-for-text-field/146872)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 10:52am UTC](https://www.ruby-forum.com/t/utf-8-encoding-problem-for-text-field/146872 "2008-08-26T10:52:25Z")

</div>

hi all, I have a problem concerned with utf-8 encoding and text\_field. the text field - \<%= text\_field :query, :text %\> In the text\_field I entered keloidales de acnÃ© In controller I tried params\[:query\]\[:text\] for…

---

## [Javascript+partial form problem](https://www.ruby-forum.com/t/javascript-partial-form-problem/146847)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 10:41am UTC](https://www.ruby-forum.com/t/javascript-partial-form-problem/146847 "2008-08-26T10:41:06Z")

</div>

Hi, Can anybody tell me how to pass a value to a javascript function from a partial form. I have done client side validation from rhtml pages having forms in the following manner : \<%= f.text\_field :first\_name, :onCh…

---

## [Nginx rewrite w/ multiple domains](https://www.ruby-forum.com/t/nginx-rewrite-w-multiple-domains/146868)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 10:33am UTC](https://www.ruby-forum.com/t/nginx-rewrite-w-multiple-domains/146868 "2008-08-26T10:33:07Z")

</div>

I’ve got two domains (foo.com, bar.com) on the same nginx instance where I want to rewrite the raw domains to a www. (i.e. foo.com rewrites to www.foo.com and bar.com rewrites to www.bar.com) I’ve got both sites runni…

---

## [Restfull authentification](https://www.ruby-forum.com/t/restfull-authentification/146867)

<div class="topic-metadata">

**Author:** [@pyf](https://www.ruby-forum.com/u/pyf)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 9:54am UTC](https://www.ruby-forum.com/t/restfull-authentification/146867 "2008-08-26T09:54:16Z")

</div>

Hi, When I open an authentification page in firefox my login-password are accepted in a web formulary. In Internet explorer I have a window (authentification popup of windows?) to fill. The same login-password don’t…

---

## [Has\_one self reference](https://www.ruby-forum.com/t/has-one-self-reference/135183)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [August 26, 2008, 9:53am UTC](https://www.ruby-forum.com/t/has-one-self-reference/135183 "2008-08-26T09:53:03Z")

</div>

Imagine the following situation: model Person, with the default name, address, location data. Person has either one or no superior which in turn is also a Person model instance. I would expect something like has\_one…

---

## [Running a Perl script in the background](https://www.ruby-forum.com/t/running-a-perl-script-in-the-background/146858)

<div class="topic-metadata">

**Author:** [@Nitro](https://www.ruby-forum.com/u/Nitro)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 9:21am UTC](https://www.ruby-forum.com/t/running-a-perl-script-in-the-background/146858 "2008-08-26T09:21:21Z")

</div>

Hi, As part of my Rails Application I want the users to be able to start/ stop a perl script in the background… Currently I’ve tried cals like: system(“perl perl\_script.pl”) or perl perl\_script.pl But I believe th…

---

## [Word\_wrap & restful\_authentification](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824)

<div class="topic-metadata">

**Author:** [@pyf](https://www.ruby-forum.com/u/pyf)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 9:18am UTC](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824 "2008-08-26T09:18:29Z")

</div>

Hi, I have two problems: 1- I use rails 2.1, I would like use word\_wrap my text. But the method has no effects. However the method truncat goes on the same text. In MySQL this is a text type. Have you an idea? 2- Wh…

---

## [Need your help/ views for distributed programming with ruby](https://www.ruby-forum.com/t/need-your-help-views-for-distributed-programming-with-ruby/146848)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [August 26, 2008, 7:30am UTC](https://www.ruby-forum.com/t/need-your-help-views-for-distributed-programming-with-ruby/146848 "2008-08-26T07:30:15Z")

</div>

hi all, greetings, I have came across a situation where I want to send sms (Text Messages) and mails at a time to thousand’s/lac’s of users. The text may be a security or traffic alerts so its needed that this should…

---

## [Collection of Check Boxes and Labels](https://www.ruby-forum.com/t/collection-of-check-boxes-and-labels/146841)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 7:00am UTC](https://www.ruby-forum.com/t/collection-of-check-boxes-and-labels/146841 "2008-08-26T07:00:25Z")

</div>

So I have a collection of books. I want users to be able to check which of the books they are interested in. I want the name of the book next to the check box to be clickable so that it is easy to select. In my view …

---

## [Difficulty adding RubyGem to environment.config](https://www.ruby-forum.com/t/difficulty-adding-rubygem-to-environment-config/146842)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 4\
**Last updated:** [August 26, 2008, 5:57am UTC](https://www.ruby-forum.com/t/difficulty-adding-rubygem-to-environment-config/146842 "2008-08-26T05:57:40Z")

</div>

Hello- I’m trying to use Subdomain Fu as a RubyGem (as opposed to a plugin). I’m adding this line of text to my environment.rb: config.gem ‘mbleigh-subdomain-fu’, :source =\> “http:// gems.github.com”, :lib =\> “subdom…

---

## [Manage 1 ressource with 2 views, the "Restful way"](https://www.ruby-forum.com/t/manage-1-ressource-with-2-views-the-restful-way/146840)

<div class="topic-metadata">

**Author:** [@gregory\_barborini](https://www.ruby-forum.com/u/gregory_barborini)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 5:51am UTC](https://www.ruby-forum.com/t/manage-1-ressource-with-2-views-the-restful-way/146840 "2008-08-26T05:51:14Z")

</div>

Hello all, I’m working on a website listing recipes. I need 2 views : the first will be my “Home” page with the last 6 recipes and much details. the second is a listing of all the recipes sorted by alphabetical orde…

---

## [Prototype.js Ajax is slow](https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 12:37am UTC](https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828 "2008-08-26T00:37:46Z")

</div>

So I was doing some experimenting with prototype and ajax and discovered something interesting. When I use the first ajax call the response from the server take 53ms. When I use the second on using the prototype fun…

---

## [Link\_to\_function check javascript attribute](https://www.ruby-forum.com/t/link-to-function-check-javascript-attribute/146744)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 11\
**Last updated:** [August 26, 2008, 12:30am UTC](https://www.ruby-forum.com/t/link-to-function-check-javascript-attribute/146744 "2008-08-26T00:30:45Z")

</div>

How could I check the value of an javascript object’s attribute? \<%= link\_to\_function(“Show details…”, nil, :id =\> “show\_details”) do |page| page.visual\_effect(:toggle\_blind, :new\_item\_details) if (page\[:new\_…

---

## [Parsing text](https://www.ruby-forum.com/t/parsing-text/146819)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 3\
**Last updated:** [August 25, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/parsing-text/146819 "2008-08-25T23:43:07Z")

</div>

Hi. I’m using regular scaffolds to allow users to create records, is there an easy way to somehow parse the text they enter? eg Separate the paragraphs of the text automatically without the user having to type in a…

---

## [Prevent multiple reloads of a page](https://www.ruby-forum.com/t/prevent-multiple-reloads-of-a-page/146825)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/prevent-multiple-reloads-of-a-page/146825 "2008-08-25T23:32:12Z")

</div>

The User will get a static page with the info that we just send a confirmation email. something like http://www.home.de/confirmation\_email\_send When the user now hits reload I want him to be automatically redirect to…

---

## [Cannot get rails rolling](https://www.ruby-forum.com/t/cannot-get-rails-rolling/146395)

<div class="topic-metadata">

**Author:** [@llinklater](https://www.ruby-forum.com/u/llinklater)\
**Replies:** 12\
**Last updated:** [August 25, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/cannot-get-rails-rolling/146395 "2008-08-25T22:54:44Z")

</div>

I have been trying to get the 30 minutes tutorial “Rolling with Ruby on Rails revisited” going for a week now with zero luck. (Actually, I am trying this at work as I am the one tasked to see how usable it all is, so…

---

## [Memcached connection failures \[2.1\]](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574)

<div class="topic-metadata">

**Author:** [@Aramis\_K](https://www.ruby-forum.com/u/Aramis_K)\
**Replies:** 2\
**Last updated:** [August 25, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/memcached-connection-failures-2-1/144574 "2008-08-25T22:00:11Z")

</div>

A production app is generally working well with memcached and Rails 2.1, but we’re seeing this error about 10 times a day: No connection to server \[RAILS\_ROOT\]/vendor/rails/activesupport/lib/active\_support/vendor/ m…

---

## [To catch exception from update\_attribute](https://www.ruby-forum.com/t/to-catch-exception-from-update-attribute/146766)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [August 25, 2008, 8:38pm UTC](https://www.ruby-forum.com/t/to-catch-exception-from-update-attribute/146766 "2008-08-25T20:38:50Z")

</div>

Hi begin ActiveRecord::Base.transaction do pb\_status\_history = ProblemStatusHistory.new pb\_status\_history.problem\_id = @problem.id pb\_status\_history.problem\_status\_id = @problem.problem\_status\_id pb\_status\_history…

---

## [Passing instance through AJAX](https://www.ruby-forum.com/t/passing-instance-through-ajax/146798)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 6\
**Last updated:** [August 25, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/passing-instance-through-ajax/146798 "2008-08-25T19:44:46Z")

</div>

Hi, I need to pass variable in the search form to an AJAX partial but it doesn’t work. please tell me how to pass @groceries to the partial. {{FORM}} \<% form\_remote\_tag :url =\> {:action =\> :search}, :method =\> “get”…

---

## [InstantRails](https://www.ruby-forum.com/t/instantrails/146757)

<div class="topic-metadata">

**Author:** [@redster](https://www.ruby-forum.com/u/redster)\
**Replies:** 4\
**Last updated:** [August 25, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/instantrails/146757 "2008-08-25T19:28:56Z")

</div>

Hi I have installed InstantRails in my localhost. i can able to run ruby on rails apllication. but i saw a folder for php and phpmyadmin in InstantRails. i have doubt about php. we can possible to run php and phpmy…

---

## [Phusion Passenger thoughts?](https://www.ruby-forum.com/t/phusion-passenger-thoughts/146677)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 8\
**Last updated:** [August 25, 2008, 7:21pm UTC](https://www.ruby-forum.com/t/phusion-passenger-thoughts/146677 "2008-08-25T19:21:18Z")

</div>

I know there was another discussion about this, but it was a bit old and now that it has been out for a little while…what do people think about Passenger? I’ve been using it a little bit at work in a very non-intensiv…

---

## [Giving up on Rails: programmer un-happiness](https://www.ruby-forum.com/t/giving-up-on-rails-programmer-un-happiness/144829)

<div class="topic-metadata">

**Author:** [@schruthensis](https://www.ruby-forum.com/u/schruthensis)\
**Replies:** 36\
**Last updated:** [August 25, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/giving-up-on-rails-programmer-un-happiness/144829 "2008-08-25T18:48:55Z")

</div>

I’ve just spend the better part of this 60 hour week (yes, at my job: risking my otherwise productive neck) just trying to get rails up and running in a way that is as “fast” and “easy” as all the hype suggests. So h…

---

## [ActionController::MethodNotAllowed](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed/146796)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [August 25, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed/146796 "2008-08-25T16:01:18Z")

</div>

Hello All, I m trying to use a form on my website to send an email. So my form goes like this : \<% form\_tag("/emailfeeder/create", :method =\> :post) do %\> To: \<%= text\_field\_tag “recepient”, @recepient.to\_s, …

---

## [Accessing a variable in the view](https://www.ruby-forum.com/t/accessing-a-variable-in-the-view/146792)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 1\
**Last updated:** [August 25, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/accessing-a-variable-in-the-view/146792 "2008-08-25T15:45:27Z")

</div>

Now I’ve decided I want to access factor in my view… but it’s blank when i try Factor: \<%= @course.factor %\> How do I do it? here’s my model… class Course \< ActiveRecord::Base has\_one :enquiry attr\_accessor :dura…

---

## [Load data from database in a combo box](https://www.ruby-forum.com/t/load-data-from-database-in-a-combo-box/146563)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 12\
**Last updated:** [August 25, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/load-data-from-database-in-a-combo-box/146563 "2008-08-25T15:29:39Z")

</div>

Hi I’m a newbie in rails world. Currently I’m using Ruby on Rails in Aptana studio for developing web application as a part of my course. I tried and search with all my patience for a solution to have a combo box in a…

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

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