# Rails

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

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

---

## [Question on insert to multiple tables?](https://www.ruby-forum.com/t/question-on-insert-to-multiple-tables/185589)

<div class="topic-metadata">

**Author:** [@longhorn](https://www.ruby-forum.com/u/longhorn)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/question-on-insert-to-multiple-tables/185589 "2010-03-23T13:44:20Z")

</div>

Hello, every day i love more rails xD because after struggling a bit I could finally install the Active Scaffold plugin and it works great with this. But now it is time to grow a little more on rails and am trying to …

---

## [Extract shapes and text from images](https://www.ruby-forum.com/t/extract-shapes-and-text-from-images/185531)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 1:43pm UTC](https://www.ruby-forum.com/t/extract-shapes-and-text-from-images/185531 "2010-03-23T13:43:00Z")

</div>

Hi, I would like extract some simple shapes such as rectangles, lines, circles and text from images. I know of camellia but that is really not maintained ( http://bit.ly/9tjFIo ). Any suggestions what else I could us…

---

## [Still Using old Rails even after Upgrade](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 6\
**Last updated:** [March 23, 2010, 12:30pm UTC](https://www.ruby-forum.com/t/still-using-old-rails-even-after-upgrade/185574 "2010-03-23T12:30:30Z")

</div>

I was recently forced to upgrade to Rails 2.3.5 because of a problem with gem. After doing so, I’m trying to create a new site and I noticed that I am getting warnings for depricated commands and it looks like I’m run…

---

## [Saas design considerations](https://www.ruby-forum.com/t/saas-design-considerations/148737)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 8\
**Last updated:** [March 23, 2010, 10:13am UTC](https://www.ruby-forum.com/t/saas-design-considerations/148737 "2010-03-23T10:13:39Z")

</div>

Anybody here working in the saas application using ROR? I have few questions for you. How do you manage the scalability? Do you use multi database connection or database clustering. Which one is best? What applicatio…

---

## [Stored Procedures MYSQL and Rails 2.3.2](https://www.ruby-forum.com/t/stored-procedures-mysql-and-rails-2-3-2/174297)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 11\
**Last updated:** [March 23, 2010, 9:59am UTC](https://www.ruby-forum.com/t/stored-procedures-mysql-and-rails-2-3-2/174297 "2010-03-23T09:59:21Z")

</div>

Search yielded only ancients results with a lot of dead links that didnt help me any further. In the past it has been a pretty big issue to incorperate stored procedures into Rails. By now, has 2.3.2 in 2009 made any …

---

## [Issues RUNNING mysql gem](https://www.ruby-forum.com/t/issues-running-mysql-gem/185511)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 33\
**Last updated:** [March 23, 2010, 9:46am UTC](https://www.ruby-forum.com/t/issues-running-mysql-gem/185511 "2010-03-23T09:46:01Z")

</div>

Hi, all. With unbelievable difficulty, I have the mysql gem installed without warnings with the following components: OSX Leopard 10.6.2 ruby 1.8.7 (2008-08-11 patchlevel 72) \[universal-darwin10.0\] Rails 2.3.5 mysq…

---

## [Adding items in groups in Rails](https://www.ruby-forum.com/t/adding-items-in-groups-in-rails/185594)

<div class="topic-metadata">

**Author:** [@railsquestion](https://www.ruby-forum.com/u/railsquestion)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 9:43am UTC](https://www.ruby-forum.com/t/adding-items-in-groups-in-rails/185594 "2010-03-23T09:43:51Z")

</div>

My product table is id type price location 1 chips $3 aisle3 I have a question with adding the products in groups. There is a quantity field(nonmodel) where the user can e…

---

## [Presentation Ideas](https://www.ruby-forum.com/t/presentation-ideas/185554)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 9:22am UTC](https://www.ruby-forum.com/t/presentation-ideas/185554 "2010-03-23T09:22:43Z")

</div>

Hi, I’m going to give a talk on Rails to my campus ACM group in about two weeks. I’m trying to think of ideas. The 15 minute blog is great, and I’d kind of like to do something like that, but I can’t do better than D…

---

## [ActsAsTaggableOn scoped to Account](https://www.ruby-forum.com/t/actsastaggableon-scoped-to-account/185602)

<div class="topic-metadata">

**Author:** [@Jonesy](https://www.ruby-forum.com/u/Jonesy)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 9:15am UTC](https://www.ruby-forum.com/t/actsastaggableon-scoped-to-account/185602 "2010-03-23T09:15:35Z")

</div>

Hi, Can anybody give me some clues how to use ActsAsTaggableOn in an Account scoped way? ie. I want several accounts each to have their own sets of tags to tag their own articles rather than sharing a giant pool of t…

---

## [H() method in form partial](https://www.ruby-forum.com/t/h-method-in-form-partial/185599)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 8:56am UTC](https://www.ruby-forum.com/t/h-method-in-form-partial/185599 "2010-03-23T08:56:51Z")

</div>

Hi I have a doubt. Dont know it is valid. Just asking. I am trying to reuse the same partial \_form for both new and edit. So from new.html.erb I call partial like \<%= render :partial =\> ‘user\_fields’, :locals =\> {:f …

---

## [Java script errrrror in rails](https://www.ruby-forum.com/t/java-script-errrrror-in-rails/185596)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 8:35am UTC](https://www.ruby-forum.com/t/java-script-errrrror-in-rails/185596 "2010-03-23T08:35:25Z")

</div>

when i click a button called add it should show a javascript form showing an upload feature.its not displaying anything.instead of tht its only showing the mwssage lik tis in console. please providee a…

---

## [Restful create URL](https://www.ruby-forum.com/t/restful-create-url/185581)

<div class="topic-metadata">

**Author:** [@sgallo1](https://www.ruby-forum.com/u/sgallo1)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 7:57am UTC](https://www.ruby-forum.com/t/restful-create-url/185581 "2010-03-23T07:57:43Z")

</div>

I’m creating and api. I create a scaffold script/generate scaffold user I have users controller, but how do I call the create method via a URL ie…localhost:3000/users/create.xml?params new doesn’t work as it returns…

---

## [UnitTesting-Action view testcase is failed](https://www.ruby-forum.com/t/unittesting-action-view-testcase-is-failed/185529)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 5\
**Last updated:** [March 23, 2010, 6:49am UTC](https://www.ruby-forum.com/t/unittesting-action-view-testcase-is-failed/185529 "2010-03-23T06:49:59Z")

</div>

Hi, I run the “Unit testing”, Then The “Actionview::Testcase” is failed. i.e i am getting the error as below, Error: test\_tablename(ActionView::TestCase): TypeError: wrong argument type Class (expected Module) /us…

---

## [How to customize logger messages in rails 2.3.5](https://www.ruby-forum.com/t/how-to-customize-logger-messages-in-rails-2-3-5/185538)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 3\
**Last updated:** [March 23, 2010, 4:53am UTC](https://www.ruby-forum.com/t/how-to-customize-logger-messages-in-rails-2-3-5/185538 "2010-03-23T04:53:12Z")

</div>

Hi I would like to know how I can customize logger message format in rails 2.3.5 Thanks in advance Tom

---

## [Setting custom encoding for a single request?](https://www.ruby-forum.com/t/setting-custom-encoding-for-a-single-request/185580)

<div class="topic-metadata">

**Author:** [@donncha](https://www.ruby-forum.com/u/donncha)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 3:55am UTC](https://www.ruby-forum.com/t/setting-custom-encoding-for-a-single-request/185580 "2010-03-23T03:55:30Z")

</div>

Hi all, I was wondering if it’s possible to set Rails’s output encoding for a single request w/ Ruby 1.9? For example, one request on my app generates a form for submission to a third-party who mandates ISO-8859-1, a…

---

## [Namespaces that are controllers?](https://www.ruby-forum.com/t/namespaces-that-are-controllers/185576)

<div class="topic-metadata">

**Author:** [@mjand](https://www.ruby-forum.com/u/mjand)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 1:56am UTC](https://www.ruby-forum.com/t/namespaces-that-are-controllers/185576 "2010-03-23T01:56:35Z")

</div>

I’m checking out the new router in Rails 3, and was looking to create an ‘/admin’ section of a website with several namespaced resources, however I’d like the top level ‘/admin’ to also route to a controller. Here’s …

---

## [How to send back a response to an Ajax.request call](https://www.ruby-forum.com/t/how-to-send-back-a-response-to-an-ajax-request-call/185546)

<div class="topic-metadata">

**Author:** [@mcieong](https://www.ruby-forum.com/u/mcieong)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 12:21am UTC](https://www.ruby-forum.com/t/how-to-send-back-a-response-to-an-ajax-request-call/185546 "2010-03-23T00:21:25Z")

</div>

Hello, I have the following Ajax call which invoke the action “check\_skills” new Ajax.Request('/persons/check\_skills' { method:'post', asynchronous: false, evalScripts:false, onSuccess: function(transport){…

---

## [Best search function plugin/gem for instant rails 2.0](https://www.ruby-forum.com/t/best-search-function-plugin-gem-for-instant-rails-2-0/185555)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 11:42pm UTC](https://www.ruby-forum.com/t/best-search-function-plugin-gem-for-instant-rails-2-0/185555 "2010-03-22T23:42:33Z")

</div>

Hi, I’m creating a simple web app for with multiple tables my university assignment and I need to create a search function. I’ve heard about some search plugins and gems but I’m not sure which is the best one to use.…

---

## [How to initially hide a drop-down control and have an image control make it visible](https://www.ruby-forum.com/t/how-to-initially-hide-a-drop-down-control-and-have-an-image-control-make-it-visible/185481)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 14\
**Last updated:** [March 22, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/how-to-initially-hide-a-drop-down-control-and-have-an-image-control-make-it-visible/185481 "2010-03-22T23:12:42Z")

</div>

Hi, I’ve got the following code in my attempt to provide the subject functionality, lines 20-29 in view: \<%= image\_tag "DownArrow.jpg" options = { onclick=page\[“vendor\_droplist”\].show } %\> \<%= select\_tag “tes…

---

## [Problem with model validation with ajax](https://www.ruby-forum.com/t/problem-with-model-validation-with-ajax/185556)

<div class="topic-metadata">

**Author:** [@inprogs](https://www.ruby-forum.com/u/inprogs)\
**Replies:** 6\
**Last updated:** [March 22, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/problem-with-model-validation-with-ajax/185556 "2010-03-22T21:38:28Z")

</div>

I have got a problem with :on =\> create validation validates\_uniqueness\_of :nip, :regon, on =\> :create Doesn’t work properly when I call it via xhr In my log Processing AdminController#doajaxing\_for\_updateuser (for 1…

---

## [Upgrade to 3.0](https://www.ruby-forum.com/t/upgrade-to-3-0/185567)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 0\
**Last updated:** [March 22, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/upgrade-to-3-0/185567 "2010-03-22T20:56:54Z")

</div>

I am working with a project we are getting ready to release and now wondering if we should start looking at upgrading to 3.0 beofre releasing. I was hoping to get some advice. Of course, upgrading something once it i…

---

## [Ignite RailsConf call for speaking proposals](https://www.ruby-forum.com/t/ignite-railsconf-call-for-speaking-proposals/185566)

<div class="topic-metadata">

**Author:** [@Mike\_Subelsky](https://www.ruby-forum.com/u/Mike_Subelsky)\
**Replies:** 0\
**Last updated:** [March 22, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/ignite-railsconf-call-for-speaking-proposals/185566 "2010-03-22T20:05:53Z")

</div>

hey everyone, The Rails community in Baltimore is throwing an unofficial but really awesome pre-party for RailsConf on 6/6/10: Ignite RailsConf. We’re currently looking for speakers who’d like to give an interesting, …

---

## [Amazon S3 and ffmpeg](https://www.ruby-forum.com/t/amazon-s3-and-ffmpeg/185557)

<div class="topic-metadata">

**Author:** [@James\_Finley](https://www.ruby-forum.com/u/James_Finley)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/amazon-s3-and-ffmpeg/185557 "2010-03-22T18:24:01Z")

</div>

So we are setting up a file upload system for our web app. Files will be uploaded to Amazon S3, and videos need to be converted to ffmpeg. We have had problems with uploading of large files timing out, and it was sugg…

---

## [Factory\_girl factory gem: problem with simple associations](https://www.ruby-forum.com/t/factory-girl-factory-gem-problem-with-simple-associations/185543)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 6:01pm UTC](https://www.ruby-forum.com/t/factory-girl-factory-gem-problem-with-simple-associations/185543 "2010-03-22T18:01:12Z")

</div>

Hi, Can anyone familiar with the use of factory\_girl please comment on why I don’t succeed with the following: has\_one\_instance = Factory.build(:has\_one\_class) assert\_equal 10, has\_one\_instance.belongs\_to\_class.some\_…

---

## [Rails Configuration: use Proc's or method overrides?](https://www.ruby-forum.com/t/rails-configuration-use-procs-or-method-overrides/185551)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 0\
**Last updated:** [March 22, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/rails-configuration-use-procs-or-method-overrides/185551 "2010-03-22T17:38:59Z")

</div>

I came across a ticket by Craig W. at https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4247-customising-asset-paths#ticket-4247-5 and found it quite interesting. Quote: This patch allows you to set…

---

## [Problems with after\_save callback](https://www.ruby-forum.com/t/problems-with-after-save-callback/185545)

<div class="topic-metadata">

**Author:** [@yoram](https://www.ruby-forum.com/u/yoram)\
**Replies:** 3\
**Last updated:** [March 22, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/problems-with-after-save-callback/185545 "2010-03-22T17:16:51Z")

</div>

I have an object (call it an ‘emitter’), that has\_many ‘emissions’ objects. Each time I save an emission for a certain emitter, I need to do work on the entire set of emissions for that emitter, including the new emi…

---

## [How to debug and profile rails library code ( in windows )](https://www.ruby-forum.com/t/how-to-debug-and-profile-rails-library-code-in-windows/185547)

<div class="topic-metadata">

**Author:** [@wonko](https://www.ruby-forum.com/u/wonko)\
**Replies:** 3\
**Last updated:** [March 22, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/how-to-debug-and-profile-rails-library-code-in-windows/185547 "2010-03-22T16:57:53Z")

</div>

Hi, I have a project on windows using rails 2.3.5, ruby 1.8.6, mysql 5.0.28, and mysql gem 2.8.1. I am trying to debug a problem where it seems like each rails thread hangs before it has the chance to release the db …

---

## [Architectural question reg acts\_as\_tree (+ caching?)](https://www.ruby-forum.com/t/architectural-question-reg-acts-as-tree-caching/185542)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/architectural-question-reg-acts-as-tree-caching/185542 "2010-03-22T15:58:42Z")

</div>

hi, in one view i use a partial to render children and each children renders the same partial again and again and again to display a tree. now, the model utilizes acts\_as\_tree, the table consists of ~4500 records, bu…

---

## [Nginx deployment](https://www.ruby-forum.com/t/nginx-deployment/185544)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 1\
**Last updated:** [March 22, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/nginx-deployment/185544 "2010-03-22T15:32:30Z")

</div>

Has any one done rails deployment with nginx? Is it better to use nginx with mongrel or with passenger? It would help if you can post any links that explain how to go about setting up nginx on a CentOS machine with mo…

---

## [Testing tools in ROR](https://www.ruby-forum.com/t/testing-tools-in-ror/185534)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 5\
**Last updated:** [March 22, 2010, 2:43pm UTC](https://www.ruby-forum.com/t/testing-tools-in-ror/185534 "2010-03-22T14:43:20Z")

</div>

Hello champs, I have been using ROR from last 6 months so i do not have any too much ideas about writing test cases. Upto now i have been writing test cases manually … i mean with assert\_statements only… But now i wa…

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

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