# Rails

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

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

---

## [Secure static html pages with Mongrel cluster on apache in](https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427)

<div class="topic-metadata">

**Author:** [@simham](https://www.ruby-forum.com/u/simham)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427 "2008-10-21T12:06:12Z")

</div>

I have security issue with Apache and mongrel cluster and Ruby on Rails. My Application is in ruby on rails and deployed using apache and mongrel cluster. I am able to secure the .rhtml files using filters. I have fe…

---

## [About local time](https://www.ruby-forum.com/t/about-local-time/151408)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 10:44am UTC](https://www.ruby-forum.com/t/about-local-time/151408 "2008-10-21T10:44:35Z")

</div>

I want to read a database column value to use in my app.That is t.timestamp.I use it like this: \<%=user.created\_at-%\>,but the displayed time is based on utc while what i want it to be is chinese BeiJing time.How do i …

---

## [Where is the difference between \>system "script/myscript"\< and \>script/myscript\< (via shell)?](https://www.ruby-forum.com/t/where-is-the-difference-between-system-script-myscript-and-script-myscript-via-shell/151344)

<div class="topic-metadata">

**Author:** [@none](https://www.ruby-forum.com/u/none)\
**Replies:** 3\
**Last updated:** [October 21, 2008, 10:32am UTC](https://www.ruby-forum.com/t/where-is-the-difference-between-system-script-myscript-and-script-myscript-via-shell/151344 "2008-10-21T10:32:52Z")

</div>

hallo everybody, i’ve searched the web for quite some time now, but didn’t find an answer to this question (and thus no solution to my problem). explanation: i wrote a script to start a DRb-server on a rails-app. wha…

---

## [Half baked "backgrounder" idea](https://www.ruby-forum.com/t/half-baked-backgrounder-idea/151409)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [October 21, 2008, 10:28am UTC](https://www.ruby-forum.com/t/half-baked-backgrounder-idea/151409 "2008-10-21T10:28:44Z")

</div>

At present I’m working on a couple of different Rails projects, each of which has to have background tasks running for a variety of reasons (handling large imported files, sending reminder emails at predetermined time…

---

## [Preferred adapter for PostgreSQL 8.3 on Rails 2.0.2](https://www.ruby-forum.com/t/preferred-adapter-for-postgresql-8-3-on-rails-2-0-2/133475)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 8\
**Last updated:** [October 21, 2008, 9:59am UTC](https://www.ruby-forum.com/t/preferred-adapter-for-postgresql-8-3-on-rails-2-0-2/133475 "2008-10-21T09:59:21Z")

</div>

What is the preferred Active Record adapter for PostgreSQL 8.3 on Rails 2.0.2 ? Brian A.

---

## [Is there any plugin for generating ods openoffice file?](https://www.ruby-forum.com/t/is-there-any-plugin-for-generating-ods-openoffice-file/151422)

<div class="topic-metadata">

**Author:** [@Krzysztof\_Tomczyk](https://www.ruby-forum.com/u/Krzysztof_Tomczyk)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 9:17am UTC](https://www.ruby-forum.com/t/is-there-any-plugin-for-generating-ods-openoffice-file/151422 "2008-10-21T09:17:49Z")

</div>

I am searching for some tool in ruby for creating files in openoffice format, do you know any?

---

## [POST request with custom headers](https://www.ruby-forum.com/t/post-request-with-custom-headers/151423)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 9:17am UTC](https://www.ruby-forum.com/t/post-request-with-custom-headers/151423 "2008-10-21T09:17:48Z")

</div>

Hello! I want to send a POST request with some additional custom headers. How can I do that? I have checked next libraries: Net::HTTP, ActiveResource, XMLRPC But I didn’t find necessary functionality. Can you sugges…

---

## [Ruby on Rails Developers Needed in Atlanta (JOBS)](https://www.ruby-forum.com/t/ruby-on-rails-developers-needed-in-atlanta-jobs/151421)

<div class="topic-metadata">

**Author:** [@AdamCB](https://www.ruby-forum.com/u/AdamCB)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 9:17am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-needed-in-atlanta-jobs/151421 "2008-10-21T09:17:12Z")

</div>

Ruby / Ruby on Rails Developer - Atlanta/Norcross Area Please email your resume to removed\_email\_address@domain.invalid asap if interested. We also offer a 1000 dollar referral fee if we hire someone you refer. Thanks …

---

## [Forum integration in rails application](https://www.ruby-forum.com/t/forum-integration-in-rails-application/151416)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 8:03am UTC](https://www.ruby-forum.com/t/forum-integration-in-rails-application/151416 "2008-10-21T08:03:12Z")

</div>

Hi, How to integrate forums into rails appication. please hep me. thanks, Ravi.

---

## [Rails Plugins](https://www.ruby-forum.com/t/rails-plugins/70287)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 8\
**Last updated:** [October 21, 2008, 7:39am UTC](https://www.ruby-forum.com/t/rails-plugins/70287 "2008-10-21T07:39:54Z")

</div>

Hi i just got to plugin development, hav to develop a plugin for a model , in which i m using object from another model as well as cart . i saw some basic example for plugins , trying to do with them can anybody help…

---

## [Observe\_field](https://www.ruby-forum.com/t/observe-field/151395)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 11\
**Last updated:** [October 21, 2008, 6:14am UTC](https://www.ruby-forum.com/t/observe-field/151395 "2008-10-21T06:14:32Z")

</div>

I have the following in my view: \<%= observe\_field ‘guarantee\_status’, :url =\> {:controller =\> ‘testcontroller’, :action =\> ‘change\_status’}, :with =\> ‘value’ %\> Remaining Balance \<%= f.text\_field :balance…

---

## [Many to Many Question](https://www.ruby-forum.com/t/many-to-many-question/151403)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 5:47am UTC](https://www.ruby-forum.com/t/many-to-many-question/151403 "2008-10-21T05:47:33Z")

</div>

Hello, I have two many-to-many relationships modeled like so: a Company has many Users a User has many Bugs The Company model has: has\_many :users The User model has: belongs\_to :company has\_many :bugs The Bug m…

---

## [Data modeling references](https://www.ruby-forum.com/t/data-modeling-references/151406)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 2:38am UTC](https://www.ruby-forum.com/t/data-modeling-references/151406 "2008-10-21T02:38:35Z")

</div>

Do you know of any great books, references or other works that teach data modeling? I am especially interested in learning more about resolving complex relationships.

---

## [Log analyzer](https://www.ruby-forum.com/t/log-analyzer/151335)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 8\
**Last updated:** [October 21, 2008, 2:31am UTC](https://www.ruby-forum.com/t/log-analyzer/151335 "2008-10-21T02:31:33Z")

</div>

Hi, What log analyzing tool do you use? I have found wvanbergen-request-log-analyzer to be pretty cool for that purpose. It’s a ruby gem. Here is its github page: GitHub - wvanbergen/request-log-analyzer: Create repo…

---

## [Facebook integration in rais app?](https://www.ruby-forum.com/t/facebook-integration-in-rais-app/151329)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 2\
**Last updated:** [October 21, 2008, 2:10am UTC](https://www.ruby-forum.com/t/facebook-integration-in-rais-app/151329 "2008-10-21T02:10:30Z")

</div>

Hi, How can we integrate/push rails application onto facebook(social networking) site. please guide me on this. thanks, Ravi.

---

## [Taking advantage of template generation from within a model?](https://www.ruby-forum.com/t/taking-advantage-of-template-generation-from-within-a-model/151401)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [October 21, 2008, 1:06am UTC](https://www.ruby-forum.com/t/taking-advantage-of-template-generation-from-within-a-model/151401 "2008-10-21T01:06:36Z")

</div>

All, I have a controller action/view pair that successfully generates a PDF using Prawnto. I like the idea of the view specifying the details of the PDF generation in a view file (x.pdf.prawn). However, I would like…

---

## [Render :update / page.replace\_html problem](https://www.ruby-forum.com/t/render-update-page-replace-html-problem/151220)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/render-update-page-replace-html-problem/151220 "2008-10-20T23:55:05Z")

</div>

Hi there, I have this ajax problem, I’m desparately trying to debug since 1 entire day now: The Controller includes: \[…\] render :update do |page| page.replace\_html ‘coverletter\_part’, :partial =\> ‘user/applicationf…

---

## [CGI and NET::SSH in the same script problems](https://www.ruby-forum.com/t/cgi-and-net-ssh-in-the-same-script-problems/151393)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/cgi-and-net-ssh-in-the-same-script-problems/151393 "2008-10-20T22:48:41Z")

</div>

I’m perplexed as to why I can run the following just fine from a command line, but when I try to execute from a web browser it crashes. From the command line it prints out… FlyBOB Control Panel cmd=\>\[echo ‘THIS IS A …

---

## [Absolute Value Percentage Difference Question](https://www.ruby-forum.com/t/absolute-value-percentage-difference-question/151390)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/absolute-value-percentage-difference-question/151390 "2008-10-20T22:47:57Z")

</div>

Hi. I’ve got a report where I’m making comparisons between 2 different values. It’s possible for the percentage difference from one value to the next to be less than or greater than the original number. If value 2 i…

---

## [Test fixtures order](https://www.ruby-forum.com/t/test-fixtures-order/151370)

<div class="topic-metadata">

**Author:** [@robtotheb](https://www.ruby-forum.com/u/robtotheb)\
**Replies:** 5\
**Last updated:** [October 20, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/test-fixtures-order/151370 "2008-10-20T22:39:18Z")

</div>

Hello, I’m trying to get my Rails test suite to load fixtures in a certain order, but I’m coming across a really strange problem. I have two tables and a join table. Instead of creating the entries for the join table …

---

## [Searching parent objects and associated objects with one search](https://www.ruby-forum.com/t/searching-parent-objects-and-associated-objects-with-one-search/151140)

<div class="topic-metadata">

**Author:** [@Yogi](https://www.ruby-forum.com/u/Yogi)\
**Replies:** 3\
**Last updated:** [October 20, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/searching-parent-objects-and-associated-objects-with-one-search/151140 "2008-10-20T22:30:55Z")

</div>

Three simple models setup with :through association Person has\_many :readings has\_many :books, :through =\> :readings Reading belongs\_to :person belongs\_to :book Book has\_many :readings has\_many :persons, :throug…

---

## ["www" redirection](https://www.ruby-forum.com/t/www-redirection/151234)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 12\
**Last updated:** [October 20, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/www-redirection/151234 "2008-10-20T22:16:26Z")

</div>

I’m sure this is an old topic with an obvious solution – How can I automatically redirect users who go to “www.xyz.com” to “xyz.com” instead? My SSL certificate is for “xyz.com” so users get a scary error message if …

---

## [A little help cleaning up SQL query](https://www.ruby-forum.com/t/a-little-help-cleaning-up-sql-query/151387)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/a-little-help-cleaning-up-sql-query/151387 "2008-10-20T22:14:29Z")

</div>

I have the SQL a for my query, its a little messy with several joins. Could someone please help/suggest how to turn this into a nice activerecord query (if possible) so I a) don’t have this sql knocking around in my …

---

## [Get a collections parent model](https://www.ruby-forum.com/t/get-a-collections-parent-model/151374)

<div class="topic-metadata">

**Author:** [@twoism](https://www.ruby-forum.com/u/twoism)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/get-a-collections-parent-model/151374 "2008-10-20T21:19:36Z")

</div>

Is there away get a collections parent model from within the collection itself? Where the collection looks like this: User.first.events.upcoming or Group.first.events.upcoming. If the upcoming method is in a mix-in …

---

## [Problem with exception notification with Rails edge](https://www.ruby-forum.com/t/problem-with-exception-notification-with-rails-edge/151378)

<div class="topic-metadata">

**Author:** [@rgagnon](https://www.ruby-forum.com/u/rgagnon)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/problem-with-exception-notification-with-rails-edge/151378 "2008-10-20T20:58:34Z")

</div>

I’m having hard time to make it work. To test it I did force an error in my controller but nothing happened. I did include the ExceptionNotifiable in my application.rb Anything else to do to at least see come in tha…

---

## [Finding software versions below a given version](https://www.ruby-forum.com/t/finding-software-versions-below-a-given-version/151377)

<div class="topic-metadata">

**Author:** [@trptcolin](https://www.ruby-forum.com/u/trptcolin)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/finding-software-versions-below-a-given-version/151377 "2008-10-20T20:52:24Z")

</div>

I know there must be a Rails way to do this. A little help? I have 4 columns in the database (MySQL) holding application version info (split from a delimited string like “2.6.50:1200” that always has all parts). I ca…

---

## [Log in with facebook (but no facebook app)](https://www.ruby-forum.com/t/log-in-with-facebook-but-no-facebook-app/151376)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/log-in-with-facebook-but-no-facebook-app/151376 "2008-10-20T20:36:41Z")

</div>

Is it possible to use rfacebook or facebooker to make an existing rails app authenticate a user through facebook? Instead of having a user register, etc can they just use their facebook info and log in? also, get thei…

---

## [Functional est for attachment download](https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 1\
**Last updated:** [October 20, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/functional-est-for-attachment-download/151364 "2008-10-20T19:41:08Z")

</div>

I have written an action for converting attached MS word document files into a plain text and HTML format. The converted file is then rendered in a web browser. How can I write a functional test for this action? I am …

---

## [Design decision: Dynamically adding data question](https://www.ruby-forum.com/t/design-decision-dynamically-adding-data-question/151355)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 2\
**Last updated:** [October 20, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/design-decision-dynamically-adding-data-question/151355 "2008-10-20T18:59:25Z")

</div>

I need to give users the ability to optionally add metadata to documents. Another way to state this is the fact that users need to add at least 5 categories to a document. Basically what I want to do is dynamically ad…

---

## [I'm tapped](https://www.ruby-forum.com/t/im-tapped/151367)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 0\
**Last updated:** [October 20, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/im-tapped/151367 "2008-10-20T18:40:38Z")

</div>

Well, I seem to be running in circles. I’ll try posting to the mongrel forums, maybe the problem lies there?

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

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