# Rails

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

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

---

## [TK for web application](https://www.ruby-forum.com/t/tk-for-web-application/110930)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 4:43am UTC](https://www.ruby-forum.com/t/tk-for-web-application/110930 "2007-08-01T04:43:26Z")

</div>

hello: Is TK (GUI for ruby)suitable for rails “web” application?It seems that TK is for desktop application. If i want to use TK in “rails web application”,where should i put my files containing TK codes in the rails…

---

## [Check all - check box problem](https://www.ruby-forum.com/t/check-all-check-box-problem/110907)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 4:36am UTC](https://www.ruby-forum.com/t/check-all-check-box-problem/110907 "2007-08-01T04:36:11Z")

</div>

I am not able to create a check box or a button that can check and uncheckall the check boxes that i have created. It can be a check box or button that checks and unchecks all the check boxes. \<% i = 0 %\> \<% @hotels.…

---

## [Best practice with nginx and php; apache or php-fcgi](https://www.ruby-forum.com/t/best-practice-with-nginx-and-php-apache-or-php-fcgi/110921)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 2:54am UTC](https://www.ruby-forum.com/t/best-practice-with-nginx-and-php-apache-or-php-fcgi/110921 "2007-08-01T02:54:02Z")

</div>

On my server 90% of the apps are rails with a few remaining php apps. What is the best method to handle php with nginx? Is it better to use php-fcgi or reverse proxy to apache?

---

## [Inherited layout doesn't work](https://www.ruby-forum.com/t/inherited-layout-doesnt-work/110923)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 2:47am UTC](https://www.ruby-forum.com/t/inherited-layout-doesnt-work/110923 "2007-08-01T02:47:19Z")

</div>

Hi, I have a strange problem. class ApplicationController \< ActionController::Base layout ‘test’ end class UserController \< ApplicationController end UserController’s layout should be ‘test’. However, if app/view…

---

