# Rails

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

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

---

## [Beautiful Clocks](https://www.ruby-forum.com/t/beautiful-clocks/128309)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/beautiful-clocks/128309 "2008-02-06T17:47:21Z")

</div>

Beautiful Flash Clocks http://clocks.110mb.com/swf/guitar.swf http://clocks.110mb.com/swf/ipod.swf http://clocks.110mb.com/swf/pspcolourclock.swf http://clocks.110mb.com/swf/flashclock3.swf http://clocks.110mb.com/s…

---

## [Longtext in a Migration](https://www.ruby-forum.com/t/longtext-in-a-migration/128308)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/longtext-in-a-migration/128308 "2008-02-06T17:43:49Z")

</div>

Hey, I need to use “longtext” as a data type in a migration. It works when I make create a table, like this: create\_table :joes do |t| t.column :lots\_o\_content, :longtext end But if I try to add it to another table …

---

## [Default date for date\_select](https://www.ruby-forum.com/t/default-date-for-date-select/117109)

<div class="topic-metadata">

**Author:** [@Tony\_H](https://www.ruby-forum.com/u/Tony_H)\
**Replies:** 5\
**Last updated:** [February 6, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/default-date-for-date-select/117109 "2008-02-06T17:17:57Z")

</div>

Hi, How can I set a default date for a date\_select? I’m trying to do something along the lines of: \<%= date\_select(“requirement”, “target\_date”, :end\_year =\> 2020, :discard\_day =\> true, :include\_blank =\> true, :order…

---

## [Problem displaying author's name on the post assigned](https://www.ruby-forum.com/t/problem-displaying-authors-name-on-the-post-assigned/128269)

<div class="topic-metadata">

**Author:** [@flychunjae](https://www.ruby-forum.com/u/flychunjae)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/problem-displaying-authors-name-on-the-post-assigned/128269 "2008-02-06T16:17:21Z")

</div>

hi all, newb still learning here, i’m having problems displaying the author’s login name and instead it’s displaying the author’s id# in mysql. i’m currently using the acts\_as\_authenticated plug in which seems to be …

---

## [Simple efficiency question: repeated iteration in the view](https://www.ruby-forum.com/t/simple-efficiency-question-repeated-iteration-in-the-view/127868)

<div class="topic-metadata">

**Author:** [@ajs](https://www.ruby-forum.com/u/ajs)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/simple-efficiency-question-repeated-iteration-in-the-view/127868 "2008-02-06T15:43:45Z")

</div>

Let’s say I get a list of all places from the database in the controller: @places=Place.find(:all, :order=\>“category\_id”) And in the view I want to list them under category headings Now let’s imagine categories is a …

---

## [Ajax and Rails 2.0](https://www.ruby-forum.com/t/ajax-and-rails-2-0/125083)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/ajax-and-rails-2-0/125083 "2008-02-06T15:42:32Z")

</div>

I was trying to do an ajax destroy in Rails 2.0 and whenever the call is made I get this error: ActionController::InvalidAuthenticityToken. Anyone have any ideas?

---

## [Integrating IPN of Paypal](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032)

<div class="topic-metadata">

**Author:** [@hungryrubian](https://www.ruby-forum.com/u/hungryrubian)\
**Replies:** 5\
**Last updated:** [February 6, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/integrating-ipn-of-paypal/127032 "2008-02-06T15:11:23Z")

</div>

Hi, Can any body help me how to integrate IPN of paypal in the rails application

---

## [AWDWR Depot App Help!](https://www.ruby-forum.com/t/awdwr-depot-app-help/126171)

<div class="topic-metadata">

**Author:** [@tuanha](https://www.ruby-forum.com/u/tuanha)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/awdwr-depot-app-help/126171 "2008-02-06T15:11:12Z")

</div>

Hi I’m working on the depot app and I’m on iteration C2 where there shouldn’t be multiple entries of the same item and instead there should be a quantity. I’ve done everything according to the book but it seems that w…

---

## [Where can I find a sequence UML diagram?](https://www.ruby-forum.com/t/where-can-i-find-a-sequence-uml-diagram/128295)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/where-can-i-find-a-sequence-uml-diagram/128295 "2008-02-06T14:55:54Z")

</div>

I’m looking for one with an scaffold.

---

## [What is the best way to reuse a controller's action and views?](https://www.ruby-forum.com/t/what-is-the-best-way-to-reuse-a-controllers-action-and-views/128294)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-reuse-a-controllers-action-and-views/128294 "2008-02-06T14:54:08Z")

</div>

On Jan 25, 2008 10:36 PM, removed\_email\_address@domain.invalid \< removed\_email\_address@domain.invalid\> wrote: Check out RailsEngines: http://rails-engines.org/introduction Have to agree on the RailsEngines. If your…

---

## [Duplicate entry '1' for key 1](https://www.ruby-forum.com/t/duplicate-entry-1-for-key-1/128180)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/duplicate-entry-1-for-key-1/128180 "2008-02-06T14:50:10Z")

</div>

I’m used the attachment\_fu plugin, something has gone wrong here as I tried to upload a picture. ActiveRecord::StatementInvalid in PortfolioController#create Mysql::Error: #23000Duplicate entry ‘1’ for key 1: INSERT I…

---

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

<div class="topic-metadata">

**Author:** [@envynicky](https://www.ruby-forum.com/u/envynicky)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/problem-with-deployment/128293 "2008-02-06T14:33:59Z")

</div>

hii… i have a reporting system working on my localdomain perfectly with all datbase integration …but when i deploy it to the server with ftp its gets deployed perfectly but its not running over there and prompting… …

---

## [Missing constant](https://www.ruby-forum.com/t/missing-constant/128291)

<div class="topic-metadata">

**Author:** [@sotirac](https://www.ruby-forum.com/u/sotirac)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/missing-constant/128291 "2008-02-06T13:26:26Z")

</div>

The problem says that spec.rb to define Spec. The file exist but and it includes the constant. The thing that is weird is that the problem occurs only during my production environment. IN my development environment…

---

## [UML interaction diagram](https://www.ruby-forum.com/t/uml-interaction-diagram/128286)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/uml-interaction-diagram/128286 "2008-02-06T12:58:42Z")

</div>

I’m searching a UML interaction diagram with users and a scaffold. Where can I find one?

---

## [Exciting Rails News! - amazing deployment option!](https://www.ruby-forum.com/t/exciting-rails-news-amazing-deployment-option/128218)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 11:46am UTC](https://www.ruby-forum.com/t/exciting-rails-news-amazing-deployment-option/128218 "2008-02-06T11:46:58Z")

</div>

Tired of having deployment woes when running multiple rails applications??? …maintaining mongrel\_clusters and all crap? Well here is the solution : http://switchpipe.org/ SwitchPipe can: \* automatically manage clus…

---

## [NEED: Localization tool and Rails 2.0.2](https://www.ruby-forum.com/t/need-localization-tool-and-rails-2-0-2/128128)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 11:15am UTC](https://www.ruby-forum.com/t/need-localization-tool-and-rails-2-0-2/128128 "2008-02-06T11:15:22Z")

</div>

Hello, I need a localization tool/plugin for my rails application that work with REST, can translate whole web pages(or i can create 2 different pages for 2 languages), and fast. Thanks for any suggestions!!!

---

## [Has\_many\_through\_associations and delete with dependent](https://www.ruby-forum.com/t/has-many-through-associations-and-delete-with-dependent/128277)

<div class="topic-metadata">

**Author:** [@jahkub](https://www.ruby-forum.com/u/jahkub)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 11:14am UTC](https://www.ruby-forum.com/t/has-many-through-associations-and-delete-with-dependent/128277 "2008-02-06T11:14:47Z")

</div>

Hi let’s say I’ve the following associations class User \< ActiveRecord::Base has\_many :user\_network\_privacies, :dependent =\> :destroy has\_many :networks, :through =\> :user\_network\_privacies end class UserNetworkPri…

---

## [Why is this not returning json format!](https://www.ruby-forum.com/t/why-is-this-not-returning-json-format/128196)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 11:11am UTC](https://www.ruby-forum.com/t/why-is-this-not-returning-json-format/128196 "2008-02-06T11:11:22Z")

</div>

I’m ecpecting this to return json format even when the request would be expected to return in html. the output looks like this! \[{“controller”: “page”, “item”: 1, “name”: “Home”, “id”: 2, “action”: “show”, “submenus”…

---

## [Listing users and groups from Active Directory](https://www.ruby-forum.com/t/listing-users-and-groups-from-active-directory/128273)

<div class="topic-metadata">

**Author:** [@axplains](https://www.ruby-forum.com/u/axplains)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 10:39am UTC](https://www.ruby-forum.com/t/listing-users-and-groups-from-active-directory/128273 "2008-02-06T10:39:23Z")

</div>

Hello everyone, I already use “ruby-net-ldap” (NET::LDAP) for user authentication against Active Directory and to get user data from there. Does anyone know how to get a list of users and groups from AD using NET::LD…

---

## [NoMethodError even though the method is there](https://www.ruby-forum.com/t/nomethoderror-even-though-the-method-is-there/128195)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 10:39am UTC](https://www.ruby-forum.com/t/nomethoderror-even-though-the-method-is-there/128195 "2008-02-06T10:39:22Z")

</div>

Hi, I’m sure this will be an easy one, I’m just not seeing something really obvious. In my app/controllers/sessions\_controller.rb file, I have this method: def create if (log\_user\_in(params\[:login\], params\[:passwor…

---

## [How do I populate the database? source foo.sql?](https://www.ruby-forum.com/t/how-do-i-populate-the-database-source-foo-sql/128266)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 10:05am UTC](https://www.ruby-forum.com/t/how-do-i-populate-the-database-source-foo-sql/128266 "2008-02-06T10:05:11Z")

</div>

I’ve tried several techniques to importing data, no success. I don’t have much SQL, do I need to do something like “load infile” through SQL to import data? Or, can I do something through rails with the “source foo.s…

---

## [How do you update frozen rails in svn?](https://www.ruby-forum.com/t/how-do-you-update-frozen-rails-in-svn/128117)

<div class="topic-metadata">

**Author:** [@soregums](https://www.ruby-forum.com/u/soregums)\
**Replies:** 3\
**Last updated:** [February 6, 2008, 9:29am UTC](https://www.ruby-forum.com/t/how-do-you-update-frozen-rails-in-svn/128117 "2008-02-06T09:29:14Z")

</div>

Every man and his dog recommends you freeze rails, awesome! I’ve done that and setup my svn repo and been modify the code and checking in my updates. Now since 2.0.2 is here and I’m on 2.0.0 How do I get to 2.0.2 ?? …

---

## [Hash to array](https://www.ruby-forum.com/t/hash-to-array/128259)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 7:30am UTC](https://www.ruby-forum.com/t/hash-to-array/128259 "2008-02-06T07:30:23Z")

</div>

Hi, I have a hash VALUE\_OPTIONS = {:true=\>1,:false=\>0} How to convert this to a Array like options= \[\[true,1\],\[false,0\]\] Thanks Ratnavel

---

## [Best UUID gem](https://www.ruby-forum.com/t/best-uuid-gem/128260)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 7:18am UTC](https://www.ruby-forum.com/t/best-uuid-gem/128260 "2008-02-06T07:18:40Z")

</div>

What is the most widely used and respected gem for creating a UUID in Rails/Ruby? Regards- Eric

---

## [URL aliasing](https://www.ruby-forum.com/t/url-aliasing/128253)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 6:23am UTC](https://www.ruby-forum.com/t/url-aliasing/128253 "2008-02-06T06:23:07Z")

</div>

Hi all, I have used url aliasing on my site. say suppose my url is domain/blog/1 to domain/blog/1/title in this i have succeded to redirect the url to a particular blog on its id with blog title, by defining the rout…

---

## [ÐŸÐ¾ÑÑÐ°, Ð±Ð°Ð½Ð´Ð°Ð¶Ð¸, ÐºÐ¾Ñ€ÑÐµÑ‚Ñ‹, ÐºÐ¾Ñ€Ñ€ÐµÐºÑ‚Ð¾Ñ€ Ñ‹ Ð¾ÑÐ°Ð½ÐºÐ¸](https://www.ruby-forum.com/t/dyd-n-n-d-d-d-d-d-d-d-d-d-d-n-n-d-n-n-d-d-n-n-d-d-n-d-n-n-d-n-d-d-d-d/128254)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 5:36am UTC](https://www.ruby-forum.com/t/dyd-n-n-d-d-d-d-d-d-d-d-d-d-n-n-d-n-n-d-d-n-n-d-d-n-d-n-n-d-n-d-d-d-d/128254 "2008-02-06T05:36:04Z")

</div>

ðÏÑÓÁ ÉÓÐÏÌØÚÕÀÔÓÑ ÐÒÉ ÏÓÔÅÏÈÏÎÄÒÏÚÅ, ÒÁÄÉËÕÌÉÔÅ, ÇÒÙÖÁÈ ÍÅÖÐÏÚ×ÏÎËÏ×ÙÈ ÄÉÓËÏ×, ÓÐÏÎÄÉÌÏÌÉÓÔÅÚÅ, × ÐÏÓÔÔÒÁ×ÍÁÔÉÞÅÓËÏÍ ÐÅÒÉÏÄÅ, ÐÏÓÌÅ ÏÐÅÒÁÃÉÊ ÎÁ ÐÏÚ×ÏÎÏÞÎÉËÅ. ðÏÑÓÁ Ó ÛÅÒÓÔØÀ (ÓÏÂÁÞÉÊ ÐÏÑÓ É ÄÒ.) ÏÂÌÁÄÁÀÔ ÓÉÌØÎÏ ×ÙÒÁÖ…

---

## [Menuing system plugin?](https://www.ruby-forum.com/t/menuing-system-plugin/128233)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 1\
**Last updated:** [February 6, 2008, 5:01am UTC](https://www.ruby-forum.com/t/menuing-system-plugin/128233 "2008-02-06T05:01:00Z")

</div>

Can someone recommend a menuing system plugin that takes a acts\_as\_tree model (categories and subcategories) and turn it into DHTML navigation menu, as you may see in a news site, if such a thing exists. Thank you in…

---

## [How to get 'used memory'?](https://www.ruby-forum.com/t/how-to-get-used-memory/128245)

<div class="topic-metadata">

**Author:** [@green](https://www.ruby-forum.com/u/green)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 4:48am UTC](https://www.ruby-forum.com/t/how-to-get-used-memory/128245 "2008-02-06T04:48:41Z")

</div>

First of all, I would like to say ‘thank you’ to all you guys for reading this. I have been trying to find a solution to get the ‘used memory’ on windows via Ruby. The function is supposed to be similar to the ‘freeM…

---

## [How to get 'used memory'?](https://www.ruby-forum.com/t/how-to-get-used-memory/128244)

<div class="topic-metadata">

**Author:** [@green](https://www.ruby-forum.com/u/green)\
**Replies:** 0\
**Last updated:** [February 6, 2008, 4:44am UTC](https://www.ruby-forum.com/t/how-to-get-used-memory/128244 "2008-02-06T04:44:43Z")

</div>

First of all, I would like to say ‘thank you’ to all you guys for reading this. I have been trying to find a solution to get the ‘used memory’ on windows via Python. The function is supposed to be similar to the ‘fre…

---

## [Find across has many association](https://www.ruby-forum.com/t/find-across-has-many-association/128225)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 2\
**Last updated:** [February 6, 2008, 4:42am UTC](https://www.ruby-forum.com/t/find-across-has-many-association/128225 "2008-02-06T04:42:10Z")

</div>

I have an article and category. An article belongs to a category. A category has many articles. I want to find all articles in the “programming” category. I have tried: prog\_articles = Article.find(:all, :conditions…

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

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