# Rails

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

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

---

## [Collect on a select helper](https://www.ruby-forum.com/t/collect-on-a-select-helper/113392)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [August 30, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/collect-on-a-select-helper/113392 "2007-08-30T22:30:51Z")

</div>

I have two tables in a database: bars and accounts. (bars isn’t what you think, but that’s anoher story). Anyway, an accounts has\_many bars and bars belongs\_to account. In my bars table their is an id and an account c…

---

## [Editing FlexImage - image required?](https://www.ruby-forum.com/t/editing-fleximage-image-required/113234)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/editing-fleximage-image-required/113234 "2007-08-30T22:29:51Z")

</div>

I am trying to edit a model with a fleximage. I can create the model with out the image by adding: self.require\_image\_data = false But once a user has added an image they can only upload new images not remove the ima…

---

## [Patterns for implementing "admin" functionality to rails' mo](https://www.ruby-forum.com/t/patterns-for-implementing-admin-functionality-to-rails-mo/113405)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/patterns-for-implementing-admin-functionality-to-rails-mo/113405 "2007-08-30T22:04:05Z")

</div>

Hello list, In my application, I’ve followed the following pattern - for each model, I have a correspondent controller. For example, I’ve got a Document mode, and a DocumentsController, a DocType model and DocTypesC…

---

## [Feedburner updating the feed even when it should not](https://www.ruby-forum.com/t/feedburner-updating-the-feed-even-when-it-should-not/113413)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/feedburner-updating-the-feed-even-when-it-should-not/113413 "2007-08-30T21:53:50Z")

</div>

I am using feedburner to publish my feed. I have a table called ‘Event’ which has created\_on and updated\_on columns besides other attributes. Some of the attributes are disclosed through RSS. Once the event is crea…

---

## [Creating Daemon Thread in Rails](https://www.ruby-forum.com/t/creating-daemon-thread-in-rails/113137)

<div class="topic-metadata">

