# Rails

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

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

---

## [Problem with relation ship using fixtures](https://www.ruby-forum.com/t/problem-with-relation-ship-using-fixtures/157121)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/problem-with-relation-ship-using-fixtures/157121 "2009-01-07T15:16:17Z")

</div>

Hi all, I am having a problem with the relation ship with the fixtures. My rails version is 2.2.2, and am using the old style of fixtures. My models are Class Account \< ActiveRecord::Base has\_many :users end Class…

---

## [Attachment\_fu, deferred thumbnail li](https://www.ruby-forum.com/t/attachment-fu-deferred-thumbnail-li/157071)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/attachment-fu-deferred-thumbnail-li/157071 "2009-01-07T14:55:20Z")

</div>

Hi, I’m using attachment\_fu with great success, but have run into a requirement that I’d like to solve elegantly – but I’ve outstripped my ruby skills. I have a class that returns a hash of thumbnail definitions, li…

---

## [Quick one! -- Project Messages!](https://www.ruby-forum.com/t/quick-one-project-messages/156922)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 16\
**Last updated:** [January 7, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/quick-one-project-messages/156922 "2009-01-07T14:52:54Z")

</div>

Hi Guys, The answer to this is probably pretty simple but I have an app which holds projects, and have messages for each project. project has\_many messages message belongs to project in my project controller i just …

---

## [Replacing table row with form](https://www.ruby-forum.com/t/replacing-table-row-with-form/157118)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/replacing-table-row-with-form/157118 "2009-01-07T14:44:56Z")

</div>

I need a way to replace a table row with a form to edit it’s values – kind of like edit-in-place, only that I need a custom form (check boxes, select lists, text fields, etc). My table is generated with a partial of a…

---

## [Styling rails elements](https://www.ruby-forum.com/t/styling-rails-elements/157048)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 2:42pm UTC](https://www.ruby-forum.com/t/styling-rails-elements/157048 "2009-01-07T14:42:53Z")

</div>

I’m having some trouble with styling my views. Here is a particular snippet that I think illustrates well: \<%= @tour\_request.booked\_datetime ? "Confirmed For: #{@tour\_request.booked\_datetime\_string} ":"Date and time re…

---

## [Moving from O.R.M. to O](https://www.ruby-forum.com/t/moving-from-o-r-m-to-o/157115)

<div class="topic-metadata">

