# Rails

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

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

---

## [Mailing list](https://www.ruby-forum.com/t/mailing-list/165128)

<div class="topic-metadata">

**Author:** [@martina](https://www.ruby-forum.com/u/martina)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 11:41am UTC](https://www.ruby-forum.com/t/mailing-list/165128 "2009-04-09T11:41:31Z")

</div>

hello all, how to implement mailing list concept for rails application? what are the requirements to do mailing list? If possible suggest some links? Im using rails 2.0.2 version.

---

## [HTTP Digest Authentication not working](https://www.ruby-forum.com/t/http-digest-authentication-not-working/165124)

<div class="topic-metadata">

**Author:** [@javinto](https://www.ruby-forum.com/u/javinto)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 11:05am UTC](https://www.ruby-forum.com/t/http-digest-authentication-not-working/165124 "2009-04-09T11:05:44Z")

</div>

Hi to all, I’ve created a new project with Rails 2.3.2 and literally copied the HTTP Digest Authententication example from the documentation into a SecretsController: class SecretsController \< ApplicationController U…

---

## [Getting the top results only by group in a .find statement](https://www.ruby-forum.com/t/getting-the-top-results-only-by-group-in-a-find-statement/165110)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 3\
**Last updated:** [April 9, 2009, 10:49am UTC](https://www.ruby-forum.com/t/getting-the-top-results-only-by-group-in-a-find-statement/165110 "2009-04-09T10:49:49Z")

</div>

This is my table model name is bids id | bid | keyword 1 | 2 | orange 2 | 3 | orange 3 | 1 | red 4 | 3 | blue 5 | 6 | red what i want is the get these the top bidder of each unique keyword in …

---

## [Calender Control](https://www.ruby-forum.com/t/calender-control/165122)

<div class="topic-metadata">

**Author:** [@vaibhav\_darji](https://www.ruby-forum.com/u/vaibhav_darji)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 10:45am UTC](https://www.ruby-forum.com/t/calender-control/165122 "2009-04-09T10:45:42Z")

</div>

I want to use the calender control in my application like what i added in the attachment file for, from date and to date it should display records but i unable to attach it in ruby on rails application well its workin…

---

## [Query Help](https://www.ruby-forum.com/t/query-help/165121)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 10:42am UTC](https://www.ruby-forum.com/t/query-help/165121 "2009-04-09T10:42:10Z")

</div>

In my App …i have Userinfo and FriendsInfo table.Each user has many friends.those friends are user of the app. for example i have 3 users in my userinfo table.namely =\>John =\>Victor =\>Masvi the users can add other …

---

## [How to save one value into the attributes of all rows in a model](https://www.ruby-forum.com/t/how-to-save-one-value-into-the-attributes-of-all-rows-in-a-model/165114)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 10:11am UTC](https://www.ruby-forum.com/t/how-to-save-one-value-into-the-attributes-of-all-rows-in-a-model/165114 "2009-04-09T10:11:41Z")

</div>

When i use Model.all and i want to save this one value into all the rows of the model how do i do it without using a “for” loop.

---

## [Facing problem while running db migrate](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065)

<div class="topic-metadata">

**Author:** [@darshana](https://www.ruby-forum.com/u/darshana)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 9:22am UTC](https://www.ruby-forum.com/t/facing-problem-while-running-db-migrate/165065 "2009-04-09T09:22:24Z")

</div>

I have ruby 1.8.6 with rubygems support and rails for windows. when i am running command rake db:migrate from command promt, i am getting error: C:\\ruby\\bin\\ruby.exe: No such file or directory – C:/ruby/bin/rake (Loa…

---

## [Installing rails in a subfolder](https://www.ruby-forum.com/t/installing-rails-in-a-subfolder/165090)

<div class="topic-metadata">

**Author:** [@amichelin](https://www.ruby-forum.com/u/amichelin)\
**Replies:** 2\
**Last updated:** [April 9, 2009, 8:58am UTC](https://www.ruby-forum.com/t/installing-rails-in-a-subfolder/165090 "2009-04-09T08:58:22Z")

</div>

Hi: I am new to rails, and i want to ask if i can install rials in a web server subfolder : www.mydomomain.com/ root domian /project1 /project2 /project3 each project is an app rails? Can this be made ? Thanks i…

---

## [Default value in select\_tag](https://www.ruby-forum.com/t/default-value-in-select-tag/165107)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 3\
**Last updated:** [April 9, 2009, 8:56am UTC](https://www.ruby-forum.com/t/default-value-in-select-tag/165107 "2009-04-09T08:56:35Z")

</div>

Dear all I have the following select\_tag in view \<%= select\_tag(:event\_status, options\_for\_select(\[""\]) + options\_from\_collection\_for\_select(@event\_status\_list, :value, :detail)) %\> which give the following drop dow…

---

## [Changing database structure without wiping](https://www.ruby-forum.com/t/changing-database-structure-without-wiping/165084)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 8:42am UTC](https://www.ruby-forum.com/t/changing-database-structure-without-wiping/165084 "2009-04-09T08:42:31Z")

</div>

I’ve decided to make a major change in my application which affects more than 1 model. I don’t want to wipe all the data though. Here’s the scenario I’m in: I have a Book model with a Chapter model. Book has many Chap…

---

## [Compromising development mode and production mode](https://www.ruby-forum.com/t/compromising-development-mode-and-production-mode/165111)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 8:38am UTC](https://www.ruby-forum.com/t/compromising-development-mode-and-production-mode/165111 "2009-04-09T08:38:18Z")

</div>

Hi, I have a very stupid question. I run my rails application on phusion passenger. As you know, in production mode I need to ‘touch tmp/restart.txt’ when I’ve changed some files. In development mode, it’s not neede…

---

## [Installing ruby-postgres gem](https://www.ruby-forum.com/t/installing-ruby-postgres-gem/159697)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [April 9, 2009, 7:56am UTC](https://www.ruby-forum.com/t/installing-ruby-postgres-gem/159697 "2009-04-09T07:56:50Z")

</div>

I’m starting to look at postgres because I’m going to need it for its GIS extensions. But I run in into a problem when trying to install the ruby-postgres gem. I get this error Building native extensions. This could …

---

## [Create\_table with unique combo](https://www.ruby-forum.com/t/create-table-with-unique-combo/165109)

<div class="topic-metadata">

**Author:** [@slava](https://www.ruby-forum.com/u/slava)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 7:16am UTC](https://www.ruby-forum.com/t/create-table-with-unique-combo/165109 "2009-04-09T07:16:25Z")

</div>

I need to create a table replacing default integer id with a string id and making a combo of (id and version) unique primary key. Here is what I’ve got so far. class CreateCatalogs \< ActiveRecord::Migration def self.…

---

## [Make a \<tr\>clickable](https://www.ruby-forum.com/t/make-a-tr-clickable/164414)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 3\
**Last updated:** [April 9, 2009, 6:06am UTC](https://www.ruby-forum.com/t/make-a-tr-clickable/164414 "2009-04-09T06:06:23Z")

</div>

I would like to make an entire table row clickable so the user will be directed to another url. If i was using hand written javascript i would just add an onclick to the , but i want to use rails routes and to be abl…

---

## [Dynamic select menu](https://www.ruby-forum.com/t/dynamic-select-menu/164345)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 7\
**Last updated:** [April 9, 2009, 5:42am UTC](https://www.ruby-forum.com/t/dynamic-select-menu/164345 "2009-04-09T05:42:10Z")

</div>

Hi there I have seen railscasts episode 88 about dynamic select menus and I implemented it. However, it has some bugs, I managed to tackle some. But I saw a better way to do that using related select forms http://ag…

---

## [How to assert a specific layout](https://www.ruby-forum.com/t/how-to-assert-a-specific-layout/164923)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 5\
**Last updated:** [April 9, 2009, 5:41am UTC](https://www.ruby-forum.com/t/how-to-assert-a-specific-layout/164923 "2009-04-09T05:41:00Z")

</div>

Hi. Can any test-guru help me on this one. How do I (in my functional test) that a specific controller/action uses a certain layout? I would like to see something similar to assert\_template (for asserting a specific…

---

## [.bash\_login help!](https://www.ruby-forum.com/t/bash-login-help/103938)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 9, 2009, 5:31am UTC](https://www.ruby-forum.com/t/bash-login-help/103938 "2009-04-09T05:31:58Z")

</div>

My setup worked perfectly! I had installed all sorts of things I needed for RoR with MacPorts and a lot of gems and then I wanted to be smart and add mySQL to the path in .bash\_login so I could access it in the termin…

---

## [Session / cookie confusion](https://www.ruby-forum.com/t/session-cookie-confusion/165091)

<div class="topic-metadata">

**Author:** [@msp](https://www.ruby-forum.com/u/msp)\
**Replies:** 1\
**Last updated:** [April 9, 2009, 12:47am UTC](https://www.ruby-forum.com/t/session-cookie-confusion/165091 "2009-04-09T00:47:17Z")

</div>

Hi list I’m in need of a little clarification. I thought that value set in the ApplicationController would result in a session cookie being created that is unique for that user’s session i.e. until the browser is clo…

---

## [Ruby on rails senior developer full time position](https://www.ruby-forum.com/t/ruby-on-rails-senior-developer-full-time-position/165094)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 0\
**Last updated:** [April 9, 2009, 12:44am UTC](https://www.ruby-forum.com/t/ruby-on-rails-senior-developer-full-time-position/165094 "2009-04-09T00:44:21Z")

</div>

My friends are looking to fill a position (ruby on rails senior developer full time position) let me know if you are interested and I will forward them your contact info. They are located in New York city so if you l…

---

## [Multi Model Forms and Validations](https://www.ruby-forum.com/t/multi-model-forms-and-validations/164913)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 4\
**Last updated:** [April 9, 2009, 12:36am UTC](https://www.ruby-forum.com/t/multi-model-forms-and-validations/164913 "2009-04-09T00:36:44Z")

</div>

Jim N.'s walkthru (http://jimneath.org/2008/09/06/multi-model-forms- validations-in-ruby-on-rails/) talks about validating multiple objects before saving. His example is below: if @person.valid? & @cat.valid? & @dog.…

---

## [Business (document management) application in rails](https://www.ruby-forum.com/t/business-document-management-application-in-rails/165087)

<div class="topic-metadata">

**Author:** [@marcos](https://www.ruby-forum.com/u/marcos)\
**Replies:** 3\
**Last updated:** [April 9, 2009, 12:16am UTC](https://www.ruby-forum.com/t/business-document-management-application-in-rails/165087 "2009-04-09T00:16:51Z")

</div>

Hi, I’m a student with no real experience in developing serious enterprise apps… still now I have the possibility to try… Here’s my question: I’m building a rails app that connects to a database, and is essentially …

---

## [Authenticity problem with jrails ajax](https://www.ruby-forum.com/t/authenticity-problem-with-jrails-ajax/165086)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/authenticity-problem-with-jrails-ajax/165086 "2009-04-08T23:52:49Z")

</div>

I’m using jrails and I found when I use the authenticity\_token in certain javascript calls, that the url works differently in that the paramters in the :with clause get dropped if they are in a json type syntax. Belo…

---

## [Xspf file format for images](https://www.ruby-forum.com/t/xspf-file-format-for-images/165082)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/xspf-file-format-for-images/165082 "2009-04-08T23:38:44Z")

</div>

hi there i found this plugin which is very great for image slideshow after following it I managed to run the plugin to display one image but when i display a group of images, i could not play them i believe the form…

---

## [Reading from a separate database](https://www.ruby-forum.com/t/reading-from-a-separate-database/165079)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 3\
**Last updated:** [April 8, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/reading-from-a-separate-database/165079 "2009-04-08T23:20:34Z")

</div>

Hi everyone, I’m working on an app that needs to READ data from a separate database which is constantly being updated by a cron job. If anyone here is familiar with it, it’s a database populated by SNMP data from an o…

---

## [Method to remove html escape characters from strings](https://www.ruby-forum.com/t/method-to-remove-html-escape-characters-from-strings/165073)

<div class="topic-metadata">

**Author:** [@karl](https://www.ruby-forum.com/u/karl)\
**Replies:** 3\
**Last updated:** [April 8, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/method-to-remove-html-escape-characters-from-strings/165073 "2009-04-08T22:58:52Z")

</div>

Is there a convenient way of removing html escape characters from Strings? I could do using reg exp as in: =\> “hello & goodbye” “hello & goodbye”.gsub(/&/, “&”) =\> “hello & goodbye” but I figured there might be …

---

## [XML + Rails](https://www.ruby-forum.com/t/xml-rails/165078)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/xml-rails/165078 "2009-04-08T22:33:52Z")

</div>

What is the best/simples way to: Read XML-file =\> Edit it on HTML-form =\> save back to XML?

---

## [Timezones in Rails 2.3.2](https://www.ruby-forum.com/t/timezones-in-rails-2-3-2/164694)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 8, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/timezones-in-rails-2-3-2/164694 "2009-04-08T21:44:26Z")

</div>

I’m trying to do some queries on the database of a Rails 2.3.2 app configured with config.time\_zone = ‘Eastern Time (US & Canada)’. I was under the impression that if I were to query the db for entries that fall with…

---

## [Restful design is a headache?](https://www.ruby-forum.com/t/restful-design-is-a-headache/165023)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 9:08pm UTC](https://www.ruby-forum.com/t/restful-design-is-a-headache/165023 "2009-04-08T21:08:05Z")

</div>

Hi, So i really, really want to do restful rails. I’ve got the Peepcode screencast, read the tutorials, etc. BUT - I still don’t get it. The problem is, tutorials only cover the basic stuff, and none of the applicat…

---

## [ADVANCED Rails Mailing List?](https://www.ruby-forum.com/t/advanced-rails-mailing-list/165072)

<div class="topic-metadata">

**Author:** [@kelhart](https://www.ruby-forum.com/u/kelhart)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/advanced-rails-mailing-list/165072 "2009-04-08T20:53:24Z")

</div>

Is there an advanced rails mailing list? I’ve noticed that much of the issues on this list are for beginner to intermediate issues, and posters asking more advanced issues are rarely answered. I still find this list t…

---

## [Clearing string attribute](https://www.ruby-forum.com/t/clearing-string-attribute/165071)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/clearing-string-attribute/165071 "2009-04-08T20:38:37Z")

</div>

I am missing something very basic. I have a string attribute which I need to clear before saving the record. model.attribute = nil is not working. It works fine for another attribute which is a number The string attr…

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

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