# Rails

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

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

---

## [Paginator order\_by](https://www.ruby-forum.com/t/paginator-order-by/105090)

<div class="topic-metadata">

**Author:** [@itsnotvalid](https://www.ruby-forum.com/u/itsnotvalid)\
**Replies:** 1\
**Last updated:** [May 26, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/paginator-order-by/105090 "2007-05-26T14:47:57Z")

</div>

I would like to use the paginator helper to order by a quantity that is the product of two database columns. Is there a simple way to do this?

---

## [Secure and unsecure items](https://www.ruby-forum.com/t/secure-and-unsecure-items/105161)

<div class="topic-metadata">

**Author:** [@Bas\_van\_Westing](https://www.ruby-forum.com/u/Bas_van_Westing)\
**Replies:** 4\
**Last updated:** [May 26, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/secure-and-unsecure-items/105161 "2007-05-26T14:16:46Z")

</div>

Hi, I host a secure ruby on rails appplication over https (at textdrive). All worked fine, untill I started using the javascript library ‘lowpro’ with some additional script which does adjusts some layout when I resiz…

---

## [Help re why Debug comes out in logs when "config.log\_level =](https://www.ruby-forum.com/t/help-re-why-debug-comes-out-in-logs-when-config-log-level/105166)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/help-re-why-debug-comes-out-in-logs-when-config-log-level/105166 "2007-05-26T13:32:56Z")

</div>

Hi - Can anyone help/give some ideas? I have included the line “config.log\_level = :info” in my environment.rbfile (and it doesn’t occur in development.rb) HOWEVER I keep getting Debug messages coming out in Developm…

---

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

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 10:48am UTC](https://www.ruby-forum.com/t/routes-rb-bad-performance/105156 "2007-05-26T10:48:41Z")

</div>

My config/routes.rb is about 200 lines. I do some experiment with two different routes.rb, a) routes.rb with 200 lines, and b) routes.rb with only one line ( map.connect ‘:controller/:action/:id’) and the result, a…

---

## [A video platform that rocks](https://www.ruby-forum.com/t/a-video-platform-that-rocks/105152)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 8:34am UTC](https://www.ruby-forum.com/t/a-video-platform-that-rocks/105152 "2007-05-26T08:34:31Z")

</div>

http://www.teenwag.com/showvideo/118

---

## [What to used? Windows Authentication/SQL Server Authenticn](https://www.ruby-forum.com/t/what-to-used-windows-authentication-sql-server-authenticn/105147)

<div class="topic-metadata">

