# Rails

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

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

---

## [How to detect a destroyed model object](https://www.ruby-forum.com/t/how-to-detect-a-destroyed-model-object/116277)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 9\
**Last updated:** [October 25, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/how-to-detect-a-destroyed-model-object/116277 "2007-10-25T22:43:43Z")

</div>

After I do x.destroy on AR descendant x, is there any method I can call on x to determine that it was destroyed. x.new\_record? returns false x.id returns the previous primary key (now gone since the destroy). Thanks, …

---

## [How to subclass active record to call a method on all save and destroy actions](https://www.ruby-forum.com/t/how-to-subclass-active-record-to-call-a-method-on-all-save-and-destroy-actions/118208)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 6\
**Last updated:** [October 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/how-to-subclass-active-record-to-call-a-method-on-all-save-and-destroy-actions/118208 "2007-10-25T22:40:13Z")

</div>

I’m looking for a way to subclass active record (I’ll refer to the subclass I want to create as NewActiveRecord) so that I can call different methods on a save or destroy action on all models which sub class NewActive…

---

## [Making a RoR site search index friendly](https://www.ruby-forum.com/t/making-a-ror-site-search-index-friendly/118265)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 3\
**Last updated:** [October 25, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/making-a-ror-site-search-index-friendly/118265 "2007-10-25T22:37:52Z")

</div>

I’ve added http://guildcorner.org/ to Google about a week ago, and uploaded a site map (in fact, the site map is dynamic and lists every character and guild currently registered.) I’ve seen googlebot hitting the site.…

---

## [I got Pickaxe 1 should I buy Pickaxe 2?](https://www.ruby-forum.com/t/i-got-pickaxe-1-should-i-buy-pickaxe-2/118344)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 3\
**Last updated:** [October 25, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/i-got-pickaxe-1-should-i-buy-pickaxe-2/118344 "2007-10-25T22:08:04Z")

</div>

I got Pickaxe 1 should I buy Pickaxe 2? Do differences make it worth buying the same book twice? Does anybody have an opinion on this? I know RoR v2.0 is coming, but I don’t what to wait several months for a book on …

---

## [Administrative user](https://www.ruby-forum.com/t/administrative-user/118326)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/administrative-user/118326 "2007-10-25T21:04:15Z")

</div>

I was just wondering if anyone has a simplier way on how to handle admin like functionality. In my app of have many users, but a single user can be choosen to handle and/or modify user profiles that are associated to …

---

## [Db transactions problem after transaction-simple gem is installed](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081)

<div class="topic-metadata">