## [Best practice for page\_caching with shared storage](https://www.ruby-forum.com/t/best-practice-for-page-caching-with-shared-storage/110635)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 4\
**Last updated:** [August 1, 2007, 1:07am UTC](https://www.ruby-forum.com/t/best-practice-for-page-caching-with-shared-storage/110635 "2007-08-01T01:07:56Z")

</div>

I’m looking for comments, suggestions, best practices for handling page\_caching with shared storage. This is the scenario: nginx box in front of multiple mongrel\_cluster boxes (Xen instances actually) At the moment …

---

## [Edit not working with named routes](https://www.ruby-forum.com/t/edit-not-working-with-named-routes/110913)

<div class="topic-metadata">

**Author:** [@Gareth\_Townsend](https://www.ruby-forum.com/u/Gareth_Townsend)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 12:37am UTC](https://www.ruby-forum.com/t/edit-not-working-with-named-routes/110913 "2007-08-01T00:37:52Z")

</div>

HELP! I’m a relatively new rails user and I’m stuck. I’m trying to build a relatively simple blog and I decided that I liked the way named routes look in the code. So I added map.resources :posts to my routes.db file…

---

## [Figuring out ActiveRecord associations](https://www.ruby-forum.com/t/figuring-out-activerecord-associations/110717)

<div class="topic-metadata">

**Author:** [@dmspilot00](https://www.ruby-forum.com/u/dmspilot00)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 12:02am UTC](https://www.ruby-forum.com/t/figuring-out-activerecord-associations/110717 "2007-08-01T00:02:35Z")

</div>

Hi folks, This is my first post to the list. I was hoping someone could help me with setting up ActiveRecord associations on a project I recently started. The project is a web-based game. Actually, the application w…

---

## [Dispatch.fcgi won't work](https://www.ruby-forum.com/t/dispatch-fcgi-wont-work/110912)

<div class="topic-metadata">

**Author:** [@bartek](https://www.ruby-forum.com/u/bartek)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-wont-work/110912 "2007-07-31T23:55:03Z")

</div>

Here’s what’s going on: (23:51)bartek@ariel:~/dev/rails/scores$ ruby script/server =\> Booting lighttpd (use ‘script/server webrick’ to force WEBrick) =\> Rails application starting on http://0.0.0.0:3000 =\> Call with …

---

## [How to pass multiple parameters with a URL or link\_to?](https://www.ruby-forum.com/t/how-to-pass-multiple-parameters-with-a-url-or-link-to/110911)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/how-to-pass-multiple-parameters-with-a-url-or-link-to/110911 "2007-07-31T23:53:49Z")

</div>

Hi all, ==in my countroller i want to do something like this:== photo\_controller def show @photo = Photo.find(params\[:photo\_id\]) @place = Place.find(params\[:place\_id)) end ==so that in a view i can do something li…

---

## [Question about RESTful resource routing](https://www.ruby-forum.com/t/question-about-restful-resource-routing/110906)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/question-about-restful-resource-routing/110906 "2007-07-31T23:24:45Z")

</div>

Hi guys. I’ve got a tree of Nodes which I’d like to edit via a RESTful controller. The wrinkle at the moment is enabling manual ordering of the nodes - that is to say, given a node, I want the user to be able to reord…

---

## [Country listbox from table](https://www.ruby-forum.com/t/country-listbox-from-table/110879)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/country-listbox-from-table/110879 "2007-07-31T23:04:43Z")

</div>

sorry again, i’m building a registration form, getting stumped on the country listbox. any ideas how i could build a listbox for countries, taking it’s content from a data table? i’d imagine i’d have to generate a d…

---

## [Sorting data properly](https://www.ruby-forum.com/t/sorting-data-properly/110903)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/sorting-data-properly/110903 "2007-07-31T23:00:57Z")

</div>

Greetings all, As a preface, I’m not actually a programmer, I’m a network administrator. The ruby programmer at work just left to work at a startup, and until a replacement can be found I’m trying to fill in. So if I…

---

## [Generate checkbox in scaffold](https://www.ruby-forum.com/t/generate-checkbox-in-scaffold/110896)

<div class="topic-metadata">

**Author:** [@rage989](https://www.ruby-forum.com/u/rage989)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/generate-checkbox-in-scaffold/110896 "2007-07-31T22:08:27Z")

</div>

I was wondering what kind of mysql data type you use to so that when you generate a scaffold that it puts a checkbox in the form instead of text box? Or is there some setting i have to change? thanks.

---

## [Shipping gem](https://www.ruby-forum.com/t/shipping-gem/110884)

<div class="topic-metadata">

**Author:** [@rage989](https://www.ruby-forum.com/u/rage989)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 9:47pm UTC](https://www.ruby-forum.com/t/shipping-gem/110884 "2007-07-31T21:47:37Z")

</div>

anybody get this to work properly?

---

## [Time from seconds](https://www.ruby-forum.com/t/time-from-seconds/110860)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/time-from-seconds/110860 "2007-07-31T21:42:36Z")

</div>

Hi I was just wondering if anyone can think of a simpler way of doing the following: def number\_to\_time(seconds) seconds = seconds.to\_i if seconds \> 1.hours hours = seconds / 1.hour hours = “0#{hours}” if hours \< …

---

## [Free tutorials and Interview Questions](https://www.ruby-forum.com/t/free-tutorials-and-interview-questions/110894)

<div class="topic-metadata">

**Author:** [@techhairball](https://www.ruby-forum.com/u/techhairball)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/free-tutorials-and-interview-questions/110894 "2007-07-31T21:35:35Z")

</div>

Check out http://www.techhairball.com for all your technology needs. Launched just few weeks back and is already getting hundreds of hits per day. We also need Tech Web content writers wanted for http://www.techhairb…

---

## [Force an object to previous state, when using lock\_version](https://www.ruby-forum.com/t/force-an-object-to-previous-state-when-using-lock-version/110890)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/force-an-object-to-previous-state-when-using-lock-version/110890 "2007-07-31T20:49:31Z")

</div>

If I have an exception while trying to save an object, how can I tell Rails that it’s not saved yet? The object has a lock\_version (used for optimistic locking). This is what I do: ins = MyClass.new( arguments ) beg…

---

## [AR validates\_uniqueness\_of's :message](https://www.ruby-forum.com/t/ar-validates-uniqueness-ofs-message/110803)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/ar-validates-uniqueness-ofs-message/110803 "2007-07-31T20:42:05Z")

</div>

Hello, Can anybody give me a hint on the format of :message? I have: validates\_uniqueness\_of :username, :scope =\> :group, :case\_sensitive =\> false, :message =\> “%{fn} already exists in %{fn}.” I get “Userame already…

---

## [Inbox addon for app](https://www.ruby-forum.com/t/inbox-addon-for-app/110833)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [July 31, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/inbox-addon-for-app/110833 "2007-07-31T20:17:27Z")

</div>

Hi, i’m trying to write a sort-of inbox feature for my app. e.g. having a ‘inbox’ & ‘sent items’ area for each logged in user so they can send and receive messages to people logged into the system. i’m thinking the d…

---

## [Restful acts\_as\_tree](https://www.ruby-forum.com/t/restful-acts-as-tree/109165)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/restful-acts-as-tree/109165 "2007-07-31T20:08:25Z")

</div>

Is there general wisdom of how to manipulate acts\_as\_tree models in a Restful fashion ? TIA

---

## [Dispatch Error with Ruby Cookbook recipes 15.8 and 15.9](https://www.ruby-forum.com/t/dispatch-error-with-ruby-cookbook-recipes-15-8-and-15-9/110875)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 31, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/dispatch-error-with-ruby-cookbook-recipes-15-8-and-15-9/110875 "2007-07-31T20:04:24Z")

</div>

I don’t know if anyone else has seen this but when trying to use the code in recipes 15.8 and 15.9 of the Ruby Cookbook you get non-stop Dispatch errors. Your application will throw ArgumentError 0 for 1 with every p…

---

## [wsdlDriver won't run under Rails (SSL)](https://www.ruby-forum.com/t/wsdldriver-wont-run-under-rails-ssl/110886)

<div class="topic-metadata">

**Author:** [@fredknowles](https://www.ruby-forum.com/u/fredknowles)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 7:55pm UTC](https://www.ruby-forum.com/t/wsdldriver-wont-run-under-rails-ssl/110886 "2007-07-31T19:55:01Z")

</div>

I have a wsdl client that will work standalone but as soon as I put identical code into a Rails controller I get an Errno::ECONNREFUSED #(Connection refused -connect(2)…) Any ideas? ======================= ||Standal…

---

## [Circular DB problem](https://www.ruby-forum.com/t/circular-db-problem/110851)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 4\
**Last updated:** [July 31, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/circular-db-problem/110851 "2007-07-31T19:34:21Z")

</div>

Hi, Wondering if anybody could give me a hand. I have three tables, operators, operator\_aps, and pingable\_ips with the following relationships: operator has\_many operator\_aps operator has\_many pingable\_ips Now, wh…

---

## [Link\_to: Space in between 2 variables used for anchor](https://www.ruby-forum.com/t/link-to-space-in-between-2-variables-used-for-anchor/110710)

<div class="topic-metadata">

**Author:** [@eboss](https://www.ruby-forum.com/u/eboss)\
**Replies:** 2\
**Last updated:** [July 31, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/link-to-space-in-between-2-variables-used-for-anchor/110710 "2007-07-31T19:30:21Z")

</div>

I have this code to create a link Employee: \<%= link\_to({@employee.first\_name, @employee.last\_name}, :controller =\> ‘employees’, :action =\> ‘show’, :id =\> @employee.id) %\> It created a link with the anchor text of “F…

---

## [Problem with restful\_authentication](https://www.ruby-forum.com/t/problem-with-restful-authentication/110206)

<div class="topic-metadata">

**Author:** [@mobiledurant](https://www.ruby-forum.com/u/mobiledurant)\
**Replies:** 11\
**Last updated:** [July 31, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/problem-with-restful-authentication/110206 "2007-07-31T18:57:17Z")

</div>

Hi, (newbie here) I’m having a problem with the restful\_authentication plugin. When I fill out my information on this page: http://localhost:3000/users/new I’m routed to “users/index” which isn’t defined. Here’s wh…

---

## [Bidi / rtl language support in Ruby (Rails)](https://www.ruby-forum.com/t/bidi-rtl-language-support-in-ruby-rails/110878)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/bidi-rtl-language-support-in-ruby-rails/110878 "2007-07-31T18:45:12Z")

</div>

As long as you are only doing web things with HTML Ruby and Rails are doing well with Arabic / Hebrew languages. As soon as you want to export that data into lets say an image or a pdf you need to reorder the UTF-8 st…

---

## [Tie checkbox to data field](https://www.ruby-forum.com/t/tie-checkbox-to-data-field/110876)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/tie-checkbox-to-data-field/110876 "2007-07-31T18:42:02Z")

</div>

hi, i’m still learning, but how would you tie a checkbox to a data field? example code… \<%= start\_form\_tag :action =\> ‘create’ %\> \<%= check\_box\_tag :my\_check\_box %\> \<%= end\_form\_tag %\>

---

## [Big apps on Rails](https://www.ruby-forum.com/t/big-apps-on-rails/110847)

<div class="topic-metadata">

**Author:** [@dlap](https://www.ruby-forum.com/u/dlap)\
**Replies:** 3\
**Last updated:** [July 31, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/big-apps-on-rails/110847 "2007-07-31T18:18:36Z")

</div>

Guys, I am wondering if any of you some apps that could be considered the biggest app on Rails. I am making some research on the subject but I can’t find much info about it. Thanks, Diego L.

---

## [Ruby on rails and HSQLDB](https://www.ruby-forum.com/t/ruby-on-rails-and-hsqldb/110874)

<div class="topic-metadata">

**Author:** [@r0nsync](https://www.ruby-forum.com/u/r0nsync)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-hsqldb/110874 "2007-07-31T18:09:06Z")

</div>

est ce que on peux utilisÃ© la base de donnÃ©e HSQLBD avec ROR ???

---

## [Aggregate Models that don't correspond directly to DB table](https://www.ruby-forum.com/t/aggregate-models-that-dont-correspond-directly-to-db-table/110873)

<div class="topic-metadata">

**Author:** [@rhinmass](https://www.ruby-forum.com/u/rhinmass)\
**Replies:** 0\
**Last updated:** [July 31, 2007, 6:04pm UTC](https://www.ruby-forum.com/t/aggregate-models-that-dont-correspond-directly-to-db-table/110873 "2007-07-31T18:04:04Z")

</div>

Hello, I am having trouble deciding whether to make some classes part of the model or the controller. These objects will represent rollups of various joined database tables. I want to use them to build up a tree stru…

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

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