**Author:** [@paragados](https://www.ruby-forum.com/u/paragados)\
**Replies:** 0\
**Last updated:** [May 26, 2007, 7:29am UTC](https://www.ruby-forum.com/t/what-to-used-windows-authentication-sql-server-authenticn/105147 "2007-05-26T07:29:16Z")

</div>

I just want to ask if we connect to SQL server what will be used? Windows authentication or SQL Server Authentication? I had tried Windows authentication and I was connected, however I don’t know where and how to crea…

---

## [Make\_resourceful 0.1.0 Release!](https://www.ruby-forum.com/t/make-resourceful-0-1-0-release/105143)

<div class="topic-metadata">

**Author:** [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Replies:** 1\
**Last updated:** [May 26, 2007, 6:27am UTC](https://www.ruby-forum.com/t/make-resourceful-0-1-0-release/105143 "2007-05-26T06:27:22Z")

</div>

I am extremely proud to put the code up live for make\_resourceful! I have been astonished by the positive feedback I’ve been receiving since our talk at this year’s RailsConf. So much pressure to get this thing out! I…

---

## [Class inheritance and AAA](https://www.ruby-forum.com/t/class-inheritance-and-aaa/104945)

<div class="topic-metadata">

**Author:** [@mauo](https://www.ruby-forum.com/u/mauo)\
**Replies:** 3\
**Last updated:** [May 26, 2007, 4:59am UTC](https://www.ruby-forum.com/t/class-inheritance-and-aaa/104945 "2007-05-26T04:59:18Z")

</div>

Hi all, I’m somewhat new with RoR, but have been programming for a while. I’m trying to design the right model for an application which will have a login system, I’m leaning towards acts\_as\_authenticated. I have one …

---

## [RoR CentOS 5 & Mongrel / Apache?](https://www.ruby-forum.com/t/ror-centos-5-mongrel-apache/105112)

<div class="topic-metadata">

**Author:** [@tominglis](https://www.ruby-forum.com/u/tominglis)\
**Replies:** 5\
**Last updated:** [May 26, 2007, 2:29am UTC](https://www.ruby-forum.com/t/ror-centos-5-mongrel-apache/105112 "2007-05-26T02:29:05Z")

</div>

Dear All, I have just installed CentOS 5 on a desktop to use it as a server for my first RoR application. I am slightly confused about which method is the best to serve the RoR content though. Is it RoR, Mongrel, and …

---

## [Ajax and Rails](https://www.ruby-forum.com/t/ajax-and-rails/105101)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 6\
**Last updated:** [May 26, 2007, 1:43am UTC](https://www.ruby-forum.com/t/ajax-and-rails/105101 "2007-05-26T01:43:13Z")

</div>

Hello, I have been trying to use ajax and rails for a drop down list and I can’t seem to get it to work. This is what I am looking for, I have a drop down list, and as soon as the user selects an option, I want it to …

---

## [Totally naive - what is meant by REST?](https://www.ruby-forum.com/t/totally-naive-what-is-meant-by-rest/105126)

<div class="topic-metadata">

**Author:** [@richinri](https://www.ruby-forum.com/u/richinri)\
**Replies:** 1\
**Last updated:** [May 26, 2007, 12:21am UTC](https://www.ruby-forum.com/t/totally-naive-what-is-meant-by-rest/105126 "2007-05-26T00:21:56Z")

</div>

I see this acronym a lot - what does REST stand for?

---

## [New API documentation web site](https://www.ruby-forum.com/t/new-api-documentation-web-site/105031)

<div class="topic-metadata">

**Author:** [@alexg](https://www.ruby-forum.com/u/alexg)\
**Replies:** 4\
**Last updated:** [May 26, 2007, 12:03am UTC](https://www.ruby-forum.com/t/new-api-documentation-web-site/105031 "2007-05-26T00:03:54Z")

</div>

Hi, I’m trying to get a word out about the new API documentation site called Noobkit Docs. For the moment it’s just a search and the API tree in a pretty package but I’m working on community features to be released n…

---

## [ActiveRecord support for BLOB](https://www.ruby-forum.com/t/activerecord-support-for-blob/103395)

<div class="topic-metadata">

**Author:** [@mrnice](https://www.ruby-forum.com/u/mrnice)\
**Replies:** 6\
**Last updated:** [May 26, 2007, 12:02am UTC](https://www.ruby-forum.com/t/activerecord-support-for-blob/103395 "2007-05-26T00:02:54Z")

</div>

I have a model called Product with an attribute called file of type :binary (DB BLOB). If I do product.save (where product is an instance of my Product model), here is SQL statement that the mysql adapter for Ruby wi…

---

## [Problem with http\_authentication + apache2 + mod\_fcgid](https://www.ruby-forum.com/t/problem-with-http-authentication-apache2-mod-fcgid/105114)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/problem-with-http-authentication-apache2-mod-fcgid/105114 "2007-05-25T23:35:52Z")

</div>

Hi, I’m using the http\_authentication plugin, and everything’s working fine in my development environment with webrick. However, when I run on my production platform of apache2+mod\_fcgid, authenticate\_or\_request\_with…

---

## [Named route error: "failed to generate"](https://www.ruby-forum.com/t/named-route-error-failed-to-generate/105119)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/named-route-error-failed-to-generate/105119 "2007-05-25T22:22:45Z")

</div>

I don’t know much about named routes so I’m looking for a clue here. If this isn’t enough info to properly diagnose this, please tell me! The error is: wap\_event\_disc\_url failed to generate from {:invitation\_id=\>nil,…

---

## [Form\_remote\_tag :condition](https://www.ruby-forum.com/t/form-remote-tag-condition/105107)

<div class="topic-metadata">

**Author:** [@namwob](https://www.ruby-forum.com/u/namwob)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/form-remote-tag-condition/105107 "2007-05-25T21:23:36Z")

</div>

I am using the following validation prototype-based js library: http://tetlaw.id.au/view/javascript/really-easy-field-validation What I am trying to do is upon submitting a form via AJAX, I want it to meet the conditi…

---

## [Help with Create and Update with options\_for\_select in a sel](https://www.ruby-forum.com/t/help-with-create-and-update-with-options-for-select-in-a-sel/105023)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/help-with-create-and-update-with-options-for-select-in-a-sel/105023 "2007-05-25T21:15:36Z")

</div>

I have a select\_tag in my view that uses options\_for\_select with multiple = true. I am having trouble figuring out the Rails way to create and update that field. Please help. Models: Service has\_many AccessControl A…

---

## [Don't know how to build task 'db:migrate:plugins](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbplugins/105108)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbplugins/105108 "2007-05-25T20:54:38Z")

</div>

Hi all, I am trying to get a goldberg site installed and am getting the above error. I have left messages at 240gl.org and at pluginaweek.org but have not received any answer. This situation is this. goldberg 0.2.0…

---

## [Has\_many association based on common target rather than join](https://www.ruby-forum.com/t/has-many-association-based-on-common-target-rather-than-join/105095)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/has-many-association-based-on-common-target-rather-than-join/105095 "2007-05-25T20:37:33Z")

</div>

I have the following models: create table “users” do |t| t.column “name”, :string t.column “group\_id”, :integer end create table “groups” do t.column “name”, :string t.column “staff”, :boolean end create table…

---

## [SQLite3/AR failing to increment PK on habtm table](https://www.ruby-forum.com/t/sqlite3-ar-failing-to-increment-pk-on-habtm-table/105001)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/sqlite3-ar-failing-to-increment-pk-on-habtm-table/105001 "2007-05-25T20:23:30Z")

</div>

SUMMARY Rails is generating SQL for a habtm insert that isn’t properly incrementing the primary key on my habtm table. DETAILS I have a Story model like this: class Story \< ActiveRecord::Base has\_and\_belongs\_to\_man…

---

## [Content\_for best practices](https://www.ruby-forum.com/t/content-for-best-practices/105022)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 7\
**Last updated:** [May 25, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/content-for-best-practices/105022 "2007-05-25T20:11:28Z")

</div>

recently i ready about using content\_for to add more dynamic control in my layouts. wanting to keep DRY, i’m wondering what the best way is to use this is if i’m wanting to check specific areas for content. based on i…

---

## [Execute System command after page loads](https://www.ruby-forum.com/t/execute-system-command-after-page-loads/103620)

<div class="topic-metadata">

**Author:** [@almcf](https://www.ruby-forum.com/u/almcf)\
**Replies:** 15\
**Last updated:** [May 25, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/execute-system-command-after-page-loads/103620 "2007-05-25T20:03:16Z")

</div>

I would like to run a system command after the page is loaded. Currently I have the code in my view but it is ran and then the page is loaded. The line I am trying to run in my view is as follows: \<% system “osascri…

---

## [How to use after\_save method to set fields on other models?](https://www.ruby-forum.com/t/how-to-use-after-save-method-to-set-fields-on-other-models/105094)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/how-to-use-after-save-method-to-set-fields-on-other-models/105094 "2007-05-25T19:47:20Z")

</div>

Hello, I am having some problems using the after\_save callback to update a field on another model, could anyone give me directions? Here is what I have: class Model1 \< ActiveRecord::Base has\_many model2 after\_save …

---

## [\[ANN\] railsdocumentation.org -- A community hub for document](https://www.ruby-forum.com/t/ann-railsdocumentation-org-a-community-hub-for-document/105103)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/ann-railsdocumentation-org-a-community-hub-for-document/105103 "2007-05-25T19:42:26Z")

</div>

Hello all, As many of you know, Jamie van Dyke and I have been working on the Caboose Rails Documentation Project for a few months now, adding documentation patches to the API docs. By way of a progress update, we h…

---

## [\[ANN\] railsdocumentation.org -- A community hub for document](https://www.ruby-forum.com/t/ann-railsdocumentation-org-a-community-hub-for-document/105102)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/ann-railsdocumentation-org-a-community-hub-for-document/105102 "2007-05-25T19:41:25Z")

</div>

(My apologies if this double posts; GMail isn’t being friendly today) Hello all, As many of you know, Jamie van Dyke and I have been working on the Caboose Rails Documentation Project for a few months now, adding doc…

---

## [Functional test - changing a session variable?](https://www.ruby-forum.com/t/functional-test-changing-a-session-variable/105099)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/functional-test-changing-a-session-variable/105099 "2007-05-25T19:24:37Z")

</div>

i defined in the setup some session variables def setup @controller = RecommandationsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.session\[:…

---

## [Rails and SQL Server 2005 Express](https://www.ruby-forum.com/t/rails-and-sql-server-2005-express/105076)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/rails-and-sql-server-2005-express/105076 "2007-05-25T19:13:23Z")

</div>

I was looking at the Wiki in regards to info on getting Rails and SQL Express 2005 to place nice together but the wiki seems to have some old material on it. Can anyone tell me if Rails does indeed support SQL Expres…

---

## [ActiveRecord error after deployment](https://www.ruby-forum.com/t/activerecord-error-after-deployment/105096)

<div class="topic-metadata">

**Author:** [@adi\_azar](https://www.ruby-forum.com/u/adi_azar)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/activerecord-error-after-deployment/105096 "2007-05-25T19:12:34Z")

</div>

Hi guys, I developed a page that retrieves from Oracle DB data and view it. The connection is 100% since it works. However, once we deploy using capistrano to our production servers, we get the following error: "Appl…

---

## [Save error](https://www.ruby-forum.com/t/save-error/105012)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/save-error/105012 "2007-05-25T18:54:58Z")

</div>

def show @post = Post.find(params\[:id\]) @post.increment\_count if @post.save render :action =\> ‘show’ else flash\[:notice\] = ‘Error’ end end def increment\_count unless self.count.nil? self.count += 1 else self…

---

## [Protecting a Mongrel site with Apache htauth](https://www.ruby-forum.com/t/protecting-a-mongrel-site-with-apache-htauth/104985)

<div class="topic-metadata">

**Author:** [@Gareth\_A](https://www.ruby-forum.com/u/Gareth_A)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/protecting-a-mongrel-site-with-apache-htauth/104985 "2007-05-25T18:46:22Z")

</div>

Hi, We have a mongrel site running behind Apache using ProxyBalancer to manage our cluster. We would like to use HTTP Authentication to restrict access to the site, but Apache’s mod\_auth only protects a directory - …

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

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