# Rails

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

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

---

## [Javascript\_inlcude\_tag :default error](https://www.ruby-forum.com/t/javascript-inlcude-tag-default-error/88922)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/javascript-inlcude-tag-default-error/88922 "2007-03-15T17:00:49Z")

</div>

I’m running rails 1.2.2 with ruby 1.8.5. I have a layout with: \<%= javascript\_include\_tag :default %\> which gives this error: can’t dup Symbol However, this works: \<%= javascript\_include\_tag ‘prototype’ %\> Any ide…

---

## [Rails on Win2k/IIS 5.0](https://www.ruby-forum.com/t/rails-on-win2k-iis-5-0/88919)

<div class="topic-metadata">

**Author:** [@rupreckt](https://www.ruby-forum.com/u/rupreckt)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/rails-on-win2k-iis-5-0/88919 "2007-03-15T16:38:44Z")

</div>

I’ve got Rails running pretty well, but with a catch that is kind of specific to our environment, maybe someone can help. Basically we have a Win2k/IIS5.0 server (this is the c: drive) that only has the site configura…

---

## [500 when using url\_for helper in controllers initialize](https://www.ruby-forum.com/t/500-when-using-url-for-helper-in-controllers-initialize/88827)

<div class="topic-metadata">

**Author:** [@maunzinha](https://www.ruby-forum.com/u/maunzinha)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/500-when-using-url-for-helper-in-controllers-initialize/88827 "2007-03-15T16:28:42Z")

</div>

It seems like you can’t use the url\_for helper in the initialize method of a controller: class TestController \< ApplicationController def initialize @somevar = url\_for ( :action =\> ‘index’ ) #\<=== This errors out fo…

---

## [Installing Rails on a vanilla hosting service](https://www.ruby-forum.com/t/installing-rails-on-a-vanilla-hosting-service/88849)

<div class="topic-metadata">

**Author:** [@Owen\_Densmore](https://www.ruby-forum.com/u/Owen_Densmore)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/installing-rails-on-a-vanilla-hosting-service/88849 "2007-03-15T16:26:42Z")

</div>

I’m using HostGo as my hosting service. They support a reasonable number of developer facilities … python, java, php, mysql, and to some degree servlets/jsp. Can I somehow install Rails and Ruby without admin permiss…

---

## [Form Validation without a Model (Showing the users input whe](https://www.ruby-forum.com/t/form-validation-without-a-model-showing-the-users-input-whe/88916)

<div class="topic-metadata">

**Author:** [@danhobbs](https://www.ruby-forum.com/u/danhobbs)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/form-validation-without-a-model-showing-the-users-input-whe/88916 "2007-03-15T16:23:41Z")

</div>

Hi all, I’m writing a Advanced Search form which is not attached to a model and I’m wondering if there’s an easy way to re-show the the form to the user with their inputted values shown back to them if validation fai…

---

## [Connection Refused](https://www.ruby-forum.com/t/connection-refused/88851)

<div class="topic-metadata">

**Author:** [@learc](https://www.ruby-forum.com/u/learc)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/connection-refused/88851 "2007-03-15T16:22:41Z")

</div>

Mailer works fine when I’m running my app locally. But when I deploy it I keep getting this error in the log. Errno::ECONNREFUSED (Connection refused - connect(2)): Anyone have any idea what this could be? Thank in a…

---

## [Redefine standard classes](https://www.ruby-forum.com/t/redefine-standard-classes/88868)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/redefine-standard-classes/88868 "2007-03-15T16:14:41Z")

</div>

Hi, I need my string in all application (in app directory) has this method: “Ruby Is Great”.downscore =\> “ruby\_is\_great” So I redefine String class: class String def downscore self.downcase.gsub(/\\s/,’\_’) end en…

---

## [File\_field doesnt work inside form\_remote\_for](https://www.ruby-forum.com/t/file-field-doesnt-work-inside-form-remote-for/88792)

<div class="topic-metadata">

**Author:** [@KSRajesh](https://www.ruby-forum.com/u/KSRajesh)\
**Replies:** 9\
**Last updated:** [March 15, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/file-field-doesnt-work-inside-form-remote-for/88792 "2007-03-15T16:14:40Z")

</div>

When I do file\_field within a form\_for things are fine… but within a form\_remote\_for, with nothing else changed, I find that the params does not even have the element document\[uploaded\_file\] even though it is definite…

---

## [Routing conditions only affect recognition, not URL generati](https://www.ruby-forum.com/t/routing-conditions-only-affect-recognition-not-url-generati/88672)

<div class="topic-metadata">

**Author:** [@ewildgoose](https://www.ruby-forum.com/u/ewildgoose)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/routing-conditions-only-affect-recognition-not-url-generati/88672 "2007-03-15T16:07:39Z")

</div>

I am hitting a problem where it seems that URL “:conditions=\>” correctly affect URL recognition, but don’t affect URL generation. Basically I have two very similar websites which differ slightly in how they are laid o…

---

## [What is does this do? (:db)](https://www.ruby-forum.com/t/what-is-does-this-do-db/88850)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/what-is-does-this-do-db/88850 "2007-03-15T15:56:34Z")

</div>

I have this piece of code: Time.now.beginning\_of\_day.to\_s(:db) What exactly does the (:db) do?

---

## [Ferret: optimize does not reove files](https://www.ruby-forum.com/t/ferret-optimize-does-not-reove-files/88912)

<div class="topic-metadata">

**Author:** [@stemey](https://www.ruby-forum.com/u/stemey)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/ferret-optimize-does-not-reove-files/88912 "2007-03-15T15:16:27Z")

</div>

my 0.10.9 version of ferret does not remove any files when optimizing.

---

## [Re: SEC to minutes](https://www.ruby-forum.com/t/re-sec-to-minutes/88910)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/re-sec-to-minutes/88910 "2007-03-15T15:13:26Z")

</div>

Or: Time.at(220).strftime(“%M:%S”) Piet. From: removed\_email\_address@domain.invalid \[mailto:removed\_email\_address@domain.invalid\] On Behalf Of Luke I. Sent: donderdag 15 maart 2007 15:04 To: removed\_email\_address@…

---

## [Queries w/ Joins & Concatenated Fields: find\_by\_sql vs find](https://www.ruby-forum.com/t/queries-w-joins-concatenated-fields-find-by-sql-vs-find/88844)

<div class="topic-metadata">

**Author:** [@Brian\_L](https://www.ruby-forum.com/u/Brian_L)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/queries-w-joins-concatenated-fields-find-by-sql-vs-find/88844 "2007-03-15T15:07:21Z")

</div>

Hello, I have the following query I want to use to create a html list in one of my forms: SELECT contact.id, concat(contact.lname, ", ", contact.fname) AS name FROM contacts contact INNER JOIN lu\_contact\_categ…

---

## [Unicode issues](https://www.ruby-forum.com/t/unicode-issues/88904)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/unicode-issues/88904 "2007-03-15T15:01:20Z")

</div>

Hi \*, I keep having a PGERROR PGError: ERROR: invalid byte sequence for encoding “UTF8”: 0xa9 (ActiveRecord::StatementInvalid) My db (postgres) is UTF-8, and I set encoding:unicode in database.yml. Someone else had …

---

## [Unable to configure apache 1.3.29 for ruby](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711)

<div class="topic-metadata">

**Author:** [@janakiraman](https://www.ruby-forum.com/u/janakiraman)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/unable-to-configure-apache-1-3-29-for-ruby/102711 "2007-03-15T14:46:18Z")

</div>

Hi, I downloaded Ruby(Version:1.8.2-15) from How No-Code Tools Can Automate Your Small Business? | AppMaster and followed the instruction given there. Everything went fine till creating the Rails application. But whe…

---

## [ANNOUNCE: Hobo 0.5 - The web app builder for Rails](https://www.ruby-forum.com/t/announce-hobo-0-5-the-web-app-builder-for-rails/88891)

<div class="topic-metadata">

**Author:** [@tlianza](https://www.ruby-forum.com/u/tlianza)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 11:19am UTC](https://www.ruby-forum.com/t/announce-hobo-0-5-the-web-app-builder-for-rails/88891 "2007-03-15T11:19:53Z")

</div>

Hi All, Hobo, the rapid development framework for Rails, featuring DRYML template language, has reached version 0.5 We’ve just released a new site too, with two new screencasts that take you through some of Hobo’s fe…

---

## [Ruby and Google Summer of Code 2007](https://www.ruby-forum.com/t/ruby-and-google-summer-of-code-2007/88223)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 11:10am UTC](https://www.ruby-forum.com/t/ruby-and-google-summer-of-code-2007/88223 "2007-03-15T11:10:51Z")

</div>

Hi there, Are there any proposals for Ruby or Rails related projects for GSoC 2007? I’m trying to find one of those with no luck… – MK

---

## [Rails Freelancers](https://www.ruby-forum.com/t/rails-freelancers/88888)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 10:55am UTC](https://www.ruby-forum.com/t/rails-freelancers/88888 "2007-03-15T10:55:45Z")

</div>

Hi there, I am looking for Rails freelancers to work on a series of small and one long term project. Location is not an issue but speaking good English is a must, I’m just awful at languages. If you’re looking for wo…

---

## [Casting issue](https://www.ruby-forum.com/t/casting-issue/88793)

<div class="topic-metadata">

**Author:** [@chandra\_shekar\_G](https://www.ruby-forum.com/u/chandra_shekar_G)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 10:34am UTC](https://www.ruby-forum.com/t/casting-issue/88793 "2007-03-15T10:34:57Z")

</div>

Hi we are new to ruby on rails development and would like to have a solution for the below scenario. we have created a complex object which contains two struct type objects one being an array type, when we try to ret…

---

## [Has\_many - master detail page](https://www.ruby-forum.com/t/has-many-master-detail-page/88885)

<div class="topic-metadata">

**Author:** [@reed](https://www.ruby-forum.com/u/reed)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 10:18am UTC](https://www.ruby-forum.com/t/has-many-master-detail-page/88885 "2007-03-15T10:18:41Z")

</div>

I am trying to figure out a correct way to do master detail type pages with Rails. All the online demos I could find that had two tables in one post were habtm and they are not close enough to be useful. Say we wante…

---

## [To\_remote working only in ie?](https://www.ruby-forum.com/t/to-remote-working-only-in-ie/88805)

<div class="topic-metadata">

**Author:** [@sineserz](https://www.ruby-forum.com/u/sineserz)\
**Replies:** 2\
**Last updated:** [March 15, 2007, 9:29am UTC](https://www.ruby-forum.com/t/to-remote-working-only-in-ie/88805 "2007-03-15T09:29:57Z")

</div>

hi i have remote link with spinner. The problem is that only works in ie \<%= link\_to\_remote user.username, :url =\> { :action =\> ‘fetch’, :controller =\> ‘users’, :user =\> user.id}, :update =\> { :success =\> ‘good\_div’, …

---

## [Funky RJS error - Live Search](https://www.ruby-forum.com/t/funky-rjs-error-live-search/88884)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 9:28am UTC](https://www.ruby-forum.com/t/funky-rjs-error-live-search/88884 "2007-03-15T09:28:30Z")

</div>

Everything works like I want it to, except I get this weird error text that is inserted into the page (but not the html). Here is my controller: def search if request.xhr? if params\[:search\_text\].strip.length \> 0 t…

---

## [Apache2 w/ proxy balance and Rails: 404 error](https://www.ruby-forum.com/t/apache2-w-proxy-balance-and-rails-404-error/88876)

<div class="topic-metadata">

**Author:** [@arkade](https://www.ruby-forum.com/u/arkade)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 8:32am UTC](https://www.ruby-forum.com/t/apache2-w-proxy-balance-and-rails-404-error/88876 "2007-03-15T08:32:24Z")

</div>

Hi, I’m using proxy balancer to pass requests to a cluster of mongrels. When I try and access a non-existant page I get back a page with a text header, then the html of the correct 404 page. The browser renders this …

---

## [Time Zone (Tzinfo)](https://www.ruby-forum.com/t/time-zone-tzinfo/88873)

<div class="topic-metadata">

**Author:** [@chandoo](https://www.ruby-forum.com/u/chandoo)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 8:19am UTC](https://www.ruby-forum.com/t/time-zone-tzinfo/88873 "2007-03-15T08:19:31Z")

</div>

hi, I am new to ruby on rails an di want to implement an application much like this. The World Clock — Worldwide . I am not able to get start with. I am a bit confused in how to implement it and much of my se…

---

## [Internal mail system](https://www.ruby-forum.com/t/internal-mail-system/88504)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 7\
**Last updated:** [March 15, 2007, 8:13am UTC](https://www.ruby-forum.com/t/internal-mail-system/88504 "2007-03-15T08:13:28Z")

</div>

Hi I would like to develop a small internal messging system (using user ids) for a web site I have developed so that users can communicate with each other using a messaging system. I envisage main menus of: new, sent…

---

## [RedirectBackError](https://www.ruby-forum.com/t/redirectbackerror/88872)

<div class="topic-metadata">

**Author:** [@prabu82](https://www.ruby-forum.com/u/prabu82)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 6:46am UTC](https://www.ruby-forum.com/t/redirectbackerror/88872 "2007-03-15T06:46:14Z")

</div>

when i am doing functional testing it gives a error, “RedirectBackError: No HTTP\_REFERER was set in the request to this action, so redirect\_to :back could not be call successfully. If this is a test, make sure to spec…

---

## [Imap and character enconding](https://www.ruby-forum.com/t/imap-and-character-enconding/88685)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 6:39am UTC](https://www.ruby-forum.com/t/imap-and-character-enconding/88685 "2007-03-15T06:39:13Z")

</div>

Hi, hi, hi little droogies First of all, sorry for the lame english and the dumb question. After a quick search on google I found iconv, and some other toys, but the point is: I’m making a small webmail app for my co…

---

## [Formatting an expiring time in days, minutes and seconds](https://www.ruby-forum.com/t/formatting-an-expiring-time-in-days-minutes-and-seconds/88871)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [March 15, 2007, 6:16am UTC](https://www.ruby-forum.com/t/formatting-an-expiring-time-in-days-minutes-and-seconds/88871 "2007-03-15T06:16:12Z")

</div>

Hi, I have an expiry date. I want to format it in such a way that it will read “Expires in x days, x hours and x minutes”. Is there an easy way to do this with some of the date/time formatting of ruby? Thanks, Scott …

---

## [Can observe\_field call another helper method?](https://www.ruby-forum.com/t/can-observe-field-call-another-helper-method/88869)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 0\
**Last updated:** [March 15, 2007, 5:28am UTC](https://www.ruby-forum.com/t/can-observe-field-call-another-helper-method/88869 "2007-03-15T05:28:58Z")

</div>

I know it has :url and :funtion option. I usually use it to call a controller action with :url, but I don’t know how to make it just call another helper method. By calling helper method, I think I can make my helper m…

---

## [The road to study Ruby on Rails](https://www.ruby-forum.com/t/the-road-to-study-ruby-on-rails/88694)

<div class="topic-metadata">

**Author:** [@ibn\_tachfine](https://www.ruby-forum.com/u/ibn_tachfine)\
**Replies:** 6\
**Last updated:** [March 15, 2007, 5:09am UTC](https://www.ruby-forum.com/t/the-road-to-study-ruby-on-rails/88694 "2007-03-15T05:09:06Z")

</div>

hi I’m new in Ruby on rails and i want that someone gives me references to learn it quickly. thanks in advance.

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

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