# Rails

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

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

---

## [Update my Application](https://www.ruby-forum.com/t/update-my-application/116909)

<div class="topic-metadata">

**Author:** [@Osiro](https://www.ruby-forum.com/u/Osiro)\
**Replies:** 2\
**Last updated:** [October 11, 2007, 5:19am UTC](https://www.ruby-forum.com/t/update-my-application/116909 "2007-10-11T05:19:30Z")

</div>

Hi guys, I'm creating my forms without the scaffold script, and now, I needed to add one more column in my table. But how can I update this? When I type something in this new text field, my database do not insert t…

---

## [What is a monit cycle?](https://www.ruby-forum.com/t/what-is-a-monit-cycle/116904)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 4\
**Last updated:** [October 11, 2007, 4:20am UTC](https://www.ruby-forum.com/t/what-is-a-monit-cycle/116904 "2007-10-11T04:20:16Z")

</div>

At risk of sounding uneducated, can someone please tell me what is a “cycle” within the context of the monit config? For example, if it states… if 20 restarts in 20 cycles then timeout so that means it restarts every…

---

## [Models belonging to the session?](https://www.ruby-forum.com/t/models-belonging-to-the-session/116456)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 13\
**Last updated:** [October 11, 2007, 4:01am UTC](https://www.ruby-forum.com/t/models-belonging-to-the-session/116456 "2007-10-11T04:01:31Z")

</div>

I’m implementing a shopping cart which is stored in the database rather than in the session itself. I’m using ActiveRecordStore for session. (using Edge) I’d like to have the cart belong\_to the session in a normal has…

---

## [Assert\_select\_rjs blocks failing in 1.2.4](https://www.ruby-forum.com/t/assert-select-rjs-blocks-failing-in-1-2-4/116733)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 10\
**Last updated:** [October 11, 2007, 3:50am UTC](https://www.ruby-forum.com/t/assert-select-rjs-blocks-failing-in-1-2-4/116733 "2007-10-11T03:50:47Z")

</div>

I just updated to 1.2.4 and now all my assert\_select\_rjs blocks are failing. For example: assert\_select\_rjs :replace\_html, “test” do assert\_select “.foo” #fails end fails with something like this for the rjs page.…

---

## [Overlaying an image with file\_column, rmagick](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 2\
**Last updated:** [October 11, 2007, 2:55am UTC](https://www.ruby-forum.com/t/overlaying-an-image-with-file-column-rmagick/114394 "2007-10-11T02:55:01Z")

</div>

Anybody know the rmagic commands in the model definition to overlay a 24-bit png file over an uploaded jpg using file\_column? I have this: file\_column :post\_photo, :magick =\> { :geometry =\> “648x800”, :versions =\> {…

---

## [Object Based Authorization](https://www.ruby-forum.com/t/object-based-authorization/116837)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 5\
**Last updated:** [October 11, 2007, 2:24am UTC](https://www.ruby-forum.com/t/object-based-authorization/116837 "2007-10-11T02:24:11Z")

</div>

I need to restrict users from interacting with objects that do not belong\_to them (reference their id). For example, user #2 should not be able to load the page /events/show/3 if Event #3 has a user\_id of ‘1’. Anyone …

---

## [Rails xml deserialization issues](https://www.ruby-forum.com/t/rails-xml-deserialization-issues/116911)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 1:46am UTC](https://www.ruby-forum.com/t/rails-xml-deserialization-issues/116911 "2007-10-11T01:46:43Z")

</div>

When I post this XML to my controller: \<?xml version="1.0" encoding="utf-8"?\> \<transcoder\_queue xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd=“http://www.w3.org/2001/XMLSchema”\> 0 \<campaign\_id\>1\</…

---

## [Migrations on multi-database app](https://www.ruby-forum.com/t/migrations-on-multi-database-app/116907)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 12:32am UTC](https://www.ruby-forum.com/t/migrations-on-multi-database-app/116907 "2007-10-11T00:32:19Z")

</div>

Is it possible to use migrations to manage databases on a multi-database application? Example, I need to have the User/Security aspects of the app in one DB while all the standard app data is in another. How to manag…

---

## [Auto complete customization?](https://www.ruby-forum.com/t/auto-complete-customization/116897)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/auto-complete-customization/116897 "2007-10-10T23:21:13Z")

</div>

Using Rails built-in auto-complete text field helper, when the autocomplete menu shows up, the first option in it starts out ‘selected’. Meaning if the user hits ‘return’, it will put that selected item into the text …

---

## [Strange prototype problem](https://www.ruby-forum.com/t/strange-prototype-problem/116894)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/strange-prototype-problem/116894 "2007-10-10T23:14:52Z")

</div>

Sorry for the slightly off-topic post. I have a piece of Javascript that I am using to make an Ajax call using prototype. It works fine in Firefox and IE 7, but is giving a syntax error in Safari 2.04. Can anyone s…

---

## [Strange prototype problem](https://www.ruby-forum.com/t/strange-prototype-problem/196485)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/strange-prototype-problem/196485 "2007-10-10T22:52:00Z")

</div>

Sorry for the slightly off-topic post. I have a piece of Javascript that I am using to make an Ajax call using prototype. It works fine in Firefox and IE 7, but is giving a syntax error in Safari 2.04. Can anyone s…

---

## [Onblur to work with select](https://www.ruby-forum.com/t/onblur-to-work-with-select/116701)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/onblur-to-work-with-select/116701 "2007-10-10T22:39:42Z")

</div>

I need a method to be called upon an ‘onblur’ event when a select list is no longer the focus - ideally, I would like it to work when the ‘Enter’ key is hit. But, I am just trying to get the onblur to work, here is wh…

---

## [Is Ruby for me?](https://www.ruby-forum.com/t/is-ruby-for-me/116878)

<div class="topic-metadata">

**Author:** [@sandraqu](https://www.ruby-forum.com/u/sandraqu)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/is-ruby-for-me/116878 "2007-10-10T22:19:45Z")

</div>

Is Ruby on Rails the right framework for setting up a system that can successfully accomplish the following tasks: -flexible user roles and permissions -automated workflows -robust taxonomies -robust search engine …

---

## [Problems with rSpec](https://www.ruby-forum.com/t/problems-with-rspec/116813)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/problems-with-rspec/116813 "2007-10-10T21:35:46Z")

</div>

First question I am getting this error when running my tests: … b spec/views/projects/index.rhtml\_spec.rb spec/views/projects/ new.rhtml\_spec.rb /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/ active\_s…

---

## [Forum, Wiki, Blog Plugins](https://www.ruby-forum.com/t/forum-wiki-blog-plugins/116657)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 5\
**Last updated:** [October 10, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/forum-wiki-blog-plugins/116657 "2007-10-10T21:26:22Z")

</div>

I’d like to add Forum, Wiki and Blog type sections to my site. Are there any plugins that will let me do this quickly and easily? Also, something like 37signals “writeboard” would be nice too. Is that available as a p…

---

## [How can I use a the current\_timestamp feature of a database without a magial column](https://www.ruby-forum.com/t/how-can-i-use-a-the-current-timestamp-feature-of-a-database-without-a-magial-column/116869)

<div class="topic-metadata">

**Author:** [@dirk](https://www.ruby-forum.com/u/dirk)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/how-can-i-use-a-the-current-timestamp-feature-of-a-database-without-a-magial-column/116869 "2007-10-10T19:45:47Z")

</div>

Hi , I’m looking for a way to create columns with a default current\_stamp with the db:migrate feature.

---

## [Backticks wrapping SQL values in polymorphic associations](https://www.ruby-forum.com/t/backticks-wrapping-sql-values-in-polymorphic-associations/116819)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 5\
**Last updated:** [October 10, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/backticks-wrapping-sql-values-in-polymorphic-associations/116819 "2007-10-10T19:42:52Z")

</div>

Hopefully the subject line didn’t scare you. That said… I have a simple polymorphic relationship (is that possible?): class Part has\_many :attachments, :as =\> :attachable end class Attachment belongs\_to :attachable…

---

## [TextMate and rails, an offering and a question](https://www.ruby-forum.com/t/textmate-and-rails-an-offering-and-a-question/116882)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/textmate-and-rails-an-offering-and-a-question/116882 "2007-10-10T19:31:08Z")

</div>

Yesterday, i wrote a little TextMate command which helps writing rails db test fixtures. It’s an auto snippet with a tag trigger of item which gets dynamically generated from db/schema.rb I wrote about it in my blog …

---

## [Permanent Web Developer Position Available in Austin with Leading Performance-Based Marketing Compan](https://www.ruby-forum.com/t/permanent-web-developer-position-available-in-austin-with-leading-performance-based-marketing-compan/116883)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_Rails](https://www.ruby-forum.com/u/Ruby_on_Rails)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/permanent-web-developer-position-available-in-austin-with-leading-performance-based-marketing-compan/116883 "2007-10-10T19:22:54Z")

</div>

There is an exciting Ruby on Rails Developer opportunity for software development professionals with inovative development experience with an emphasis in front-end development and strong Object Oriented Analysis and D…

---

## [How to pass 2 variables to controller from \<a href="#" onCli](https://www.ruby-forum.com/t/how-to-pass-2-variables-to-controller-from-a-href-oncli/116685)

<div class="topic-metadata">

**Author:** [@narozk](https://www.ruby-forum.com/u/narozk)\
**Replies:** 6\
**Last updated:** [October 10, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/how-to-pass-2-variables-to-controller-from-a-href-oncli/116685 "2007-10-10T19:15:52Z")

</div>

I want to pass 2 variables (@variableA, @variableB) to my controller “search” when the following href is clicked: myView.rhtml: HOTEL I need the 2 variables for my condition string, which should work something l…

---

## [Dynamic CSS Generation](https://www.ruby-forum.com/t/dynamic-css-generation/116818)

<div class="topic-metadata">

**Author:** [@corywilkerson](https://www.ruby-forum.com/u/corywilkerson)\
**Replies:** 7\
**Last updated:** [October 10, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/dynamic-css-generation/116818 "2007-10-10T17:43:07Z")

</div>

Anyone dynamically generating CSS based on browser-type out there? I’ve currently hacked my application in the most disgusting of ways to pull off what I need to support my project - but I’m just not pleased with the…

---

## [Capistrano with different user name?](https://www.ruby-forum.com/t/capistrano-with-different-user-name/116862)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/capistrano-with-different-user-name/116862 "2007-10-10T15:46:42Z")

</div>

Hi All, I started to studying capistrano..Its very intresting..I am able to do with same user name and passwod in my local machine,repository and remote machine… But i am not able to do with different user name in al…

---

## [Production mode bug with ruby/amazon](https://www.ruby-forum.com/t/production-mode-bug-with-ruby-amazon/114355)

<div class="topic-metadata">

**Author:** [@chriszf13](https://www.ruby-forum.com/u/chriszf13)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/production-mode-bug-with-ruby-amazon/114355 "2007-10-10T15:36:07Z")

</div>

Hi all, I’ve got an issue that only ever appears in production mode. I’ve got my app hooked up to amazon’s web service (ECS, using ruby/amazon from Ruby/Amazon). In the dev environment, everything’s peachy. But in pr…

---

## [Capistrano / Net-ssh install errors skipping require of](https://www.ruby-forum.com/t/capistrano-net-ssh-install-errors-skipping-require-of/112972)

<div class="topic-metadata">

**Author:** [@brianzimmer](https://www.ruby-forum.com/u/brianzimmer)\
**Replies:** 3\
**Last updated:** [October 10, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/capistrano-net-ssh-install-errors-skipping-require-of/112972 "2007-10-10T15:30:13Z")

</div>

I’m trying to find out why capistrano will not run on my computer. I am running Ubuntu 6.06 dapper drake. Rails 1.2.3 I get errors when i try to run cap -h or cap anything… /usr/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/l…

---

## [How to install and use subversion successfully on windows xp](https://www.ruby-forum.com/t/how-to-install-and-use-subversion-successfully-on-windows-xp/116770)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 10, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-install-and-use-subversion-successfully-on-windows-xp/116770 "2007-10-10T15:21:21Z")

</div>

hi guys can anyone tell how to install subversion on windows xp for use with instantrails? the documentation that comes with the download is unfathomable please help!!

---

## [Habtm destroy problem](https://www.ruby-forum.com/t/habtm-destroy-problem/116854)

<div class="topic-metadata">

**Author:** [@squil](https://www.ruby-forum.com/u/squil)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/habtm-destroy-problem/116854 "2007-10-10T15:10:44Z")

</div>

hi, I’m new to rails, and I have a problem. I have a habtm relationship between Book and Author models. I’ve got the database, and it almost works, except that I can’t destroy anything. When I try to destroy a book …

---

## [Pastie/sake for "rake db:migrate:down"](https://www.ruby-forum.com/t/pastie-sake-for-rake-dbdown/116849)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/pastie-sake-for-rake-dbdown/116849 "2007-10-10T14:50:43Z")

</div>

I made a friendly alias to rake db:migrate VERSION=0 (got tired of writing it all the time) Feel free to use it. add alias to “rake db:migrate VERSION=0” that can be called without extra parameters namespace :db do n…

---

## [Update data via cron?](https://www.ruby-forum.com/t/update-data-via-cron/116844)

<div class="topic-metadata">

**Author:** [@Raven](https://www.ruby-forum.com/u/Raven)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/update-data-via-cron/116844 "2007-10-10T14:33:05Z")

</div>

Hi! I’m building a small site and I wish to fill the data in the database nightly via cron. What is best practice here? Do I: have cron do a normal web request to /nightRunner/doIt? build a maintenance script and pla…

---

## [Searching an acts\_as\_tree model](https://www.ruby-forum.com/t/searching-an-acts-as-tree-model/116798)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 2\
**Last updated:** [October 10, 2007, 11:07am UTC](https://www.ruby-forum.com/t/searching-an-acts-as-tree-model/116798 "2007-10-10T11:07:09Z")

</div>

If I have a Person model that acts\_as\_tree, how can I find a particular person by drilling down through the family tree? e.g. for this family: John | | Amy Dave | | Bob Bob The urls …

---

## [Using Camping with XMLRPC](https://www.ruby-forum.com/t/using-camping-with-xmlrpc/116842)

<div class="topic-metadata">

**Author:** [@Christian\_WattengSS](https://www.ruby-forum.com/u/Christian_WattengSS)\
**Replies:** 0\
**Last updated:** [October 10, 2007, 10:55am UTC](https://www.ruby-forum.com/t/using-camping-with-xmlrpc/116842 "2007-10-10T10:55:38Z")

</div>

I know this group is not for Camping, but I can’t find any good alternative :slight\_smile: I’m trying to use the xmlrpc library with camping. And to do that I’m trying to only have to initialize the connection once. T…

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

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