# Rails

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

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

---

## [Learn ruby patch](https://www.ruby-forum.com/t/learn-ruby-patch/160530)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/learn-ruby-patch/160530 "2009-02-17T13:59:20Z")

</div>

i want learn how to create patches with ruby what is best resource i can learn from

---

## [Replace\_html in 2.2.2](https://www.ruby-forum.com/t/replace-html-in-2-2-2/160466)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 11:01am UTC](https://www.ruby-forum.com/t/replace-html-in-2-2-2/160466 "2009-02-17T11:01:09Z")

</div>

Hello, I’m in troubles with an easy thing I’ve done several times, but I don’t see what I’m doign wrong. Having index.html.erb: Projects \<% for project in @projects %\> \<% end %\> \<%= project.name %\> …

---

## [Reinstall gem on Mac 10.5](https://www.ruby-forum.com/t/reinstall-gem-on-mac-10-5/160515)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 10:55am UTC](https://www.ruby-forum.com/t/reinstall-gem-on-mac-10-5/160515 "2009-02-17T10:55:17Z")

</div>

I’m been google around try to figure out easy way to reinstall gem on my mac. I tried running the follow command. udo gem install rails --include-dependencies sudo: gem: command not found Please help Thank you

---

## [Rake Task insert record from MySqlDB to SqlServerDB](https://www.ruby-forum.com/t/rake-task-insert-record-from-mysqldb-to-sqlserverdb/160516)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 10:33am UTC](https://www.ruby-forum.com/t/rake-task-insert-record-from-mysqldb-to-sqlserverdb/160516 "2009-02-17T10:33:46Z")

</div>

Hi, Anyone can help, to my script see the list below. I want to insert from MySqlDB to SqlServerDB. Currently, my script will insert the entire data but I need to truncate the table first from SqlServerDB on ISQL comm…

---

## [How can I retrieve the SQL during each model action?](https://www.ruby-forum.com/t/how-can-i-retrieve-the-sql-during-each-model-action/160265)

<div class="topic-metadata">

