# Rails

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

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

---

## [Has\_many and belongs\_to question... undefined method error](https://www.ruby-forum.com/t/has-many-and-belongs-to-question-undefined-method-error/113919)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 5:56am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-question-undefined-method-error/113919 "2007-09-06T05:56:51Z")

</div>

I get this weird error message in the console when I try and navigate my relationship via Pool.gms.each()… Here’s some cose. class Gm \< ActiveRecord::Base belongs\_to :pools has\_many :teams has\_many :players, :throu…

---

## [A way to mark gems with "hold"](https://www.ruby-forum.com/t/a-way-to-mark-gems-with-hold/113889)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 5:31am UTC](https://www.ruby-forum.com/t/a-way-to-mark-gems-with-hold/113889 "2007-09-06T05:31:49Z")

</div>

Is there a way to mark a gem as “hold” as apt-get does. I would like to mark some gems so that “gem update” does not update the currently installed version. – Jochen K. railswerk.de, gissmoh.de, figgfrosch.de, ror-r…

---

## [Ruby/rails user group opening](https://www.ruby-forum.com/t/ruby-rails-user-group-opening/113900)

<div class="topic-metadata">

**Author:** [@bellani](https://www.ruby-forum.com/u/bellani)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 5:01am UTC](https://www.ruby-forum.com/t/ruby-rails-user-group-opening/113900 "2007-09-06T05:01:47Z")

</div>

Hey there. Me and some friends are in the process of opening a ruby and rails user group in our city. I want to know if there is some process or authorization I have to clear or something like that(just want to do th…

---

## [Issue with using has\_many](https://www.ruby-forum.com/t/issue-with-using-has-many/113801)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 4\
**Last updated:** [September 6, 2007, 3:39am UTC](https://www.ruby-forum.com/t/issue-with-using-has-many/113801 "2007-09-06T03:39:26Z")

</div>

I"m getting information for a Gm and his players through a tEam table. The relationship looks like this. Gms -\> teams \<- nhl\_stats So teams is the join / lookup table with FK’s to gm.id and nhl\_stats\_id class Gm \< Ac…

---

## [DRY up multiple calls link\_to\_remote?](https://www.ruby-forum.com/t/dry-up-multiple-calls-link-to-remote/113903)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 2:42am UTC](https://www.ruby-forum.com/t/dry-up-multiple-calls-link-to-remote/113903 "2007-09-06T02:42:31Z")

</div>

I have the following code that will be repeated many times in a single .rthml page. \<%=link\_to\_remote(“Test AJAX”, :update =\> ‘chart’, :url =\> url\_for(:controller =\> ‘chart’, :action =\> ‘linear\_graph’), :loading =\>…

---

## [Look ma ! :)](https://www.ruby-forum.com/t/look-ma/113593)

<div class="topic-metadata">

**Author:** [@alexey.Creopolis](https://www.ruby-forum.com/u/alexey.Creopolis)\
**Replies:** 4\
**Last updated:** [September 6, 2007, 12:29am UTC](https://www.ruby-forum.com/t/look-ma/113593 "2007-09-06T00:29:22Z")

</div>

Please look at my newly maded website, pure RoR, not used Globalization :slight\_smile: For translation used: xml file system… http://www.yulia-site.org

---

## [I must be really confused - have problems getting data from](https://www.ruby-forum.com/t/i-must-be-really-confused-have-problems-getting-data-from/225965)

<div class="topic-metadata">

**Author:** [@rustyc](https://www.ruby-forum.com/u/rustyc)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 12:08am UTC](https://www.ruby-forum.com/t/i-must-be-really-confused-have-problems-getting-data-from/225965 "2007-09-06T00:08:45Z")

</div>

First post here, hopefully I’ve got it in the right place! Sorry if not! Ok, so I’m creating a web app for a ham radio support web site. It takes an ‘application to join’ the membership, saves all the info to the DB…

---

## [Sanitize my params and the create method](https://www.ruby-forum.com/t/sanitize-my-params-and-the-create-method/112766)

<div class="topic-metadata">

**Author:** [@aantix](https://www.ruby-forum.com/u/aantix)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/sanitize-my-params-and-the-create-method/112766 "2007-09-05T23:44:51Z")

</div>

If I call .create on the param structure, are the parameters being passed to the create method automatically sanitized for me? e.g. Journalentry.create(param\[:journalentry\]) Do I have to worry about any malicious scri…

---

## [Adding items to a collection associated w/ has\_many :through](https://www.ruby-forum.com/t/adding-items-to-a-collection-associated-w-has-many-through/113894)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 11:22pm UTC](https://www.ruby-forum.com/t/adding-items-to-a-collection-associated-w-has-many-through/113894 "2007-09-05T23:22:03Z")

</div>

All, Quick review on has\_many :through behavior. I have the following model setup. X and Z are related many-to-many via a bi-directional has\_many :through relationship (Y is the join model). X has\_many Y X has many…

---

## [Rake test vs. rake test:functionals](https://www.ruby-forum.com/t/rake-test-vs-rake-test-functionals/113788)

<div class="topic-metadata">

**Author:** [@bnab](https://www.ruby-forum.com/u/bnab)\
**Replies:** 9\
**Last updated:** [September 5, 2007, 10:56pm UTC](https://www.ruby-forum.com/t/rake-test-vs-rake-test-functionals/113788 "2007-09-05T22:56:13Z")

</div>

I think I have a fundamental misunderstanding of what ‘rake test:functionals’ does for me. I assumed it did the exact same thing for me that ‘rake test’ did, except that it only ran the functional tests. It seems lik…

---

## [Render :action for moved templates](https://www.ruby-forum.com/t/render-action-for-moved-templates/113888)

<div class="topic-metadata">

**Author:** [@sjf\_control](https://www.ruby-forum.com/u/sjf_control)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/render-action-for-moved-templates/113888 "2007-09-05T22:44:12Z")

</div>

I have two actions, that I want to use the same template. However, the template is stored in a non-stardard location (a subdirectory under views/). My original code looked like: def edit\_member render :template =\> …

---

## [Validation with has\_one associated models](https://www.ruby-forum.com/t/validation-with-has-one-associated-models/113883)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/validation-with-has-one-associated-models/113883 "2007-09-05T22:38:12Z")

</div>

Is Rails designed to validate differently with the has\_one model association or is it a bug? I find myself having to code around my validation differently and wasn’t sure if others thought it was an issue as well. F…

---

## [Single Table Inheritance and :conditions](https://www.ruby-forum.com/t/single-table-inheritance-and-conditions/113875)

<div class="topic-metadata">

**Author:** [@tony\_from\_KY](https://www.ruby-forum.com/u/tony_from_KY)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-and-conditions/113875 "2007-09-05T22:21:19Z")

</div>

Single Table Inheritance question. class Employee is the master model (table is employees) class Cog is the subclass model, and uses single table inheritance to be a subclass of Employee class Blurfl is a normal mode…

---

## [Looking for Developer to build CMS similar to Jobster.com](https://www.ruby-forum.com/t/looking-for-developer-to-build-cms-similar-to-jobster-com/113793)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/looking-for-developer-to-build-cms-similar-to-jobster-com/113793 "2007-09-05T21:56:09Z")

</div>

I’m looking for a developer to build a site similar to www.jobster.com. My site will not be as complex as jobster, but I like the look and speed of this site. I need more traditional CMS features such as groups, disc…

---

## [Would multithreaded rails be faster?](https://www.ruby-forum.com/t/would-multithreaded-rails-be-faster/113882)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/would-multithreaded-rails-be-faster/113882 "2007-09-05T21:51:03Z")

</div>

So here’s a random question: if a (Ruby) multi-threaded rails could exist, would it be faster than using a mongrel cluster? (I.e. 10 mongrel processes versus 10 Ruby threads). I’m not sure if it would. RAM it might…

---

## [Flickr integration mailing list?](https://www.ruby-forum.com/t/flickr-integration-mailing-list/113865)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/flickr-integration-mailing-list/113865 "2007-09-05T20:46:58Z")

</div>

Hi Guys Is there a flickr integration mailing list? Im going to have to do alot of work on that tonigh and I wouldn’t want to mis out of a resource like that :slight\_smile: I know about the ruby on rails.org screen…

---

## [Time To Live](https://www.ruby-forum.com/t/time-to-live/113873)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/time-to-live/113873 "2007-09-05T20:46:03Z")

</div>

This is just a random thought that I had about Time To Live with session variables. Is there a way to do that in Rails? I have created sessions before. For example, what if I wanted to log off a person after a certain…

---

## [Savage Beast plugin: Question on the reply form](https://www.ruby-forum.com/t/savage-beast-plugin-question-on-the-reply-form/113870)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/savage-beast-plugin-question-on-the-reply-form/113870 "2007-09-05T20:09:52Z")

</div>

Hello! I have integrated the Savage Beast plugin with my site. For some reason, during the integration, the standard large black reply form that gets displayed when a user hits “Reply to topic”, is always getting di…

---

## [Iâ€™am learning about Ruby on Rails. Actionview, I make abou](https://www.ruby-forum.com/t/ia-am-learning-about-ruby-on-rails-actionview-i-make-abou/113864)

<div class="topic-metadata">

**Author:** [@kimngan](https://www.ruby-forum.com/u/kimngan)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/ia-am-learning-about-ruby-on-rails-actionview-i-make-abou/113864 "2007-09-05T18:28:44Z")

</div>

My Database is using by MySQL. \[Ang May\]-\> (display Vietnamese ). But when it display on web is \[?gm\[\]/a\>\] (I use . Please, tell the way for me. Thanks very much!!!. Iâ€™am learning about Ruby on Rails. Actionview, I …

---

## [ZenTest ViewTestCase vs params](https://www.ruby-forum.com/t/zentest-viewtestcase-vs-params/113859)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/zentest-viewtestcase-vs-params/113859 "2007-09-05T18:03:23Z")

</div>

Railers: Here’s a non-heinous view test, via the mental serenity that is ZenTest: class FrogSpeciesViewTest \< Test::Rails::ViewTestCase def test\_species\_list frog = frogs(:Ollotis\_periglenes) locals = { :frog\_gener…

---

## [Select max(draw)](https://www.ruby-forum.com/t/select-max-draw/113855)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/select-max-draw/113855 "2007-09-05T17:44:20Z")

</div>

how would you do this in active record SELECT max(draw) FROM draws cheers dion

---

## [Scaffold\_all\_models and has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/scaffold-all-models-and-has-and-belongs-to-many/113795)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 3\
**Last updated:** [September 5, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/scaffold-all-models-and-has-and-belongs-to-many/113795 "2007-09-05T17:39:01Z")

</div>

Hello, I beg your pardon for this surely stupid problem, but I’m new in RoR world. I created 3 views inheriting ActiveRecord::Base , lets call them a,b,c. a and b are linked by a table (a\_b\_fk) and the corresponding …

---

## [Perfect email match](https://www.ruby-forum.com/t/perfect-email-match/113661)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 5\
**Last updated:** [September 5, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/perfect-email-match/113661 "2007-09-05T17:30:28Z")

</div>

Hello frnds I want a code for .match for email…currently I am using .match(/\\S+@\\S+.\\S+/) but i want a better refined one if ne one has pls let me know thanks dhaval parikh

---

## [Referencing joins](https://www.ruby-forum.com/t/referencing-joins/113853)

<div class="topic-metadata">

**Author:** [@3quid](https://www.ruby-forum.com/u/3quid)\
**Replies:** 1\
**Last updated:** [September 5, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/referencing-joins/113853 "2007-09-05T17:16:11Z")

</div>

Hi, Pretty much brand new to rails and am doing my first project with it. I have created 3 tables. users, clubs and clubs\_users. I have the join table (clubs\_users) gathering the user\_id and club\_id - as it should. T…

---

## [Site's down](https://www.ruby-forum.com/t/sites-down/113850)

<div class="topic-metadata">

**Author:** [@railsnut](https://www.ruby-forum.com/u/railsnut)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/sites-down/113850 "2007-09-05T17:00:04Z")

</div>

I am new to Ruby on Rails and have been simply trying to upload new images to the rhtml files. I did so and ran the executable file, making the changes live. However, this perhaps disrupted the path name/route and I c…

---

## [Use of uniqueidentifer type for primary key?](https://www.ruby-forum.com/t/use-of-uniqueidentifer-type-for-primary-key/113768)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/use-of-uniqueidentifer-type-for-primary-key/113768 "2007-09-05T15:50:51Z")

</div>

I’m working on a legacy SQL db. It is distributed, to they are using the uniqueidentifier type for the primary key. At first, at least, I won’t be updating records, but I’m seeing a lot of negativity about using anyt…

---

## [Expand Active Record](https://www.ruby-forum.com/t/expand-active-record/113775)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 3\
**Last updated:** [September 5, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/expand-active-record/113775 "2007-09-05T15:49:50Z")

</div>

Silly question, how do I expand (add a function to) Active Record for all of my models?

---

## [Multiple sites with mongrel and nginx](https://www.ruby-forum.com/t/multiple-sites-with-mongrel-and-nginx/113797)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/multiple-sites-with-mongrel-and-nginx/113797 "2007-09-05T15:45:50Z")

</div>

I’ve got a standard nginx config (NameBright - Coming Soon) which I use to server one php app and one rails app. My mongrel\_cluster.yml file resides in /etc/mongrel\_cluster and is a symlink to my\_app1’s config/mongre…

---

## [RJS Templates](https://www.ruby-forum.com/t/rjs-templates/113848)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 0\
**Last updated:** [September 5, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/rjs-templates/113848 "2007-09-05T15:22:45Z")

</div>

Hi, I am new to this RJS stuff. I want to make a page that has on it an inbox. I also want another box where the user can type a message. Then when a message is typed the inbox contains the new message and any others…

---

## [Copy contents from one table to the other](https://www.ruby-forum.com/t/copy-contents-from-one-table-to-the-other/113828)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/copy-contents-from-one-table-to-the-other/113828 "2007-09-05T15:12:19Z")

</div>

hello frnds I want to first connect to one table then fetch the desired value…store that in variable and then copy the contents of that variable to another table. Can you tell me how to do that? Thanks Dhaval P.

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

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