# Rails

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

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

---

## [Rails Convention for "Record Pseudo Locking" on Multi-User S](https://www.ruby-forum.com/t/rails-convention-for-record-pseudo-locking-on-multi-user-s/113843)

<div class="topic-metadata">

**Author:** [@Philip\_N](https://www.ruby-forum.com/u/Philip_N)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/rails-convention-for-record-pseudo-locking-on-multi-user-s/113843 "2007-09-05T15:11:45Z")

</div>

We are writing an order processing system, where we will display a list of orders for clerks to process. Obviously we don’t want two people working on the same order. In other systems we’ve put a LOCKED\_BY column…

---

## [Untitled](https://www.ruby-forum.com/t/untitled/113847)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/untitled/113847 "2007-09-05T15:07:44Z")

</div>

I’ve shared a document with you called “Untitled”: http://docs.google.com/Doc?id=dd4bv59g\_39cm4bt9&invite=grs5dvh It’s not an attachment – it’s stored online at Google Docs. To open this document, just click the link …

---

## [Hi..Guys new plugin again](https://www.ruby-forum.com/t/hi-guys-new-plugin-again/113810)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 8\
**Last updated:** [September 5, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/hi-guys-new-plugin-again/113810 "2007-09-05T14:40:39Z")

</div>

Hi… Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they…

---

## [Problem reading attachments in emails](https://www.ruby-forum.com/t/problem-reading-attachments-in-emails/113833)

<div class="topic-metadata">

**Author:** [@Ramya\_Addanki](https://www.ruby-forum.com/u/Ramya_Addanki)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/problem-reading-attachments-in-emails/113833 "2007-09-05T14:15:36Z")

</div>

I read the attachments in an email in the following manner: def receive(email) base\_dir=“d:\\temp\\attachments” if email.has\_attachments? email.attachments.each do |a| filename=a.original\_filename File.open(base\_dir+…

---

## [Can any one help me by saying some thing about composite Pri](https://www.ruby-forum.com/t/can-any-one-help-me-by-saying-some-thing-about-composite-pri/113815)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/can-any-one-help-me-by-saying-some-thing-about-composite-pri/113815 "2007-09-05T13:51:32Z")

</div>

Hi guys… Can any one help me by saying some thing about composite Primary Keys and its support for migrations and active records in rails? Thanks N Regards…

---

## [Compact.join in model](https://www.ruby-forum.com/t/compact-join-in-model/113720)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 5\
**Last updated:** [September 5, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/compact-join-in-model/113720 "2007-09-05T13:42:31Z")

</div>

I’m trying to create a simple method in a model to create a multi-line address from discrete input fields: def full\_address \[address1, address2, address3, city, postcode\].compact.join(’\\n’) end However, the line bre…

---

## [I had a very basic question as to, how does rails encodes UR](https://www.ruby-forum.com/t/i-had-a-very-basic-question-as-to-how-does-rails-encodes-ur/113802)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 10:57am UTC](https://www.ruby-forum.com/t/i-had-a-very-basic-question-as-to-how-does-rails-encodes-ur/113802 "2007-09-05T10:57:42Z")

</div>

Hi, I had a very basic question as to, how does rails encodes URl’s ? Eg. 1\> http://my.shop.com/store/show\_product/123 and in 2\> http://my.blog.com/blog/2005/07/04 Regards, Piyush G. 99161-33729

---

## [Errors in executing first RoR app - reg](https://www.ruby-forum.com/t/errors-in-executing-first-ror-app-reg/113738)

<div class="topic-metadata">

**Author:** [@dvenkatesan](https://www.ruby-forum.com/u/dvenkatesan)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 10:24am UTC](https://www.ruby-forum.com/t/errors-in-executing-first-ror-app-reg/113738 "2007-09-05T10:24:47Z")

</div>

Hi Friends, I am brand new to RoR.Kindly help me with the following problem. Following are the steps i have done. C:/\> rails appone C:/\> cd appone C:/appone\> cd script C:/appone/script\> ruby generate contro…

---

## [Consider that we have a link and when we LEFT click it a new](https://www.ruby-forum.com/t/consider-that-we-have-a-link-and-when-we-left-click-it-a-new/113808)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 9:09am UTC](https://www.ruby-forum.com/t/consider-that-we-have-a-link-and-when-we-left-click-it-a-new/113808 "2007-09-05T09:09:30Z")

</div>

Hi, I had a basic doubt or a foolish doubt I don’t know what to call it ,but thought of putting in front of you . DOUBT : Consider that we have a link and when we LEFT click it a new window/tab should open . How ?? P…

---

## [Modeling a collection of integers in active record](https://www.ruby-forum.com/t/modeling-a-collection-of-integers-in-active-record/113676)

<div class="topic-metadata">

**Author:** [@jasiu85](https://www.ruby-forum.com/u/jasiu85)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 9:00am UTC](https://www.ruby-forum.com/t/modeling-a-collection-of-integers-in-active-record/113676 "2007-09-05T09:00:29Z")

</div>

Hey, I’m a newbie to Rails, so forgive me if my question is stupid and I’m spamming the group. I couldn’t find any info on the Web. I’d like to model an entity that contains a collection of integers. In SQL, I could …

---

## [After migration, how to see new columns?](https://www.ruby-forum.com/t/after-migration-how-to-see-new-columns/113758)

<div class="topic-metadata">

**Author:** [@mtaplits](https://www.ruby-forum.com/u/mtaplits)\
**Replies:** 6\
**Last updated:** [September 5, 2007, 7:20am UTC](https://www.ruby-forum.com/t/after-migration-how-to-see-new-columns/113758 "2007-09-05T07:20:21Z")

</div>

New to rails so please bear with me. I used migrations to add a column to an existing table. The new column is added to the database successfully. However when I go to ‘list’ the items, the new column isn’t display…

---

## [Quick question: making tables without id fields; migrations](https://www.ruby-forum.com/t/quick-question-making-tables-without-id-fields-migrations/113809)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 6:55am UTC](https://www.ruby-forum.com/t/quick-question-making-tables-without-id-fields-migrations/113809 "2007-09-05T06:55:34Z")

</div>

I just started a tagging system for my site and I was getting funky errors when adding tags. I looked at the the data in the tables and realized that rails was only allowing me to save each tag once! Which meant that …

---

## [Rails :global mailing list](https://www.ruby-forum.com/t/rails-global-mailing-list/113816)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:55am UTC](https://www.ruby-forum.com/t/rails-global-mailing-list/113816 "2007-09-05T06:55:20Z")

</div>

do u have any idea abt the rails global mailing list i heard abt it in some confernce but couldnt get the link tried google but to vein can u give me the link to the list Thank you Jhonny

---

## [If you're not using it, you're missing out on a large part o](https://www.ruby-forum.com/t/if-youre-not-using-it-youre-missing-out-on-a-large-part-o/113817)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:51am UTC](https://www.ruby-forum.com/t/if-youre-not-using-it-youre-missing-out-on-a-large-part-o/113817 "2007-09-05T06:51:20Z")

</div>

If you’re not using it, you’re missing out on a large part of the joy that life has to offer. http://nubyonrails.com/articles/automation-with-rstakeout

---

## [Had any one of you worked up on callbacks and observers. I t](https://www.ruby-forum.com/t/had-any-one-of-you-worked-up-on-callbacks-and-observers-i-t/113814)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:50am UTC](https://www.ruby-forum.com/t/had-any-one-of-you-worked-up-on-callbacks-and-observers-i-t/113814 "2007-09-05T06:50:20Z")

</div>

Hi Guys… Had any one of you worked up on callbacks and observers. I tried a lot to understand those topics but some how i could not understand that in to depth. If any one of you have a bit time plzz explain me those…

---

## [Hi Guys here is another interesting stuff for Newbies like u](https://www.ruby-forum.com/t/hi-guys-here-is-another-interesting-stuff-for-newbies-like-u/113813)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:50am UTC](https://www.ruby-forum.com/t/hi-guys-here-is-another-interesting-stuff-for-newbies-like-u/113813 "2007-09-05T06:50:20Z")

</div>

Hi Guys here is another interesting stuff for Newbies like us http://ruido-blanco.net/blog/rails-multiple-select-helper-plugin/ Let us try and implement it ASAP Thanks N Regards…

---

## [HI guys.... I have an articles table with fields as id,ti](https://www.ruby-forum.com/t/hi-guys-i-have-an-articles-table-with-fields-as-id-ti/113812)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:50am UTC](https://www.ruby-forum.com/t/hi-guys-i-have-an-articles-table-with-fields-as-id-ti/113812 "2007-09-05T06:50:19Z")

</div>

HI guys… I have an articles table with fields as id,title, . . . and users table with id,name, . . . and i can join this table to put a through relation with readings table(A kind of join) with fields as id, arti…

---

## [Transaction:](https://www.ruby-forum.com/t/transaction/113811)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:49am UTC](https://www.ruby-forum.com/t/transaction/113811 "2007-09-05T06:49:19Z")

</div>

Transaction::Simple provides a generic way to add active transaction support to objects. The transaction methods added by this module will work with most objects, excluding those that cannot be Marshaled (bindings, pr…

---

## [\<%= excerpt(@trees, "lovely", 8) %\>](https://www.ruby-forum.com/t/excerpt-trees-lovely-8/113805)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:47am UTC](https://www.ruby-forum.com/t/excerpt-trees-lovely-8/113805 "2007-09-05T06:47:19Z")

</div>

I had the below string @trees = ‘A poem lovely as a tree.’ On which except is applied \<%= excerpt(@trees, “lovely”, 8) %\> And the resultant is …A poem lovely as a tre… I wasn’t able to figure out how. Regards, Pi…

---

## [Are there any performance differences between using rjs vs](https://www.ruby-forum.com/t/are-there-any-performance-differences-between-using-rjs-vs/113807)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:47am UTC](https://www.ruby-forum.com/t/are-there-any-performance-differences-between-using-rjs-vs/113807 "2007-09-05T06:47:19Z")

</div>

Are there any performance differences between using rjs vs. remote\_function and what are the advantages/disadvantages ? Regards, Piyush G. 99161-33729

---

## [Was just going through the section15.6 of agile web developm](https://www.ruby-forum.com/t/was-just-going-through-the-section15-6-of-agile-web-developm/113806)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:46am UTC](https://www.ruby-forum.com/t/was-just-going-through-the-section15-6-of-agile-web-developm/113806 "2007-09-05T06:46:19Z")

</div>

Hi, I was just going through the section15.6 of agile web development PDF but somehow couldn’t understand how actually the & parameter works . Check 15.6 An Extension to Ruby Symbols from agile web development PDF . …

---

## [Securing Rails](https://www.ruby-forum.com/t/securing-rails/113804)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:45am UTC](https://www.ruby-forum.com/t/securing-rails/113804 "2007-09-05T06:45:19Z")

</div>

Securing Rails Regards, Piyush G. 99161-33729

---

## [I have a date dropdown which is of yyyy/dd/mm format](https://www.ruby-forum.com/t/i-have-a-date-dropdown-which-is-of-yyyy-dd-mm-format/113803)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:45am UTC](https://www.ruby-forum.com/t/i-have-a-date-dropdown-which-is-of-yyyy-dd-mm-format/113803 "2007-09-05T06:45:19Z")

</div>

Hi, I have a date dropdown which is of yyyy/dd/mm format How can I change the format to dd/mm/yyyy for a dropdown . Regards, Piyush G. 99161-33729

---

## [Urgent: Primary key issue](https://www.ruby-forum.com/t/urgent-primary-key-issue/88387)

<div class="topic-metadata">

**Author:** [@askme](https://www.ruby-forum.com/u/askme)\
**Replies:** 13\
**Last updated:** [September 5, 2007, 6:38am UTC](https://www.ruby-forum.com/t/urgent-primary-key-issue/88387 "2007-09-05T06:38:18Z")

</div>

It wasn’t even 4-5 hours after I could resolve a problem regarding error\_messages\_for, I ran into a new issue. I have a table whose primary key is set to email address and there is not need for an auto incremented num…

---

## [XML builder templates/dashes in node names](https://www.ruby-forum.com/t/xml-builder-templates-dashes-in-node-names/71188)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 6:26am UTC](https://www.ruby-forum.com/t/xml-builder-templates-dashes-in-node-names/71188 "2007-09-05T06:26:15Z")

</div>

Hi, In an .rxml template, I need to have nodes named . However, if I use: xml.cross-domain-policy I get the following error: undefined method \`domain’ It works fine if I use xml.cross\_domain\_policy (undercores) to …

---

## [Link\_to flexibility](https://www.ruby-forum.com/t/link-to-flexibility/113753)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 5:10am UTC](https://www.ruby-forum.com/t/link-to-flexibility/113753 "2007-09-05T05:10:13Z")

</div>

My website, user side, is just one controller/action I reroute this: http://www.mywebsite.com/:menu/:submenu to this: http://www.mywebsite.com/MyController/Index/:menu/:submenu so that the visitors have a nice web u…

---

## [Is there any good way to use Google SSO in Rails?](https://www.ruby-forum.com/t/is-there-any-good-way-to-use-google-sso-in-rails/113800)

<div class="topic-metadata">

**Author:** [@liao\_zhigang](https://www.ruby-forum.com/u/liao_zhigang)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 3:59am UTC](https://www.ruby-forum.com/t/is-there-any-good-way-to-use-google-sso-in-rails/113800 "2007-09-05T03:59:08Z")

</div>

I only found rubycas-client. But seems little document about it. Anyone has experience on that? Could you tell me how to make things done? Thanks, Zhigang

---

## [Link\_to, urls and bots - oh my](https://www.ruby-forum.com/t/link-to-urls-and-bots-oh-my/113798)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 2:58am UTC](https://www.ruby-forum.com/t/link-to-urls-and-bots-oh-my/113798 "2007-09-05T02:58:59Z")

</div>

Greetings all, I’m on rails 1.2.3, using link\_to is giving us a bit of a problem. The route in question is: map.resources :reviews do |review| review.resources :votes end and the code of concern is: link\_to “Yes”,…

---

## [Master detail sample for newbie and something more ;-)](https://www.ruby-forum.com/t/master-detail-sample-for-newbie-and-something-more/113755)

<div class="topic-metadata">

**Author:** [@Mocte](https://www.ruby-forum.com/u/Mocte)\
**Replies:** 6\
**Last updated:** [September 5, 2007, 1:49am UTC](https://www.ruby-forum.com/t/master-detail-sample-for-newbie-and-something-more/113755 "2007-09-05T01:49:55Z")

</div>

Hi to all, I’m starting with ROR, coming from Delphi/Win32, I’m in the process of learning, I know there are many tutorials and books for beginners, but I didn’t find any resources showing : How to build an HTML pa…

---

## [Official RoR wiki sends you to PornoTube](https://www.ruby-forum.com/t/official-ror-wiki-sends-you-to-pornotube/113773)

<div class="topic-metadata">

**Author:** [@ChessMess](https://www.ruby-forum.com/u/ChessMess)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 12:54am UTC](https://www.ruby-forum.com/t/official-ror-wiki-sends-you-to-pornotube/113773 "2007-09-05T00:54:49Z")

</div>

Maybe someone should fix the official ruby on rails site, specifically the wiki and how anything you type in the search box will send you to PornoTube (view the source of the page). http://wiki.rubyonrails.org/rails

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

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