**Author:** [@mmccall](https://www.ruby-forum.com/u/mmccall)\
**Replies:** 8\
**Last updated:** [August 30, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/creating-daemon-thread-in-rails/113137 "2007-08-30T21:49:47Z")

</div>

Would anyone know where I could find a tutorial on how to create a background daemon ruby thread in rails? Moses

---

## [Problem using hashes with 'find' method](https://www.ruby-forum.com/t/problem-using-hashes-with-find-method/113355)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/problem-using-hashes-with-find-method/113355 "2007-08-30T20:32:40Z")

</div>

The following works for me: Mymodel.find(:all, :conditions =\> “fieldOne = ‘Example1’ AND myobject\_id = ‘1’”) but when I try Mymodel.find(:all, :conditions =\> { :fieldOne =\> Example1, :myobject\_id =\> 1 }) … I get an…

---

## [Displaying a list of files in the Rails 'public' folder](https://www.ruby-forum.com/t/displaying-a-list-of-files-in-the-rails-public-folder/113407)

<div class="topic-metadata">

**Author:** [@Lei](https://www.ruby-forum.com/u/Lei)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/displaying-a-list-of-files-in-the-rails-public-folder/113407 "2007-08-30T20:24:40Z")

</div>

I am trying to sync certain subfolders in the ‘public’ folder of my rails app to a folder on a different server, which does not have the rails environment. So for example, I am trying to sync the ‘RAILS\_ROOT/ public/s…

---

## [Looking for developer(s) for my site](https://www.ruby-forum.com/t/looking-for-developer-s-for-my-site/113397)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 30, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/looking-for-developer-s-for-my-site/113397 "2007-08-30T20:13:39Z")

</div>

Looking for developer(s) for my site Stumbled upon on Ruby. Presentations is great. I look to develope my site into online games community website. Personally I make flash games. There is should be standart things li…

---

## [Difference between local and live server](https://www.ruby-forum.com/t/difference-between-local-and-live-server/113394)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 6\
**Last updated:** [August 30, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/difference-between-local-and-live-server/113394 "2007-08-30T19:51:54Z")

</div>

Yello, I’m setting my layout in a before\_filter. Here is what I have in application.rb: before\_filter :find\_current\_site layout $layout def find\_current\_site if blahblahblah $layout = “joe1” else $layout = “joe2…

---

## [Being able to search for nearby items based on zip code](https://www.ruby-forum.com/t/being-able-to-search-for-nearby-items-based-on-zip-code/113347)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 8\
**Last updated:** [August 30, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/being-able-to-search-for-nearby-items-based-on-zip-code/113347 "2007-08-30T19:09:22Z")

</div>

Hello everyone, I am building a site which is a searchable directory of doctors. Basically, doctors can register where their clinic is (address) and then patients can search and find clinics. I have the tables set up …

---

## [Observer on checkbox](https://www.ruby-forum.com/t/observer-on-checkbox/113400)

<div class="topic-metadata">

**Author:** [@clive](https://www.ruby-forum.com/u/clive)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/observer-on-checkbox/113400 "2007-08-30T18:54:16Z")

</div>

Hi I have attached an observer to a checkbox to determine if the box was checked and then to display an additional partial to get data from the user. When then box is checked, the partial appears as required. My que…

---

## [How to display a message after logout (session deleted)](https://www.ruby-forum.com/t/how-to-display-a-message-after-logout-session-deleted/111766)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 5\
**Last updated:** [August 30, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/how-to-display-a-message-after-logout-session-deleted/111766 "2007-08-30T18:43:12Z")

</div>

When a user logout, the session is deleted, so I can’t use a flash\[:notice\] stating that the user has been disconnected (and more…) in my \_header.rhtml view \<%= link\_to ‘Logout’, logout\_path %\> in my route.rb map.lo…

---

## [Railsconf07 dhh video?](https://www.ruby-forum.com/t/railsconf07-dhh-video/113265)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 5\
**Last updated:** [August 30, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/railsconf07-dhh-video/113265 "2007-08-30T18:08:51Z")

</div>

Hey all, Any idea where I could find the dhh video? I tried http://www.rubyhead.com/2007/07/20/railsconf-2007-video-dhh-keynote/ but they’re not there anymore. thanx in advance Pat ps: I do have the pdh though

---

## [Help with acts as paranoid](https://www.ruby-forum.com/t/help-with-acts-as-paranoid/113395)

<div class="topic-metadata">

**Author:** [@newrubyguy](https://www.ruby-forum.com/u/newrubyguy)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/help-with-acts-as-paranoid/113395 "2007-08-30T18:02:23Z")

</div>

Hello, I am using acts as paranoid which works great. But I have the following problem. I have table a which has a has\_many :tableb, :dependent =\> false relationship with table b. If I delete something in a and then t…

---

## [Summing problem](https://www.ruby-forum.com/t/summing-problem/112915)

<div class="topic-metadata">

**Author:** [@glimjaur](https://www.ruby-forum.com/u/glimjaur)\
**Replies:** 2\
**Last updated:** [August 30, 2007, 6:00pm UTC](https://www.ruby-forum.com/t/summing-problem/112915 "2007-08-30T18:00:50Z")

</div>

I am trying to show the total price of an order, but i keep getting this problem; wrong number of arguments (1 for 2) On this method, in the order.rb model; def total order\_items.sum { |item| item.total } end An o…

---

## [How do you calculate the max # of sales in a 5 day period?](https://www.ruby-forum.com/t/how-do-you-calculate-the-max-of-sales-in-a-5-day-period/113386)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [August 30, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/how-do-you-calculate-the-max-of-sales-in-a-5-day-period/113386 "2007-08-30T17:59:50Z")

</div>

If I’m trying to calculate the record (max) number of sales within a 5 day period, how would I do it? I’m guessing it starts with a Sales.maximum, but being an absolute noob, I have no idea what next. Maybe like a Sal…

---

## [Execute joins manually without :include parameter](https://www.ruby-forum.com/t/execute-joins-manually-without-include-parameter/113393)

<div class="topic-metadata">

**Author:** [@gABoCas](https://www.ruby-forum.com/u/gABoCas)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/execute-joins-manually-without-include-parameter/113393 "2007-08-30T17:25:45Z")

</div>

Hi! I have the next model with the follow associations: class XmlGen \< ActiveRecord::Base set\_primary\_key “pk” belongs\_to :serie, :foreign\_key =\> “series\_fk” class Serie \< ActiveRecord::Base set\_primary\_key “pk” …

---

## [Apache w/mod\_sec -\> nginx -\> mongrel SSL & ReqForCcomment](https://www.ruby-forum.com/t/apache-w-mod-sec-nginx-mongrel-ssl-reqforccomment/113390)

<div class="topic-metadata">

**Author:** [@jz176](https://www.ruby-forum.com/u/jz176)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/apache-w-mod-sec-nginx-mongrel-ssl-reqforccomment/113390 "2007-08-30T16:58:16Z")

</div>

i need to run apache with mod\_security proxying to nginx which will be using basically ezras’ nginx.conf and doing caching etc. and then proxying to mongrel. the reason for this setup is b/c i NEED mod\_security for an…

---

## [RoR - Some Questions Before Starting](https://www.ruby-forum.com/t/ror-some-questions-before-starting/113383)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [August 30, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/ror-some-questions-before-starting/113383 "2007-08-30T16:57:42Z")

</div>

Hello everyone, For some time I was studying Ruby on Rails, Active Record ideology and other thing related with RoR right now I still know a lot more about PHP than RoR. I am almost ready to start writing websites usi…

---

## [Inserting multiple tuple into the database from single form](https://www.ruby-forum.com/t/inserting-multiple-tuple-into-the-database-from-single-form/113362)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/inserting-multiple-tuple-into-the-database-from-single-form/113362 "2007-08-30T16:48:41Z")

</div>

Hi friend I want to add 5 user names from a single form . but 5 will be inserted into different tuple . how to do that . please help me

---

## [ACTIVE SCAFFOLD UTF-8 question/problem?](https://www.ruby-forum.com/t/active-scaffold-utf-8-question-problem/113384)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/active-scaffold-utf-8-question-problem/113384 "2007-08-30T16:43:50Z")

</div>

Hi all, Who can help me with problem? I’m using active scaffold for managing my models, but i get a problem with standart search when i’m looking for records that saved in UTF-8 in database. For example: I have som…

---

## [Specify size in kilobytes with logrotate](https://www.ruby-forum.com/t/specify-size-in-kilobytes-with-logrotate/113387)

<div class="topic-metadata">

**Author:** [@worthspending](https://www.ruby-forum.com/u/worthspending)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/specify-size-in-kilobytes-with-logrotate/113387 "2007-08-30T16:32:51Z")

</div>

Has anyone successfully configured logrotate using the size in kilobytes?? I have broken this thing down as far as I can. I setup a test server I am running logrotate manually I noticed while running it in debug mod…

---

## [Problem converting application to use REST, people\_path meth](https://www.ruby-forum.com/t/problem-converting-application-to-use-rest-people-path-meth/112894)

<div class="topic-metadata">

**Author:** [@anthonyrudgick](https://www.ruby-forum.com/u/anthonyrudgick)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/problem-converting-application-to-use-rest-people-path-meth/112894 "2007-08-30T16:26:38Z")

</div>

Hi All, I am converting a “traditional” rails application to use RESTful routes and controllers. Everything is going fine so far, except for the following problem. I have the active record class Person. When I want t…

---

## [\[ANN\] Webistrano - A Web UI for managing Capistrano deployme](https://www.ruby-forum.com/t/ann-webistrano-a-web-ui-for-managing-capistrano-deployme/113176)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 4\
**Last updated:** [August 30, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/ann-webistrano-a-web-ui-for-managing-capistrano-deployme/113176 "2007-08-30T15:58:35Z")

</div>

I’m happy to announce the release of Webistrano - a Web UI for managing Capistrano deployments. Webistrano is an internal application that I developed at Peritor for the easy handling of Capistrano deployments. I oft…

---

## [Please Help ASAP](https://www.ruby-forum.com/t/please-help-asap/113382)

<div class="topic-metadata">

**Author:** [@slimshady](https://www.ruby-forum.com/u/slimshady)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/please-help-asap/113382 "2007-08-30T15:33:58Z")

</div>

Hey Guys i have got a problem i am searching for the plugin called bbcodeizer …if some one is having it plz send it to me

---

## [Deployment question: How do I symlink to a shared images fol](https://www.ruby-forum.com/t/deployment-question-how-do-i-symlink-to-a-shared-images-fol/113357)

<div class="topic-metadata">

**Author:** [@Ivan\_V](https://www.ruby-forum.com/u/Ivan_V)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/deployment-question-how-do-i-symlink-to-a-shared-images-fol/113357 "2007-08-30T15:10:26Z")

</div>

Hi, I’m deploying my web app with Capistrano 2, my users have content which is stored in the public/images folder and I need this to be stored outside the app, probably in the shared folder, but where I’m having trou…

---

## [Regarding SVN repository](https://www.ruby-forum.com/t/regarding-svn-repository/113373)

<div class="topic-metadata">

**Author:** [@hemalatha](https://www.ruby-forum.com/u/hemalatha)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/regarding-svn-repository/113373 "2007-08-30T14:32:19Z")

</div>

Is there any binding or plugin kind of thing to access the SVN repository… It would be much better if i could know how to install the svn/core, svn/error.Its urgent. please do reply…

---

## [Troubles with bindings lib in RoR](https://www.ruby-forum.com/t/troubles-with-bindings-lib-in-ror/113376)

<div class="topic-metadata">

**Author:** [@denao](https://www.ruby-forum.com/u/denao)\
**Replies:** 0\
**Last updated:** [August 30, 2007, 2:24pm UTC](https://www.ruby-forum.com/t/troubles-with-bindings-lib-in-ror/113376 "2007-08-30T14:24:51Z")

</div>

Hi to all I have a simple library (extension) for ruby… Here is an tes script for this library test.rb if ARGV.include?(“local”) require “…/…/bin/libagisRubySrv” else require “/usr/lib/libagisRubySrv” end a = AGI…

---

## [How to get DB table names](https://www.ruby-forum.com/t/how-to-get-db-table-names/113372)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [August 30, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/how-to-get-db-table-names/113372 "2007-08-30T14:10:16Z")

</div>

Hi, Does anybody know how to get table names from MySql DB? Thank you for answer

---

## [Built-in Methods to Encode/Decode HTML?](https://www.ruby-forum.com/t/built-in-methods-to-encode-decode-html/112917)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 3\
**Last updated:** [August 30, 2007, 2:06pm UTC](https://www.ruby-forum.com/t/built-in-methods-to-encode-decode-html/112917 "2007-08-30T14:06:49Z")

</div>

Are there any built-in methods in either Ruby or Rails to do what this library does (i.e. encode/decode HTML)? http://htmlentities.rubyforge.org/ The above library works beautifully but I just expected this sort of f…

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

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