# Rails

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

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

---

## [Problems with destroy and relationships](https://www.ruby-forum.com/t/problems-with-destroy-and-relationships/87870)

<div class="topic-metadata">

**Author:** [@Clever\_N](https://www.ruby-forum.com/u/Clever_N)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 1:11am UTC](https://www.ruby-forum.com/t/problems-with-destroy-and-relationships/87870 "2007-03-07T01:11:55Z")

</div>

Hi all, I am running into problems with my model relationships and destroying them. In particular: class Campaign \< ActiveRecord::Base has\_and\_belongs\_to\_many :tags has\_and\_belongs\_to\_many :geographies end class …

---

## [DRY AR models](https://www.ruby-forum.com/t/dry-ar-models/87946)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 12:53am UTC](https://www.ruby-forum.com/t/dry-ar-models/87946 "2007-03-07T00:53:52Z")

</div>

Hey, I need an advice :wink: Assuming you have a form like: Father’s kids: \<%= in\_place\_editor\_field %\> Mother’s kids: \<%= in\_place\_editor\_field %\> with just a Person model. You want your customers to write directl…

---

## [Rails running different database interation by user?](https://www.ruby-forum.com/t/rails-running-different-database-interation-by-user/87942)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 12:48am UTC](https://www.ruby-forum.com/t/rails-running-different-database-interation-by-user/87942 "2007-03-07T00:48:33Z")

</div>

Dear sir, I am familiar how Ruby on Rails creates a \\myapplication\\config\\database.yml file for each project. Is there a way that I could use a separate database for each user? Obviously, I’m attempting to create a w…

---

## [Ajax Call redirect to a full page refresh](https://www.ruby-forum.com/t/ajax-call-redirect-to-a-full-page-refresh/87878)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [March 7, 2007, 12:42am UTC](https://www.ruby-forum.com/t/ajax-call-redirect-to-a-full-page-refresh/87878 "2007-03-07T00:42:52Z")

</div>

Hi, Let s assume my controller gets a ajax call… I will start the process to to the appropriate actions… During the process I discover that the changes are too complex and I cannot provide the user the response with …

---

## [Scaffold\_resouce destroy](https://www.ruby-forum.com/t/scaffold-resouce-destroy/87936)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 12:33am UTC](https://www.ruby-forum.com/t/scaffold-resouce-destroy/87936 "2007-03-07T00:33:52Z")

</div>

Hello group, I ran across something while creating a client for my RESTful Rails application. My client is written in Cocoa (just FYI). The scaffold\_resource generator writes the destory method like this: DELETE /ar…

---

## [Why doesn't MySQL start unless InstantRails does first?](https://www.ruby-forum.com/t/why-doesnt-mysql-start-unless-instantrails-does-first/87873)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 12:27am UTC](https://www.ruby-forum.com/t/why-doesnt-mysql-start-unless-instantrails-does-first/87873 "2007-03-07T00:27:51Z")

</div>

I am grateful for anyone that could explain to me why I cannot start MySQL unless InstantRails (1.5) has started first. InstantRails seems to have create a ‘root’ user with NO password. I cannot log in with this into …

---

## [Object evaluation](https://www.ruby-forum.com/t/object-evaluation/87925)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 4\
**Last updated:** [March 7, 2007, 12:24am UTC](https://www.ruby-forum.com/t/object-evaluation/87925 "2007-03-07T00:24:51Z")

</div>

Hey, Whenever I want to DRY some code, I want to do the following: irb(main):001:0\> @my\_first\_var = ‘RoR rocks!’ =\> “RoR rocks!” irb(main):002:0\> \[‘first’\].each do |attr| irb(main):003:1\* puts @my\_"#{attr}"\_var ir…

---

## [Need to create a NewsLetter Funtionality in RoR](https://www.ruby-forum.com/t/need-to-create-a-newsletter-funtionality-in-ror/87924)

<div class="topic-metadata">

**Author:** [@Vivian\_Aranha](https://www.ruby-forum.com/u/Vivian_Aranha)\
**Replies:** 2\
**Last updated:** [March 7, 2007, 12:13am UTC](https://www.ruby-forum.com/t/need-to-create-a-newsletter-funtionality-in-ror/87924 "2007-03-07T00:13:50Z")

</div>

Hi, Me a newbie in RoR - switching from .NET. i want to write an application that has a newsletter functionality where I can create an interface where in I can have options to send newsletters to multiple people in t…

---

## [Pagination of the stream data](https://www.ruby-forum.com/t/pagination-of-the-stream-data/87938)

<div class="topic-metadata">

**Author:** [@vnac](https://www.ruby-forum.com/u/vnac)\
**Replies:** 0\
**Last updated:** [March 7, 2007, 12:08am UTC](https://www.ruby-forum.com/t/pagination-of-the-stream-data/87938 "2007-03-07T00:08:40Z")

</div>

Hi, I am getting my data from the response stream instead of table. Is there any way I can paginate this data? Thanks!

---

## [How to install rmagick using instant rails](https://www.ruby-forum.com/t/how-to-install-rmagick-using-instant-rails/87935)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/how-to-install-rmagick-using-instant-rails/87935 "2007-03-06T23:57:10Z")

</div>

Hi I ahve just installed instant rails and am having problems installing the rmagick gem. Does anyone know how to get this installed using windows and instant rails? Thanks Scot

---

## [Sessions not persistent across http-\>https](https://www.ruby-forum.com/t/sessions-not-persistent-across-http-https/87927)

<div class="topic-metadata">

**Author:** [@Clever\_N](https://www.ruby-forum.com/u/Clever_N)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/sessions-not-persistent-across-http-https/87927 "2007-03-06T23:46:47Z")

</div>

So, I turned on our SSL support (apache and mongrel all configured like they should be, forwarding the protocol header and all that). Now, here is the problem: whenever I switch between SSL and non-SSL pages, the sess…

---

## [Newbie: Syntax for handling hash/arrays returned through SQL](https://www.ruby-forum.com/t/newbie-syntax-for-handling-hash-arrays-returned-through-sql/87903)

<div class="topic-metadata">

**Author:** [@tgifriday](https://www.ruby-forum.com/u/tgifriday)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/newbie-syntax-for-handling-hash-arrays-returned-through-sql/87903 "2007-03-06T22:41:36Z")

</div>

I successfully created a few tables, controllers, models, etc., but I’m hung up on taking the results that I receive back from a database search. I started with higher level ActiveRecord usage and have gone down to a…

---

## [Hosting requirements for RAILS](https://www.ruby-forum.com/t/hosting-requirements-for-rails/87831)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 14\
**Last updated:** [March 6, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/hosting-requirements-for-rails/87831 "2007-03-06T22:23:34Z")

</div>

Hello all, coming from PHP and recognized benefits both Ruby and Rails brings, I am tempted to use Rails platform even for smaller websites with several visitors. However, I am little concerned about hosting for this …

---

## [Problem with sum and include](https://www.ruby-forum.com/t/problem-with-sum-and-include/87918)

<div class="topic-metadata">

**Author:** [@gr0k](https://www.ruby-forum.com/u/gr0k)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/problem-with-sum-and-include/87918 "2007-03-06T22:01:17Z")

</div>

Given these models: class Intranet \< ActiveRecord::Base has\_many :matters has\_many :bills end class Matter \< ActiveRecord::Base has\_many :bills belongs\_to :intranet end class Bill \< Entry belongs\_to :intranet …

---

## [Getting the result in xml from ajax call](https://www.ruby-forum.com/t/getting-the-result-in-xml-from-ajax-call/87871)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/getting-the-result-in-xml-from-ajax-call/87871 "2007-03-06T21:25:27Z")

</div>

hi all, I want to make a ajax call to rails to particular action which returns xml and i want to get that xml in java script function.can any one help me to do this??? regards, senthil

---

## [How to use SslRequirement plugin?](https://www.ruby-forum.com/t/how-to-use-sslrequirement-plugin/87877)

<div class="topic-metadata">

**Author:** [@Joram](https://www.ruby-forum.com/u/Joram)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/how-to-use-sslrequirement-plugin/87877 "2007-03-06T21:20:26Z")

</div>

Hi all, I need to use the SslRequirement plugin for a login page. The plugin is installed, the code is normally correct (comes straight from AWWRoR) class LoginController \< ApplicationController include SslRequireme…

---

## [Reuse Partials](https://www.ruby-forum.com/t/reuse-partials/95388)

<div class="topic-metadata">

**Author:** [@aibean](https://www.ruby-forum.com/u/aibean)\
**Replies:** 5\
**Last updated:** [March 6, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/reuse-partials/95388 "2007-03-06T21:10:14Z")

</div>

Hi all, This is my first official post as RoR developer, so here it is. I’ve got a partial for a Address (Postcode, Address, City, …). I want to use this partial multiple times on the same form? So I want to fill in …

---

## [:params =\> params does not work :-(](https://www.ruby-forum.com/t/params-params-does-not-work/87862)

<div class="topic-metadata">

**Author:** [@MartOn](https://www.ruby-forum.com/u/MartOn)\
**Replies:** 6\
**Last updated:** [March 6, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/params-params-does-not-work/87862 "2007-03-06T21:01:23Z")

</div>

Hello I’m applying some filter functionallity to my controller and would like to have pagination and params sendt without using sessions. My filter works and it is sent so I can use it like this: params\[:filter\]\[:fil…

---

## [Error when running 'ruby script\\generate controller pages'](https://www.ruby-forum.com/t/error-when-running-ruby-script-generate-controller-pages/87910)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/error-when-running-ruby-script-generate-controller-pages/87910 "2007-03-06T20:45:36Z")

</div>

Hi, I have just upgraded rails to version 1.2.2, however whenever I got to generate a controller I get the following error, any ideas? (im uisng instant rails on a windows) C:\\InstantRails\\rails\_apps\\uni\>ruby script\\…

---

## [How to create Urls =\> Controller](https://www.ruby-forum.com/t/how-to-create-urls-controller/87902)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/how-to-create-urls-controller/87902 "2007-03-06T20:01:29Z")

</div>

Hello there, I’m doing something like “categories” page, I want to do the URLs like this. http://domain/category/ \[show everything in all categories\] http://domain/category/movies \[show only in movies category\] http…

---

## [Re: ActiveRecord class method count issues](https://www.ruby-forum.com/t/re-activerecord-class-method-count-issues/87909)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/re-activerecord-class-method-count-issues/87909 "2007-03-06T19:53:12Z")

</div>

On Tue, Mar 06, 2007 at 07:23:53PM +0100, Drew O. wrote : irb(main):004:0\> Employee.count ActiveRecord::ConnectionNotEstablished: ActiveRecord::ConnectionNotEstablished What’s your Rails version? You need to have …

---

## [Access your pc from anywhere](https://www.ruby-forum.com/t/access-your-pc-from-anywhere/87906)

<div class="topic-metadata">

**Author:** [@fanis\_maria](https://www.ruby-forum.com/u/fanis_maria)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/access-your-pc-from-anywhere/87906 "2007-03-06T19:33:09Z")

</div>

try it for free Work on your office PC from home Â– in real time Â• Travel anywhere and use your PC remotely Â• Increase your work flexibility and productivity Â• Access your files, programs, email and network … wit…

---

## [Yahoo finance kind of application](https://www.ruby-forum.com/t/yahoo-finance-kind-of-application/87896)

<div class="topic-metadata">

**Author:** [@Pravara](https://www.ruby-forum.com/u/Pravara)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/yahoo-finance-kind-of-application/87896 "2007-03-06T18:14:58Z")

</div>

Hello All: We are looking for various web development choices out there and many have suggested RoR to be a good way to go with, especially its ease to use and faster development. The end result of the web app will l…

---

## [Smart forms in Rails?](https://www.ruby-forum.com/t/smart-forms-in-rails/87894)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/smart-forms-in-rails/87894 "2007-03-06T18:12:58Z")

</div>

I am working on a project that needs a “Smart Form” type of system. That is, we need to have a Form Template system that chooses what elements of the form are displayed based on how the user answers other elements of …

---

## [Upload file in Rails](https://www.ruby-forum.com/t/upload-file-in-rails/87811)

<div class="topic-metadata">

**Author:** [@watxit](https://www.ruby-forum.com/u/watxit)\
**Replies:** 6\
**Last updated:** [March 6, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/upload-file-in-rails/87811 "2007-03-06T18:08:57Z")

</div>

I’m a newb, i’m want to upload file in my “File Folder”.Can you help me this code about this.thanks

---

## [Class query: Classname.find(class)](https://www.ruby-forum.com/t/class-query-classname-find-class/87895)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/class-query-classname-find-class/87895 "2007-03-06T17:58:55Z")

</div>

Hi, I have implemented the following: @newUser = Usertbl.new @newUser.username = 'first' @newUser.userpassword = 'last' @userDetails = Usertbl.find(@newUser) and am getting the following error message: ‘Couldn’t find…

---

## [Who to rollbacking the database when system is switched off](https://www.ruby-forum.com/t/who-to-rollbacking-the-database-when-system-is-switched-off/87869)

<div class="topic-metadata">

**Author:** [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/who-to-rollbacking-the-database-when-system-is-switched-off/87869 "2007-03-06T17:50:02Z")

</div>

Hi, Can any one help me who to rollbacking the database when system is switched off. i.e. how to use rollback and commit in ruby

---

## [:dependent =\> :destroy\_unconditionally?](https://www.ruby-forum.com/t/dependent-destroy-unconditionally/87889)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/dependent-destroy-unconditionally/87889 "2007-03-06T17:12:39Z")

</div>

Hey… I have these business\_accounts that have a bunch of members through a business\_account\_membership model. A membership can be a privileged, “managing” one, and a business account should always have one such privi…

---

## [Editing a plugin](https://www.ruby-forum.com/t/editing-a-plugin/87770)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/editing-a-plugin/87770 "2007-03-06T16:57:35Z")

</div>

Hi, I am trying to change a method in the acts\_as\_taggable\_on\_steroids plugin. What I am not sure about is why when I change something it does not seem to register in the behavior of my development app, not even if I…

---

## [How can instant rails find RMagic](https://www.ruby-forum.com/t/how-can-instant-rails-find-rmagic/87875)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/how-can-instant-rails-find-rmagic/87875 "2007-03-06T16:41:30Z")

</div>

i want move a project to instant rails, but instant rails cann’t find RMagic, what should i do to let it work.

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

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