# Rails

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

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

---

## [Starting out?](https://www.ruby-forum.com/t/starting-out/110567)

<div class="topic-metadata">

**Author:** [@irock](https://www.ruby-forum.com/u/irock)\
**Replies:** 17\
**Last updated:** [July 27, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/starting-out/110567 "2007-07-27T21:16:16Z")

</div>

So I’ve decided to use MySQL, Cocoa MySQL and Apache. What now? I’ve been looking at Dreamhost as I have hosting with them already and I’ve been wondering is it hard to get a RoR from my local (development/testing ma…

---

## [When to use Has Many and Has and Belongs to many](https://www.ruby-forum.com/t/when-to-use-has-many-and-has-and-belongs-to-many/110581)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/when-to-use-has-many-and-has-and-belongs-to-many/110581 "2007-07-27T21:05:40Z")

</div>

I am trying to design an interface that handles user accounts and their email aliases. What is the relationship between a user and their email accounts? -Ron

---

## [Error on Save](https://www.ruby-forum.com/t/error-on-save/110571)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 2\
**Last updated:** [July 27, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/error-on-save/110571 "2007-07-27T20:33:36Z")

</div>

Hi, i have a model that extends AcitveRecord::Base called PhoneUser. This table has a field called hits in it. This is set to default at 0. When I try and increment the value for hits in a controller I get the follow…

---

## [W/ fixtures, ERB gives $end unexpected. Options?](https://www.ruby-forum.com/t/w-fixtures-erb-gives-end-unexpected-options/110572)

<div class="topic-metadata">

**Author:** [@Hugh\_S](https://www.ruby-forum.com/u/Hugh_S)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/w-fixtures-erb-gives-end-unexpected-options/110572 "2007-07-27T20:06:32Z")

</div>

With my fixtures, I am getting: Fixture::FormatError: a YAML error occurred parsing /home/hgs/aeg\_intranet/csest ore/config/…/test/fixtures/loans.yml. Please note that YAML must be consistentl y indented using space…

---

## [Problems with assert\_select](https://www.ruby-forum.com/t/problems-with-assert-select/110578)

<div class="topic-metadata">

**Author:** [@bnab](https://www.ruby-forum.com/u/bnab)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/problems-with-assert-select/110578 "2007-07-27T20:01:30Z")

</div>

I’m sure this is user error, so let me describe it real quick. So, I’m in a functional test, and this line exists in the body of the response: foo I’m attempting to do this in the test: assert\_select “div#div\_nick\_na…

---

## [Test fixtures not loading](https://www.ruby-forum.com/t/test-fixtures-not-loading/110169)

<div class="topic-metadata">

**Author:** [@mcarlson](https://www.ruby-forum.com/u/mcarlson)\
**Replies:** 6\
**Last updated:** [July 27, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/test-fixtures-not-loading/110169 "2007-07-27T19:00:21Z")

</div>

PLEASE HELP. This is driving me insane. I have a simple database table: create table products( id int not null auto\_increment, title varchar(100) not null, description text not null, image\_url varchar(200) not nul…

---

## [PAKHostOnline.com – Web Hosting | Pakistan | http://www.pakh](https://www.ruby-forum.com/t/pakhostonline-com-web-hosting-pakistan-http-www-pakh/110574)

<div class="topic-metadata">

**Author:** [@koom2020](https://www.ruby-forum.com/u/koom2020)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/pakhostonline-com-web-hosting-pakistan-http-www-pakh/110574 "2007-07-27T18:22:18Z")

</div>

PAKHostOnline.com offered Pakistan No.1 Web Hosting, Free DOMAIN Registration / Transfer, 99% UP-Time, 24/7 Technical Support at http://www.pakhostonline.com/

---

## [Is Rails 1.1.6 compatible with Ruby 1.8.6?](https://www.ruby-forum.com/t/is-rails-1-1-6-compatible-with-ruby-1-8-6/110573)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/is-rails-1-1-6-compatible-with-ruby-1-8-6/110573 "2007-07-27T17:52:15Z")

</div>

All, I’d like to upgrade Ruby from 1.8.4 to 1.8.6. Should that be alright if I am running Rails 1.1.6? Thanks, Wes

---

## [Attachment\_fu undefined method \`upload\_data='](https://www.ruby-forum.com/t/attachment-fu-undefined-method-upload-data/110421)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/attachment-fu-undefined-method-upload-data/110421 "2007-07-27T17:51:15Z")

</div>

Uh, I’m kind of trying to follow the Mike C. tutorial on attachment\_fu but uh, seems it is incomplete… I get this error on submitting the form with upload undefined method \`upload\_data=’ What’s that? Where do I defi…

---

## [Does :on =\> blur works?](https://www.ruby-forum.com/t/does-on-blur-works/107591)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 9\
**Last updated:** [July 27, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/does-on-blur-works/107591 "2007-07-27T17:44:38Z")

</div>

Hi. I’m using observe\_fields and the behaviour I need is onBlur. The code (I think the code is correct) is as follows: \<%= start\_form\_tag :id =\> ‘AjaxForm’ %\> \<%= text\_field\_tag :text1 %\> \<%= text\_field\_tag :text2 %\>…

---

## [Could somone please check this over.. i cant find the error](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/could-somone-please-check-this-over-i-cant-find-the-error/110269 "2007-07-27T17:27:21Z")

</div>

Hi there. Can anyone help me. I get a “Unexpected $end expected kEnd” But the error is in the very last line. What is the reason for this. I cant find it myself. I have attached the file in question to this topic. E…

---

## [Web Service](https://www.ruby-forum.com/t/web-service/110323)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/web-service/110323 "2007-07-27T17:06:08Z")

</div>

Hi, I am writing a ruby on rails web service that needs to be accessed from a mobile phone. There is a mobile phone plugin that has been developed that will call the web service. Now the real trouble is that I need t…

---

## [How do I implement "rotating" content on a website?](https://www.ruby-forum.com/t/how-do-i-implement-rotating-content-on-a-website/110456)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/how-do-i-implement-rotating-content-on-a-website/110456 "2007-07-27T16:29:02Z")

</div>

I’m getting ready to write some generic code to handle “rotation” of content on our website, an online community featuring authors, books, etc. What the “rotation” means is that content such as Featured Blogs, Featur…

---

## [SSH database configuration](https://www.ruby-forum.com/t/ssh-database-configuration/110545)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/ssh-database-configuration/110545 "2007-07-27T16:23:02Z")

</div>

How can I configure Rails to connect to a database via SSH? In the config file we have: development: adapter: database: username: password: host: No connection type, ssh port… Thank you, Alvaro.

---

## [Unit testing models with relationships between tables](https://www.ruby-forum.com/t/unit-testing-models-with-relationships-between-tables/110548)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/unit-testing-models-with-relationships-between-tables/110548 "2007-07-27T16:15:01Z")

</div>

Hi, I’m quite new to Rails but even newer to the idea of unit testing as all the things I have done so far have been relatively small and so I haven’t bothered with unit tests. I’m just embarking on a much bigger pro…

---

## [WIN32OLERuntimeError , ---for Solidworks](https://www.ruby-forum.com/t/win32oleruntimeerror-for-solidworks/196410)

<div class="topic-metadata">

**Author:** [@aaron](https://www.ruby-forum.com/u/aaron)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/win32oleruntimeerror-for-solidworks/196410 "2007-07-27T13:49:45Z")

</div>

I want to use Ruby to manipulate the famous 3D software Solidworks though win32ole. I just did this in the irb: require ‘win32ole’ =\>true sw = WIN32OLE.new(‘SldWorks.Application’) Then I found the Solidworks’ pro…

---

## [WIN32OLERuntimeError , ---for Solidworks](https://www.ruby-forum.com/t/win32oleruntimeerror-for-solidworks/110555)

<div class="topic-metadata">

**Author:** [@aaron](https://www.ruby-forum.com/u/aaron)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/win32oleruntimeerror-for-solidworks/110555 "2007-07-27T13:49:45Z")

</div>

I want to use Ruby to manipulate the famous 3D software Solidworks though win32ole. I just did this in the irb: require ‘win32ole’ =\>true sw = WIN32OLE.new(‘SldWorks.Application’) Then I found the Solidworks’ pro…

---

## [How to combine OpenOffice and Ruby,Rails](https://www.ruby-forum.com/t/how-to-combine-openoffice-and-ruby-rails/110543)

<div class="topic-metadata">

**Author:** [@watxit](https://www.ruby-forum.com/u/watxit)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/how-to-combine-openoffice-and-ruby-rails/110543 "2007-07-27T12:21:38Z")

</div>

Hi guy! I know OOo can convert file to PDF format.By what way we use Ruby,Rails to controll OOo to convert file become PDF format. have any ideas please help me,thank a lot!

---

## [RailsConf Europe update: Roy Fielding to keynote](https://www.ruby-forum.com/t/railsconf-europe-update-roy-fielding-to-keynote/110542)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 12:18pm UTC](https://www.ruby-forum.com/t/railsconf-europe-update-roy-fielding-to-keynote/110542 "2007-07-27T12:18:37Z")

</div>

Hi – RailsConf Europe is fast approaching. Now is a good time to register – see http://www.railsconfeurope.com. Our speaker lineup is complete, and in addition to the keynote talks announced earlier, by DHH and Dave…

---

## [ActiveRecord basics](https://www.ruby-forum.com/t/activerecord-basics/110454)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 11:44am UTC](https://www.ruby-forum.com/t/activerecord-basics/110454 "2007-07-27T11:44:03Z")

</div>

Hi all, I’d want to create what in Java is called a Custom DTO: a model class that wraps selected data from one or more tables. What I do is creating first a subclass of ActiveRercord::Base class Targt \< ActiveRecord…

---

## [Rendering any file type from an action](https://www.ruby-forum.com/t/rendering-any-file-type-from-an-action/110522)

<div class="topic-metadata">

**Author:** [@tusharr](https://www.ruby-forum.com/u/tusharr)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 10:39am UTC](https://www.ruby-forum.com/t/rendering-any-file-type-from-an-action/110522 "2007-07-27T10:39:29Z")

</div>

I have an app that uses attachment\_fu plugin with database at the backend for attachments. I have no restriction on Mime types that can be stored. The problem I’m having is related to rendering the files (allowing use…

---

## [Scroll Page While Dragging 'draggable\_element'](https://www.ruby-forum.com/t/scroll-page-while-dragging-draggable-element/110424)

<div class="topic-metadata">

**Author:** [@brandon](https://www.ruby-forum.com/u/brandon)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 10:34am UTC](https://www.ruby-forum.com/t/scroll-page-while-dragging-draggable-element/110424 "2007-07-27T10:34:29Z")

</div>

Hi - I posted this on another list, but received no response, so I’m trying this one. My apologies to those who have seen this question twice. I have two columns, one of draggable elements, the other of droppable el…

---

## [Page \<\< HTML](https://www.ruby-forum.com/t/page-html/110490)

<div class="topic-metadata">

**Author:** [@Solid](https://www.ruby-forum.com/u/Solid)\
**Replies:** 2\
**Last updated:** [July 27, 2007, 9:55am UTC](https://www.ruby-forum.com/t/page-html/110490 "2007-07-27T09:55:24Z")

</div>

Hello again, How I can convert HTML to backslashed HTML. For example, I have: page \<\< 'new Insertion.After($$("#questionTable tbody").first(), ’ + render(:partial =\> ‘question’, :locals =\> { :q =\> question\_copy }) + …

---

## [Comparing ip adres with database list](https://www.ruby-forum.com/t/comparing-ip-adres-with-database-list/110342)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 9:39am UTC](https://www.ruby-forum.com/t/comparing-ip-adres-with-database-list/110342 "2007-07-27T09:39:02Z")

</div>

I’am creating a pollsystem for my site. so on each vote in the database the ip adress of the person that vote is logged. But how can i make that when somebody vote this ip adress not voted before. So how can i compa…

---

## [PATH Error trying to freeze edge rails](https://www.ruby-forum.com/t/path-error-trying-to-freeze-edge-rails/110279)

<div class="topic-metadata">

**Author:** [@rklaeboe](https://www.ruby-forum.com/u/rklaeboe)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 9:12am UTC](https://www.ruby-forum.com/t/path-error-trying-to-freeze-edge-rails/110279 "2007-07-27T09:12:37Z")

</div>

I would like to try out the restful stuff, but when using a rake task for freezing edge rails I receive the following message: ERROR: Must have subversion (svn) available in the PATH to lock this application to Edge R…

---

## [Help. Acts\_as\_Authenticated plugin stops working for me?](https://www.ruby-forum.com/t/help-acts-as-authenticated-plugin-stops-working-for-me/109699)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 3\
**Last updated:** [July 27, 2007, 8:57am UTC](https://www.ruby-forum.com/t/help-acts-as-authenticated-plugin-stops-working-for-me/109699 "2007-07-27T08:57:20Z")

</div>

Hi, I successfully installed AAA couple days before, and i managed to register a uer with it, with no user activation. but for some strange reason, it stops working for the signup method, with i go to the signup page…

---

## [RubyOnRails syntax-parser error](https://www.ruby-forum.com/t/rubyonrails-syntax-parser-error/110534)

<div class="topic-metadata">

**Author:** [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 8:49am UTC](https://www.ruby-forum.com/t/rubyonrails-syntax-parser-error/110534 "2007-07-27T08:49:19Z")

</div>

Our developer team has found duch bug in RubyOnRails 1.2.3: app/controllers/test\_controller.rb class TestController \< ApplicationController def index str = “Ï” # here “o” is russian-symbol in encoding “KOI8-R” rende…

---

## [Wondering and worring about veriable scope](https://www.ruby-forum.com/t/wondering-and-worring-about-veriable-scope/110530)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 7:41am UTC](https://www.ruby-forum.com/t/wondering-and-worring-about-veriable-scope/110530 "2007-07-27T07:41:10Z")

</div>

Hi, Still yesterday my aplication was working fine. Today i got problem in veriable scope… Acually there is a ‘if’ condintion Mistakenly i created one object inside and i was accessing that object outside of that if…

---

## [Associations in the same table](https://www.ruby-forum.com/t/associations-in-the-same-table/110525)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 2\
**Last updated:** [July 27, 2007, 5:58am UTC](https://www.ruby-forum.com/t/associations-in-the-same-table/110525 "2007-07-27T05:58:08Z")

</div>

I’m trying to figure out what is the ‘rails’ way of doing this. I’m expressing products and their variations. Variations are just products that belong to a parent product. It’s basically a tree structure. Variatio…

---

## [Current line of thinking towards reusable code / components](https://www.ruby-forum.com/t/current-line-of-thinking-towards-reusable-code-components/110527)

<div class="topic-metadata">

**Author:** [@rails.impaired](https://www.ruby-forum.com/u/rails.impaired)\
**Replies:** 1\
**Last updated:** [July 27, 2007, 5:46am UTC](https://www.ruby-forum.com/t/current-line-of-thinking-towards-reusable-code-components/110527 "2007-07-27T05:46:08Z")

</div>

Things change so fast and I was just wondering what the current convention is towards reusable code in Rails. Do we create gems, plugins, components?? Thanks rails.impaired

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

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