# Rails

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

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

---

## [Sitealizer Error](https://www.ruby-forum.com/t/sitealizer-error/92254)

<div class="topic-metadata">

**Author:** [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Replies:** 1\
**Last updated:** [May 7, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/sitealizer-error/92254 "2007-05-07T17:02:25Z")

</div>

Hi Friends… While i am using sitealizer, it throws an error, i am not able to clear this… URL: http://localhost:3000/sitealizer Error: NameError uninitialized constant SitealizerController RAILS\_ROOT: ./script/…/c…

---

## [Add functionality to multiple models?](https://www.ruby-forum.com/t/add-functionality-to-multiple-models/103505)

<div class="topic-metadata">

**Author:** [@ralph](https://www.ruby-forum.com/u/ralph)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/add-functionality-to-multiple-models/103505 "2007-05-07T16:42:02Z")

</div>

Hello, I’m working on a system for managing multiple different items, let’s say articles and pictures. All these items can be published and unpublished. They have a published\_at datetime field that is nil in unpublish…

---

## [Dealing With Rails Single Thread Design](https://www.ruby-forum.com/t/dealing-with-rails-single-thread-design/103523)

<div class="topic-metadata">

**Author:** [@someone1111](https://www.ruby-forum.com/u/someone1111)\
**Replies:** 3\
**Last updated:** [May 7, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/dealing-with-rails-single-thread-design/103523 "2007-05-07T16:30:17Z")

</div>

I hope Rails becomes mutli-threaded in a not-to-distant future release. That would relieve much of the criticism of Rails due to its single threadness. In reading Dave T.’ book, Agile Web Development with Rails, 2nd…

---

## [\[ADV\] New Pragmatic Book on Prototype and script.aculo.us](https://www.ruby-forum.com/t/adv-new-pragmatic-book-on-prototype-and-script-aculo-us/103530)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 0\
**Last updated:** [May 7, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/adv-new-pragmatic-book-on-prototype-and-script-aculo-us/103530 "2007-05-07T16:11:14Z")

</div>

I’m happy to announce that “Prototype and script.aculo.us” by Christophe P. is now available in Beta, and will be in print this fall. If you code Rails applications, the chances are good that you’ll want to include A…

---

## [Problem finding/using installed gems](https://www.ruby-forum.com/t/problem-finding-using-installed-gems/103529)

<div class="topic-metadata">

**Author:** [@Thogra](https://www.ruby-forum.com/u/Thogra)\
**Replies:** 0\
**Last updated:** [May 7, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/problem-finding-using-installed-gems/103529 "2007-05-07T16:09:13Z")

</div>

Hi all, I installed a gem but it doesn’t work properly (can’t call methods on this), though object instantiation seemed to work: flickr = Flickr.new gives a valid object. To check what happens I have inserted some c…

---

## [\[ADV\] Updated PDF of Agile Web Development with Rails](https://www.ruby-forum.com/t/adv-updated-pdf-of-agile-web-development-with-rails/103469)

<div class="topic-metadata">

**Author:** [@dirtytree](https://www.ruby-forum.com/u/dirtytree)\
**Replies:** 8\
**Last updated:** [May 7, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/adv-updated-pdf-of-agile-web-development-with-rails/103469 "2007-05-07T15:13:08Z")

</div>

Folks: I’ve just uploaded a new revision of the PDF of Agile Web D. with Rails (2nd ed). It fixes all reported errata, and brings the content in line with changes made to Rails since the book’s release (so you’ll se…

---

## [Set cursor in text\_field\_tag?](https://www.ruby-forum.com/t/set-cursor-in-text-field-tag/103517)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 0\
**Last updated:** [May 7, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/set-cursor-in-text-field-tag/103517 "2007-05-07T14:42:04Z")

</div>

Let’s say I’ve text\_field\_tag A and B. I type something in A and hit the tabulator-key. An observe\_field- helper-method gets triggered, some fancy Ajax-JS-stuff happens, the formerly disabled field B gets enabled and …

---

## ["observe\_field" and "onblur"](https://www.ruby-forum.com/t/observe-field-and-onblur/103515)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 1\
**Last updated:** [May 7, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/observe-field-and-onblur/103515 "2007-05-07T14:23:02Z")

</div>

I’ve a text\_field\_tag (dom-id: tag) in a form (http:// pastie.textmate.org/59525). Now I’d like it to have this kind ob behaviour: The user types in some stuff and as soon as he hits the tabulator-key some fancy java…

---

## [Trouble with a two-steps resource creation](https://www.ruby-forum.com/t/trouble-with-a-two-steps-resource-creation/103478)

<div class="topic-metadata">

**Author:** [@claxo](https://www.ruby-forum.com/u/claxo)\
**Replies:** 3\
**Last updated:** [May 7, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/trouble-with-a-two-steps-resource-creation/103478 "2007-05-07T13:45:59Z")

</div>

Hello, I’m having some troubles figuring how a REST two-step creation process for a resource could take place. The resource is also nested. I have Projects that may have Contributions. So here is the routes: map.re…

---

## [Problem in image processing](https://www.ruby-forum.com/t/problem-in-image-processing/93010)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 3\
**Last updated:** [May 7, 2007, 9:16am UTC](https://www.ruby-forum.com/t/problem-in-image-processing/93010 "2007-05-07T09:16:56Z")

</div>

hello , i install rmagick properly but i am unable to create thumbnail from it can anybody help me in creating thumbnail. i also want to split the extension of my image for the thumbnail. Thanks – Arun A.

---

## [Rails Installation Fails - InstantRails 1.3a](https://www.ruby-forum.com/t/rails-installation-fails-instantrails-1-3a/103439)

<div class="topic-metadata">

**Author:** [@RobertPhoenix](https://www.ruby-forum.com/u/RobertPhoenix)\
**Replies:** 4\
**Last updated:** [May 7, 2007, 8:49am UTC](https://www.ruby-forum.com/t/rails-installation-fails-instantrails-1-3a/103439 "2007-05-07T08:49:53Z")

</div>

I downloaded InstantRails 1.3a, and unzipped it to c:\\InstantRails I then ran gem install rails --include-dependencies in the Ruby Console Window A lot of it worked, but I saw these errors (with a bit of surrounding …

---

## [Fastcgi in Apache](https://www.ruby-forum.com/t/fastcgi-in-apache/103498)

<div class="topic-metadata">

**Author:** [@alfredogz](https://www.ruby-forum.com/u/alfredogz)\
**Replies:** 0\
**Last updated:** [May 7, 2007, 8:37am UTC](https://www.ruby-forum.com/t/fastcgi-in-apache/103498 "2007-05-07T08:37:31Z")

</div>

hello, this error shows me application: http://200.107.139.130/rails/ptest/log/fastcgi.crash.log any ideas??

---

## [Rails Textbox question](https://www.ruby-forum.com/t/rails-textbox-question/103496)

<div class="topic-metadata">

**Author:** [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 7:35am UTC](https://www.ruby-forum.com/t/rails-textbox-question/103496 "2007-05-07T07:35:46Z")

</div>

Hi All, I have a table and in it is a cell like this: \<td\> \<%=text\_field\_tag 'quantity', line\_item.quantity, {:size =\> 1} %\> \</td\> So, when the page loads, this text box will contain the quantity value of my line\_…

---

## [A ruby on rails social network](https://www.ruby-forum.com/t/a-ruby-on-rails-social-network/103486)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 7:03am UTC](https://www.ruby-forum.com/t/a-ruby-on-rails-social-network/103486 "2007-05-07T07:03:44Z")

</div>

Hot social network http://teenwag.com/profile?friendid=720

---

## [RoR and stored procedures](https://www.ruby-forum.com/t/ror-and-stored-procedures/103497)

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 6:41am UTC](https://www.ruby-forum.com/t/ror-and-stored-procedures/103497 "2007-05-07T06:41:44Z")

</div>

Hi all, I was wondering about what is the general consensus regarding using SQL stored procedures in RoR. Based on the fact that stored procedures are not mentioned in most (any) of the RoR manuals I read, I can concl…

---

## [Detecting attribute changes in callbacks](https://www.ruby-forum.com/t/detecting-attribute-changes-in-callbacks/103493)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 1\
**Last updated:** [May 7, 2007, 6:18am UTC](https://www.ruby-forum.com/t/detecting-attribute-changes-in-callbacks/103493 "2007-05-07T06:18:43Z")

</div>

Hey all, What is the best/easiest way to detect if a certain AR model attrirbute has changed in a callback? For example, I have a date field in my model that needs to be updated when a certain attribute has been…

---

## [Safety of Raising Exception](https://www.ruby-forum.com/t/safety-of-raising-exception/103448)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 7\
**Last updated:** [May 7, 2007, 6:07am UTC](https://www.ruby-forum.com/t/safety-of-raising-exception/103448 "2007-05-07T06:07:42Z")

</div>

Let’s say I have a url like /controller/method/id?some\_param=whatever if I put some\_param into an exception, such as raise MyException, “I don’t like the value #{some\_param}” or log(“I don’t like the value #{some\_pa…

---

## [Comparing polymorphic property to same object fails](https://www.ruby-forum.com/t/comparing-polymorphic-property-to-same-object-fails/103453)

<div class="topic-metadata">

**Author:** [@Gisborne](https://www.ruby-forum.com/u/Gisborne)\
**Replies:** 5\
**Last updated:** [May 7, 2007, 5:02am UTC](https://www.ruby-forum.com/t/comparing-polymorphic-property-to-same-object-fails/103453 "2007-05-07T05:02:40Z")

</div>

I’ve got a polymorphic association on one table. I assign to it in the controller. This is handling invitations of users to tasks in a task management application. If the user issuing the invitation is the user being …

---

## [An RoR app made in 2 weeks only 14 bugs so far](https://www.ruby-forum.com/t/an-ror-app-made-in-2-weeks-only-14-bugs-so-far/103487)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 7, 2007, 4:17am UTC](https://www.ruby-forum.com/t/an-ror-app-made-in-2-weeks-only-14-bugs-so-far/103487 "2007-05-07T04:17:38Z")

</div>

http://reddit.com/info/1o629/comments/c1o63j?context=5

---

## [Scaffold problem](https://www.ruby-forum.com/t/scaffold-problem/92843)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 6\
**Last updated:** [May 7, 2007, 3:29am UTC](https://www.ruby-forum.com/t/scaffold-problem/92843 "2007-05-07T03:29:11Z")

</div>

I thought I was LONG past something like this, but I guess not. I’m starting a new application. I created my database, one model (‘testimonials’ for the testimonial table), and an admin controller. To get a starting p…

---

## [Question about find\_by](https://www.ruby-forum.com/t/question-about-find-by/103488)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [May 7, 2007, 2:49am UTC](https://www.ruby-forum.com/t/question-about-find-by/103488 "2007-05-07T02:49:33Z")

</div>

hi, i am new to ruby/rails, and i am struggling with the find\_by method. Heres some background on what i am trying to get done: I have a User object, and a Book. User has\_one Book, and Book belongs\_to User. basicall…

---

## [Class-table inheritance in ActiveRecord](https://www.ruby-forum.com/t/class-table-inheritance-in-activerecord/75118)

<div class="topic-metadata">

**Author:** [@Ashley\_M](https://www.ruby-forum.com/u/Ashley_M)\
**Replies:** 3\
**Last updated:** [May 7, 2007, 12:29am UTC](https://www.ruby-forum.com/t/class-table-inheritance-in-activerecord/75118 "2007-05-07T00:29:26Z")

</div>

Hi people I’ve just submitted a patch that adds CTI to ActiveRecord. It’s not quite done yet - some stuff is untested, and associations (probably) don’t work with CTI classes. But you can read and write CTI records …

---

## [What Editor/IDE do you use?](https://www.ruby-forum.com/t/what-editor-ide-do-you-use/103426)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 16\
**Last updated:** [May 7, 2007, 12:16am UTC](https://www.ruby-forum.com/t/what-editor-ide-do-you-use/103426 "2007-05-07T00:16:27Z")

</div>

I originally bought into the hype and went with TextMate. I can’t say anything bad about it, I think it serves its purpose as a light-weight editor for multiple projects. However, the other day I ran across Aptana. …

---

## [Initializing a Scheduler](https://www.ruby-forum.com/t/initializing-a-scheduler/103485)

<div class="topic-metadata">

**Author:** [@Lee\_Faus](https://www.ruby-forum.com/u/Lee_Faus)\
**Replies:** 0\
**Last updated:** [May 6, 2007, 10:13pm UTC](https://www.ruby-forum.com/t/initializing-a-scheduler/103485 "2007-05-06T22:13:06Z")

</div>

I have a need for a scheduler to run from inside of my rails application. I am familiar with Java (J2EE) and new to Ruby. In Java I would have used a framework called Quartz. I would have created a servlet and in t…

---

## [Problems with composed\_of](https://www.ruby-forum.com/t/problems-with-composed-of/103403)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/problems-with-composed-of/103403 "2007-05-06T22:05:18Z")

</div>

Hi, I’m having problems with composed\_of I have this two classes: class Declaration \< ActiveRecord::Base composed\_of :amount, :class\_name =\> “Currency”, :mapping =\> %w(amount amount) end class Currency attr\_acces…

---

## [Validation](https://www.ruby-forum.com/t/validation/91612)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 4\
**Last updated:** [May 6, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/validation/91612 "2007-05-06T20:58:11Z")

</div>

Hi there, I am trying to add some validation to protect against blank fields, but it does not seem to want to work, here is how I am trying to do it: view \<%= form\_tag :action =\> ‘update’ %\> for opened controller d…

---

## [Converting STI objects](https://www.ruby-forum.com/t/converting-sti-objects/103155)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 2\
**Last updated:** [May 6, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/converting-sti-objects/103155 "2007-05-06T19:58:01Z")

</div>

Hi, Check the following data model: class BaseClass \< ActiveRecord::Base; end class Class1 \< BaseClass; end class Class2 \< BaseClass; end For some reasons, I would like to “convert” a Class1 object to a Class2 obje…

---

## [How to install view\_debug\_helper in my rails app](https://www.ruby-forum.com/t/how-to-install-view-debug-helper-in-my-rails-app/103366)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 3\
**Last updated:** [May 6, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-install-view-debug-helper-in-my-rails-app/103366 "2007-05-06T19:24:58Z")

</div>

All, I was trying to install view\_debug\_helper in my rails app, but I am quite new to rails, so I don’t know where to put the view\_debug\_helper.rb and init.rb in my app and any thing else I need to put in my applicat…

---

## [Can't access rflickr methods](https://www.ruby-forum.com/t/cant-access-rflickr-methods/103476)

<div class="topic-metadata">

**Author:** [@Thogra](https://www.ruby-forum.com/u/Thogra)\
**Replies:** 0\
**Last updated:** [May 6, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/cant-access-rflickr-methods/103476 "2007-05-06T18:43:56Z")

</div>

Hi all, I have some trouble using rflickr. I can instantiate a flickr object but not use its methods: this works: flickr = Flickr.new this doesn’t work: sets = flickr.photosets.getList That’s the error mesage I get:…

---

## [Validates\_uniqueness\_of (with :scope) doesn't seem to work?](https://www.ruby-forum.com/t/validates-uniqueness-of-with-scope-doesnt-seem-to-work/103470)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 1\
**Last updated:** [May 6, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-with-scope-doesnt-seem-to-work/103470 "2007-05-06T17:18:48Z")

</div>

I have a master record called ‘project’ and a child record called ‘agycode’. Obviously, agycode has a project\_id FK. I wish to make the “descr” field unique ONLY within the ‘project\_id’ ‘scope’. Here are the key piec…

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

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