# Rails

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

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

---

## [Simple select .. which helper?](https://www.ruby-forum.com/t/simple-select-which-helper/107022)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/simple-select-which-helper/107022 "2007-06-16T19:05:56Z")

</div>

I do need a simple select, but i don’t know which helper to use I need a dropdown selector with simple values from anArray = \[ “0” , “2”, “5”, “10”, “15”, “25”\] I would like to preselect according to an index 0, 1, …

---

## [Saving Without Validation](https://www.ruby-forum.com/t/saving-without-validation/107020)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/saving-without-validation/107020 "2007-06-16T18:29:07Z")

</div>

How do you save a model without validation? In my migration I want to make a change to every row in a model but validation rules have evolved over time and some of the older records are not validating… argh… Any sug…

---

## [Overriding Camelization of ActionController Name](https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/overriding-camelization-of-actioncontroller-name/107019 "2007-06-16T18:18:06Z")

</div>

Hi all, I have a controller that I wanted named KETaskController, defined in the file ke\_task\_controller.rb, but Rails wants to reference the controller class as KeTaskController. Specifically, my controller class i…

---

## [File downloads and REST](https://www.ruby-forum.com/t/file-downloads-and-rest/106973)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 5\
**Last updated:** [June 16, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/file-downloads-and-rest/106973 "2007-06-16T18:13:04Z")

</div>