**Author:** [@xeon](https://www.ruby-forum.com/u/xeon)\
**Replies:** 3\
**Last updated:** [February 17, 2009, 10:32am UTC](https://www.ruby-forum.com/t/how-can-i-retrieve-the-sql-during-each-model-action/160265 "2009-02-17T10:32:16Z")

</div>

Hi, I would like to know for each running model action, how can I retrieve the SQL running behind? I don’t want to scan log each time for the sql running behind. E.g. post.find(:all,:conditions=\>{:id=\>‘1’} I wanna d…

---

## [How to show div with radio button onclick](https://www.ruby-forum.com/t/how-to-show-div-with-radio-button-onclick/160503)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 10:22am UTC](https://www.ruby-forum.com/t/how-to-show-div-with-radio-button-onclick/160503 "2009-02-17T10:22:53Z")

</div>

I am trying to get a div to show when a radio button is clicked but the problem is that the div is dynamically named. I am using the normal html for a radio button: Because observe field does not work well with rad…

---

## [Auto\_complete plugin in Rails 2.2.2 (auto\_complete\_for method not found)](https://www.ruby-forum.com/t/auto-complete-plugin-in-rails-2-2-2-auto-complete-for-method-not-found/160246)

<div class="topic-metadata">

**Author:** [@Spiros\_K](https://www.ruby-forum.com/u/Spiros_K)\
**Replies:** 6\
**Last updated:** [February 17, 2009, 10:14am UTC](https://www.ruby-forum.com/t/auto-complete-plugin-in-rails-2-2-2-auto-complete-for-method-not-found/160246 "2009-02-17T10:14:02Z")

</div>

Hello world, I am considering myself to be a newbie in Ruby, but not programming in general and i have a very serious problem trying to get Rails 2.2.2 to install the auto\_complete plugin in Windows XP. I always get t…

---

## [NoMethodError in User\_photos#show](https://www.ruby-forum.com/t/nomethoderror-in-user-photos-show/160153)

<div class="topic-metadata">

**Author:** [@kenle545](https://www.ruby-forum.com/u/kenle545)\
**Replies:** 10\
**Last updated:** [February 17, 2009, 9:07am UTC](https://www.ruby-forum.com/t/nomethoderror-in-user-photos-show/160153 "2009-02-17T09:07:44Z")

</div>

I’m following practical rails social networking sites book. While creating a phoyo gallery, I’ve encountered this error: NoMethodError in User\_photos#show Showing user\_photos/show.rhtml where line #2 raised: You have…

---

## [Consuming Web Service APIs created through AWS](https://www.ruby-forum.com/t/consuming-web-service-apis-created-through-aws/160506)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [February 17, 2009, 8:15am UTC](https://www.ruby-forum.com/t/consuming-web-service-apis-created-through-aws/160506 "2009-02-17T08:15:35Z")

</div>

Hi All, I am running with the issue while creating web service client for the web service server created through AWS support in rails. I need to create client in rails here… Below is the detail about the situation he…

---

## [HTTP Post Request to a servlet](https://www.ruby-forum.com/t/http-post-request-to-a-servlet/160417)

<div class="topic-metadata">

**Author:** [@hectorb](https://www.ruby-forum.com/u/hectorb)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 7:33am UTC](https://www.ruby-forum.com/t/http-post-request-to-a-servlet/160417 "2009-02-17T07:33:16Z")

</div>

hi, i have to pass parameters to a Login servlet using ruby on rails at the URL(intranet) http://172.16.3.156:9090/crmserver/servlets/mobile/MobileLoginServlet and have to write following on output stream :–\> “0\\bad…

---

## [Find duplicate entries](https://www.ruby-forum.com/t/find-duplicate-entries/160464)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 3\
**Last updated:** [February 17, 2009, 4:36am UTC](https://www.ruby-forum.com/t/find-duplicate-entries/160464 "2009-02-17T04:36:51Z")

</div>

Hey all, i create a hash from an description field to find equal entries. Now i want to show only the entries with an equal hash. (Hash value is stored in text\_hash field on the model) I try :group =\> ‘text\_hash’ but…

---

## [Problem regarding folder based fixtures and test code](https://www.ruby-forum.com/t/problem-regarding-folder-based-fixtures-and-test-code/160412)

<div class="topic-metadata">

**Author:** [@ashrafuzzaman](https://www.ruby-forum.com/u/ashrafuzzaman)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 4:12am UTC](https://www.ruby-forum.com/t/problem-regarding-folder-based-fixtures-and-test-code/160412 "2009-02-17T04:12:11Z")

</div>

We use folder based fixtures for each controllers and models. Here is how we load them in test classes, fixtures :shippers, :users, :user\_types def fixture\_path File.join(File.dirname(FILE), “…/fixtures/shipper\_contr…

---

## [How do you check if associated table is empty from find?](https://www.ruby-forum.com/t/how-do-you-check-if-associated-table-is-empty-from-find/160498)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 2:47am UTC](https://www.ruby-forum.com/t/how-do-you-check-if-associated-table-is-empty-from-find/160498 "2009-02-17T02:47:20Z")

</div>

So I have two tables: teams players I’m trying to find all teams that have no players. I thought this could work: Team.find(:all, :joins =\> :players, :conditions =\> \[“players.size = ?”, 0\] ) Of course that’s not w…

---

## [Load and Save data in yaml file in capistrano](https://www.ruby-forum.com/t/load-and-save-data-in-yaml-file-in-capistrano/160446)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 2\
**Last updated:** [February 17, 2009, 2:21am UTC](https://www.ruby-forum.com/t/load-and-save-data-in-yaml-file-in-capistrano/160446 "2009-02-17T02:21:37Z")

</div>

Hi All, I tried to request user to input username and password for the database when deploy, therefore, in my capistrano task, I task :create\_database\_user do @username = Capistrano::CLI.password\_prompt('mysql\_usern…

---

## [What happen when a controller raises a custom exception?](https://www.ruby-forum.com/t/what-happen-when-a-controller-raises-a-custom-exception/160435)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 1\
**Last updated:** [February 17, 2009, 1:17am UTC](https://www.ruby-forum.com/t/what-happen-when-a-controller-raises-a-custom-exception/160435 "2009-02-17T01:17:17Z")

</div>

Hello, some controllers of mine raises security exception. environments/test.rb defines config.action\_controller.consider\_all\_requests\_local = true I want to raise from a controller, and have the exception visible i…

---

## [How can I get the current url i'm looking at?](https://www.ruby-forum.com/t/how-can-i-get-the-current-url-im-looking-at/160476)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [February 16, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/how-can-i-get-the-current-url-im-looking-at/160476 "2009-02-16T23:14:07Z")

</div>

How can I get the current url i’m looking at? I need it to return there later.

---

## [Fire submit when drop down box item clicked](https://www.ruby-forum.com/t/fire-submit-when-drop-down-box-item-clicked/160419)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 3\
**Last updated:** [February 16, 2009, 10:14pm UTC](https://www.ruby-forum.com/t/fire-submit-when-drop-down-box-item-clicked/160419 "2009-02-16T22:14:10Z")

</div>

This may not be rails specific, but i have a select drop down box and want the “submit” action fired when the user clicks one of the options in my drop down select tag box. How do I accomplish this? thanks

---

## [\[ JOBS\] Looking for rockstar rubyists who eat and breathe healthy code](https://www.ruby-forum.com/t/jobs-looking-for-rockstar-rubyists-who-eat-and-breathe-healthy-code/160370)

<div class="topic-metadata">

**Author:** [@garage\_manager](https://www.ruby-forum.com/u/garage_manager)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/jobs-looking-for-rockstar-rubyists-who-eat-and-breathe-healthy-code/160370 "2009-02-16T21:35:52Z")

</div>

Hello, We are http://whol.ly , an ambitious startup based in NewYork with our new development centre in Bangalore. While you are reading this, we are making tiny steps towards innovation in the world of social networ…

---

## [Problem deploying an app with passenger](https://www.ruby-forum.com/t/problem-deploying-an-app-with-passenger/160367)

<div class="topic-metadata">

**Author:** [@landry\_soules](https://www.ruby-forum.com/u/landry_soules)\
**Replies:** 5\
**Last updated:** [February 16, 2009, 9:15pm UTC](https://www.ruby-forum.com/t/problem-deploying-an-app-with-passenger/160367 "2009-02-16T21:15:48Z")

</div>

Hello, I’m desperatly trying to install an app with phusion passenger. I’ve already spent 2 days with no success, can somebody help me, please ? Here is my problem : I already installed phusion passenger with no prob…

---

## [Parent.find(parent.id).to\_xml(:include =\> \[children, grandchildren\] = Help?](https://www.ruby-forum.com/t/parent-find-parent-id-to-xml-include-children-grandchildren-help/160474)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/parent-find-parent-id-to-xml-include-children-grandchildren-help/160474 "2009-02-16T20:28:09Z")

</div>

I’ve read Fred Cheung’s excellent example of nested :includes at the link; His examples deal with including parent and children associations but I can’t see the connection of how to address a child, grandchild nest…

---

## [How to reduce memory footprint of a rails app](https://www.ruby-forum.com/t/how-to-reduce-memory-footprint-of-a-rails-app/160377)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 5\
**Last updated:** [February 16, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/how-to-reduce-memory-footprint-of-a-rails-app/160377 "2009-02-16T19:48:19Z")

</div>

Hi- My app has reached the memory limit allotted by my host. Can someone tell me how I go about reducing the memory footprint? Does rails load every single gem it finds, and can I somehow throw away the ones I don’…

---

## [\[ANN\] SVG's as backgrounds: Magick Corners Plugin](https://www.ruby-forum.com/t/ann-svgs-as-backgrounds-magick-corners-plugin/160472)

<div class="topic-metadata">

**Author:** [@wybo](https://www.ruby-forum.com/u/wybo)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/ann-svgs-as-backgrounds-magick-corners-plugin/160472 "2009-02-16T19:35:50Z")

</div>

Magick Corners is a Rails plugin for adding Scalable Vector Graphics as backgrounds to css-elements without a hassle. It can scale and stretch them to size, and also generate them for simple cases like a div with roun…

---

## [Joins + conditions problem](https://www.ruby-forum.com/t/joins-conditions-problem/160359)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 5\
**Last updated:** [February 16, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/joins-conditions-problem/160359 "2009-02-16T19:09:54Z")

</div>

hi, I have a table for example Product, and another table called Picture (Product has many pictures, Picture belongs to Product). Now let’s say that i want to retrieve all the Product and its related pictures, i do t…

---

## [Looking for a tool do visualize the data model of a rails application](https://www.ruby-forum.com/t/looking-for-a-tool-do-visualize-the-data-model-of-a-rails-application/160442)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/looking-for-a-tool-do-visualize-the-data-model-of-a-rails-application/160442 "2009-02-16T18:58:46Z")

</div>

Hey, I’m looking for a tool which allows me to visualize the data model of a rails application in uml diagrams. In the moment, I manually synchronize my uml diagrams and the ror models manually, but this takes too mu…

---

## [\[ANN\] Radiant 0.7.1 - Engraving Release (bugfix)](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfix/160388)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 4\
**Last updated:** [February 16, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/ann-radiant-0-7-1-engraving-release-bugfix/160388 "2009-02-16T17:34:58Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.7.1 Engraving is a bugfix release that corrects two errors in the user-interface. The contents of page-parts will now mai…

---

## [How to set roles during user creation (role\_requirement+rest](https://www.ruby-forum.com/t/how-to-set-roles-during-user-creation-role-requirement-rest/160438)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/how-to-set-roles-during-user-creation-role-requirement-rest/160438 "2009-02-16T17:31:02Z")

</div>

I am using role\_requirement + restful\_authentication for my project. Role based authorization works fine as long as data is present in roles\_users table for users and roles. I would like to insert data into this tabl…

---

## [Can I attach ruby-debug to a running process?](https://www.ruby-forum.com/t/can-i-attach-ruby-debug-to-a-running-process/160463)

<div class="topic-metadata">

**Author:** [@troelskn](https://www.ruby-forum.com/u/troelskn)\
**Replies:** 0\
**Last updated:** [February 16, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/can-i-attach-ruby-debug-to-a-running-process/160463 "2009-02-16T17:27:06Z")

</div>

Hi, I’m having a problem which shows up in-deterministically after some time. Something goes wrong, and apparently the rails-process hangs, without exiting. I was thinking about using ruby-debug to attach to one of t…

---

## [Model-less Rails?](https://www.ruby-forum.com/t/model-less-rails/158278)

<div class="topic-metadata">

**Author:** [@Shak](https://www.ruby-forum.com/u/Shak)\
**Replies:** 10\
**Last updated:** [February 16, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/model-less-rails/158278 "2009-02-16T15:23:39Z")

</div>

Hi, I’m looking into using RoR to develop a front end for an existing system - one which is accessible via JSON-RPC. As such, there won’t be any data management performed directly by the web application itself, all w…

---

## [HOW to use RESTful authentication plugon](https://www.ruby-forum.com/t/how-to-use-restful-authentication-plugon/160445)

<div class="topic-metadata">

**Author:** [@sag](https://www.ruby-forum.com/u/sag)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-use-restful-authentication-plugon/160445 "2009-02-16T15:05:24Z")

</div>

how it help me to design view should i prefer or not

---

## [Converting console app to Shoes](https://www.ruby-forum.com/t/converting-console-app-to-shoes/160369)

<div class="topic-metadata">

**Author:** [@Brett\_Jackson](https://www.ruby-forum.com/u/Brett_Jackson)\
**Replies:** 2\
**Last updated:** [February 16, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/converting-console-app-to-shoes/160369 "2009-02-16T13:16:50Z")

</div>

Ugh, I’m at my wits end. I’ve been trying for hours to convert this simple app to work on Shoes, and I still haven’t found a solution, and I was wondering if someone could steer me in the right direction on how to do …

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

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