# Rails

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

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

---

## [RJS replacement problem](https://www.ruby-forum.com/t/rjs-replacement-problem/136658)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/rjs-replacement-problem/136658 "2008-05-05T15:17:20Z")

</div>

Hi I have a main file edit\_sd\_ticket\_ui .Inside that file a div sd\_flow\_items\_find is there.I am using modal windows in this form (http://livepipe.net/projects/control\_modal/).For creating this modal window i am usi…

---

## [Having two rails apps share the same models](https://www.ruby-forum.com/t/having-two-rails-apps-share-the-same-models/136644)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 6\
**Last updated:** [May 5, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/having-two-rails-apps-share-the-same-models/136644 "2008-05-05T14:16:03Z")

</div>

Hi, Say I have a public facing website, and a separate admin-only website (that needs to be separate). They do need to share some, if not all, of the models and libraries. The simplest thing I can think of is to hav…

---

## [How to create multiple rows in a model in a form](https://www.ruby-forum.com/t/how-to-create-multiple-rows-in-a-model-in-a-form/136670)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/how-to-create-multiple-rows-in-a-model-in-a-form/136670 "2008-05-05T14:09:00Z")

</div>

Hi. How do I create multiple rows in one model in a form? I have done the tutorial, multiple models in one form by ryan. This might be easy for most programmers. But I just don’t understand how to multiple rows in on…

---

## [Can i call a .php or .aspx files from rhtml page?](https://www.ruby-forum.com/t/can-i-call-a-php-or-aspx-files-from-rhtml-page/136549)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 3\
**Last updated:** [May 5, 2008, 11:47am UTC](https://www.ruby-forum.com/t/can-i-call-a-php-or-aspx-files-from-rhtml-page/136549 "2008-05-05T11:47:09Z")

</div>

I have some code written in php and that is placed in my public folder with .php extension. Is there a way to call that file? Thanks, Ratnavel.

---

## [Acts\_as\_tree -- getting children IDs?](https://www.ruby-forum.com/t/acts-as-tree-getting-children-ids/136638)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 11:10am UTC](https://www.ruby-forum.com/t/acts-as-tree-getting-children-ids/136638 "2008-05-05T11:10:28Z")

</div>

I’m having trouble getting all the IDs of the children of my acts\_as\_tree group. child.id seems to return the entire object. for child in g.children child.id end =\> \[#\<Group id: 2, name: “Campaign Admin”, parent\_…

---

## [FCKEditor, TinyMCE with spell checker](https://www.ruby-forum.com/t/fckeditor-tinymce-with-spell-checker/136386)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 9\
**Last updated:** [May 5, 2008, 11:02am UTC](https://www.ruby-forum.com/t/fckeditor-tinymce-with-spell-checker/136386 "2008-05-05T11:02:10Z")

</div>

Does anyone know how I can find out how to implement one of these? I need an html editor with spellchecker. I have tried numerous suggestions. No success with FCK Editor at all. Tiny MCE works okay but no idea how …

---

## [Submit form in database](https://www.ruby-forum.com/t/submit-form-in-database/136665)

<div class="topic-metadata">

**Author:** [@mani](https://www.ruby-forum.com/u/mani)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 10:54am UTC](https://www.ruby-forum.com/t/submit-form-in-database/136665 "2008-05-05T10:54:12Z")

</div>

Hi I created A folder book and created a database mysql.now I create a form new.rhtml.now I am running it it is not submitting data in database can u tell me what is problem what should I chang this is my new.rhtml fi…

---

## [Simple Captcha Problem](https://www.ruby-forum.com/t/simple-captcha-problem/135327)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 13\
**Last updated:** [May 5, 2008, 9:58am UTC](https://www.ruby-forum.com/t/simple-captcha-problem/135327 "2008-05-05T09:58:51Z")

</div>

I am using simple\_captcha plugin. I have successfully tested it with the my simple form. But my problem is that I get the following error ‘secrect code do not match’ when I tried it to use with my restful authentica…

---

## [Mongrel\_upload\_progess\_bar - where are my files?](https://www.ruby-forum.com/t/mongrel-upload-progess-bar-where-are-my-files/136640)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 6:59am UTC](https://www.ruby-forum.com/t/mongrel-upload-progess-bar-where-are-my-files/136640 "2008-05-05T06:59:46Z")

</div>

I just configured mongrel\_upload\_progess\_bar following this doc: http://mongrel.rubyforge.org/wiki/UploadProgress My “config/mongrel\_upload\_progress.conf” looks like: uri “/”, :handler =\> plugin(“/handlers/upload”, …

---

## [Routing Error with RJS](https://www.ruby-forum.com/t/routing-error-with-rjs/136598)

<div class="topic-metadata">

**Author:** [@OhMyRuby](https://www.ruby-forum.com/u/OhMyRuby)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 6:49am UTC](https://www.ruby-forum.com/t/routing-error-with-rjs/136598 "2008-05-05T06:49:48Z")

</div>

I really need some help using RJS. http://ip:3000/thoughts/log.rjs or http://ip:3000/thoughts/log.js give me a No route matches “/thoughts/log.rjs” with {:method=\>get} log.rjs and log.js are both in the thoughts vi…

---

## [RESTful Authentication and dual login](https://www.ruby-forum.com/t/restful-authentication-and-dual-login/136618)

<div class="topic-metadata">

**Author:** [@Costo](https://www.ruby-forum.com/u/Costo)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 6:48am UTC](https://www.ruby-forum.com/t/restful-authentication-and-dual-login/136618 "2008-05-05T06:48:38Z")

</div>

Hello all, I’m setting up a RIA with 2 separate “sub sites” (with namespaces in the routes), let’s say one for the clients, the other for the dealers. I want to use RESTful authentication, have followed the nice tuto…

---

## [GEdit plugin for ruby code formatting](https://www.ruby-forum.com/t/gedit-plugin-for-ruby-code-formatting/136615)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Urubatan\_Fe](https://www.ruby-forum.com/u/Rodrigo_Urubatan_Fe)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 6:47am UTC](https://www.ruby-forum.com/t/gedit-plugin-for-ruby-code-formatting/136615 "2008-05-05T06:47:28Z")

</div>

I use GEdit to write rails programs when I’m at home (when not at home I use GVim because it is easy to take it on my pendrive) :smiley: But I missed a shortcut for source code formatting, so I created this plugin: h…

---

## [Fixtures load bug?](https://www.ruby-forum.com/t/fixtures-load-bug/136584)

<div class="topic-metadata">

**Author:** [@ifrit](https://www.ruby-forum.com/u/ifrit)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 6:45am UTC](https://www.ruby-forum.com/t/fixtures-load-bug/136584 "2008-05-05T06:45:42Z")

</div>

Hi, I’m using rad rails v0.7.2 and the last version for ruby, When I enter the rake task db:fixtures:load with a specific FIXTURE x the data get loaded but in the development database !!! even if In my config/databas…

---

## [Saving 2 dependent models in one form (one needs other's ID)](https://www.ruby-forum.com/t/saving-2-dependent-models-in-one-form-one-needs-others-id/136553)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 6:38am UTC](https://www.ruby-forum.com/t/saving-2-dependent-models-in-one-form-one-needs-others-id/136553 "2008-05-05T06:38:42Z")

</div>

I’ve got a problem with saving 2 dependent models in one form (one needs other’s id). Can anybody help? Details: http://railsforum.com/viewtopic.php?id=17859

---

## [Ferret 0.11.6 with WinXP](https://www.ruby-forum.com/t/ferret-0-11-6-with-winxp/136546)

<div class="topic-metadata">

**Author:** [@paulgoulart](https://www.ruby-forum.com/u/paulgoulart)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 6:35am UTC](https://www.ruby-forum.com/t/ferret-0-11-6-with-winxp/136546 "2008-05-05T06:35:46Z")

</div>

I downloaded NMAKE.EXE and NMAKE.ERR and copied that to c:/make and then added that to the path statement in the Environment Variables section under My Computer properties in the advanced tab. This took away the erro…

---

## [Benchmarking Rails](https://www.ruby-forum.com/t/benchmarking-rails/136476)

<div class="topic-metadata">

**Author:** [@svsvsv](https://www.ruby-forum.com/u/svsvsv)\
**Replies:** 3\
**Last updated:** [May 5, 2008, 6:34am UTC](https://www.ruby-forum.com/t/benchmarking-rails/136476 "2008-05-05T06:34:36Z")

</div>

Hi to all! I’m newbie in rails development. But I want to do some rails benhmarking. Could anyone suggest typical rails application for benchmarking typical rails performance? Community rules! Regards, Sergey

---

## [Nil.to\_sym when migrating?](https://www.ruby-forum.com/t/nil-to-sym-when-migrating/136535)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 6:33am UTC](https://www.ruby-forum.com/t/nil-to-sym-when-migrating/136535 "2008-05-05T06:33:26Z")

</div>

For whatever reason I’m getting the following when attempting to run a migration: –rename\_column(:listings, :listed\_by, :agent\_id) rake aborted! You have a nil object when you didn’t expect it! The error occured whi…

---

## [Newbie Question](https://www.ruby-forum.com/t/newbie-question/136632)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 5:52am UTC](https://www.ruby-forum.com/t/newbie-question/136632 "2008-05-05T05:52:30Z")

</div>

Hi there, I have a one to many relationship between a restaurant and menus. In my view I want to iterate through each of the menu’s belonging to a given restaurant. I also need to distinguish between the first one in…

---

## ["uninitialized constant ActiveSupport" when running "rake db:migrate:reset" after including my own d](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-when-running-rake-dbreset-after-including-my-own-d/136645)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [May 5, 2008, 3:51am UTC](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-when-running-rake-dbreset-after-including-my-own-d/136645 "2008-05-05T03:51:14Z")

</div>

Hi, When I include this line in my environment.rb file my Rails app works as expected, HOWEVER using “rake:db:reset” then does not work after this??? "ActiveSupport::CoreExtensions::date::Conversions::DATE\_FORMATS\[:de…

---

## [Work out what are the included associations?](https://www.ruby-forum.com/t/work-out-what-are-the-included-associations/136526)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 6\
**Last updated:** [May 5, 2008, 3:41am UTC](https://www.ruby-forum.com/t/work-out-what-are-the-included-associations/136526 "2008-05-05T03:41:54Z")

</div>

I have a person model: Person has\_many :phone\_numbers has\_one :address has\_many :email\_addresses When I do the query: people = Person.find(52, :include =\> \[:address\], :limit =\> 10) How can I work out which associa…

---

## [N:N association](https://www.ruby-forum.com/t/n-n-association/136622)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [May 5, 2008, 12:21am UTC](https://www.ruby-forum.com/t/n-n-association/136622 "2008-05-05T00:21:00Z")

</div>

Hello everybody, I would like to configure this configuration: clients id name city products id name price clients\_products client\_id product\_id date ip\_address …But I am not sure about this following config …

---

## [Is this really impossible?](https://www.ruby-forum.com/t/is-this-really-impossible/136515)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 12\
**Last updated:** [May 4, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/is-this-really-impossible/136515 "2008-05-04T21:19:16Z")

</div>

Has anyone ever updated a form textbox field in a parent window from a child window? I’ve asked this looked for and question in various places and have not received any responses. Is this impossible to do? I’ve trie…

---

## [Scaffolding with namespace](https://www.ruby-forum.com/t/scaffolding-with-namespace/136623)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 1\
**Last updated:** [May 4, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/scaffolding-with-namespace/136623 "2008-05-04T20:35:48Z")

</div>

Hi, is there a way to scaffold with namespace? I’d like to generate a Posts model with namespace admin. But using script/generate scaffold admin/post title:string the migration would generate a table “admin\_posts”. …

---

## [REST Fileupload](https://www.ruby-forum.com/t/rest-fileupload/136544)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 2\
**Last updated:** [May 4, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/rest-fileupload/136544 "2008-05-04T20:15:17Z")

</div>

Hi all How can I accept file uploads through a REST webservice? I’ve got a .NET client tool, which uploads the files the following way: client.UploadData(url, “POST”, imageBytes) Thank you for your help!

---

## [Restful Routes Malfunction](https://www.ruby-forum.com/t/restful-routes-malfunction/135282)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 1\
**Last updated:** [May 4, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/restful-routes-malfunction/135282 "2008-05-04T20:14:00Z")

</div>

My rails application is working correctly for everything except one controller/action. In development on my local machine it all works fine, but when deployed to the production environment, the ‘new’ form is mis-route…

---

## [Session overflows, maybe mod\_rails related?](https://www.ruby-forum.com/t/session-overflows-maybe-mod-rails-related/136588)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 4\
**Last updated:** [May 4, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/session-overflows-maybe-mod-rails-related/136588 "2008-05-04T19:12:32Z")

</div>

Hi all, I’m constantly getting session overflow errors in my app. It seems to be somewhat random and I have trouble reproducing it on a consistent basis. Basically, every once in a while, it throws the error and rend…

---

## [Rjs / ruby ajax books](https://www.ruby-forum.com/t/rjs-ruby-ajax-books/136594)

<div class="topic-metadata">

**Author:** [@OhMyRuby](https://www.ruby-forum.com/u/OhMyRuby)\
**Replies:** 1\
**Last updated:** [May 4, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/rjs-ruby-ajax-books/136594 "2008-05-04T16:53:13Z")

</div>

what is a good book or tutorial on rjs. i am reading the ‘ajax on rails’ by scott raymond and the book is really bad. it refers to code and items that don’t even exist in the book. i thought my book was missing chapte…

---

## [Params missing data for format.xml?](https://www.ruby-forum.com/t/params-missing-data-for-format-xml/136617)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/params-missing-data-for-format-xml/136617 "2008-05-04T15:33:58Z")

</div>

Hello there, I have a TextSnippet model and a corresponding controller that works perfectly fine for creating new instances via html/the browser etc. However, when accessing it via REST/xml the “@text\_snippet = TextS…

---

## [Laptops, Cell Phones & iPods](https://www.ruby-forum.com/t/laptops-cell-phones-ipods/136610)

<div class="topic-metadata">

**Author:** [@Green\_Pikes](https://www.ruby-forum.com/u/Green_Pikes)\
**Replies:** 0\
**Last updated:** [May 4, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/laptops-cell-phones-ipods/136610 "2008-05-04T14:07:31Z")

</div>

Laptops, Cell Phones & iPods Find latest news and reviews about laptops, cell phones, ipods and other electronic gadgets at The Gadgets Forum “http://www.gadgets.pk” JOIN NOW IT’S FREE

---

## [Can i use scrtipaculous functions in helpers?](https://www.ruby-forum.com/t/can-i-use-scrtipaculous-functions-in-helpers/136602)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 3\
**Last updated:** [May 4, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/can-i-use-scrtipaculous-functions-in-helpers/136602 "2008-05-04T13:54:20Z")

</div>

Hi, I need to rip off some data from webpage. Looking at the DOM structure of that page, i figured out i need to use getElementsByClassName provided by scriptaculous. I wonder if i can use call Javascript fucntions(g…

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

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