# Rails

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

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

---

## [Rails 2.0.2 Scaffold NOT creating new stuff](https://www.ruby-forum.com/t/rails-2-0-2-scaffold-not-creating-new-stuff/124210)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 9\
**Last updated:** [February 23, 2008, 12:26am UTC](https://www.ruby-forum.com/t/rails-2-0-2-scaffold-not-creating-new-stuff/124210 "2008-02-23T00:26:47Z")

</div>

I am running 2.0.2 on a windows machine. I created a new project. Used the new generate scaffold to create a MVC for “Song”. That worked. However when I tried to create scaffold for the next file, “Content” I get…

---

## [Can anyone solve this sql query](https://www.ruby-forum.com/t/can-anyone-solve-this-sql-query/129895)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 25\
**Last updated:** [February 22, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/can-anyone-solve-this-sql-query/129895 "2008-02-22T23:54:24Z")

</div>

Hello, Please help me solve the sql query. people and relations are two models having has\_and\_belongs\_to\_many association. here is ansample table called people\_relations person\_id relation\_id 11 20…

---

## [Ruby on Rails Developer opportunity in Orange County](https://www.ruby-forum.com/t/ruby-on-rails-developer-opportunity-in-orange-county/129951)

<div class="topic-metadata">

**Author:** [@RogersS\_Adam](https://www.ruby-forum.com/u/RogersS_Adam)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-opportunity-in-orange-county/129951 "2008-02-22T23:27:17Z")

</div>

Hello All, Let me start by asking forgiveness, if I have shown any ignorance of Ruby on Rails principles, this is actually the first position looking of the technology I have seen. Feel free to correct my errors. I h…

---

## [SWFObject\_helper Plugin](https://www.ruby-forum.com/t/swfobject-helper-plugin/129950)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/swfobject-helper-plugin/129950 "2008-02-22T23:17:16Z")

</div>

Some time posted a question here about any plugin for helper content flash. I find the Flashobject\_helper plugin, but it uses the library flashobject javascript to embed the flash in html and sincerely think this lib…

---

## [Help with Documentation Please](https://www.ruby-forum.com/t/help-with-documentation-please/129947)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/help-with-documentation-please/129947 "2008-02-22T23:08:29Z")

</div>

Where in the online docs or rails api do I find a discussion of the table\_name\_prefix and primary\_key\_prefix\_type methods? I have tried Rails::Configuration and that passed me to ActiveRecord::Base. In ActiveRecord:…

---

## [Failing functional tests when controllers work](https://www.ruby-forum.com/t/failing-functional-tests-when-controllers-work/129940)

<div class="topic-metadata">

**Author:** [@pjmorse](https://www.ruby-forum.com/u/pjmorse)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/failing-functional-tests-when-controllers-work/129940 "2008-02-22T22:54:13Z")

</div>

I have three models (users, issues, retailers) and three corresponding controllers. In functional tests for all three controllers, I have the same problems: Creating a record which should work, fails in the functiona…

---

## [Cap VERSION question](https://www.ruby-forum.com/t/cap-version-question/129857)

<div class="topic-metadata">

**Author:** [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/cap-version-question/129857 "2008-02-22T22:51:17Z")

</div>

I have an old app that was setup using Capistrano 1.4. I upgraded to 2.1 and remember having to use a specific command that would use the 1.4 gem instead of 2.0, something like cap deploy VERSION=1.4 or something. Do…

---

## [\[ANN\] BrainBuster (Logic Captcha) 0.8.1 released](https://www.ruby-forum.com/t/ann-brainbuster-logic-captcha-0-8-1-released/129944)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/ann-brainbuster-logic-captcha-0-8-1-released/129944 "2008-02-22T22:47:45Z")

</div>

Description BrainBuster is a logic captcha for Rails. A logic captcha attempts to detect automated responses (ie spambots) by asking a simple question, such as a word puzzle or math question. Logic captchas are ofte…

---

## [Image Gallery with custom thumbs...?](https://www.ruby-forum.com/t/image-gallery-with-custom-thumbs/129946)

<div class="topic-metadata">

**Author:** [@upupnaway](https://www.ruby-forum.com/u/upupnaway)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/image-gallery-with-custom-thumbs/129946 "2008-02-22T22:46:34Z")

</div>

Hello all, I’m fairly new to RoR, have done many different tutorials, but am now trying to build something on my own. I would like to create a portfolio gallery. I plan on using customized thumbs, not scaled, but cus…

---

## [This works on windows but not linux](https://www.ruby-forum.com/t/this-works-on-windows-but-not-linux/129896)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/this-works-on-windows-but-not-linux/129896 "2008-02-22T22:41:27Z")

</div>

I have this app where if I am logged in as admin, I set the Group model so that when it saves a record it will automatically set the approved field to true. That field has a default value of false in mysql. This works…

---

## [Ajax update input fields using data from database](https://www.ruby-forum.com/t/ajax-update-input-fields-using-data-from-database/129928)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/ajax-update-input-fields-using-data-from-database/129928 "2008-02-22T21:44:34Z")

</div>

Does anyone have any information or links to tutorials on how to have a select list update other fields in a form using ajax? Example. I have list of customers stored in a database. I would like to have a drop down co…

---

## [Has\_many and belongs\_to in rails 2.0.2 (child.Parent) is not working](https://www.ruby-forum.com/t/has-many-and-belongs-to-in-rails-2-0-2-child-parent-is-not-working/129912)

<div class="topic-metadata">

**Author:** [@hhvm](https://www.ruby-forum.com/u/hhvm)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-in-rails-2-0-2-child-parent-is-not-working/129912 "2008-02-22T21:41:38Z")

</div>

Hi All I have 2 models working well in rails 1.2.6 : class TypeService \< ActiveRecord::Base has\_many :Services end class Service \< ActiveRecord::Base belongs\_to :TypeService end I was able to get the name of the …

---

## [Floating popup vs Split Container](https://www.ruby-forum.com/t/floating-popup-vs-split-container/129934)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/floating-popup-vs-split-container/129934 "2008-02-22T21:14:12Z")

</div>

Hi, My application uses dojo tabs and i have a situation where in i have a split container and now i have to show a floating div to which i have given a z-index. I want that div to be rendered always in the center of…

---

## [Reverse formatting routes...?](https://www.ruby-forum.com/t/reverse-formatting-routes/129872)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 7\
**Last updated:** [February 22, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/reverse-formatting-routes/129872 "2008-02-22T20:35:13Z")

</div>

i have this set up map.connect ‘startrekvoyager/episodes’, :controller =\> ‘categories’, :action =\> ‘show’, :id =\> 2 but when i call link\_to “Voyager”, :controller =\> :categories, :action =\> :show, :id =\> 2 it comes…

---

## [HELP! check\_box visual\_effect](https://www.ruby-forum.com/t/help-check-box-visual-effect/125286)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/help-check-box-visual-effect/125286 "2008-02-22T19:50:49Z")

</div>

what am i doing WRONG!!! \<%= f.check\_box :monday, :on\_click =\> visual\_effect(‘toggle’, ‘mondaydiv’, ‘blind’) %\>

---

## [My own 12hr time select helper](https://www.ruby-forum.com/t/my-own-12hr-time-select-helper/129867)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 6\
**Last updated:** [February 22, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/my-own-12hr-time-select-helper/129867 "2008-02-22T19:48:03Z")

</div>

Hi there, I created my own time helper which stores hash values for name, and value of 12 hr times in an array. The problem is, I’m lost on how to create the drop down menu in the view that utilizes the hash data? H…

---

## [Routing Question](https://www.ruby-forum.com/t/routing-question/129848)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 3\
**Last updated:** [February 22, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/routing-question/129848 "2008-02-22T19:36:26Z")

</div>

So I have a routing problem I’m running into. I have a model called Film, and each Film belongs to categories, which are being store in the DB as a serialized array in the category column. The films\_controller is work…

---

## [Noob: where to put the find(:all) to use with collection\_select() in multiple places?](https://www.ruby-forum.com/t/noob-where-to-put-the-find-all-to-use-with-collection-select-in-multiple-places/129814)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 7:33pm UTC](https://www.ruby-forum.com/t/noob-where-to-put-the-find-all-to-use-with-collection-select-in-multiple-places/129814 "2008-02-22T19:33:00Z")

</div>

Hey All, I’m just starting out w/rails & have a toy app w/just 2 types of things right now: People and Organizations. Person :belongs\_to organization and Organization :has\_many people. I’d like to provide a select c…

---

## [Use submit tag but show a link](https://www.ruby-forum.com/t/use-submit-tag-but-show-a-link/129907)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/use-submit-tag-but-show-a-link/129907 "2008-02-22T17:29:05Z")

</div>

Hi, The submit\_tag when used created a button by default. Is there a way by which i can create a link and use submit\_tag and its properties. I have a form submission and i want that to work as it is but instead of bu…

---

## [Ð‘ÐµÑÐ¿Ð»Ð°Ñ‚Ð½Ð°Ñ ÐºÐ¾Ð½ÑÑƒÐ»ÑŒÑ‚Ð°Ñ†Ð¸Ñ Ð²Ñ€Ð°Ñ‡Ð° Ð¾Ð½Ð» Ð°Ð¹Ð½](https://www.ruby-forum.com/t/d-d-n-d-d-d-n-d-d-n-d-d-d-n-n-d-noen-d-n-d-n-d-n-d-n-d-d-d-d-d-d-d/129910)

<div class="topic-metadata">

**Author:** [@ShopBody.ru](https://www.ruby-forum.com/u/ShopBody.ru)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/d-d-n-d-d-d-n-d-d-n-d-d-d-n-n-d-noen-d-n-d-n-d-n-d-n-d-d-d-d-d-d-d/129910 "2008-02-22T16:51:12Z")

</div>

âÅÓÐÌÁÔÎÁÑ ËÏÎÓÕÌØÔÁÃÉÑ ×ÒÁÞÁ ÏÎÌÁÊÎ. íÅÄÉÃÉÎÓËÁÑ ËÏÎÓÕÌØÔÁÃÉÑ ÐÏ ÔÅÌÅÆÏÎÕ - ÚÁÐÏÌÎÉÔÅ ÆÏÒÍÕ, ×ÒÁÞ ÷ÁÍ ÐÅÒÅÚ×ÏÎÉÔ × ÂÌÉÖÁÊÛÅÅ ×ÒÅÍÑ. úÁÄÁÔØ ×ÏÐÒÏÓ ×ÒÁÞÕ ÏÞÅÎØ ÐÒÏÓÔÏ - ÚÁÐÏÌÎÉÔÅ ÆÏÒÍÕ ÎÉÖÅ. http://shopbody.ru/kons/ –…

---

## [Any plugins to add index in varchar field?](https://www.ruby-forum.com/t/any-plugins-to-add-index-in-varchar-field/129904)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/any-plugins-to-add-index-in-varchar-field/129904 "2008-02-22T16:16:49Z")

</div>

is it useful to add index for string field (column) is there any plugins for that ?

---

## [How to mock parameters with Mocha](https://www.ruby-forum.com/t/how-to-mock-parameters-with-mocha/129888)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 5\
**Last updated:** [February 22, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/how-to-mock-parameters-with-mocha/129888 "2008-02-22T15:50:52Z")

</div>

Hi folks, I want to test the following: In sites controller: def create @site = Site.new(params\[:site\]) … In the functional test: class SitesControllerTest \< Test::Unit::TestCase def setup @controller = SitesCon…

---

## [Display table data problem](https://www.ruby-forum.com/t/display-table-data-problem/129899)

<div class="topic-metadata">

**Author:** [@annam](https://www.ruby-forum.com/u/annam)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/display-table-data-problem/129899 "2008-02-22T15:29:26Z")

</div>

Hello! I’m pulling my hair out trying to get a simple view to display correctly. I need to display the practice info for each of the providers in my database. Each provider has multiple practices. I would like the se…

---

## [Time with only hour and minute](https://www.ruby-forum.com/t/time-with-only-hour-and-minute/129892)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/time-with-only-hour-and-minute/129892 "2008-02-22T15:03:43Z")

</div>

Hi I have to create in view a field as Effort= Hour:Minute If Hour is more than 24 Then a day is counted…How can I setup this in view?And what field(Type) should be there in the database(Postgres) to store it? M…

---

## [Port listening, cron jobs and loading rails environment](https://www.ruby-forum.com/t/port-listening-cron-jobs-and-loading-rails-environment/129889)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/port-listening-cron-jobs-and-loading-rails-environment/129889 "2008-02-22T14:56:33Z")

</div>

Hi, As part of a web application that I am writing I need to have something listening for any packets that are received on a particular port and then process the packets using some of my Rails models, hence I start t…

---

## [Setting object most prefered from has\_many](https://www.ruby-forum.com/t/setting-object-most-prefered-from-has-many/129875)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 6\
**Last updated:** [February 22, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/setting-object-most-prefered-from-has-many/129875 "2008-02-22T13:14:04Z")

</div>

I’d create a table (as persons) related to another (as animals), to selecting the animals prefered for each person but indicating too wich is the most prefered. My idea would be use ‘has\_many’ to relating some animal…

---

## [Checking for duplicates, if duplicate, concate duplicate](https://www.ruby-forum.com/t/checking-for-duplicates-if-duplicate-concate-duplicate/129853)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 1\
**Last updated:** [February 22, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/checking-for-duplicates-if-duplicate-concate-duplicate/129853 "2008-02-22T13:05:46Z")

</div>

Here’s the break down. 2 models: song, artist artists has many songs. Is there already a pre-built method in rails that can check for duplicate artists, and if the artist already exists, it will add the song object …

---

## [Newslettermanagement system](https://www.ruby-forum.com/t/newslettermanagement-system/129893)

<div class="topic-metadata">

**Author:** [@Barun\_A](https://www.ruby-forum.com/u/Barun_A)\
**Replies:** 0\
**Last updated:** [February 22, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/newslettermanagement-system/129893 "2008-02-22T13:05:09Z")

</div>

Can any one help me in finding plugins of APIs for newslettter management system.

---

## [Insert new record in Oracle table with RoR](https://www.ruby-forum.com/t/insert-new-record-in-oracle-table-with-ror/129887)

<div class="topic-metadata">

**Author:** [@sad](https://www.ruby-forum.com/u/sad)\
**Replies:** 2\
**Last updated:** [February 22, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/insert-new-record-in-oracle-table-with-ror/129887 "2008-02-22T12:42:18Z")

</div>

Hello all, it’s part of my code on RoR ": Case #1 Hello all, there is part of my code : folder = Folder1.new() folder.ID = @id folder.CLIENT\_NAME = @un folder.TREE\_NAME = @tn folder.save() when i test it on mySQL…

---

## [Routes-problem, probably](https://www.ruby-forum.com/t/routes-problem-probably/129767)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 6\
**Last updated:** [February 22, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/routes-problem-probably/129767 "2008-02-22T12:41:30Z")

</div>

Hi there, I’m still not very good (although I’m getting better) at RoR. I’m trying to create a friendship between a user and another user. After using the “friendships/new.rhtml”, fill in the user’s name and hit the …

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

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