# Rails

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

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

---

## [\[ADV\] New PeepCode Screencasts Released](https://www.ruby-forum.com/t/adv-new-peepcode-screencasts-released/108831)

<div class="topic-metadata">

**Author:** [@topfunky](https://www.ruby-forum.com/u/topfunky)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/adv-new-peepcode-screencasts-released/108831 "2007-07-07T20:01:02Z")

</div>

Three new PeepCode Screencasts have been recently released. A highly requested two part series on Rails for beginners is now available. In addition, rSpec Basics (part one of a three part series) was released less tha…

---

## [Tcl/Tk on Mac OS X: LoadError](https://www.ruby-forum.com/t/tcl-tk-on-mac-os-x-loaderror/108824)

<div class="topic-metadata">

**Author:** [@isakk](https://www.ruby-forum.com/u/isakk)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/tcl-tk-on-mac-os-x-loaderror/108824 "2007-07-07T17:59:36Z")

</div>

Hello. I have a problem with Tcl/Tk in OS X, each time i try requiring tk, i get this: irb(main):001:0\> require ‘tk’ LoadError: no such file to load – tk from (irb):1:in \`require’ from (irb):1 irb(main):002:0\> I …

---

## [Attachment\_fu, temporary uploads, and RMagick manipulations](https://www.ruby-forum.com/t/attachment-fu-temporary-uploads-and-rmagick-manipulations/108820)

<div class="topic-metadata">

**Author:** [@Spence\_Akiri](https://www.ruby-forum.com/u/Spence_Akiri)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/attachment-fu-temporary-uploads-and-rmagick-manipulations/108820 "2007-07-07T17:47:51Z")

</div>

I want to provide users the option to upload images and have them manipulated with RMagick before scaling them down. The problem is, I’m not sure how to set up the controller to treat images that aren’t passed throug…

---

## [Model Validations in my controller](https://www.ruby-forum.com/t/model-validations-in-my-controller/108804)

<div class="topic-metadata">

**Author:** [@raghus](https://www.ruby-forum.com/u/raghus)\
**Replies:** 11\
**Last updated:** [July 7, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/model-validations-in-my-controller/108804 "2007-07-07T17:39:50Z")

</div>

Hi, I have a validation (for my email column of my users table) in my user.rb model on the lines of: validates\_format\_of(:email,:with =\> /^(\[^@\\s\]+)@((?:\[-a-z0-9\]+.)+\[a-z\] {2,})$/i,:if =\> Proc.new {|b| not b.email.bl…

---

## [RoR + online payment](https://www.ruby-forum.com/t/ror-online-payment/108647)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 3\
**Last updated:** [July 7, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/ror-online-payment/108647 "2007-07-07T16:00:45Z")

</div>

Hi everyone, I wonder what kind of plugins can be installed to combine RoR and online payment methods such as using Credit Cards or Paypal, etc? Or must we create our own way to do the online payment? Thanks in advan…

---

## [Sqlite3.3.7 gives "SQL logic error or missing database"](https://www.ruby-forum.com/t/sqlite3-3-7-gives-sql-logic-error-or-missing-database/108590)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [July 7, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/sqlite3-3-7-gives-sql-logic-error-or-missing-database/108590 "2007-07-07T15:34:43Z")

</div>

annoyingly from test\_dummy with nothing in it. The bug refers to the calls \`commence’ So when I move all my non-Model unit tests out of the unit test folder, and put them into the functional folder, and everything wo…

---

## [\[ANN\] Ruby-GetText-Package-1.10.0](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-10-0/108810)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-1-10-0/108810 "2007-07-07T13:46:34Z")

</div>

Hi, Ruby-GetText-Package-1.10.0 is now available. Changes Support Vietnamese(vi), Bosnian(bs), Croatian(hr), Norwegian(nb) Cache messages. Both () and n() become 1.3-1.8 times faster than older version. Add GetText.…

---

## [Aptana tab problem](https://www.ruby-forum.com/t/aptana-tab-problem/108806)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/aptana-tab-problem/108806 "2007-07-07T12:31:10Z")

</div>

Hi, Ever since I installed a few patches last week aptana has started to use tabs to indent instead of spaces, how can I revert it back to use spaces? There doesn’t seem to be the option under preferences like there …

---

## [Autocomplete](https://www.ruby-forum.com/t/autocomplete/108808)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/autocomplete/108808 "2007-07-07T12:24:28Z")

</div>

Hello Experts, small piece of ex: \<%= text\_field\_with\_auto\_complete :contact, :name %\> - Single name well, my question is i want to implement this field as array or objects. i want to pass name as array to server. s…

---

## [Routing a restful controller to work from site root](https://www.ruby-forum.com/t/routing-a-restful-controller-to-work-from-site-root/108776)

<div class="topic-metadata">

**Author:** [@etikette](https://www.ruby-forum.com/u/etikette)\
**Replies:** 3\
**Last updated:** [July 7, 2007, 9:13am UTC](https://www.ruby-forum.com/t/routing-a-restful-controller-to-work-from-site-root/108776 "2007-07-07T09:13:17Z")

</div>

hi i have rewritten my map.resources so that a resource is called from the start: map.connect ‘’, :controller =\> “resource” so www.mysite.com lists the available resource however i want www.mysite.com/1 to show one of…

---

## [\[ANN\] raptcha-0.0.1](https://www.ruby-forum.com/t/ann-raptcha-0-0-1/108797)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 5:43am UTC](https://www.ruby-forum.com/t/ann-raptcha-0-0-1/108797 "2007-07-07T05:43:06Z")

</div>

NAME raptcha SYNOPSIS low drain bamage, storage-less, session-less, plugin-less, zero admin, single-source-file secure captcha system for ruby and/or rails DESCRIPTION raptcha manages image generation via a stream…

---

## [ANN: nu\_record = assert\_latest(Model){ create\_some\_model()](https://www.ruby-forum.com/t/ann-nu-record-assert-latest-model-create-some-model/108795)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 5:07am UTC](https://www.ruby-forum.com/t/ann-nu-record-assert-latest-model-create-some-model/108795 "2007-07-07T05:07:05Z")

</div>

Railsters: A recent question here asked how to get the ID of a recently added Model object. (The answer is that methods like .create and .save populate the .id field.) This leads to a new question: How can a test de…

---

## [AJAX redirect, with absolute URL, corrupts the URL](https://www.ruby-forum.com/t/ajax-redirect-with-absolute-url-corrupts-the-url/108792)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [July 7, 2007, 4:52am UTC](https://www.ruby-forum.com/t/ajax-redirect-with-absolute-url-corrupts-the-url/108792 "2007-07-07T04:52:04Z")

</div>

I’m trying to redirect the browser to a URL outside of my domain on some AJAX calls. I do: page.redirect\_to(some\_url) It works fine with internal URLs, when I supply the :action and :controller, but absolute URLs fa…

---

## [Overriding belongs\_to accessor](https://www.ruby-forum.com/t/overriding-belongs-to-accessor/108791)

<div class="topic-metadata">

**Author:** [@Ethilien](https://www.ruby-forum.com/u/Ethilien)\
**Replies:** 1\
**Last updated:** [July 7, 2007, 3:33am UTC](https://www.ruby-forum.com/t/overriding-belongs-to-accessor/108791 "2007-07-07T03:33:00Z")

</div>

This is a question which may easily turn out to be simply a misunderstanding on my part of the way rails is intended to work. I have an articles model, which belongs to a user model, however I am trying to make it so …

---

## [I feel like I'm missing something...browser incompatibility](https://www.ruby-forum.com/t/i-feel-like-im-missing-something-browser-incompatibility/108351)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 11\
**Last updated:** [July 7, 2007, 3:27am UTC](https://www.ruby-forum.com/t/i-feel-like-im-missing-something-browser-incompatibility/108351 "2007-07-07T03:27:18Z")

</div>

There’s an aspect of Rails development that I have found quite painful. Like many of you, I do my development on a Mac. Things go together quickly and easily for the most part. Then I look at what I’ve done on a Wind…

---

## [Timer for AJAX calls in Rails?](https://www.ruby-forum.com/t/timer-for-ajax-calls-in-rails/107479)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 5\
**Last updated:** [July 7, 2007, 1:38am UTC](https://www.ruby-forum.com/t/timer-for-ajax-calls-in-rails/107479 "2007-07-07T01:38:53Z")

</div>

Say I want to perform an ajax action every 10 seconds. Is there a timer function in the built-in JavaScript libraries that will let me do this? – Chris S. removed\_email\_address@domain.invalid http://www.compiledmon…

---

## [Query cache plugin for rails 1.2](https://www.ruby-forum.com/t/query-cache-plugin-for-rails-1-2/108787)

<div class="topic-metadata">

**Author:** [@inkling](https://www.ruby-forum.com/u/inkling)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 1:25am UTC](https://www.ruby-forum.com/t/query-cache-plugin-for-rails-1-2/108787 "2007-07-07T01:25:51Z")

</div>

Cross post from the “core” google group. I love the query cache from rails edge, but I didn’t want to put our production app on edge just yet. (went down that route in the 1.1.x days, and the edge cut me a few times…

---

## [How to implement click and drag feature in Rails](https://www.ruby-forum.com/t/how-to-implement-click-and-drag-feature-in-rails/108769)

<div class="topic-metadata">

**Author:** [@kathy](https://www.ruby-forum.com/u/kathy)\
**Replies:** 2\
**Last updated:** [July 7, 2007, 1:07am UTC](https://www.ruby-forum.com/t/how-to-implement-click-and-drag-feature-in-rails/108769 "2007-07-07T01:07:26Z")

</div>

Hi, I don’t know if Ruby on Rails has an easy way to implement this feature. Basically it is similar to google map’s click on the map and can drag it vertically or horizontally. I also want to show some tv schedules i…

---

## [Has\_many and params](https://www.ruby-forum.com/t/has-many-and-params/108771)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 3\
**Last updated:** [July 7, 2007, 12:42am UTC](https://www.ruby-forum.com/t/has-many-and-params/108771 "2007-07-07T00:42:50Z")

</div>

Hi, a question about creating (and updating) a model and its children at the same time. Is it possible with a simple create(params) ? e.g. a “Post” model which has\_many :comments. I’d like to do something like this: P…

---

## [How do I find what's using so much memory?](https://www.ruby-forum.com/t/how-do-i-find-whats-using-so-much-memory/108703)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 11\
**Last updated:** [July 7, 2007, 12:21am UTC](https://www.ruby-forum.com/t/how-do-i-find-whats-using-so-much-memory/108703 "2007-07-07T00:21:48Z")

</div>

I’ve got an app that is eating up lots of memory. When it first starts up, it uses ~125 megs for a mongrel process, which isn’t terrible I suppose. However after being used for a while it balloons to 250-350 megs. …

---

## [Rails custom tags -- access to content inside custom tag](https://www.ruby-forum.com/t/rails-custom-tags-access-to-content-inside-custom-tag/108782)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 12:01am UTC](https://www.ruby-forum.com/t/rails-custom-tags-access-to-content-inside-custom-tag/108782 "2007-07-07T00:01:46Z")

</div>

i’ve yet to find anything in rails where i can create a custom tag that has access to the html content between the open and end tags. where should i look for this functionality? peace, mike

---

## [Dynamically switching database](https://www.ruby-forum.com/t/dynamically-switching-database/108762)

<div class="topic-metadata">

**Author:** [@tktktk](https://www.ruby-forum.com/u/tktktk)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/dynamically-switching-database/108762 "2007-07-06T23:51:45Z")

</div>

Hi I’m completely new to RoR and don’t know how to exactly achieve the following task: With our old web app we switched the database depending on the domain name so that we could use one application for multiple cust…

---

## [In\_place\_edit\_field](https://www.ruby-forum.com/t/in-place-edit-field/108773)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/in-place-edit-field/108773 "2007-07-06T23:19:53Z")

</div>

I have this tables in my database: “user” with such fields as “first”, “last”, for the first and last name. Now, I want to make it so after these values are submitted to the database the user can still edit their pers…

---

## [To\_json and polymorphic models](https://www.ruby-forum.com/t/to-json-and-polymorphic-models/108778)

<div class="topic-metadata">

**Author:** [@Jif](https://www.ruby-forum.com/u/Jif)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/to-json-and-polymorphic-models/108778 "2007-07-06T22:32:38Z")

</div>

I have tried to use to\_json to create an array that will be manipulated in javascript on the client. The output of to\_json looks something like this: \[{addressable: {attributes: {code: “123123123”, quantity: “123”, …

---

## [OT: NICEST butt EVER!](https://www.ruby-forum.com/t/ot-nicest-butt-ever/108775)

<div class="topic-metadata">

**Author:** [@JohnZhang](https://www.ruby-forum.com/u/JohnZhang)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/ot-nicest-butt-ever/108775 "2007-07-06T21:58:34Z")

</div>

Nice…VERY nice :wink: http://www.thepollspace.com/polls.php?pollid=1722

---

## [Scheduling in backgroundrb not working](https://www.ruby-forum.com/t/scheduling-in-backgroundrb-not-working/85525)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/scheduling-in-backgroundrb-not-working/85525 "2007-07-06T21:54:17Z")

</div>

Hi , How do i schedule a job that can send emails at intervals of time using backgroundrb and rails For testing When i hit the controller i'm able send the emails. but that is not i intend to do ..... I want to us…

---

## [Text\_field without newline](https://www.ruby-forum.com/t/text-field-without-newline/108500)

<div class="topic-metadata">

**Author:** [@oozy](https://www.ruby-forum.com/u/oozy)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/text-field-without-newline/108500 "2007-07-06T21:52:34Z")

</div>

Hello. I have a very basic rails question. I’m using \<%= form.text\_field :title, :size =\> 40 %\> to create a text field, but it always creates a newline after it. Is is possible to create this text field so I can en…

---

## [Active record, ignore a column](https://www.ruby-forum.com/t/active-record-ignore-a-column/108763)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 5\
**Last updated:** [July 6, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/active-record-ignore-a-column/108763 "2007-07-06T21:01:28Z")

</div>

Say I have a table with 3 columns: id integer name varchar(50) data text Is there anyway to have active record think that only the columns “id” and “name” exist? Such that it never loads all the text in the “data” …

---

## [Strange Migration Behaviour](https://www.ruby-forum.com/t/strange-migration-behaviour/108756)

<div class="topic-metadata">

**Author:** [@emmanuel](https://www.ruby-forum.com/u/emmanuel)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/strange-migration-behaviour/108756 "2007-07-06T19:11:51Z")

</div>

Hi! I’m getting this strange migration error for this migration: class CreateCustomers \< ActiveRecord::Migration def self.up Customer.create :name =\> ‘TEST’, :zone\_id =\> 0 end def self.down Customer.delete\_all end …

---

## [Form\_remote\_tag](https://www.ruby-forum.com/t/form-remote-tag/108682)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 7\
**Last updated:** [July 6, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/form-remote-tag/108682 "2007-07-06T19:08:20Z")

</div>

I am using form\_remote\_tag as follows: \<%= form\_remote\_tag(:update =\> “sku”, :url=\>{:action =\>:generate\_skus}) %\> The problem I am having is the web page will actually change to the generate\_skus page which defeats t…

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

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