# Rails

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

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

---

## [Senior Developer Position](https://www.ruby-forum.com/t/senior-developer-position/136137)

<div class="topic-metadata">

**Author:** [@japaniel](https://www.ruby-forum.com/u/japaniel)\
**Replies:** 0\
**Last updated:** [April 29, 2008, 10:15am UTC](https://www.ruby-forum.com/t/senior-developer-position/136137 "2008-04-29T10:15:36Z")

</div>

Proficient with: Ruby on Rails Java script ActiveScaffold Ajax SVN/CVS XML Objective C/C++ PHP Cocoa Flex/actionscript Java SQL Server Administ…

---

## [Hiring Ruby On Rails developer](https://www.ruby-forum.com/t/hiring-ruby-on-rails-developer/136136)

<div class="topic-metadata">

**Author:** [@David\_Myers](https://www.ruby-forum.com/u/David_Myers)\
**Replies:** 0\
**Last updated:** [April 29, 2008, 10:15am UTC](https://www.ruby-forum.com/t/hiring-ruby-on-rails-developer/136136 "2008-04-29T10:15:01Z")

</div>

I’m looking for an experienced Ruby On Rails developer to work on a 37signals style web application. The app will be using Amazon Simple Storage Service (Amazon S3), so any experience working with S3 would be benefici…

---

## [Migrations in plugin](https://www.ruby-forum.com/t/migrations-in-plugin/136061)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 5\
**Last updated:** [April 29, 2008, 8:14am UTC](https://www.ruby-forum.com/t/migrations-in-plugin/136061 "2008-04-29T08:14:23Z")

</div>

Hi! I have to move a complete model and its migration into a plugin. I know how can I do that for a model but what about the migration??? Regards, Mohsin

---

## [\[HUMOR\] Clinton just needs Ruby](https://www.ruby-forum.com/t/humor-clinton-just-needs-ruby/136103)

<div class="topic-metadata">

**Author:** [@kschell](https://www.ruby-forum.com/u/kschell)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 7:44am UTC](https://www.ruby-forum.com/t/humor-clinton-just-needs-ruby/136103 "2008-04-29T07:44:11Z")

</div>

I heard today that Hillary Clinton’s only chance to win the Democratic primary is “to change the way math works”. Change math? Why do that when she could just use Ruby: module DemocraticParty class Primary def del…

---

## [Netbeans 6 and 6.1 on the same machine.. Possible..?](https://www.ruby-forum.com/t/netbeans-6-and-6-1-on-the-same-machine-possible/136125)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 3\
**Last updated:** [April 29, 2008, 7:39am UTC](https://www.ruby-forum.com/t/netbeans-6-and-6-1-on-the-same-machine-possible/136125 "2008-04-29T07:39:40Z")

</div>

Hi, I am currently using Netbeans 6.0 for all my Ruby on rails Projects. I would like to keep 6.0 and 6.1 on the same machine, since i am not sure how safe 6.1 is when compared to 6.0 I do not want to take any chance…

---

## [Self-referencing relationships](https://www.ruby-forum.com/t/self-referencing-relationships/135869)

<div class="topic-metadata">

**Author:** [@ldt](https://www.ruby-forum.com/u/ldt)\
**Replies:** 3\
**Last updated:** [April 29, 2008, 6:40am UTC](https://www.ruby-forum.com/t/self-referencing-relationships/135869 "2008-04-29T06:40:46Z")

</div>

I have a question on how to approach a simple self-referencing data model in Rails: I have a table called “relationships”: create\_table :relationships do |t| t.integer :user\_id t.integer :is\_relationship\_with t.str…

---

## [Best way to pass ID variable to partials - global var?](https://www.ruby-forum.com/t/best-way-to-pass-id-variable-to-partials-global-var/135890)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 5\
**Last updated:** [April 29, 2008, 5:06am UTC](https://www.ruby-forum.com/t/best-way-to-pass-id-variable-to-partials-global-var/135890 "2008-04-29T05:06:24Z")

</div>

I have several orders that are being updated in an internal data entry app. I start by going from an order to pop-up form that allows a user to select items to add to a field in the order. The pop-up form contains 2…

---

## [Render partial from model?](https://www.ruby-forum.com/t/render-partial-from-model/136088)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 4\
**Last updated:** [April 29, 2008, 4:36am UTC](https://www.ruby-forum.com/t/render-partial-from-model/136088 "2008-04-29T04:36:27Z")

</div>

Hi, I know that this goes against MVC, but is there any way to render a partial from a model? The reason for me wanting to do this is that the caching logic is quite complex and I would like to keep it in the model. T…

---

## [\[OT\] Issues with ZF](https://www.ruby-forum.com/t/ot-issues-with-zf/136113)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [April 29, 2008, 2:19am UTC](https://www.ruby-forum.com/t/ot-issues-with-zf/136113 "2008-04-29T02:19:44Z")

</div>

I rarely post off-topic stuff, so please forgive me if you find this offensive. If you have some spare diggs, I’d sure appreciate some help getting this onto the Digg front page: http://digg.com/programming/Web\_2\_0\_F…

---

## [Multiple toggle divs](https://www.ruby-forum.com/t/multiple-toggle-divs/196658)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 2:10am UTC](https://www.ruby-forum.com/t/multiple-toggle-divs/196658 "2008-04-29T02:10:23Z")

</div>

i have a list of items i need to display with a corresponding paragraph for each item that i want to hid in a div in a view. \<% @items.each\_with\_index do | item, n | %\> \<%= link\_to\_function “highlights”, “Element.to…

---

## [Failed upgrade to Rails 2.0.2](https://www.ruby-forum.com/t/failed-upgrade-to-rails-2-0-2/136096)

<div class="topic-metadata">

**Author:** [@Michael\_Meckler](https://www.ruby-forum.com/u/Michael_Meckler)\
**Replies:** 4\
**Last updated:** [April 29, 2008, 1:50am UTC](https://www.ruby-forum.com/t/failed-upgrade-to-rails-2-0-2/136096 "2008-04-29T01:50:23Z")

</div>

I tried upgrading my site from 1.2.6 to 2.0.2 and now it’s completely dead. The main stumbling block was that I use ActionWebService. After googling around I found several different solutions to getting that to work, …

---

## [Passing multiple table IDs between views](https://www.ruby-forum.com/t/passing-multiple-table-ids-between-views/136085)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [April 29, 2008, 1:31am UTC](https://www.ruby-forum.com/t/passing-multiple-table-ids-between-views/136085 "2008-04-29T01:31:29Z")

</div>

I am having some difficulty conceiving how to best address a parameter passing problem I am having with rails. I am sure that this has been encountered and solved by others so perhaps someone can illuminate my ignora…

---

## [Routes.rb question](https://www.ruby-forum.com/t/routes-rb-question/136090)

<div class="topic-metadata">

**Author:** [@kellygreer1](https://www.ruby-forum.com/u/kellygreer1)\
**Replies:** 11\
**Last updated:** [April 29, 2008, 1:30am UTC](https://www.ruby-forum.com/t/routes-rb-question/136090 "2008-04-29T01:30:38Z")

</div>

What is the correct way to use a more friendly name as a replacement within standard Rails 2.0 URLs (routes). For example, I have a table blog\_posts and a model called BlogPost. But that makes me URL for ID #1 look li…

---

## [Attr\_accessor nil on assocation](https://www.ruby-forum.com/t/attr-accessor-nil-on-assocation/136104)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/attr-accessor-nil-on-assocation/136104 "2008-04-28T23:49:09Z")

</div>

I’ll make this as simple as I can… class MyClass \< ActiveRecord::Base attr\_accessor :date has\_many :somethings end my\_class = MyClass.find :first my\_class.date = Date.today my\_class.date # date object my\_class.so…

---

## [ROR project](https://www.ruby-forum.com/t/ror-project/136110)

<div class="topic-metadata">

**Author:** [@Earle](https://www.ruby-forum.com/u/Earle)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/ror-project/136110 "2008-04-28T23:44:51Z")

</div>

Looking for a freelance ROR jeti master to help on the completion of a DAM system.

---

## [Can't get v. 1.0.0 of SQLServer ActiveRecord adapter](https://www.ruby-forum.com/t/cant-get-v-1-0-0-of-sqlserver-activerecord-adapter/136030)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [April 28, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/cant-get-v-1-0-0-of-sqlserver-activerecord-adapter/136030 "2008-04-28T23:39:32Z")

</div>

I am attempting to get the 1.0.0 version of the SQLServerAdapter from the gems.rubyonrails.org gem repository. It isn’t there. See below: ~ weyus$ sudo gem install activerecord-sqlserver-adapter --source http://gems…

---

## [Validation across multiple models](https://www.ruby-forum.com/t/validation-across-multiple-models/136107)

<div class="topic-metadata">

**Author:** [@niky81](https://www.ruby-forum.com/u/niky81)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/validation-across-multiple-models/136107 "2008-04-28T23:32:17Z")

</div>

Hi, I’ve a Category model with fields: \*id \*name \*project\_id and class defition: class Category \< ActiveRecord::Base belongs\_to :project has\_many :choices has\_many :voices, :through =\> :choices validates\_presen…

---

## [ActiveResource tutorial?](https://www.ruby-forum.com/t/activeresource-tutorial/136106)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/activeresource-tutorial/136106 "2008-04-28T23:30:24Z")

</div>

So ActiveResource is part of Rails 2.0, right? As I contemplate moving from Rails 1.2.x to Rails 2.0, I figure I should figure out what’s up with it. The blog posts here and there I see are confusing me. The AWDWR tu…

---

## [The name/id of the select tag generated by rails](https://www.ruby-forum.com/t/the-name-id-of-the-select-tag-generated-by-rails/136102)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/the-name-id-of-the-select-tag-generated-by-rails/136102 "2008-04-28T23:23:16Z")

</div>

Hi guys, I just recently fell in love with Rails. Now, I’m trying to make a simple page where at list of tasks is presented. Each task has a user. At the top of the list I want to be able to make a select/dropdown lis…

---

## [Determining if array elements are in a range](https://www.ruby-forum.com/t/determining-if-array-elements-are-in-a-range/136101)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/determining-if-array-elements-are-in-a-range/136101 "2008-04-28T23:03:07Z")

</div>

So, we’ve got this little problem, that we know how to solve but we think that there might be a better way of doing it, so here we go. We have an array of number, let’s say something like \[29, 34, 58, 91, 102, 107, 11…

---

## [Has\_many :through 2 models](https://www.ruby-forum.com/t/has-many-through-2-models/135957)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 10:26pm UTC](https://www.ruby-forum.com/t/has-many-through-2-models/135957 "2008-04-28T22:26:36Z")

</div>

Let’s say I have the following models: User has\_many :orders has\_many :items, :through =\> :orders Order belongs\_to :user has\_many :items has\_many :products, :through =\> :items Item belongs\_to :order belongs\_to …

---

## [Both records must have an id in order to create the has\_many](https://www.ruby-forum.com/t/both-records-must-have-an-id-in-order-to-create-the-has-many/136077)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 4\
**Last updated:** [April 28, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/both-records-must-have-an-id-in-order-to-create-the-has-many/136077 "2008-04-28T21:36:53Z")

</div>

Hi there, my problem is to add an object to another object through the-\>through-statement. I tried it with an easy sample from this site: http://wiki.rubyonrails.org/rails/pages/ThroughAssociations and I got the sam…

---

## [Beginner on Rails: need help urgent](https://www.ruby-forum.com/t/beginner-on-rails-need-help-urgent/136020)

<div class="topic-metadata">

**Author:** [@kanekcwu](https://www.ruby-forum.com/u/kanekcwu)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/beginner-on-rails-need-help-urgent/136020 "2008-04-28T21:34:30Z")

</div>

Hi, I just started using rails and is having a simple relationship problem. I would be very grateful anyone can help me. I created a has many relationship between sessions and work out with sessions having many workou…

---

## [STI has\_many :through problem](https://www.ruby-forum.com/t/sti-has-many-through-problem/136003)

<div class="topic-metadata">

**Author:** [@birk](https://www.ruby-forum.com/u/birk)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/sti-has-many-through-problem/136003 "2008-04-28T21:25:41Z")

</div>

Hi there, this is my first post here and I’m pretty new to Rails, too. So be kind, please. :wink: I’m building a role-based system and I want some of the roles to have their own model/class. So I decided for a STI sc…

---

## [Relations in models problem](https://www.ruby-forum.com/t/relations-in-models-problem/135997)

<div class="topic-metadata">

**Author:** [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/relations-in-models-problem/135997 "2008-04-28T21:14:58Z")

</div>

Hi! I have a uncommon (I think problem). In my RoR app there’re 3 models: Transaction (date:datetime, worker\_id:integer, successful:boolean) Sale (amount:integer, transaction\_id:integer, medicine\_id:integer) Medicine …

---

## [Creating and naming variables dynamic](https://www.ruby-forum.com/t/creating-and-naming-variables-dynamic/196656)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/creating-and-naming-variables-dynamic/196656 "2008-04-28T20:58:25Z")

</div>

Hi all, I want to create a variable dynamic. I have defined some classes and depending on data I get from a database I need to construct an object eg: now I do if type==“car” variab = Car.new elsif type=“boat” va…

---

## ["Talkative Rails"](https://www.ruby-forum.com/t/talkative-rails/135981)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 10\
**Last updated:** [April 28, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/talkative-rails/135981 "2008-04-28T20:39:00Z")

</div>

Hi – Please have a look at this: http://pastie.caboo.se/187581 and tell me whether you think it’s potentially interesting, useful, cool, etc. (Line wrapping may be making it unclear, but that can be tweaked.) I’ve …

---

## [How is scaffold used?](https://www.ruby-forum.com/t/how-is-scaffold-used/136073)

<div class="topic-metadata">

**Author:** [@ssmile](https://www.ruby-forum.com/u/ssmile)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/how-is-scaffold-used/136073 "2008-04-28T19:41:34Z")

</div>

I am new to Ruby on Rails. I have seen two kinds of using scaffold In a controller class to bind controller to its respective model as in class ContactController \< ApplicationController scaffold contact # contact h…

---

## [Custom Route Required?](https://www.ruby-forum.com/t/custom-route-required/136074)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/custom-route-required/136074 "2008-04-28T19:31:20Z")

</div>

I have a model class with the name of MilestoneProgress. The model file is called milestone\_progress.rb. The controller class is called MilestoneProgressController and is located in milestone\_progress\_controller.rb. H…

---

## [Nested resource without an explicit has\_many relationship](https://www.ruby-forum.com/t/nested-resource-without-an-explicit-has-many-relationship/136072)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/nested-resource-without-an-explicit-has-many-relationship/136072 "2008-04-28T19:09:25Z")

</div>

I’m interested in showing the usages for a particular project, yet there is no direct relationship between project and usages. Project has\_many :requests Request has\_many :options Options belongs\_to :asset Asset has…

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

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