# Rails

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

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

---

## [Trabajo desde casa- ruby on rails developer- us company](https://www.ruby-forum.com/t/trabajo-desde-casa-ruby-on-rails-developer-us-company/116768)

<div class="topic-metadata">

**Author:** [@avity](https://www.ruby-forum.com/u/avity)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/trabajo-desde-casa-ruby-on-rails-developer-us-company/116768 "2007-10-09T16:46:30Z")

</div>

Super-Intelligent Ruby on Rails Developer - US Company - Immediate We are a rapidly growing American company with staff in Latin America and Europe. We would like to retain three or more developers immediately to sta…

---

## [Model data templates](https://www.ruby-forum.com/t/model-data-templates/116767)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/model-data-templates/116767 "2007-10-09T16:37:52Z")

</div>

hi, i’m looking for suggestions how to setup and manage relatively small default data sets to be used as templates. lets say a user can have a default set of objects involving several models, and there might be sever…

---

## [Overriding model associations](https://www.ruby-forum.com/t/overriding-model-associations/116690)

<div class="topic-metadata">

**Author:** [@Sean\_Schofield](https://www.ruby-forum.com/u/Sean_Schofield)\
**Replies:** 3\
**Last updated:** [October 9, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/overriding-model-associations/116690 "2007-10-09T16:31:23Z")

</div>

I seem to recall reading that engines will not allow you to override your plugin models in the main application. Is that true? If so, is there a simple hack that would allow me to override an association? I have the…

---

## [Rake aborted!](https://www.ruby-forum.com/t/rake-aborted/116762)

<div class="topic-metadata">

**Author:** [@bluecenter](https://www.ruby-forum.com/u/bluecenter)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/rake-aborted/116762 "2007-10-09T15:50:13Z")

</div>

How come do I get this information “rake abort! Don’t know how to build task ‘report\_test’” after I run the integration test? Thanks!

---

## [Capistrano2 deploy problems](https://www.ruby-forum.com/t/capistrano2-deploy-problems/116761)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/capistrano2-deploy-problems/116761 "2007-10-09T15:38:27Z")

</div>

Since I moved to capistrano2, I’m getting problems with the deploy. My server runs a mongrel\_cluster behind Apache (on Linux). On cold start, it looks for script/spin, which isn’t there. On restart, it tries to run sc…

---

## [Mananging multiple backends servers](https://www.ruby-forum.com/t/mananging-multiple-backends-servers/116195)

<div class="topic-metadata">

**Author:** [@ant](https://www.ruby-forum.com/u/ant)\
**Replies:** 3\
**Last updated:** [October 9, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/mananging-multiple-backends-servers/116195 "2007-10-09T15:12:35Z")

</div>

Hi all, does anybody know of a tutorial that gives advice about the best way to run multiple rails applications on a cluster of physical servers with a load-balancer sitting on top. At the moment I am running pound o…

---

## [HowToCheck if JavaScript enabled in browser?](https://www.ruby-forum.com/t/howtocheck-if-javascript-enabled-in-browser/116751)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/howtocheck-if-javascript-enabled-in-browser/116751 "2007-10-09T15:03:13Z")

</div>

Hello, How do I can check if javascript enabled in browser? Thanks

---

## [Find all users who haven't logged in for a while](https://www.ruby-forum.com/t/find-all-users-who-havent-logged-in-for-a-while/116759)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/find-all-users-who-havent-logged-in-for-a-while/116759 "2007-10-09T14:37:22Z")

</div>

Hi All, In my application I have users that have a ‘last\_login’ attribute. I’m trying do a find for all users that have not logged in for over a month but I’m having a little trouble figuring out how to do this with …

---

## [Sql query in views](https://www.ruby-forum.com/t/sql-query-in-views/116332)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 12\
**Last updated:** [October 9, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/sql-query-in-views/116332 "2007-10-09T14:33:16Z")

</div>

Hello frnds Is there any method to write the insert query in the .rhtml file (eg: -list.rhtml). If so please do let me know. I know that its not the best way out but then in my list.rhtml i m having @email which is st…

---

## [Stripping whitespace in generated output](https://www.ruby-forum.com/t/stripping-whitespace-in-generated-output/116749)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/stripping-whitespace-in-generated-output/116749 "2007-10-09T14:27:59Z")

</div>

When viewing the generated HTML, I notice a lot of whitespace. Is there a simple way to hook into the output just before it is sent to the client so I can replace multiple spaces with one space? Or, if possible, any …

---

## [PDF Creation from HTML file as Input in ROR](https://www.ruby-forum.com/t/pdf-creation-from-html-file-as-input-in-ror/116758)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 1:38pm UTC](https://www.ruby-forum.com/t/pdf-creation-from-html-file-as-input-in-ror/116758 "2007-10-09T13:38:02Z")

</div>

Hi All, I am new to this, I m looking for ROR code that will enable me to generate PDF from the html file. Actually I m looking for Ruby plugins that are platform independent. Please help me, sample code or link will …

---

## [Javascript "please wait" image](https://www.ruby-forum.com/t/javascript-please-wait-image/116753)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/javascript-please-wait-image/116753 "2007-10-09T12:41:47Z")

</div>

When I used to write Perl CGI scripts I displayed an animated gif image whilst waiting for a long database query to load, and some javascript to remove the image once the content was available. I’d like to do the same…

---

## [Simple variable question](https://www.ruby-forum.com/t/simple-variable-question/116723)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/simple-variable-question/116723 "2007-10-09T12:40:19Z")

</div>

Hey everyone! Just have a quick question, im writing a method to update a field specified through an ajax edit in place, (i dont want to write one method for every single field, so im going more generic) currently im…

---

## [Error installing gems 0.9.4.. can anybody help?](https://www.ruby-forum.com/t/error-installing-gems-0-9-4-can-anybody-help/116602)

<div class="topic-metadata">

**Author:** [@magicrebirth](https://www.ruby-forum.com/u/magicrebirth)\
**Replies:** 4\
**Last updated:** [October 9, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/error-installing-gems-0-9-4-can-anybody-help/116602 "2007-10-09T12:24:13Z")

</div>

Sorry guys if it may seem naive… but I went through many tutorials trying to install the whole framework (ruby + rails to start with) - and I always run into this problem. Scanned various mailing lists but I cant fin…

---

## [Images from database](https://www.ruby-forum.com/t/images-from-database/116544)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 8\
**Last updated:** [October 9, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/images-from-database/116544 "2007-10-09T12:08:09Z")

</div>

I have an application that stores thumbnail images in a database as simple RGB uncompressed data. I am currently writing a rails application to display the contents of this database. I am wondering what’s the fastest…

---

## [Getting action mailer to work on OSX with sendmail](https://www.ruby-forum.com/t/getting-action-mailer-to-work-on-osx-with-sendmail/116745)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 11:31am UTC](https://www.ruby-forum.com/t/getting-action-mailer-to-work-on-osx-with-sendmail/116745 "2007-10-09T11:31:45Z")

</div>

Hi all, I’m trying to get action mailer to work with my dev environment on my OS x laptop. I have the following configuration for action mailer in my development.rb ActionMailer::Base.raise\_delivery\_errors = true #…

---

## [Wildcard search](https://www.ruby-forum.com/t/wildcard-search/116294)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 9\
**Last updated:** [October 9, 2007, 10:25am UTC](https://www.ruby-forum.com/t/wildcard-search/116294 "2007-10-09T10:25:58Z")

</div>

Hello, I am doing a simple dictionary for the purpose of practising ruby on rails I have a search function and I want to enable wildcard search. for example search : apple --\> gives apple search : ap?le --\> gives a…

---

## [Validate two dates, 2date - 1date \> 1month](https://www.ruby-forum.com/t/validate-two-dates-2date-1date-1month/116742)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 8:59am UTC](https://www.ruby-forum.com/t/validate-two-dates-2date-1date-1month/116742 "2007-10-09T08:59:06Z")

</div>

Hello, I have a model with date field, i need to compare this date with current system time. The date that inputed from web-form should be at least one month later than current system time. What the best way to do it…

---

## [Adding attributes to acts\_as\_taggable](https://www.ruby-forum.com/t/adding-attributes-to-acts-as-taggable/116744)

<div class="topic-metadata">

**Author:** [@Abdullah\_J](https://www.ruby-forum.com/u/Abdullah_J)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 8:55am UTC](https://www.ruby-forum.com/t/adding-attributes-to-acts-as-taggable/116744 "2007-10-09T08:55:00Z")

</div>

Hi All, I want to add additional attributes to my tags besides just the tag name itself. Is this possible with acts\_as\_taggable or is there a better approach? Thanks, Abdullah

---

## [REST route with multiple ids](https://www.ruby-forum.com/t/rest-route-with-multiple-ids/116272)

<div class="topic-metadata">

**Author:** [@midwaltz](https://www.ruby-forum.com/u/midwaltz)\
**Replies:** 6\
**Last updated:** [October 9, 2007, 8:09am UTC](https://www.ruby-forum.com/t/rest-route-with-multiple-ids/116272 "2007-10-09T08:09:51Z")

</div>

How can I configure a REST route to accept multiple ids? for instance, in Highrise by 37signals tags have either routes like tags/47824 or tags/47824,43622,43628 I suppose it’s done with some regexp expertize, but I…

---

## [Auto\_complete :on\_show :on\_hide](https://www.ruby-forum.com/t/auto-complete-on-show-on-hide/116738)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:50am UTC](https://www.ruby-forum.com/t/auto-complete-on-show-on-hide/116738 "2007-10-09T06:50:08Z")

</div>

Hi, Trying to use the auto\_complete options of :on\_show and :on\_hide… …, :on\_hide =\> "function(element, update) {allow\_change\_control(true);} " but when I do this it runs my js function but the div doesn’t hide. I w…

---

## [Using Apache2.26 Balancer-Manager effectively](https://www.ruby-forum.com/t/using-apache2-26-balancer-manager-effectively/196482)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:02am UTC](https://www.ruby-forum.com/t/using-apache2-26-balancer-manager-effectively/196482 "2007-10-09T06:02:42Z")

</div>

Hi I have successfuly set up Apache 2.26+a pack of 4 mongrels on a Wndows 2003 Server. Looking at the Balancer-Manager,there are certain info displayed for each mongrel process such as Worker URL : http://127.0.0.1…

---

## [Using Balancer-Manager effectively](https://www.ruby-forum.com/t/using-balancer-manager-effectively/116732)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 6:00am UTC](https://www.ruby-forum.com/t/using-balancer-manager-effectively/116732 "2007-10-09T06:00:22Z")

</div>

Hi I have successfuly set up Apache 2.26+a pack of 4 mongrels on a Wndows 2003 Server. Looking at the Balancer-Manager,there are certain info displayed for each mongrel process such as Worker URL : http://127.0.0.1…

---

## [Apache 2.26+4 Mongrel processes using proxy\_balancer](https://www.ruby-forum.com/t/apache-2-26-4-mongrel-processes-using-proxy-balancer/116576)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 5\
**Last updated:** [October 9, 2007, 5:23am UTC](https://www.ruby-forum.com/t/apache-2-26-4-mongrel-processes-using-proxy-balancer/116576 "2007-10-09T05:23:28Z")

</div>

Hi I have set up 4 mongrel processes and have tested that each of them work before activating proxy\_balance and balancer-manager support Here is the relevant part of my httd.conf relating to Apache proxying a pack of…

---

## [Simultaneously updating multiple tables with form\_remote\_tag](https://www.ruby-forum.com/t/simultaneously-updating-multiple-tables-with-form-remote-tag/116726)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 4:01am UTC](https://www.ruby-forum.com/t/simultaneously-updating-multiple-tables-with-form-remote-tag/116726 "2007-10-09T04:01:28Z")

</div>

I have two tables (Person and User) that are related as follows: 1 class Person \< ActiveRecord::Base 2 3 def user 4 return User.find(:first, :conditions =\> \[“person\_id = ?”, self\] 5 end 6 7 def user\_name 8 …

---

## [Nested resources with RESTful Rails](https://www.ruby-forum.com/t/nested-resources-with-restful-rails/116663)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [October 9, 2007, 3:14am UTC](https://www.ruby-forum.com/t/nested-resources-with-restful-rails/116663 "2007-10-09T03:14:26Z")

</div>

Hi, I’m using RESTful in Rails, and I have an application with the following situation: I have categories, articles and comments. A category can contain many articles (one-to-many relation) and an article can have ma…

---

## [Has\_many through a habtm - what's the "source"?](https://www.ruby-forum.com/t/has-many-through-a-habtm-whats-the-source/116724)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [October 9, 2007, 3:12am UTC](https://www.ruby-forum.com/t/has-many-through-a-habtm-whats-the-source/116724 "2007-10-09T03:12:04Z")

</div>

Railsers: Our classes use these associations: \[Frog\]-1—-\[Adult\]-—\*-\[Tadpole\] All adults are frogs, and each frog is mother or father to numerous tadpoles. Declaring the right-side association is easy, via the hidden …

---

## [Rails 2.0 : handling routing error (Was: fallback to a default controller action)](https://www.ruby-forum.com/t/rails-2-0-handling-routing-error-was-fallback-to-a-default-controller-action/116639)

<div class="topic-metadata">

**Author:** [@Fabien\_P](https://www.ruby-forum.com/u/Fabien_P)\
**Replies:** 2\
**Last updated:** [October 9, 2007, 2:02am UTC](https://www.ruby-forum.com/t/rails-2-0-handling-routing-error-was-fallback-to-a-default-controller-action/116639 "2007-10-09T02:02:59Z")

</div>

Rails 2.0 has a much nicer way of dealing with this, since you can do class PostsController \< ApplicationController rescue\_from FooError, :with =\> :foo\_handler protected def foo\_handler end end I am trying to …

---

## [IE7 and restful delete links broken?](https://www.ruby-forum.com/t/ie7-and-restful-delete-links-broken/116721)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 0\
**Last updated:** [October 9, 2007, 12:10am UTC](https://www.ruby-forum.com/t/ie7-and-restful-delete-links-broken/116721 "2007-10-09T00:10:56Z")

</div>

My restful delete links work in everything except IE7, in which case the delete works, but then it redirects back to the ‘href’ that was on the delete link. I’ve even tested this with regular restful scaffold and i st…

---

## [TzTime buglet](https://www.ruby-forum.com/t/tztime-buglet/116718)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [October 8, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/tztime-buglet/116718 "2007-10-08T23:38:14Z")

</div>

I like to use strftime() to format the output time in various ways, each of which needs to have the time zone appended if it differs from the current user’s timezone. However, using %Z in a strftime() call failed to…

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

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