**Author:** [@ajay](https://www.ruby-forum.com/u/ajay)\
**Replies:** 3\
**Last updated:** [October 25, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081 "2007-10-25T21:04:15Z")

</div>

HI All, I have run into a problem. I have a rails 1.1.6 setup. I also have the following gems installed pdf-writer-1.1.3.gem color-tools-1.3.0.gem transaction-simple-1.4.0.gem Upon running the tests “rak…

---

## [A Ruby/Rails bibliography](https://www.ruby-forum.com/t/a-ruby-rails-bibliography/117336)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 17\
**Last updated:** [October 25, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/a-ruby-rails-bibliography/117336 "2007-10-25T20:30:53Z")

</div>

Howdy all, I’ve noticed an influx of “What book should I buy?” questions lately, so I thought I’d put together a number of bibliographies/curriculums based on experience, role, and so on. You can view them at: I wa…

---

## [Installing Rails 2 from Gem](https://www.ruby-forum.com/t/installing-rails-2-from-gem/118303)

<div class="topic-metadata">

**Author:** [@sporb](https://www.ruby-forum.com/u/sporb)\
**Replies:** 4\
**Last updated:** [October 25, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/installing-rails-2-from-gem/118303 "2007-10-25T20:16:50Z")

</div>

I am a bit confused on how to install Rails 2 as a gem. When I run ‘sudo gem install rails --source http://gems.rubyonrails.org’ it pulls down version 1.2.5.7919’. Is this the same as Rails2? I don’t think so … anyway…

---

## [Ensuring AR#set\_table\_name is valid with multiple users](https://www.ruby-forum.com/t/ensuring-ar-set-table-name-is-valid-with-multiple-users/118308)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/ensuring-ar-set-table-name-is-valid-with-multiple-users/118308 "2007-10-25T20:13:12Z")

</div>

Hi, due to the legacy nature of my database I have to do a set\_table\_name() to make sure that the correct MySQL table is picked up by the AR model. For example: model.set\_table\_name(params\[:use\_this\_table\]) One thi…

---

## [Update a div](https://www.ruby-forum.com/t/update-a-div/118106)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [October 25, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/update-a-div/118106 "2007-10-25T19:58:36Z")

</div>

I have this list of users that I want to include in a group. I choose these users from a larger group - all the employees for a company , for example. I have both lists displayed on the page, the thing is that when I …

---

## [Capture form input from text\_field and modify data](https://www.ruby-forum.com/t/capture-form-input-from-text-field-and-modify-data/118331)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/capture-form-input-from-text-field-and-modify-data/118331 "2007-10-25T19:54:37Z")

</div>

I’m new to ruby and just trying to toech myself ruby on rails. I’ve got a shopping cart and I need to be able te specify product quantity while in the cart. I have succefully created a link to incriment the quantity b…

---

## [Pulling ID from a just saved object?](https://www.ruby-forum.com/t/pulling-id-from-a-just-saved-object/118240)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/pulling-id-from-a-just-saved-object/118240 "2007-10-25T19:44:41Z")

</div>

Hi, Can anyone tell me how I can pull a full url from an object I just saved? I need to send the saved object’s id to my thanks\_url so I can build another object in the thanks\_url view. if @video.save flash\[:notice…

---

## [ArgumentError](https://www.ruby-forum.com/t/argumenterror/118248)

<div class="topic-metadata">

**Author:** [@jojobert](https://www.ruby-forum.com/u/jojobert)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/argumenterror/118248 "2007-10-25T19:41:45Z")

</div>

hi, i’m very new to RoR, i’m following an example on the book (Agile Web D. with Rails 2nd ed.) i met an error that goes like this (even though i followed the book word for word) ArgumentError in Login#add\_user …

---

## [NoMethodError when creating new ActiveRecord model object](https://www.ruby-forum.com/t/nomethoderror-when-creating-new-activerecord-model-object/118239)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 7\
**Last updated:** [October 25, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/nomethoderror-when-creating-new-activerecord-model-object/118239 "2007-10-25T19:31:49Z")

</div>

the strangest thing is happening…i’m not getting this every time, maybe 1/3 of the time, identical requests… i’m a rails newbie, but i think i’m trying pretty standard stuff, this is an excerpt from the log: Process…

---

## [Unicode categories in regexps?](https://www.ruby-forum.com/t/unicode-categories-in-regexps/118329)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/unicode-categories-in-regexps/118329 "2007-10-25T19:30:48Z")

</div>

Is there anything for ruby that will give me access to unicode character categories in a regexp like function? For instance, say I want to replace all punctuation with a space, in a unicode-friendly way that will work…

---

## [About views problem!](https://www.ruby-forum.com/t/about-views-problem/196503)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/about-views-problem/196503 "2007-10-25T19:08:25Z")

</div>

Hi, everyone! I have a question. when I created a controller and a action like this: class EverythingController \< ApplicationController def index end def findname content=“here is test” render :text =\> content, …

---

## [Editing html online](https://www.ruby-forum.com/t/editing-html-online/118319)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [October 25, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/editing-html-online/118319 "2007-10-25T18:03:30Z")

</div>

Hello list, My client wants a portal for his company. As far as Rails is concerned, all the functionality we came to agree on would be a piece of cake to implement on Rails. However, there’s something I’d like to ha…

---

## [Re: Ensuring AR#set\_table\_name is valid with multiple users](https://www.ruby-forum.com/t/re-ensuring-ar-set-table-name-is-valid-with-multiple-users/118309)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/re-ensuring-ar-set-table-name-is-valid-with-multiple-users/118309 "2007-10-25T17:54:05Z")

</div>

Hi You would put the set\_table\_name definition in the model at the top - just below the class definition line, so you file will look like this: class ModelTable \< ActiveRecord::Base set\_table\_name ‘MyTableName’ end …

---

## [If else statement problem](https://www.ruby-forum.com/t/if-else-statement-problem/118297)

<div class="topic-metadata">

**Author:** [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Replies:** 7\
**Last updated:** [October 25, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/if-else-statement-problem/118297 "2007-10-25T17:35:22Z")

</div>

Hey, I’m trying to do the following below: if @logos == nil @image = Magick::ImageList.new("/home/rajeev/Desktop/logo/logo/public/logos/0000/0001/28.jpg") @image = @image.write("/home/rajeev/Desktop/test.jpg") @log…

---

## [Add dynamic instance methods in a controller](https://www.ruby-forum.com/t/add-dynamic-instance-methods-in-a-controller/76559)

<div class="topic-metadata">

**Author:** [@luc](https://www.ruby-forum.com/u/luc)\
**Replies:** 1\
**Last updated:** [October 25, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/add-dynamic-instance-methods-in-a-controller/76559 "2007-10-25T17:02:32Z")

</div>

Hello All, I have a problem while developping an application using rails. I’d like to add some methods to my controller depending upon some parameters read from an xml file during initialisation (I hope I am quite cl…

---

## [Getting started with a new project](https://www.ruby-forum.com/t/getting-started-with-a-new-project/118318)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/getting-started-with-a-new-project/118318 "2007-10-25T16:49:43Z")

</div>

1I have a real world project to do and just finished converting the data and laying it out in mySQL. Essentially what needs to happen is this: User plugs in location (zip code) - that information is stored and eve…

---

## [NameError in CustomersController#index](https://www.ruby-forum.com/t/nameerror-in-customerscontroller-index/118207)

<div class="topic-metadata">

**Author:** [@AcidoCitrico](https://www.ruby-forum.com/u/AcidoCitrico)\
**Replies:** 7\
**Last updated:** [October 25, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/nameerror-in-customerscontroller-index/118207 "2007-10-25T16:49:08Z")

</div>

I’m new to Rails. I finished the Cookbook tut. no problem. I’m trying to start a project of my own, follow the same instructions but the difference is I created the database myself. After I create the scaffolds and …

---

## [Good capistrano books, tutorials, guides](https://www.ruby-forum.com/t/good-capistrano-books-tutorials-guides/118254)

<div class="topic-metadata">

**Author:** [@anthonymonday](https://www.ruby-forum.com/u/anthonymonday)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 4:19pm UTC](https://www.ruby-forum.com/t/good-capistrano-books-tutorials-guides/118254 "2007-10-25T16:19:54Z")

</div>

Hi, seems like there isn’t any good books, tutorials or guides on capistrano out on the web. Appreciate if someone can post up where to look for good capistrano resources. It seems that there is some learning curve fo…

---

## [Re: Ensuring AR#set\_table\_name is valid with multiple users](https://www.ruby-forum.com/t/re-ensuring-ar-set-table-name-is-valid-with-multiple-users/118313)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/re-ensuring-ar-set-table-name-is-valid-with-multiple-users/118313 "2007-10-25T16:17:34Z")

</div>

Hi Allan You could take a look at Dr Nic’s Magic Models found here: http://magicmodels.rubyforge.org/dr\_nic\_magic\_models/ this might be what you are looking for. Clive

---

## [Complete word search?](https://www.ruby-forum.com/t/complete-word-search/118282)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/complete-word-search/118282 "2007-10-25T14:47:54Z")

</div>

I am using LIKE operator for search but it brings so many results, for example if I just enter ‘a’ it brings up almost everything since its the most common letter. is there any way to match the whole word with LIKE? t…

---

## [Problem with win32 service for mongrel (vista)](https://www.ruby-forum.com/t/problem-with-win32-service-for-mongrel-vista/117916)

<div class="topic-metadata">

**Author:** [@stefan](https://www.ruby-forum.com/u/stefan)\
**Replies:** 3\
**Last updated:** [October 25, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/problem-with-win32-service-for-mongrel-vista/117916 "2007-10-25T14:29:45Z")

</div>

Hi, I tried to install the win32 service for mongrel with the following commands: gem install win32-service (win32-service 0.5.2 mswin32) gem install mongrel\_service (mongrel\_service 0.3.2 (mswin32) mongrel\_rails…

---

## [ActiveScaffold](https://www.ruby-forum.com/t/activescaffold/116856)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 3\
**Last updated:** [October 25, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/activescaffold/116856 "2007-10-25T14:17:27Z")

</div>

Hi there, I have just started playing with that awesome ActiveScaffold plugin, but IÂ´ve notice that the only way it generates scaffolds is dynamicly. Is there a way of generating the code in advance, like the old ./…

---

## [Multiple Controllers and Models in One View](https://www.ruby-forum.com/t/multiple-controllers-and-models-in-one-view/80265)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 13\
**Last updated:** [October 25, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/multiple-controllers-and-models-in-one-view/80265 "2007-10-25T13:44:42Z")

</div>

My application has Account Status -\> Upgrade account page that displays account model and billing\_profile model. There is also another page Account Status -\> Billing Profile that displays only billing profile. Now, m…

---

## [Ruby On Rails with small footprint](https://www.ruby-forum.com/t/ruby-on-rails-with-small-footprint/117590)

<div class="topic-metadata">

**Author:** [@Marc\_Haisenko](https://www.ruby-forum.com/u/Marc_Haisenko)\
**Replies:** 6\
**Last updated:** [October 25, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-with-small-footprint/117590 "2007-10-25T13:26:33Z")

</div>

Hi folks, I was thinking about using Ruby On Rails to develop the web GUI for our products. However, since these are embedded systems with few space and memory (if compared to a desktop, at least ;-)) I wonder about …

---

## [Ruby on Rails Vs LAMP for a beginner](https://www.ruby-forum.com/t/ruby-on-rails-vs-lamp-for-a-beginner/118219)

<div class="topic-metadata">

**Author:** [@whats\_in\_a\_name](https://www.ruby-forum.com/u/whats_in_a_name)\
**Replies:** 4\
**Last updated:** [October 25, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-vs-lamp-for-a-beginner/118219 "2007-10-25T13:24:48Z")

</div>

I haven’t done any web development before, my experience is in C, Python, C++, some UI experience (Qt etc). I would like to build a database driven website (which pretty much is like a web mail), key objective is lowe…

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

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