# Rails

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

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

---

## [Scaffold Broken?](https://www.ruby-forum.com/t/scaffold-broken/119360)

<div class="topic-metadata">

**Author:** [@beta\_geek](https://www.ruby-forum.com/u/beta_geek)\
**Replies:** 3\
**Last updated:** [November 6, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/scaffold-broken/119360 "2007-11-06T12:58:59Z")

</div>

Hi, I’m running into some serious problems with the scaffold features in Rails 1.2.5 Dynamic scaffolding appears to have gone I get “undefined method \`scaffold’ for Product:Class” when trying to use it script…

---

## [If else statement problem](https://www.ruby-forum.com/t/if-else-statement-problem/119364)

<div class="topic-metadata">

**Author:** [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Replies:** 4\
**Last updated:** [November 6, 2007, 12:55pm UTC](https://www.ruby-forum.com/t/if-else-statement-problem/119364 "2007-11-06T12:55:09Z")

</div>

Hey, I’m trying to execute the code below which i have tested and works fine: \<–text.rb–\> p = 2 if p == 1 pos = NorthGravity elsif p == 2 pos = SouthGravity else end clown = Magick::ImageList.new(“3.jpeg”) tex…

---

## [Difference with :null](https://www.ruby-forum.com/t/difference-with-null/119359)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/difference-with-null/119359 "2007-11-06T12:10:56Z")

</div>

Which is the difference between :null =\> true and :default =\> nil? If a field is going to be optional, which option of those would be the best? t.string :optional, :null =\> true or t.string :optional, default =\> nil …

---

## [Ruby on Rails](https://www.ruby-forum.com/t/ruby-on-rails/119351)

<div class="topic-metadata">

**Author:** [@subhash](https://www.ruby-forum.com/u/subhash)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 11:19am UTC](https://www.ruby-forum.com/t/ruby-on-rails/119351 "2007-11-06T11:19:21Z")

</div>

I am using a drop down box in a form, the method is GET. The data that i am selecting in the box is not getting stored in the database. But when i am not using the drop down box the rest of the data is getting stored.…

---

## [Ruby on Rails](https://www.ruby-forum.com/t/ruby-on-rails/119352)

<div class="topic-metadata">

**Author:** [@subhash](https://www.ruby-forum.com/u/subhash)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 11:16am UTC](https://www.ruby-forum.com/t/ruby-on-rails/119352 "2007-11-06T11:16:59Z")

</div>

I am using a drop down box in a form, the method is GET. The data that i am not selecting in the box is not getting stored in the database. But when i am not using the drop down box the rest of the data is getting sto…

---

## [Javascript Validation](https://www.ruby-forum.com/t/javascript-validation/119348)

<div class="topic-metadata">

**Author:** [@divyakgowda](https://www.ruby-forum.com/u/divyakgowda)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 10:46am UTC](https://www.ruby-forum.com/t/javascript-validation/119348 "2007-11-06T10:46:43Z")

</div>

without using any button i think its unable to do java script validation … If it possible let me know . i using observe form and field .

---

## [Sudden Strange Webrick Error: Errno::ECONNABORTED](https://www.ruby-forum.com/t/sudden-strange-webrick-error-errno-econnaborted/65206)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 2\
**Last updated:** [November 6, 2007, 7:07am UTC](https://www.ruby-forum.com/t/sudden-strange-webrick-error-errno-econnaborted/65206 "2007-11-06T07:07:52Z")

</div>

Hello, I’ve been developing an application (on Windows), and everything was going pretty well, but I suddenly began getting this weird error back from Webrick after submitting something through ajax, and only through …

---

## [Views/Controllers for polymorphic association](https://www.ruby-forum.com/t/views-controllers-for-polymorphic-association/119328)

<div class="topic-metadata">

**Author:** [@osman84](https://www.ruby-forum.com/u/osman84)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 5:24am UTC](https://www.ruby-forum.com/t/views-controllers-for-polymorphic-association/119328 "2007-11-06T05:24:22Z")

</div>

Hello, I’m wondering what a good way is to create forms for polymorphic associations (or what syntax I can use). A simple example should suffice. For example, I’ve got models that look like: Tournament —\> belongs\_t…

---

## [Developers and Program Managers Needed Ruby on Rails, NYC, DOE Full-Time](https://www.ruby-forum.com/t/developers-and-program-managers-needed-ruby-on-rails-nyc-doe-full-time/119335)

<div class="topic-metadata">

**Author:** [@Fawad](https://www.ruby-forum.com/u/Fawad)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 4:58am UTC](https://www.ruby-forum.com/t/developers-and-program-managers-needed-ruby-on-rails-nyc-doe-full-time/119335 "2007-11-06T04:58:40Z")

</div>

Hi, Seeking Developers and Program Managers with strong experience on Ruby on Rails. This is a Full-Time position. Salary is based on experience. If you are looking for an exiting opportunity, please send me you upd…

---

## [Configuration For ROR on Apache 1.3](https://www.ruby-forum.com/t/configuration-for-ror-on-apache-1-3/119306)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 4:54am UTC](https://www.ruby-forum.com/t/configuration-for-ror-on-apache-1-3/119306 "2007-11-06T04:54:35Z")

</div>

hi, all I’m using InstantRails. After I followed a tutorial http://wiki.rubyonrails.org/rails/pages/GettingStartedWithRails to configure Apache then start server, I got the welcome page works, but not my application.…

---

## ["We're sorry, but..." in development mode?](https://www.ruby-forum.com/t/were-sorry-but-in-development-mode/119289)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 6, 2007, 4:34am UTC](https://www.ruby-forum.com/t/were-sorry-but-in-development-mode/119289 "2007-11-06T04:34:40Z")

</div>

Hi all I just got a “We’re sorry, but something went wrong.” message while developing my Rails app. I didn’t expect such a message to be displayed in development mode - is this normal? And if so, in what cases will be …

---

## [Pre-dev questions](https://www.ruby-forum.com/t/pre-dev-questions/119329)

<div class="topic-metadata">

**Author:** [@Neonblue](https://www.ruby-forum.com/u/Neonblue)\
**Replies:** 2\
**Last updated:** [November 6, 2007, 4:32am UTC](https://www.ruby-forum.com/t/pre-dev-questions/119329 "2007-11-06T04:32:54Z")

</div>

Hello everyone. I’ve been hearing about Ruby on Rails for a while now. However, I’ve been focused on a few development projects in ColdfusionMX. While I’m intrigued about using a tool that could allow me to develop …

---

## [Searching table question](https://www.ruby-forum.com/t/searching-table-question/119332)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 4:24am UTC](https://www.ruby-forum.com/t/searching-table-question/119332 "2007-11-06T04:24:09Z")

</div>

this confuses me… @zip = ZipCode.find(zip) where @zip is the first 3 digits of a zipcode the table is zipcodes the model zipcode so i understand @zip = Zipcode.find(zip) is attempting to look for zip in the zipcodes…

---

## [Monster method (too hard for my skill level)](https://www.ruby-forum.com/t/monster-method-too-hard-for-my-skill-level/118893)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 5\
**Last updated:** [November 6, 2007, 4:22am UTC](https://www.ruby-forum.com/t/monster-method-too-hard-for-my-skill-level/118893 "2007-11-06T04:22:59Z")

</div>

I need to write a method for calculating the fee for medical procedures with respect to area. I have all the tables and data but its hard to give that here. Can someone take a look at this ‘stub’ method and help me …

---

## [HostGator hosting](https://www.ruby-forum.com/t/hostgator-hosting/115211)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 1\
**Last updated:** [November 6, 2007, 2:02am UTC](https://www.ruby-forum.com/t/hostgator-hosting/115211 "2007-11-06T02:02:46Z")

</div>

Anyone have experience with HostGator.com hosting? They look like they have a pretty good package. thx blake

---

## [Re: 1 application, 2 databases: 1 legacy db informix 1 Mysql db?](https://www.ruby-forum.com/t/re-1-application-2-databases-1-legacy-db-informix-1-mysql-db/119319)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [November 6, 2007, 12:05am UTC](https://www.ruby-forum.com/t/re-1-application-2-databases-1-legacy-db-informix-1-mysql-db/119319 "2007-11-06T00:05:22Z")

</div>

Mary, I would recommend the type of approach advocated here: http://pragdave.pragprog.com/pragdave/2006/01/sharing\_externa.html Basically you would create one AR model that establishes a connection to your legacy DB …

---

## [Help! Made "search&replace" in whole app, nothing works anym](https://www.ruby-forum.com/t/help-made-search-replace-in-whole-app-nothing-works-anym/119287)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [November 5, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/help-made-search-replace-in-whole-app-nothing-works-anym/119287 "2007-11-05T23:43:06Z")

</div>

Hi Me silly coder kid have done a Search&Replace over the whole project, and since I’m always getting a 505 error when trying to access my project! :frowning: My development.log tells me: dump format error(0x68) /u…

---

## [Catch-22 in association through join model](https://www.ruby-forum.com/t/catch-22-in-association-through-join-model/119227)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 3\
**Last updated:** [November 5, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/catch-22-in-association-through-join-model/119227 "2007-11-05T23:13:26Z")

</div>

I have a many-to-many relationship defined by a join model: class Product \< ActiveRecord::Base has\_many :bundlings has\_many :bundles, :through =\> :bundlings … end class Bundling \< ActiveRecord::Base belongs\_to :pr…

---

## [Loading fixtures into oracle](https://www.ruby-forum.com/t/loading-fixtures-into-oracle/119308)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/loading-fixtures-into-oracle/119308 "2007-11-05T23:10:24Z")

</div>

Any idea why this fixture would fail to load any data? \<% %w( Admin Pharmacist PI/Co-PI Research\\ Nurse ).each { |g| Group.create( :name =\> g ) } %\> It works perfectly in irb but when I do rake db:fixtures:load I ge…

---

## [Link\_to & others really necessary?](https://www.ruby-forum.com/t/link-to-others-really-necessary/119279)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [November 5, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/link-to-others-really-necessary/119279 "2007-11-05T22:56:56Z")

</div>

One of the areas where I think Rails goes too far is in many of the helpers that (AFAICT) do nothing more than change the syntax used to write simple HTML tags. link\_to and many of the form tags come to mind. For me, …

---

## [Ø¯ø±ø¯ø´ø© ø¯ø±ø¯ø´ø© ø¯ø±ø´ù‡ ø¯ø±ø¯ø´ù‡ ø²ùˆø§ø¬ ø²ùˆø§ø¬ ø²ùˆø§ø¬ ø±ùˆø³ùšø§ ø²ùˆø§ø¬ ù…ø³ùšø§ø](https://www.ruby-forum.com/t/o-o-o-o-o-o-o-o-o-o-o-o-o-u-o-o-o-o-u-o-u-o-o-o-u-o-o-o-u-o-o-o-u-o-uso-o-u-o-o-u-o-uso-o/119304)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/o-o-o-o-o-o-o-o-o-o-o-o-o-u-o-o-o-o-u-o-u-o-o-o-u-o-o-o-u-o-o-o-u-o-uso-o-u-o-o-u-o-uso-o/119304 "2007-11-05T22:30:34Z")

</div>

ÏÑÏÔÉ ÏÑÏÔÉ ÏÑÔå ÏÑÏÔå ÒæÇÌ ÒæÇÌ ÒæÇÌ ÑæÓíÇ ÒæÇÌ ãÓíÇÑ ÒæÇÌ ãÌÇäÇ Ú Çí ÒæÇÌ ÇÊ ÒæÇÌ ãÓíÇÑh\[ .tht rvhk zawaj zawag www.zw2j.com www.zw2j.com www.zw2j.com www.zw2j.com ÒæÇÌ ÒæÇÌ ÒæÇÌ ÑæÓíÇ ÒæÇÌ ãÓíÇÑ ÒæÇÌ ãÌÇäÇ Ú Çí…

---

## [How to use subdirs in the models directory](https://www.ruby-forum.com/t/how-to-use-subdirs-in-the-models-directory/119298)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-use-subdirs-in-the-models-directory/119298 "2007-11-05T22:11:18Z")

</div>

I would like to sort some of my models better into different folders. Unfortunately when I do so it is unable to find the models. I have updated the boot.rb file to: #Rails::Initializer.run(:set\_load\_path) Rails::Ini…

---

## [A "User has\_many :files", a "File has\_many :users" - How?](https://www.ruby-forum.com/t/a-user-has-many-files-a-file-has-many-users-how/119085)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [November 5, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/a-user-has-many-files-a-file-has-many-users-how/119085 "2007-11-05T21:40:53Z")

</div>

User – “has many” :files File – “has many” :users How do you define that relationship? If a user has many files, and each of those files is shared by numerous other users, how do you define the relationship? I’m abs…

---

## [Ajax - attachment\_fu - rmagick and iframe](https://www.ruby-forum.com/t/ajax-attachment-fu-rmagick-and-iframe/119293)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/ajax-attachment-fu-rmagick-and-iframe/119293 "2007-11-05T21:32:16Z")

</div>

Hello I am uploading images ajax-attachment\_fu-rmagick and an iframe and me climb correctly, but when I finish the process and the driver will I redirect\_to enc\_url I recharge layer ajax. I tried with redirect\_to enc…

---

## [Ruby web controls](https://www.ruby-forum.com/t/ruby-web-controls/119119)

<div class="topic-metadata">

**Author:** [@Nowy](https://www.ruby-forum.com/u/Nowy)\
**Replies:** 9\
**Last updated:** [November 5, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/ruby-web-controls/119119 "2007-11-05T21:30:52Z")

</div>

HI, I Find rails great but theres lack of rich components, i mean any components except standard html controls… I cant build everytime my table with all features, we are crud right ? So any component repository plann…

---

## [Create acts\_as\_xxx for a controller?](https://www.ruby-forum.com/t/create-acts-as-xxx-for-a-controller/119292)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/create-acts-as-xxx-for-a-controller/119292 "2007-11-05T21:23:22Z")

</div>

Hi all I have created quite a useful module: ActsAsManager def new … end def edit … end … end that adds methods to a controller to do all the CRUD stuff in a very dynamic way. So far I just added an include …

---

## [Resetting session of particular user](https://www.ruby-forum.com/t/resetting-session-of-particular-user/119243)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 5\
**Last updated:** [November 5, 2007, 8:38pm UTC](https://www.ruby-forum.com/t/resetting-session-of-particular-user/119243 "2007-11-05T20:38:59Z")

</div>

Actually I want to reset\_session of a particular user to make sure he is logged out on any other system he used before before logging on current one.

---

## [Attachment\_fu migration failure](https://www.ruby-forum.com/t/attachment-fu-migration-failure/119286)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/attachment-fu-migration-failure/119286 "2007-11-05T20:07:04Z")

</div>

My migration is adding a few fields to the images table for attachment\_fu. The error I get is: rake db:migrate (in C:/InstantRails/rails\_apps/g1) rake aborted! uninitialized constant AttachmentImages Is it makin…

---

## [Date\_select with 2i and 1i getting mashed](https://www.ruby-forum.com/t/date-select-with-2i-and-1i-getting-mashed/119284)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [November 5, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/date-select-with-2i-and-1i-getting-mashed/119284 "2007-11-05T20:01:39Z")

</div>

Hi, I have this in my view, \<%= date\_select(‘Case’, ‘date\_from’, :end\_year =\> 1990, :start\_year =\>Date.today.year, :discard\_day =\> true, :include\_blank =\> true, :order =\> \[:month, :year\])%\> if only month is chosen…

---

## [Private API in REST](https://www.ruby-forum.com/t/private-api-in-rest/119256)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 3\
**Last updated:** [November 5, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/private-api-in-rest/119256 "2007-11-05T19:52:26Z")

</div>

In a app RESTful, all api’s are public. How to leave a private API?

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

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