Hi, How would an action that sends a file (build dynamically using data from model) to user work in REST application? Is it ok if I add “download” action to my controller and routes.rb (:collection =\> {:download =\> :…

---

## [Adding things to params in a form](https://www.ruby-forum.com/t/adding-things-to-params-in-a-form/106989)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 3\
**Last updated:** [June 16, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/adding-things-to-params-in-a-form/106989 "2007-06-16T17:21:54Z")

</div>

I have a form and I am trying to get it to add another parameter without entering it in a field. I have the form partial \_form.rhtml \<%= error\_messages\_for ‘response’ %\> Title \<%= text\_field 'response', 'title' %\> …

---

## [Best editor/environment for Windows?](https://www.ruby-forum.com/t/best-editor-environment-for-windows/106896)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 8\
**Last updated:** [June 16, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/best-editor-environment-for-windows/106896 "2007-06-16T17:07:50Z")

</div>

What’s the best editor or environment for Rails development in Windows Vista? I’ve been doing Rails development personally on my Mac at home. But now that we’re going to start using it at work I need to find a good …

---

## [Disable form/textfield history](https://www.ruby-forum.com/t/disable-form-textfield-history/107011)

<div class="topic-metadata">

**Author:** [@Cow](https://www.ruby-forum.com/u/Cow)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/disable-form-textfield-history/107011 "2007-06-16T17:03:50Z")

</div>

Hi all, Maybe this isn’t even a rails related question but hopefully someone has an answer to my “simple” problem. Clicking a text field in a form displays the previously submitted input. I know you can disable this …

---

## [Test::Unit and rspec combined / rspec resources?](https://www.ruby-forum.com/t/test-unit-and-rspec-combined-rspec-resources/106978)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/test-unit-and-rspec-combined-rspec-resources/106978 "2007-06-16T17:00:49Z")

</div>

Is combining rspec and Test::Unit possible and/or recommended? I’m about halfway through this project but I’m interested in trying out rspec. If thats the case, does anyone have any recommendations for good rspec t…

---

## [Request.env availability](https://www.ruby-forum.com/t/request-env-availability/107008)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/request-env-availability/107008 "2007-06-16T15:13:37Z")

</div>

Hello everybody, My application will run on different machines with different host names. In most of my emails I have to include a link with the name of the server the email is coming from. So, I decided to use the r…

---

## [Associations](https://www.ruby-forum.com/t/associations/106950)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 6\
**Last updated:** [June 16, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/associations/106950 "2007-06-16T15:04:35Z")

</div>

Hello everybody, I’ve got the following setup: table request { id, site\_id, department\_id } table site { id, site\_name } table users { site\_id, user\_id, user\_department\_id } So, my models are as follows: …

---

## [Using/switching between multiple databases](https://www.ruby-forum.com/t/using-switching-between-multiple-databases/107006)

<div class="topic-metadata">

**Author:** [@katerman](https://www.ruby-forum.com/u/katerman)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/using-switching-between-multiple-databases/107006 "2007-06-16T15:00:35Z")

</div>

hey, i am new to ruby on rails but have been doing fine so far. i am porting/rewriting a webapp for use primarily on mobile devices, particularly blackberries. anyway, the situation is that a user logs in to a main d…

---

## [Dynamic layout](https://www.ruby-forum.com/t/dynamic-layout/106968)

<div class="topic-metadata">

**Author:** [@jakedgr8](https://www.ruby-forum.com/u/jakedgr8)\
**Replies:** 4\
**Last updated:** [June 16, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/dynamic-layout/106968 "2007-06-16T14:11:31Z")

</div>

Well I’m new to Ruby on Rails and actually new to implementing xhtml layout into my apps. So right now I’m making each page a layout, but the layout is the same xhtml for every single page. The problem is I have a men…

---

## [Working Background Task Progress Bars](https://www.ruby-forum.com/t/working-background-task-progress-bars/107002)

<div class="topic-metadata">

**Author:** [@mikel](https://www.ruby-forum.com/u/mikel)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 11:07am UTC](https://www.ruby-forum.com/t/working-background-task-progress-bars/107002 "2007-06-16T11:07:14Z")

</div>

I posted this on the active scaffold group. But it might be of interest to a wider community. I just got the monitoring of many background tasks with independent progress bars working with ActiveScaffold. Looks good…

---

## [Render HTML in RHTML](https://www.ruby-forum.com/t/render-html-in-rhtml/107000)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 9:47am UTC](https://www.ruby-forum.com/t/render-html-in-rhtml/107000 "2007-06-16T09:47:05Z")

</div>

Hai guys I have one question to all the experts in Rails That question is ,I have one HTML file with some css attached in my rails root. I need to display that HTML file in our RHTML file can you tell me the answer? …

---

## [Model based on remote Web Services instead of DB](https://www.ruby-forum.com/t/model-based-on-remote-web-services-instead-of-db/106994)

<div class="topic-metadata">

**Author:** [@murtada](https://www.ruby-forum.com/u/murtada)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 9:44am UTC](https://www.ruby-forum.com/t/model-based-on-remote-web-services-instead-of-db/106994 "2007-06-16T09:44:04Z")

</div>

Hi, I am accessing a web service that sends me a list of events. My local ROR application is an events website. What is the best way to integrate these? If I were to have a local DB, I would just create a model, cont…

---

## [BackgrounDRB and Sqlite3 / Autotest / Memory\_test\_fix Issues](https://www.ruby-forum.com/t/backgroundrb-and-sqlite3-autotest-memory-test-fix-issues/106998)

<div class="topic-metadata">

**Author:** [@mikel](https://www.ruby-forum.com/u/mikel)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 9:02am UTC](https://www.ruby-forum.com/t/backgroundrb-and-sqlite3-autotest-memory-test-fix-issues/106998 "2007-06-16T09:02:01Z")

</div>

Hello all. I am using BackgrounDRB with “great happiness and joy”, however, I am running into one problem in that when I am running my tests with autotest using Sqlite3 3.3.17 I am getting “ActiveRecord::StatementInv…

---

## [Add anchors on remote links?](https://www.ruby-forum.com/t/add-anchors-on-remote-links/106990)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 4:46am UTC](https://www.ruby-forum.com/t/add-anchors-on-remote-links/106990 "2007-06-16T04:46:17Z")

</div>

Is it possible to add an anchor (#whatever) to the end of the url when a remote link is clicked? If I do \<%= link\_to\_remote “Link”, :url =\> {:controller =\> “silly\_controller”} %\>, it does nothing to the url. I would l…

---

## [Help with modeling a problem (ActiveRecord)](https://www.ruby-forum.com/t/help-with-modeling-a-problem-activerecord/106958)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 2\
**Last updated:** [June 16, 2007, 4:21am UTC](https://www.ruby-forum.com/t/help-with-modeling-a-problem-activerecord/106958 "2007-06-16T04:21:44Z")

</div>

Hi! I need help with modeling my models :slight\_smile: This is the situation: I need to manage record on product failures. I have three distinct features on the products: ProductName: id, description ProductF…

---

## [Mongrel working, mongrel\_cluster not](https://www.ruby-forum.com/t/mongrel-working-mongrel-cluster-not/106988)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 4:17am UTC](https://www.ruby-forum.com/t/mongrel-working-mongrel-cluster-not/106988 "2007-06-16T04:17:42Z")

</div>

I just created a test rails app on FC6, and am having very weird issues with mongrel cluster. Here’s what I’m doing: rails test sudo chown -R mongrel:mongrel test cd test sudo mongrel\_rails cluster::configure -e …

---

## [Can Yahoo host a RoR app?](https://www.ruby-forum.com/t/can-yahoo-host-a-ror-app/106963)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 2:05am UTC](https://www.ruby-forum.com/t/can-yahoo-host-a-ror-app/106963 "2007-06-16T02:05:32Z")

</div>

I have a clients site hosted by Yahoo Small Business and wondering if there’s some way to get my local Rails app working there. Yahoo doesn’t explicitly say they have RoR capability. I think I remember there’s a way t…

---

## [HABTM and collection select problem](https://www.ruby-forum.com/t/habtm-and-collection-select-problem/106807)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [June 16, 2007, 12:36am UTC](https://www.ruby-forum.com/t/habtm-and-collection-select-problem/106807 "2007-06-16T00:36:22Z")

</div>

I’ve been beating my head on this seemingly simple problem all evening and would appreciate any pointers. I have an Admin model and an Assistant model, both subclasses of User, and with a HABTM relationship to each ot…

---

## [Solaris 10 x64 Compiling issues with Sun Studio 12](https://www.ruby-forum.com/t/solaris-10-x64-compiling-issues-with-sun-studio-12/106976)

<div class="topic-metadata">

**Author:** [@william](https://www.ruby-forum.com/u/william)\
**Replies:** 0\
**Last updated:** [June 16, 2007, 12:02am UTC](https://www.ruby-forum.com/t/solaris-10-x64-compiling-issues-with-sun-studio-12/106976 "2007-06-16T00:02:17Z")

</div>

Hello, I’m having problems compiling Ruby 1.8.5 on a 64-bit Intel machine running Solaris 10 U3. I’m using Sun Studio 12 for building an optimized package for our company. We’re not interested in coolstack (from Sun …

---

## [Routes.rb](https://www.ruby-forum.com/t/routes-rb/106965)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 3\
**Last updated:** [June 15, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/routes-rb/106965 "2007-06-15T22:58:02Z")

</div>

I try so set my routes.rb file to start with the index action in my home controller. ActionController::Routing::Routes.draw do |map| with an extension map.connect ‘’, :controller =\> ‘home’ end But it doesn,t work w…

---

## [Developer/Partner wanted (paid position)](https://www.ruby-forum.com/t/developer-partner-wanted-paid-position/87163)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/developer-partner-wanted-paid-position/87163 "2007-06-15T22:49:11Z")

</div>

(Please forgive my posting this so generally in this forum, but I have not found any better places to post this in the Rails-centric world. Would welcome suggestions). Subject: Developer/Partner wanted (paid positio…

---

## [ActiveRecord::StatementInvalid error](https://www.ruby-forum.com/t/activerecord-statementinvalid-error/106515)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 3\
**Last updated:** [June 15, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-error/106515 "2007-06-15T22:41:55Z")

</div>

Hi, I have an application that is running fine on two different machines, but when I ported the code to a third machine, it doesn’t seem to work. More specifically, for users with a significant amount of info, it se…

---

## [Request.env not accessible in controller](https://www.ruby-forum.com/t/request-env-not-accessible-in-controller/106967)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/request-env-not-accessible-in-controller/106967 "2007-06-15T21:41:02Z")

</div>

Hi, I have the simplest rails app: my only controller says: class MaxmindController \< ApplicationController @ip = request end my index.rhtml in the views/maxmind folder says: \<%= debug @ip %\> the result of trying…

---

## [Login authentication - which plugin?](https://www.ruby-forum.com/t/login-authentication-which-plugin/106866)

<div class="topic-metadata">

**Author:** [@Simon\_Holroyd](https://www.ruby-forum.com/u/Simon_Holroyd)\
**Replies:** 5\
**Last updated:** [June 15, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/login-authentication-which-plugin/106866 "2007-06-15T21:24:59Z")

</div>

Hello, This is my first post to the forum as I’m a new RoR user. I’m trying to decide which login/authentication plugin to use. I suppose defining what I mean by best is a good idea, so I want the plugin that is most…

---

## [Routes.rb](https://www.ruby-forum.com/t/routes-rb/106966)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [June 15, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/routes-rb/106966 "2007-06-15T21:01:54Z")

</div>

I try so set my routes.rb file to start with the index action in my home controller. ActionController::Routing::Routes.draw do |map| map.connect ‘’, :controller =\> ‘home’ end But it doesn,t work when i start my app …

---

## [Tool used to create screencasts](https://www.ruby-forum.com/t/tool-used-to-create-screencasts/106953)

<div class="topic-metadata">

**Author:** [@aturo](https://www.ruby-forum.com/u/aturo)\
**Replies:** 3\
**Last updated:** [June 15, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/tool-used-to-create-screencasts/106953 "2007-06-15T20:21:50Z")

</div>

I was just wondering which particular tool you used to create your Ruby on Rails screencasts

---

## [Syntax for the two flavors of field helpers](https://www.ruby-forum.com/t/syntax-for-the-two-flavors-of-field-helpers/106961)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [June 15, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/syntax-for-the-two-flavors-of-field-helpers/106961 "2007-06-15T20:17:49Z")

</div>

I’m using the following in a form\_for, in order to display and edit two activity\_details in the same form as an activity. \<% fields\_for "activity\_detail\[\]", @delivery do |detail| %\> ... \<%= detail…

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

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