# Rails

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

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

---

## [\[Slightly OT\] backgroundrb monit config](https://www.ruby-forum.com/t/slightly-ot-backgroundrb-monit-config/103109)

<div class="topic-metadata">

**Author:** [@Zack\_C](https://www.ruby-forum.com/u/Zack_C)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 2:04am UTC](https://www.ruby-forum.com/t/slightly-ot-backgroundrb-monit-config/103109 "2007-05-02T02:04:16Z")

</div>

Anyone have a a good monit config section for backgroundrb? I’m thinking something like this: check process backgroundrb with pidfile /var/www/apps/foo/current/log/backgroundrb.pid start program = “/var/www/apps/foo/…

---

## [\[OT\] Inject XML into page and tranform with XSL](https://www.ruby-forum.com/t/ot-inject-xml-into-page-and-tranform-with-xsl/103046)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 5\
**Last updated:** [May 2, 2007, 1:52am UTC](https://www.ruby-forum.com/t/ot-inject-xml-into-page-and-tranform-with-xsl/103046 "2007-05-02T01:52:16Z")

</div>

Hi, Is it possible to recieve an xml repsonse from my rails app, and then, client side, inject the xml into the page without reloading and have it apply an xslt? Like an AJAX call, but ajax is unavailable to me. My …

---

## [Habtm "AND" find conditions](https://www.ruby-forum.com/t/habtm-and-find-conditions/62701)

<div class="topic-metadata">

**Author:** [@jjrussell](https://www.ruby-forum.com/u/jjrussell)\
**Replies:** 10\
**Last updated:** [May 2, 2007, 12:45am UTC](https://www.ruby-forum.com/t/habtm-and-find-conditions/62701 "2007-05-02T00:45:24Z")

</div>

I have two tables and a join table for them e.g. books, authors in a many to many relationship (habtm) and a join table books\_authors. I can successfully search for a book that has “author.id = 2 OR author.id = 4” b…

---

## [The engines plugin is now installed, or is it?](https://www.ruby-forum.com/t/the-engines-plugin-is-now-installed-or-is-it/103118)

<div class="topic-metadata">

**Author:** [@ungaro](https://www.ruby-forum.com/u/ungaro)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 12:40am UTC](https://www.ruby-forum.com/t/the-engines-plugin-is-now-installed-or-is-it/103118 "2007-05-02T00:40:34Z")

</div>

i’ve installed the engines plug-in, and got this lovely message: The engines plugin is now installed. Feels good, right? Yeah. … also i’ve added these lines to my environment.rb ADMIN\_PAGE\_DIR=“page” Engines.start :…

---

## [Session being overwritten by different actions](https://www.ruby-forum.com/t/session-being-overwritten-by-different-actions/85560)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 12:16am UTC](https://www.ruby-forum.com/t/session-being-overwritten-by-different-actions/85560 "2007-05-02T00:16:34Z")

</div>

Suppose you have a controller with 2 actions that look like this def long session\[:foo\] = “bar” sleep 15 render :nothing =\> true end def short session\[:short\] = 1 render :nothing =\> true end def status render …

---

## [Development on nfs share](https://www.ruby-forum.com/t/development-on-nfs-share/103052)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 5\
**Last updated:** [May 1, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/development-on-nfs-share/103052 "2007-05-01T23:59:52Z")

</div>

Is there any way to end up somewhere in between the development environment and production environment as far as refreshing the source on every request. Our setup is that we work off of nfs shares which makes it extr…

---

## [Which image uplaod plugin to use with edge rails?](https://www.ruby-forum.com/t/which-image-uplaod-plugin-to-use-with-edge-rails/103115)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/which-image-uplaod-plugin-to-use-with-edge-rails/103115 "2007-05-01T23:55:42Z")

</div>

Hi, Just taking a look at all of these image upload plugins, has anyone got any suggestions on which one is the best to go for when using rails 1.2 and edge? Cheers, Josh

---

## [Ruby execute script](https://www.ruby-forum.com/t/ruby-execute-script/103111)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 1\
**Last updated:** [May 1, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/ruby-execute-script/103111 "2007-05-01T23:54:04Z")

</div>

Hi everyone I’m trying to use scripts like ghost script and imagemagick Can ruby call this script? I looking for something like exec(“convert sample.pdf sample.jpeg”) thank you

---

## [How to define static variable across a partial?](https://www.ruby-forum.com/t/how-to-define-static-variable-across-a-partial/103098)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/how-to-define-static-variable-across-a-partial/103098 "2007-05-01T23:38:03Z")

</div>

Hi, I have partial: \<%=render(:partial =\> ‘blog\_post’, :collection =\> @blogs)%\> This outputs a series of blog posts, however I only want to output the created\_on date if it is different from the last, is there a way …

---

## [Lighting the lightbulb](https://www.ruby-forum.com/t/lighting-the-lightbulb/103102)

<div class="topic-metadata">

**Author:** [@List\_Catcher](https://www.ruby-forum.com/u/List_Catcher)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/lighting-the-lightbulb/103102 "2007-05-01T23:17:00Z")

</div>

Hi all, this is my first post here. I have several Rails books here that I’m working and I’m trying to “get the light bulb to turn on.” I’m attempting a small application that processes account applications, and if a…

---

## [Fast drives vs. more memory/disk space](https://www.ruby-forum.com/t/fast-drives-vs-more-memory-disk-space/93253)

<div class="topic-metadata">

**Author:** [@thetawaverider](https://www.ruby-forum.com/u/thetawaverider)\
**Replies:** 4\
**Last updated:** [May 1, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/fast-drives-vs-more-memory-disk-space/93253 "2007-05-01T22:42:54Z")

</div>

Hello, I currently have two options for my upcoming dedicated server, which will be running Xen w/ Apache/Mongrel in some instances and MySQL in another, and will have SAN storage for the app itself: 4GB RAM, 4x 73GB…

---

## [Rake not working when called through cron](https://www.ruby-forum.com/t/rake-not-working-when-called-through-cron/92705)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 8\
**Last updated:** [May 1, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/rake-not-working-when-called-through-cron/92705 "2007-05-01T22:33:09Z")

</div>

This is currently the contents of “app-backup” in my cron.daily. – #!/bin/sh Cron Job for Mixbook Code Backup Updated February 1, 2007 cd /var/rails/beta rake s3:backup:scm --trace \>\> /var/rails/beta/log/backup.log …

---

## [\[SURVEY\] Sysadmin Stupidity Check](https://www.ruby-forum.com/t/survey-sysadmin-stupidity-check/91230)

<div class="topic-metadata">

**Author:** [@Zed\_ASShaw](https://www.ruby-forum.com/u/Zed_ASShaw)\
**Replies:** 8\
**Last updated:** [May 1, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/survey-sysadmin-stupidity-check/91230 "2007-05-01T21:46:47Z")

</div>

Not really a survey on whether sysadmins are stupid, but more a question about how people are doing things with their Mongrel management. Do you have different management commands in your monit configuration vs. your…

---

## [Setting parameters in link from javascript](https://www.ruby-forum.com/t/setting-parameters-in-link-from-javascript/92798)

<div class="topic-metadata">

**Author:** [@Anders\_EngstrSSSSm](https://www.ruby-forum.com/u/Anders_EngstrSSSSm)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/setting-parameters-in-link-from-javascript/92798 "2007-05-01T21:38:47Z")

</div>

Hi. I need to do an Ajax call to populate a span-tag with some text from the server-side. I’m using ‘link\_to\_remote’ but I need to fetch one of the parameters in the call from a form field. Initially I tried somethin…

---

## [How to execute shell command from Rails?](https://www.ruby-forum.com/t/how-to-execute-shell-command-from-rails/103073)

<div class="topic-metadata">

**Author:** [@rph](https://www.ruby-forum.com/u/rph)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/how-to-execute-shell-command-from-rails/103073 "2007-05-01T20:46:41Z")

</div>

I’m caching API data from flickr and delicious on my site. I’m using a ruby script that goes out and collects the data, and marshal’s it. For whatever reason, the cron job will not execute, so as a temporary alternati…

---

## [RJB jave bridge help!](https://www.ruby-forum.com/t/rjb-jave-bridge-help/103081)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/rjb-jave-bridge-help/103081 "2007-05-01T19:14:30Z")

</div>

Why is this happening? if i put my Rjb::load method in environment.rb webrick won’t start from inside radrails it just sits there trying to connect… however i can start webrick manually by doing script/server in a ter…

---

## [Duplicate key violates unique constraint](https://www.ruby-forum.com/t/duplicate-key-violates-unique-constraint/103087)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 1, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/duplicate-key-violates-unique-constraint/103087 "2007-05-01T18:46:28Z")

</div>

I’ve run into an interesting issue. When setting up a table with data from a file (I’m doing this in a block). I find that I can’t create separate entries manually after the import. It complains about a duplicate p…

---

## [Piston](https://www.ruby-forum.com/t/piston/92532)

<div class="topic-metadata">

**Author:** [@CSSSSdric\_H](https://www.ruby-forum.com/u/CSSSSdric_H)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/piston/92532 "2007-05-01T18:43:27Z")

</div>

Hi all, My rails project were usualy using svn:external to keep rails on the edge. I seems rake freeze is definitively better. But what about Piston ? Should I use Piston for everything ( rails, plugins and unpacked …

---

## [Can i use 2 version of rails with mod\_fcgid](https://www.ruby-forum.com/t/can-i-use-2-version-of-rails-with-mod-fcgid/103084)

<div class="topic-metadata">

**Author:** [@revolution](https://www.ruby-forum.com/u/revolution)\
**Replies:** 1\
**Last updated:** [May 1, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/can-i-use-2-version-of-rails-with-mod-fcgid/103084 "2007-05-01T18:36:25Z")

</div>

I installed rails version 1.1.6 and 1.2.2 1.1.6 work fine but 1.2.2 is error, RoutingError I use debian sarge, ruby-1.8.4, apache2, mod\_fcgid any suggestion please, T\_T

---

## [Where is global Rails configuration?](https://www.ruby-forum.com/t/where-is-global-rails-configuration/103085)

<div class="topic-metadata">

**Author:** [@dtdtdt](https://www.ruby-forum.com/u/dtdtdt)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/where-is-global-rails-configuration/103085 "2007-05-01T18:26:04Z")

</div>

Hi, Let’s say I wanted to add something to Rails that I would like all applications to use. For example, I would like to add the pluggable parameter parsing using: ActionController::Base.param\_parsers\[‘application/at…

---

## [Newbie question; best way to store simple session data?](https://www.ruby-forum.com/t/newbie-question-best-way-to-store-simple-session-data/103053)

<div class="topic-metadata">

**Author:** [@ken](https://www.ruby-forum.com/u/ken)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/newbie-question-best-way-to-store-simple-session-data/103053 "2007-05-01T18:01:23Z")

</div>

As a first test project, I’m writing a little Rails app that simply lets one browse the directory structure on the server. (Obviously, this isn’t intended for public deployment :slight\_smile: ). One thing that needs t…

---

## [Confused by acts\_as\_list documentation](https://www.ruby-forum.com/t/confused-by-acts-as-list-documentation/103083)

<div class="topic-metadata">

**Author:** [@rinda](https://www.ruby-forum.com/u/rinda)\
**Replies:** 1\
**Last updated:** [May 1, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/confused-by-acts-as-list-documentation/103083 "2007-05-01T17:49:22Z")

</div>

Hi, http://api.rubyonrails.org/classes/ActiveRecord/Acts/List/ClassMethods.html I try to play with acts\_as\_list feature and I don’t understand these lines: todo\_list.first.move\_to\_bottom todo\_list.last.move\_higher t…

---

## [Image Science vs. RMagick](https://www.ruby-forum.com/t/image-science-vs-rmagick/103088)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/image-science-vs-rmagick/103088 "2007-05-01T17:48:22Z")

</div>

I’m looking at possibly going with Image Science (http:// seattlerb.rubyforge.org/ImageScience.html) for an application in development. I’ve heard that it is a lot less overhead than RMagick and we really don’t have …

---

## [Hivelogic Install Instructions for OS X](https://www.ruby-forum.com/t/hivelogic-install-instructions-for-os-x/103040)

<div class="topic-metadata">

**Author:** [@DigitalRealm](https://www.ruby-forum.com/u/DigitalRealm)\
**Replies:** 8\
**Last updated:** [May 1, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/hivelogic-install-instructions-for-os-x/103040 "2007-05-01T17:38:20Z")

</div>

I decided to check out Dan’s awesome tutorial for RoR and I have a little problem… The first part there, where you make sure the path is correct, I cannot get to work. mate ~/.bash\_login This does not work for me,…

---

## [Capistrano Wiki](https://www.ruby-forum.com/t/capistrano-wiki/103082)

<div class="topic-metadata">

**Author:** [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/capistrano-wiki/103082 "2007-05-01T17:30:19Z")

</div>

A capistrano wiki (http://capify.stikipad.com/) is in the works. I’m sure there’s some sweet tasks and deployment strategies out there that people are just dying to share. So far Jamis and topfunky are on board (http:…

---

## [Flash not clearing?](https://www.ruby-forum.com/t/flash-not-clearing/103078)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/flash-not-clearing/103078 "2007-05-01T16:27:13Z")

</div>

hi all, using rails 1.2.3 on windows xp i have a controller method like so: def index …do stuff… if some\_error flash\[:notice\] = “error!” end end and the layout has: \<% if flash\[:notice\] -%\> \<%= flash\[:notice…

---

## [RJS form field enable / disable etc](https://www.ruby-forum.com/t/rjs-form-field-enable-disable-etc/103079)

<div class="topic-metadata">

**Author:** [@rickf](https://www.ruby-forum.com/u/rickf)\
**Replies:** 0\
**Last updated:** [May 1, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/rjs-form-field-enable-disable-etc/103079 "2007-05-01T16:02:20Z")

</div>

Hi All, I guess I am looking for the preferred methodology for enabling / disabling form elements. I should add that my enable / disables are not simple in the sense that a drop down selection should cause various ot…

---

## [Help modeling a User/Group permission structure](https://www.ruby-forum.com/t/help-modeling-a-user-group-permission-structure/93237)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 3\
**Last updated:** [May 1, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/help-modeling-a-user-group-permission-structure/93237 "2007-05-01T16:00:08Z")

</div>

Hello, I’ve worked through some rails tutorials and am trying to create something a little more complicated for learning purposes. I’m trying to extend a blog application into more of a cms with a basic user/ group p…

---

## [Ruby on the Grid - Deploying on Virtual Infrastructure](https://www.ruby-forum.com/t/ruby-on-the-grid-deploying-on-virtual-infrastructure/93197)

<div class="topic-metadata">

**Author:** [@gridninja](https://www.ruby-forum.com/u/gridninja)\
**Replies:** 13\
**Last updated:** [May 1, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/ruby-on-the-grid-deploying-on-virtual-infrastructure/93197 "2007-05-01T15:50:12Z")

</div>

Has anyone attempted to deploy high transaction or heavy traffic ROR sites/apps in a scalable virtual environment using Linux? If so, would be great to hear some of the pros and cons. Thanks in advance for any insight…

---

## [Rails extremly slow on WinXP](https://www.ruby-forum.com/t/rails-extremly-slow-on-winxp/103031)

<div class="topic-metadata">

**Author:** [@MarcS](https://www.ruby-forum.com/u/MarcS)\
**Replies:** 2\
**Last updated:** [May 1, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/rails-extremly-slow-on-winxp/103031 "2007-05-01T15:44:07Z")

</div>

Hi everyone I just installed ruby using the latest one-click-installer and rails with the latest gem. When I run any generator it takes about 1 minute for it to complete. There is no output for a minute or so and the…

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

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