**Author:** [@joran](https://www.ruby-forum.com/u/joran)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/moving-from-o-r-m-to-o/157115 "2009-01-07T14:34:39Z")

</div>

Hi, I was reading some more Martin F. just now and then it hit me: Rails spends a lot of time on Object Relational Mapping. What if we could just skip that step and go straight to Object? Best Regards Joran

---

## [Update\_attributes on multiple models, revert back on error](https://www.ruby-forum.com/t/update-attributes-on-multiple-models-revert-back-on-error/157065)

<div class="topic-metadata">

**Author:** [@Terpinator](https://www.ruby-forum.com/u/Terpinator)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/update-attributes-on-multiple-models-revert-back-on-error/157065 "2009-01-07T14:24:03Z")

</div>

Hi, I have one method, ‘updateStuff’, that will call ‘update\_attributes’ on 3 different models in the DB… How can I account for validation to revert back all updates if one of the models is not valid? I’ve looked in…

---

## [Empty collection returned for model with has\_many relationship](https://www.ruby-forum.com/t/empty-collection-returned-for-model-with-has-many-relationship/156994)

<div class="topic-metadata">

**Author:** [@bigsley](https://www.ruby-forum.com/u/bigsley)\
**Replies:** 10\
**Last updated:** [January 7, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/empty-collection-returned-for-model-with-has-many-relationship/156994 "2009-01-07T12:59:49Z")

</div>

I have two models: Exercise, and Step. Exercise has many steps. Basically, when I add a step to a new exercise’s “steps” array, it saves, and everything works. If I then get the exercise from the model (via find), cl…

---

## [Relationships quickie](https://www.ruby-forum.com/t/relationships-quickie/157103)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 12:31pm UTC](https://www.ruby-forum.com/t/relationships-quickie/157103 "2009-01-07T12:31:45Z")

</div>

i have a project. the project has a status\_id. i have a statuses table with id’s and names. the project model includes “has\_one :status” the status model includes “has\_many :projects” in my projects index page inste…

---

## [Attachment\_fu - convert an image to 8-bit text](https://www.ruby-forum.com/t/attachment-fu-convert-an-image-to-8-bit-text/157105)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [January 7, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/attachment-fu-convert-an-image-to-8-bit-text/157105 "2009-01-07T12:14:40Z")

</div>

hi all I’m using attachment\_fu to handle a bunch of uploaded images (jpgs). I have a controller where i want to send two images in the response, converted to 8 bit text, all in one string, like render :text =\> “LOGO…

---

## [Change the default folder for image\_tag, javascript\_include\_](https://www.ruby-forum.com/t/change-the-default-folder-for-image-tag-javascript-include/157052)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 11:41am UTC](https://www.ruby-forum.com/t/change-the-default-folder-for-image-tag-javascript-include/157052 "2009-01-07T11:41:32Z")

</div>

Hi, I don’t want my default folder to be mysite.com/images/logo.png, but instead mysite.com/common/images/logo.png How can I change that? Same applies to stylesheets and javascripts. Thanks

---

## [Deep has\_many through](https://www.ruby-forum.com/t/deep-has-many-through/157081)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 11:31am UTC](https://www.ruby-forum.com/t/deep-has-many-through/157081 "2009-01-07T11:31:22Z")

</div>

Hey everyone, I tried searching for this and asking in #rubyonrails but got no answer. Given: class Aye; has\_many :bee; end class Bee; has\_many :cees; end class Cee; has\_many :dees end Is this possible?: aye.dees …

---

## [How to use ziya plugin](https://www.ruby-forum.com/t/how-to-use-ziya-plugin/157099)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 11:27am UTC](https://www.ruby-forum.com/t/how-to-use-ziya-plugin/157099 "2009-01-07T11:27:50Z")

</div>

I have gone threw many reference to use Ziya plugin but i failed does any one know proper way to user Ziya plugin ?

---

## [Bet way to debug a plug-in?](https://www.ruby-forum.com/t/bet-way-to-debug-a-plug-in/157098)

<div class="topic-metadata">

**Author:** [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 11:24am UTC](https://www.ruby-forum.com/t/bet-way-to-debug-a-plug-in/157098 "2009-01-07T11:24:53Z")

</div>

Hi, Yesterday I had to walk through the code of a plug-in and perform a minor fix. I confess that I didn’t like the experience. Because the plug-in is in the vendor directory, I had to restart the web server wheneve…

---

## [What is the syntax of form tag?](https://www.ruby-forum.com/t/what-is-the-syntax-of-form-tag/157095)

<div class="topic-metadata">

**Author:** [@xelios](https://www.ruby-forum.com/u/xelios)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 10:52am UTC](https://www.ruby-forum.com/t/what-is-the-syntax-of-form-tag/157095 "2009-01-07T10:52:39Z")

</div>

what is the syntax of form tag???

---

## [How does observe\_field work recursively](https://www.ruby-forum.com/t/how-does-observe-field-work-recursively/157070)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 10:48am UTC](https://www.ruby-forum.com/t/how-does-observe-field-work-recursively/157070 "2009-01-07T10:48:32Z")

</div>

I use observe\_field in a view page to monitor a field (field1). Whenever field1 changed, a action will render a partial (partial1). In partial1, I use observe\_field to monitor a field (field2). so the problem is: when…

---

## [Javascript momentarily displayed on screen?](https://www.ruby-forum.com/t/javascript-momentarily-displayed-on-screen/157022)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 10:04am UTC](https://www.ruby-forum.com/t/javascript-momentarily-displayed-on-screen/157022 "2009-01-07T10:04:30Z")

</div>

what could be a reason for my js to be displayed on the screen for a second before it catches and does what it’s supposed to? I’ve had this happen when I call page.reload inside render :update block… \<%= link\_to\_remot…

---

## [Define id in xml](https://www.ruby-forum.com/t/define-id-in-xml/157003)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 8:59am UTC](https://www.ruby-forum.com/t/define-id-in-xml/157003 "2009-01-07T08:59:31Z")

</div>

Hi I like to generate xml like abc abc Here I want to display id in each user tag. So How can I do that? Thanks Brijesh S.

---

## [Rubyists Wanted!](https://www.ruby-forum.com/t/rubyists-wanted/155642)

<div class="topic-metadata">

**Author:** [@shamael](https://www.ruby-forum.com/u/shamael)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 8:44am UTC](https://www.ruby-forum.com/t/rubyists-wanted/155642 "2009-01-07T08:44:54Z")

</div>

BTA IT is pleased to invite applications for this Ruby Developer role with a growing Software Development company. My client is looking to further expand their number of Ruby developers to accommodate its increased am…

---

## [How to Implement ACL (Access Control List) in ROR?](https://www.ruby-forum.com/t/how-to-implement-acl-access-control-list-in-ror/157002)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 4\
**Last updated:** [January 7, 2009, 7:13am UTC](https://www.ruby-forum.com/t/how-to-implement-acl-access-control-list-in-ror/157002 "2009-01-07T07:13:36Z")

</div>

Hey All, Could any body tell me about implementation of ACL in RoR, becasue i was searching on it for last two days but I haven’t got anything very helpful. I have downloaded the restful\_authentication plugin for it, …

---

## [A/B testing & stats plugins?](https://www.ruby-forum.com/t/a-b-testing-stats-plugins/156984)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 2\
**Last updated:** [January 7, 2009, 5:12am UTC](https://www.ruby-forum.com/t/a-b-testing-stats-plugins/156984 "2009-01-07T05:12:52Z")

</div>

Is there nothing like this in the Rails world? I’ve been looking for a good testing framework for months, not finding anything, so I’ve just been building my own. This is what I want to do: track arbitrary behaviors…

---

## [Installing RoR for a Newbie is a nightmare](https://www.ruby-forum.com/t/installing-ror-for-a-newbie-is-a-nightmare/156815)

<div class="topic-metadata">

**Author:** [@squashua](https://www.ruby-forum.com/u/squashua)\
**Replies:** 21\
**Last updated:** [January 7, 2009, 5:06am UTC](https://www.ruby-forum.com/t/installing-ror-for-a-newbie-is-a-nightmare/156815 "2009-01-07T05:06:42Z")

</div>

Hi, I’m a newbie who’s tried over a half dozen times now to install the full Ruby and All-in-One RoR app for my Windows XP machine. Frustratingly, I haven’t been able to ever correctly get the programs to load and wo…

---

## [How to monkeypatch Hash's \[\]= method](https://www.ruby-forum.com/t/how-to-monkeypatch-hashs-method/157061)

<div class="topic-metadata">

**Author:** [@Harold](https://www.ruby-forum.com/u/Harold)\
**Replies:** 4\
**Last updated:** [January 7, 2009, 3:39am UTC](https://www.ruby-forum.com/t/how-to-monkeypatch-hashs-method/157061 "2009-01-07T03:39:36Z")

</div>

I’m trying to monkeypatch the \[\]= method in the Hash class: Hash.class\_eval do def \[\]\_with\_feature=(a,b) puts ‘foo’ end alias\_method\_chain :\[\]=, :feature end Something is wrong with the syntax, but I can’t figure …

---

## [MVC architecture](https://www.ruby-forum.com/t/mvc-architecture/156985)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 3\
**Last updated:** [January 7, 2009, 2:46am UTC](https://www.ruby-forum.com/t/mvc-architecture/156985 "2009-01-07T02:46:23Z")

</div>

Dear all In the MVC architecture framework, the Model is actually communicate with database. In my rails project, there is a model/ssh.rb that is not connect with database. Is it a good practice for this arrangement i…

---

## [A question about render](https://www.ruby-forum.com/t/a-question-about-render/157009)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [January 7, 2009, 1:56am UTC](https://www.ruby-forum.com/t/a-question-about-render/157009 "2009-01-07T01:56:45Z")

</div>

I faced a problem about render. This is my view page: \<%= render :partial=\>'test1'%\> In \_test1.html.erb: \<td\>\<%=select\_tag 'database\_select', options\_for\_select(@databases)%\> \<%=text\_field\_tag 'table', @tab…

---

## [Why render doesn't work](https://www.ruby-forum.com/t/why-render-doesnt-work/157020)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 5\
**Last updated:** [January 7, 2009, 1:56am UTC](https://www.ruby-forum.com/t/why-render-doesnt-work/157020 "2009-01-07T01:56:19Z")

</div>

I use render in a view page like this: \<% form\_for :project do |form| %\> \<%= select\_tag:project\_selection,options\_for\_select(@project\_names) %\> \<%= observe\_field :project\_selection, :frequency…

---

## [Calling System on winows batch file](https://www.ruby-forum.com/t/calling-system-on-winows-batch-file/157029)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 6\
**Last updated:** [January 6, 2009, 11:18pm UTC](https://www.ruby-forum.com/t/calling-system-on-winows-batch-file/157029 "2009-01-06T23:18:33Z")

</div>

Hello everyone, I’m using InstantRails 2.0 on a Windows XP 32 bit system. I’m developing a Rails application where I would like to execute a .bat file I’ve had a look around and this piece of code is suppose to do th…

---

## [Newbie automation testing web services with ruby](https://www.ruby-forum.com/t/newbie-automation-testing-web-services-with-ruby/156993)

<div class="topic-metadata">

**Author:** [@winstan](https://www.ruby-forum.com/u/winstan)\
**Replies:** 2\
**Last updated:** [January 6, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/newbie-automation-testing-web-services-with-ruby/156993 "2009-01-06T23:14:31Z")

</div>

Hi all, First post on this group and I hope you guys are as helpful as the other guys have been for me on the watir group. Fingers crossed. I have been successfully making HTTP POST protocol requests via an in house …

---

## [AR deep clone](https://www.ruby-forum.com/t/ar-deep-clone/157039)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/ar-deep-clone/157039 "2009-01-06T23:05:40Z")

</div>

Hi all, I’m having problems with cloning an ActiveRecord Object. The object consists of multiple child objects, so when I use the normal clone method, it only clones the attributes of the parent object. Could someone…

---

## [Adding link to Calendar Helper](https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [January 6, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/adding-link-to-calendar-helper/156973 "2009-01-06T22:49:50Z")

</div>

Im wondering if there is a way to add a link with the html or tag in the calendar helper plugin: http://wiki.rubyonrails.org/rails/pages/Calendar+Helper+Plugin. I am able to add links using the link\_to helper, but I…

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

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