# Rails

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

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

---

## [Models -- Validation of Graph Characteristics](https://www.ruby-forum.com/t/models-validation-of-graph-characteristics/120312)

<div class="topic-metadata">

**Author:** [@dscaffold](https://www.ruby-forum.com/u/dscaffold)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 6:43pm UTC](https://www.ruby-forum.com/t/models-validation-of-graph-characteristics/120312 "2007-11-15T18:43:10Z")

</div>

In 0.9, where do you validate such graph-related constraints as, for example, an added or changed relationship must not form a loop, or must not add a root? The caller could have commanded the change by calling a rel…

---

## [Looking for RoR photo publishing application for my website](https://www.ruby-forum.com/t/looking-for-ror-photo-publishing-application-for-my-website/120311)

<div class="topic-metadata">

**Author:** [@atma](https://www.ruby-forum.com/u/atma)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/looking-for-ror-photo-publishing-application-for-my-website/120311 "2007-11-15T18:37:53Z")

</div>

Hello, I have a website that runs mephisto and I want to add a photo publishing platform that runs on RoR. I tried out gullery and rgallery. I’m not sure if any of them is still under active development. I want an a…

---

## [Leopard : can't activate rails 1.2.3 already activated](https://www.ruby-forum.com/t/leopard-cant-activate-rails-1-2-3-already-activated/120246)

<div class="topic-metadata">

**Author:** [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Replies:** 5\
**Last updated:** [November 15, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/leopard-cant-activate-rails-1-2-3-already-activated/120246 "2007-11-15T18:26:49Z")

</div>

I just installed Leopard and I receive this error after running script/server. Does anyone have any ideas on how to resolve this issue? I have been looking all over for about 6 hours and I’m not sure where to turn: \*…

---

## [Order by date](https://www.ruby-forum.com/t/order-by-date/120221)

<div class="topic-metadata">

**Author:** [@Lewis](https://www.ruby-forum.com/u/Lewis)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/order-by-date/120221 "2007-11-15T18:13:17Z")

</div>

Hi, I am trying to create a site which displays news from different sources. I have the news articles in a MySQL database. On the list.rhtml page I display the news articles but they are stored in the db in no partic…

---

## [Is anyone using SQL Server under VMWare and doing development on a mac?](https://www.ruby-forum.com/t/is-anyone-using-sql-server-under-vmware-and-doing-development-on-a-mac/120305)

<div class="topic-metadata">

**Author:** [@sjgdev](https://www.ruby-forum.com/u/sjgdev)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/is-anyone-using-sql-server-under-vmware-and-doing-development-on-a-mac/120305 "2007-11-15T17:40:21Z")

</div>

I’m at work, and I have to use SQL Server. For local development, I have SQL Server running in Windows XP in VMWare. I’m trying to use TextMate and Mac OS X for rails development and connect to SQL Server. Has anyone…

---

## [Dynamic models and activerecord](https://www.ruby-forum.com/t/dynamic-models-and-activerecord/120293)

<div class="topic-metadata">

**Author:** [@minkymorgan](https://www.ruby-forum.com/u/minkymorgan)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/dynamic-models-and-activerecord/120293 "2007-11-15T17:30:54Z")

</div>

Hi, I’m kinda new to rails, could someone point me in the right direction? I have a load of model names sitting in a table. Given a loop through those Model names, how do I call activerecord functions, like count, on…

---

## [Experience using SQL Server and RoR?](https://www.ruby-forum.com/t/experience-using-sql-server-and-ror/120290)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 4\
**Last updated:** [November 15, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/experience-using-sql-server-and-ror/120290 "2007-11-15T17:07:11Z")

</div>

I’m building an app for a large enterprise, and the corporate IT folks are suggesting using SQL Server (latest version I assume) instead of MySQL, due to their familiarity with it. I have limited experience with SQL…

---

## [Absolute urls in url\_for vs. link\_to](https://www.ruby-forum.com/t/absolute-urls-in-url-for-vs-link-to/120228)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/absolute-urls-in-url-for-vs-link-to/120228 "2007-11-15T16:59:47Z")

</div>

In both url\_for and link\_to, the :only\_path param can be used to determine whether the link url used is complete with hostname and path, or just has the path (a kind of relative url). However, in url\_for it defaults t…

---

## [Site starter kit?](https://www.ruby-forum.com/t/site-starter-kit/120253)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/site-starter-kit/120253 "2007-11-15T16:49:51Z")

</div>

Hello I’m planning to build a site that lets users share stories, sort of like a text version of flickr.com It’s my first RoR app. A large portion of my app is going to be the same as a lot of community-type apps, s…

---

## [jRails plugin: jQuery on Rails](https://www.ruby-forum.com/t/jrails-plugin-jquery-on-rails/120298)

<div class="topic-metadata">

**Author:** [@aaron](https://www.ruby-forum.com/u/aaron)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/jrails-plugin-jquery-on-rails/120298 "2007-11-15T16:45:12Z")

</div>

Hey All, I just built a new plugin that replaces most of the default functionality for Prototype/scriptaculous with jQuery. I still have some work to do completing the rest of the visual effects and writing some plug…

---

## [Using multiple Ruby versions](https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 1\
**Last updated:** [November 15, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/using-multiple-ruby-versions/120101 "2007-11-15T16:39:21Z")

</div>

Is there a way to setup multiple versions of Ruby to use with different projects like we can with the version of Rails? On my dev machine I have Ruby 1.8.6 with Rails 1.2.3, which works fine. But one of my projects u…

---

## [Problems connecting to remote Oracle DB on windows using active record](https://www.ruby-forum.com/t/problems-connecting-to-remote-oracle-db-on-windows-using-active-record/120295)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/problems-connecting-to-remote-oracle-db-on-windows-using-active-record/120295 "2007-11-15T16:20:00Z")

</div>

I am trying to connect to an older oracle DB remotely, I think version 8 or 9. I downloaded the instant client stuff from oracle and copied oci.dll and oraociei10.dll to my windows/system folder (windows XP) I get the…

---

## [How to install rails in home folder(/home/username)?](https://www.ruby-forum.com/t/how-to-install-rails-in-home-folder-home-username/120204)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/how-to-install-rails-in-home-folder-home-username/120204 "2007-11-15T16:09:27Z")

</div>

I don’t have root access Is there any idea to install ruby on rails in home folder(/home/username/) only ?

---

## [Table 'users' already exists](https://www.ruby-forum.com/t/table-users-already-exists/120286)

<div class="topic-metadata">

**Author:** [@Judy\_Johnson](https://www.ruby-forum.com/u/Judy_Johnson)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/table-users-already-exists/120286 "2007-11-15T16:02:15Z")

</div>

I’m writing an application and decided late in the game that I needed authentication, so after viewing Ryan’s railscast, I downloaded the plugin: script/plugin source http://svn.techno-weenie.net/projects/plugins/ sc…

---

## [NEWBIE remove empty fields on Show screen](https://www.ruby-forum.com/t/newbie-remove-empty-fields-on-show-screen/120280)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 9\
**Last updated:** [November 15, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/newbie-remove-empty-fields-on-show-screen/120280 "2007-11-15T15:50:30Z")

</div>

Warning - another newbie question - feel free to assume absolute ignorance. /grin/ I’m working on some customer managment screens right now. Customers can have many lines in their address: Customer Business and Te…

---

## [My own methods on model + "extends" problem?](https://www.ruby-forum.com/t/my-own-methods-on-model-extends-problem/120141)

<div class="topic-metadata">

**Author:** [@mbleonardo](https://www.ruby-forum.com/u/mbleonardo)\
**Replies:** 6\
**Last updated:** [November 15, 2007, 3:32pm UTC](https://www.ruby-forum.com/t/my-own-methods-on-model-extends-problem/120141 "2007-11-15T15:32:55Z")

</div>

Hello. I have a UsersController and a Model called User with a “new” method, like this: class User \< ActiveRecord::Base def test return 1 #I can do anything and return any data, the problem continues. end …

---

## [How to setup Lighttpd on Windows?](https://www.ruby-forum.com/t/how-to-setup-lighttpd-on-windows/118591)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 3\
**Last updated:** [November 15, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/how-to-setup-lighttpd-on-windows/118591 "2007-11-15T15:31:44Z")

</div>

I have downloaded Lighttpd for Windows from http://wlmp.dtech.hu/down\_lighty.php?lang=en But I dont really know how to setup to run Rails apps.

---

## [New friend](https://www.ruby-forum.com/t/new-friend/120285)

<div class="topic-metadata">

**Author:** [@sskumar](https://www.ruby-forum.com/u/sskumar)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/new-friend/120285 "2007-11-15T15:07:36Z")

</div>

Join any one of this site… http://indianfriendfinder.com/go/g910673-pmem http://bigchurch.com/go/g910673-pmem http://www.bidvertiser.com/

---

## [Has\_many\_polymorphs and acts\_as\_list?](https://www.ruby-forum.com/t/has-many-polymorphs-and-acts-as-list/120172)

<div class="topic-metadata">

**Author:** [@peportier](https://www.ruby-forum.com/u/peportier)\
**Replies:** 1\
**Last updated:** [November 15, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/has-many-polymorphs-and-acts-as-list/120172 "2007-11-15T14:07:44Z")

</div>

First, BRAVO for this wonderful plugin: has\_many\_polymorphs ! Now my problem: 4 models : Collection, Page, Fragment, Belonging (which is the join table): 1 class Collection \< ActiveRecord::Base 2 has\_many\_polymor…

---

## [Trouble advancing date attribute](https://www.ruby-forum.com/t/trouble-advancing-date-attribute/119904)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 25\
**Last updated:** [November 15, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/trouble-advancing-date-attribute/119904 "2007-11-15T13:33:45Z")

</div>

I’m trying to update the ‘date\_due’ attribute of a ‘client’ object with the following function: new\_date\_due = @client.date\_due + 1.month @ client.update\_attribute(: date\_due, new\_date\_due) Instead of simply a…

---

## [How to deal with caches\_page with two or more params](https://www.ruby-forum.com/t/how-to-deal-with-caches-page-with-two-or-more-params/120273)

<div class="topic-metadata">

**Author:** [@sixfooter](https://www.ruby-forum.com/u/sixfooter)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 1:30pm UTC](https://www.ruby-forum.com/t/how-to-deal-with-caches-page-with-two-or-more-params/120273 "2007-11-15T13:30:59Z")

</div>

I have added the new map.connect in routes.rb like this map.connect ‘:controller/:action/:id/:page’ but it seems like the cache\_pages only create the controller\_name/action\_name/id.html file in the public directory. a…

---

## [Why everytime "IO#flush" take so long?](https://www.ruby-forum.com/t/why-everytime-io-flush-take-so-long/120257)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 10:55am UTC](https://www.ruby-forum.com/t/why-everytime-io-flush-take-so-long/120257 "2007-11-15T10:55:02Z")

</div>

Hi, I have question, on production site.(It is not happening on development site) The used memory resources at the production server stand at 50% to 60% Every request to the main homepage take very long (6 -10 second…

---

## [Correct HABTM of use has\_many :through?](https://www.ruby-forum.com/t/correct-habtm-of-use-has-many-through/119617)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 4\
**Last updated:** [November 15, 2007, 10:28am UTC](https://www.ruby-forum.com/t/correct-habtm-of-use-has-many-through/119617 "2007-11-15T10:28:15Z")

</div>

I have the following setup class Education \< ActiveRecord::Base has\_and\_belongs\_to\_many :users end class User \< ActiveRecord::Base has\_and\_belongs\_to\_many :educations end In my user-view-rhtml i have: \<% @user.…

---

## [Backgroundrb & attachment\_fu](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 9:51am UTC](https://www.ruby-forum.com/t/backgroundrb-attachment-fu/120239 "2007-11-15T09:51:28Z")

</div>

Hi, is it possible to handle attachment\_fu uploading files with backgroundrb ? Regards

---

## [Session not working - new session being created for each request](https://www.ruby-forum.com/t/session-not-working-new-session-being-created-for-each-request/119909)

<div class="topic-metadata">

**Author:** [@Unni](https://www.ruby-forum.com/u/Unni)\
**Replies:** 10\
**Last updated:** [November 15, 2007, 7:22am UTC](https://www.ruby-forum.com/t/session-not-working-new-session-being-created-for-each-request/119909 "2007-11-15T07:22:12Z")

</div>

I stored data in ‘session’ , but the next request from the same machine and browser is not able to access that info. cookies is turned on in my browser.(im using IE6). I’m using database for session storage. i noticed…

---

## [Xml to hash/array and back to xml again with xml-simple?](https://www.ruby-forum.com/t/xml-to-hash-array-and-back-to-xml-again-with-xml-simple/120240)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [November 15, 2007, 6:45am UTC](https://www.ruby-forum.com/t/xml-to-hash-array-and-back-to-xml-again-with-xml-simple/120240 "2007-11-15T06:45:38Z")

</div>

Im trying to create an xmlrpc service. Rails by default uses xml\_simple to parse incoming raw xml data into a hash. The problem is, that if I start out with a hash like this: hash = {:books =\> \[{:id=\>4,:key=\>3}, {:id=\>…

---

## [How to update nginx?](https://www.ruby-forum.com/t/how-to-update-nginx/120249)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 1\
**Last updated:** [November 15, 2007, 6:07am UTC](https://www.ruby-forum.com/t/how-to-update-nginx/120249 "2007-11-15T06:07:27Z")

</div>

how to update to the last version of nginx? I use ubuntu 6.06 server if it’s important (latest available on host). Thanks, Alex

---

## [Create databases on demand](https://www.ruby-forum.com/t/create-databases-on-demand/120075)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 4\
**Last updated:** [November 15, 2007, 5:16am UTC](https://www.ruby-forum.com/t/create-databases-on-demand/120075 "2007-11-15T05:16:38Z")

</div>

Sorry if this has been asked before: I am developing a month-to-month service similar to and planning to operate it on a hosting site. I plan to simply deploy a copy of my application for each customer with their own…

---

## [PostgreSQL Table inheritance in Rails?](https://www.ruby-forum.com/t/postgresql-table-inheritance-in-rails/120248)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 4:57am UTC](https://www.ruby-forum.com/t/postgresql-table-inheritance-in-rails/120248 "2007-11-15T04:57:19Z")

</div>

Does anyone know how I can use PostgreSQL inheritance (see below) in a Rails migration? I don’t mean single table inheritance supported in Rails with the ‘type’ attribute Thanks, Chirag CREATE TABLE cities ( name…

---

## [ActiveSalesforce and Lead Conversion](https://www.ruby-forum.com/t/activesalesforce-and-lead-conversion/120242)

<div class="topic-metadata">

**Author:** [@blair](https://www.ruby-forum.com/u/blair)\
**Replies:** 0\
**Last updated:** [November 15, 2007, 3:07am UTC](https://www.ruby-forum.com/t/activesalesforce-and-lead-conversion/120242 "2007-11-15T03:07:29Z")

</div>

I am desperately trying to figure out how to convert a lead to a contact, account and opportunity on salesforce using ASF. I have been through countless forums and I still don’t have a solid answer. Has anyone been …

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

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