# Rails

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

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

---

## [Extending acts\_as\_versioned](https://www.ruby-forum.com/t/extending-acts-as-versioned/106088)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/extending-acts-as-versioned/106088 "2007-06-06T14:53:10Z")

</div>

Hello all, I’ve set up an Entry model, which acts\_as\_versioned. Everything is working perfectly, but I want to store the timestamp on which a version is created somewhere. I googled to no avail, so hopefully one of yo…

---

## [Is mock Object the best way to test scheduling system with a](https://www.ruby-forum.com/t/is-mock-object-the-best-way-to-test-scheduling-system-with-a/106102)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/is-mock-object-the-best-way-to-test-scheduling-system-with-a/106102 "2007-06-06T13:35:56Z")

</div>

Hi everyone, I hope everyone is doing well. I am working on a scheduling system that dealing with Time.now a lot. It is getting tricky to write test code for the function. suppose a function in a model: def expired…

---

## [Capistrano doesn't know port number?](https://www.ruby-forum.com/t/capistrano-doesnt-know-port-number/106026)

<div class="topic-metadata">

**Author:** [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Replies:** 6\
**Last updated:** [June 6, 2007, 1:22pm UTC](https://www.ruby-forum.com/t/capistrano-doesnt-know-port-number/106026 "2007-06-06T13:22:54Z")

</div>

This is a Capistrano question (sorry if those aren’t encouraged), but am I understanding this wrong? \[removed\_email\_address@domain.invalid\] executing command \*\* \[out :: removed\_email\_address@domain.invalid\] ssh: conne…

---

## [Undefined method \<name\> for Service:Module](https://www.ruby-forum.com/t/undefined-method-name-for-service-module/105981)

<div class="topic-metadata">

**Author:** [@udinesh](https://www.ruby-forum.com/u/udinesh)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/undefined-method-name-for-service-module/105981 "2007-06-06T13:01:49Z")

</div>

Hi all, We have a controller by name “ServiceController” (service\_controller.rb) and everything was fine until we upgraded our rails. We recently upgraded Rails from Rails 1.1.6 to Rails 1.2.3. and after that when we …

---

## [Capistrano: Port in SVN](https://www.ruby-forum.com/t/capistrano-port-in-svn/106099)

<div class="topic-metadata">

**Author:** [@Zach\_ISSS\_LT3media](https://www.ruby-forum.com/u/Zach_ISSS_LT3media)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/capistrano-port-in-svn/106099 "2007-06-06T12:59:51Z")

</div>

. . . executing “sudo chmod -R g+w /usr/local/svn/project\_name” servers: \[“project\_name.com”\] \[project\_name.com\] executing command command finished executing task svn\_import Adding branches and tags ssh: connect …

---

## [Journal Articles & Conference Papers](https://www.ruby-forum.com/t/journal-articles-conference-papers/106086)

<div class="topic-metadata">

**Author:** [@craig](https://www.ruby-forum.com/u/craig)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/journal-articles-conference-papers/106086 "2007-06-06T12:31:54Z")

</div>

Hello all, I am about to start my masters dissertation which is focused on Ruby on Rails and would like to reference some journal articles and conference papers that relate to Rails. I will, of course, be searching o…

---

## [Access the 'parent' resource from a nested one?](https://www.ruby-forum.com/t/access-the-parent-resource-from-a-nested-one/106017)

<div class="topic-metadata">

**Author:** [@hamrin](https://www.ruby-forum.com/u/hamrin)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/access-the-parent-resource-from-a-nested-one/106017 "2007-06-06T12:14:46Z")

</div>

Is there a possibility in an action to get the parent controller for which the nested resource is called? for instance if I have the following in my routes.rb: map.resources :user do |users| users.resources :logos e…

---

## [Problem with migrate](https://www.ruby-forum.com/t/problem-with-migrate/105964)

<div class="topic-metadata">

**Author:** [@jhon](https://www.ruby-forum.com/u/jhon)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 11:24am UTC](https://www.ruby-forum.com/t/problem-with-migrate/105964 "2007-06-06T11:24:34Z")

</div>

I have the following file named 001\_create\_videos.rb under db folder, and it contains this: class CreateVideos \< ActiveRecord::Migration def self.up create\_table :videos do |t| t.column “texto”, :string t.column “c…

---

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

<div class="topic-metadata">

**Author:** [@tekin](https://www.ruby-forum.com/u/tekin)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 10:42am UTC](https://www.ruby-forum.com/t/piston-not-updating/106091 "2007-06-06T10:42:27Z")

</div>

Is there any obvious reason why Piston would not apply changes when updating plugins? It seems to go through all the motions when I run “piston update vendor/plugins/my\_plugin” but never seems to make any changes - th…

---

## [Validation of multiple objects](https://www.ruby-forum.com/t/validation-of-multiple-objects/106065)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 10:33am UTC](https://www.ruby-forum.com/t/validation-of-multiple-objects/106065 "2007-06-06T10:33:27Z")

</div>

There seems to be problem when I try to validate the creation of a set of new objects. The error messages tag for the model name don{t respond but the validation works . If someone could help me with this problem or h…

---

## [Application scgi\_rails error](https://www.ruby-forum.com/t/application-scgi-rails-error/106090)

<div class="topic-metadata">

**Author:** [@landanger\_py](https://www.ruby-forum.com/u/landanger_py)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 10:31am UTC](https://www.ruby-forum.com/t/application-scgi-rails-error/106090 "2007-06-06T10:31:39Z")

</div>

Hello, My application in production was running fine, until i got more and more of those message: I do not know where it come from, and need help to get rid of it Errno::ECONNRESET (Connection reset by peer): /usr/l…

---

## [Address Verification - Not Ruby Specific](https://www.ruby-forum.com/t/address-verification-not-ruby-specific/106061)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 9:09am UTC](https://www.ruby-forum.com/t/address-verification-not-ruby-specific/106061 "2007-06-06T09:09:16Z")

</div>

Any suggestions on a service or library/gem to use for address verifications?

---

## [Capistrano SSH User issues](https://www.ruby-forum.com/t/capistrano-ssh-user-issues/106084)

<div class="topic-metadata">

**Author:** [@Zach\_ISSS\_LT3media](https://www.ruby-forum.com/u/Zach_ISSS_LT3media)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 8:49am UTC](https://www.ruby-forum.com/t/capistrano-ssh-user-issues/106084 "2007-06-06T08:49:14Z")

</div>

You do not have permission to post to group rubyonrails-talk. You may need to join the group before being allowed to post, or this group may not be open to posting. Zach I. â†’ Blog – http://www.zachinglis.com â†’…

---

## [Date null when saving model](https://www.ruby-forum.com/t/date-null-when-saving-model/106078)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 8:33am UTC](https://www.ruby-forum.com/t/date-null-when-saving-model/106078 "2007-06-06T08:33:12Z")

</div>

Hi, I must be doing something dumb, but I can’t figure this out. The following code: customer = Customer.new(:name =\> ‘Ray’, :date\_created =\> Time.now.to\_s(:db)) customer.save! Always results in the error ActiveRec…

---

## [Unit testing](https://www.ruby-forum.com/t/unit-testing/106080)

<div class="topic-metadata">

**Author:** [@kalaivani](https://www.ruby-forum.com/u/kalaivani)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 7:38am UTC](https://www.ruby-forum.com/t/unit-testing/106080 "2007-06-06T07:38:07Z")

</div>

hi, i have a doubt in unit testing. How can check my table ,its have all the fields …like that. for ex. Initially i have four fields … it works if suppose i am adding another two fields in my form but i amn’t ment…

---

## [Looking for a PDF document with relation of ActiveRecord](https://www.ruby-forum.com/t/looking-for-a-pdf-document-with-relation-of-activerecord/105815)

<div class="topic-metadata">

**Author:** [@StSSSSphane\_Wirtel](https://www.ruby-forum.com/u/StSSSSphane_Wirtel)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 6:48am UTC](https://www.ruby-forum.com/t/looking-for-a-pdf-document-with-relation-of-activerecord/105815 "2007-06-06T06:48:02Z")

</div>

Hi all, There was some months, I found on this mailing list a PDF document, explaining the database relations (belong\_to, has\_many, … ) in ActiveRecord with pictures. Any idea, where can I find this document ? Thanks…

---

## [Calendar capabilities](https://www.ruby-forum.com/t/calendar-capabilities/106076)

<div class="topic-metadata">

**Author:** [@tomfence](https://www.ruby-forum.com/u/tomfence)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 6:39am UTC](https://www.ruby-forum.com/t/calendar-capabilities/106076 "2007-06-06T06:39:01Z")

</div>

I’m a rails newby, and I’m looking to develop a page that has calendaring functionality. I’ve looked at the available helpers: DynamicCalendarHelper, CalendarHelper, etc, but I have not been able to find what I am lo…

---

## [Weird time out range problem](https://www.ruby-forum.com/t/weird-time-out-range-problem/106074)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 5:31am UTC](https://www.ruby-forum.com/t/weird-time-out-range-problem/106074 "2007-06-06T05:31:49Z")

</div>

I’ve got a basic text field where somebody can enter their birthdate. I’m using a virtual attribute and all is working fine except if a date is entered between 38 and 68. Meaning that 01/01/69 will work fine and is in…

---

## [Child validations?](https://www.ruby-forum.com/t/child-validations/105942)

<div class="topic-metadata">

**Author:** [@DuzenburyS\_Rich](https://www.ruby-forum.com/u/DuzenburyS_Rich)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 5:20am UTC](https://www.ruby-forum.com/t/child-validations/105942 "2007-06-06T05:20:56Z")

</div>

Hi, I’m working on my User model, which derives from Party, and parties have many e-mail addresses, telephones, and mailing addresses. When I save the user model, the validations occur, but the child error messages …

---

## [Help with page.replace\_html and partials](https://www.ruby-forum.com/t/help-with-page-replace-html-and-partials/106067)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 4:18am UTC](https://www.ruby-forum.com/t/help-with-page-replace-html-and-partials/106067 "2007-06-06T04:18:08Z")

</div>

Hello, The gist of this is that I’m trying to move an item from one partial to another, and the item disappear when I delete it from the first partial, and have that item appear in the second partial instantly. Just …

---

## [Help with partials](https://www.ruby-forum.com/t/help-with-partials/105799)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 3:38am UTC](https://www.ruby-forum.com/t/help-with-partials/105799 "2007-06-06T03:38:45Z")

</div>

Hi, I am trying to get a partial to update on a page, but I can’t get it to work. Here’s the relevant part of my controller: def update\_deleted @listing = Listing.update(params\[:id\], :deleted =\> “1”, :position =\> “…

---

## [File\_column giving bad urls](https://www.ruby-forum.com/t/file-column-giving-bad-urls/105802)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 3:34am UTC](https://www.ruby-forum.com/t/file-column-giving-bad-urls/105802 "2007-06-06T03:34:14Z")

</div>

Hi Everyone, I’m currently working on a practice blog project of sorts and wanted to add an image to each of my posts. I’ve downloaded file\_column and installed it since it seems like a good solution for what I want …

---

## [Serializing Symbols in Table?](https://www.ruby-forum.com/t/serializing-symbols-in-table/105973)

<div class="topic-metadata">

**Author:** [@matt\_jacobs](https://www.ruby-forum.com/u/matt_jacobs)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 3:17am UTC](https://www.ruby-forum.com/t/serializing-symbols-in-table/105973 "2007-06-06T03:17:38Z")

</div>

Hi everyone, I’m planning an application that I’m going to be working on where I’ll have a number of Users and I’ll need to store the user’s current position on a governing board (if he/she has a position) and also al…

---

## [No referer defined in TestRequest](https://www.ruby-forum.com/t/no-referer-defined-in-testrequest/106063)

<div class="topic-metadata">

**Author:** [@kempa](https://www.ruby-forum.com/u/kempa)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 2:21am UTC](https://www.ruby-forum.com/t/no-referer-defined-in-testrequest/106063 "2007-06-06T02:21:35Z")

</div>

in my controller I do the following after login: redirect\_to request.referer) || '/' which works well until I test it, then the dwarfs complain that there is no referer defined. I did the following and it worked: re…

---

## [IPTC & EXF information?](https://www.ruby-forum.com/t/iptc-exf-information/147428)

<div class="topic-metadata">

**Author:** [@cammo](https://www.ruby-forum.com/u/cammo)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 1:30am UTC](https://www.ruby-forum.com/t/iptc-exf-information/147428 "2007-06-06T01:30:31Z")

</div>

Hell everyone, I’ve been doig a bit of hunting around, and haven’t found alot of information yet, but am wondering if anyone can tell me if they know of a way to read IPTC and/or EXIF information from images? What I …

---

## [IPTC & EXF information?](https://www.ruby-forum.com/t/iptc-exf-information/106060)

<div class="topic-metadata">

**Author:** [@cammo](https://www.ruby-forum.com/u/cammo)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 1:30am UTC](https://www.ruby-forum.com/t/iptc-exf-information/106060 "2007-06-06T01:30:31Z")

</div>

Hell everyone, I’ve been doig a bit of hunting around, and haven’t found alot of information yet, but am wondering if anyone can tell me if they know of a way to read IPTC and/or EXIF information from images? What I …

---

## [\[ANN\] ar\_mailer 1.2.0 Released](https://www.ruby-forum.com/t/ann-ar-mailer-1-2-0-released/106057)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 12:26am UTC](https://www.ruby-forum.com/t/ann-ar-mailer-1-2-0-released/106057 "2007-06-06T00:26:24Z")

</div>

ar\_mailer version 1.2.0 has been released! http://seattlerb.org/ar\_mailer Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar\_mailer allows you to store messa…

---

## [Validating votes w/ act\_as\_voteable](https://www.ruby-forum.com/t/validating-votes-w-act-as-voteable/106055)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 12:14am UTC](https://www.ruby-forum.com/t/validating-votes-w-act-as-voteable/106055 "2007-06-06T00:14:23Z")

</div>

I’m have trouble implementing a uniqueness check w/ act\_as\_voteable plugin. The 2 approaches I’ve taken: vote.rb (plugin dir): I tried adding the line “validates\_uniqueness\_of” to the votes.rb but there seems to be no …

---

## [User-friendly unique records](https://www.ruby-forum.com/t/user-friendly-unique-records/106045)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 12:06am UTC](https://www.ruby-forum.com/t/user-friendly-unique-records/106045 "2007-06-06T00:06:23Z")

</div>

Hey everybody, I’ve got a table that contains addresses. Addresses belong\_to users. When a new address is added, I would like to avoid duplicates. The model should check to see if it is exactly the same as an existin…

---

## [Find with date range](https://www.ruby-forum.com/t/find-with-date-range/106053)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 5\
**Last updated:** [June 5, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/find-with-date-range/106053 "2007-06-05T23:54:22Z")

</div>

I have to do some searches with date restrictions such as “this week,” “last week”, “last month”, etc. Is there some clever Rails way of doing this, or do I just have to grind it out? Thanks, -George

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

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