# Rails

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

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

---

## [Model.update\_attributes vs. Model.update in Edge Rails!](https://www.ruby-forum.com/t/model-update-attributes-vs-model-update-in-edge-rails/119598)

<div class="topic-metadata">

**Author:** [@sideshow](https://www.ruby-forum.com/u/sideshow)\
**Replies:** 2\
**Last updated:** [November 8, 2007, 10:39am UTC](https://www.ruby-forum.com/t/model-update-attributes-vs-model-update-in-edge-rails/119598 "2007-11-08T10:39:52Z")

</div>

Does any one else find it a pain in the butt that in the new edge rails the Model.update method has been made private so throws an error if you use it. Most of the time i find i need to do work on POST params\[\] before…

---

## [Setting external database error](https://www.ruby-forum.com/t/setting-external-database-error/119597)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 10:26am UTC](https://www.ruby-forum.com/t/setting-external-database-error/119597 "2007-11-08T10:26:58Z")

</div>

Im using Instant Rails (turning off the mysql server part), Mysql 5.1 on another computer. and have these settings in database.yml development: adapter: mysql database: jumba\_development username: root password: as…

---

## [HTML class or id for form\_tag's](https://www.ruby-forum.com/t/html-class-or-id-for-form-tags/119171)

<div class="topic-metadata">

**Author:** [@macario](https://www.ruby-forum.com/u/macario)\
**Replies:** 4\
**Last updated:** [November 8, 2007, 9:46am UTC](https://www.ruby-forum.com/t/html-class-or-id-for-form-tags/119171 "2007-11-08T09:46:51Z")

</div>

I need my forms to have HTML id or class but seems there is not such parameter in form\_tag or form\_tag\_for. At least not in the rails doc. I’ve been searching for a while and I couldn’t find a workarround without pure…

---

## [Insert\_html and cycle()](https://www.ruby-forum.com/t/insert-html-and-cycle/119588)

<div class="topic-metadata">

**Author:** [@Matthew\_Swasey](https://www.ruby-forum.com/u/Matthew_Swasey)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 8:17am UTC](https://www.ruby-forum.com/t/insert-html-and-cycle/119588 "2007-11-08T08:17:08Z")

</div>

Has anyone here ever run into the problem of having a list that cycles a class name, in order for alternating lines to have a different color, using the cycle() helper, but had it mess up when using the prototype/ajax…

---

## [Just suggesting a website, nothing more](https://www.ruby-forum.com/t/just-suggesting-a-website-nothing-more/119589)

<div class="topic-metadata">

**Author:** [@fedric](https://www.ruby-forum.com/u/fedric)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 7:18am UTC](https://www.ruby-forum.com/t/just-suggesting-a-website-nothing-more/119589 "2007-11-08T07:18:45Z")

</div>

hi, I just wanna suggest a website for publishing our researches, but I think we should have a weblog or a website, because it;s like a web2.0 like Digg. but it is just for Students, So I think if we have a blog or si…

---

## [Where to trigger email notifications?](https://www.ruby-forum.com/t/where-to-trigger-email-notifications/119561)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 6:03am UTC](https://www.ruby-forum.com/t/where-to-trigger-email-notifications/119561 "2007-11-08T06:03:12Z")

</div>

Hi, isnt it round-about that restful-authentication’s registration stuff uses observers to send out notification emails? I mean, it sets variables like recently\_activated and recently\_forgot\_password to signal the em…

---

## [Canadian Rails Hosting?](https://www.ruby-forum.com/t/canadian-rails-hosting/119564)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 4\
**Last updated:** [November 8, 2007, 3:02am UTC](https://www.ruby-forum.com/t/canadian-rails-hosting/119564 "2007-11-08T03:02:37Z")

</div>

Does anyone have any experiences with a Canadian-based hosting service? From looking at BlueFur’s feature list it seemed like a good choice, but before signing up I did some searching and found some recent bad reviews…

---

## [JOB RoR Developer - Sydney Timezone](https://www.ruby-forum.com/t/job-ror-developer-sydney-timezone/119572)

<div class="topic-metadata">

**Author:** [@soregums](https://www.ruby-forum.com/u/soregums)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 2:02am UTC](https://www.ruby-forum.com/t/job-ror-developer-sydney-timezone/119572 "2007-11-08T02:02:27Z")

</div>

Hi, I’m looking for a RoR developer for 2 projects. It’ll be about 2 weeks work. I can do these projects, I just have a lot of things on the go at the moment and require help - The situation is; want it done now, ho…

---

## [Migrating from InstantRails](https://www.ruby-forum.com/t/migrating-from-instantrails/119494)

<div class="topic-metadata">

**Author:** [@mindmage](https://www.ruby-forum.com/u/mindmage)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 1:55am UTC](https://www.ruby-forum.com/t/migrating-from-instantrails/119494 "2007-11-08T01:55:26Z")

</div>

Hi! I’ve been using InstantRails for some time now, but now it has become necessary to run ruby scripts from places other than the InstantRails console window. Can i make ruby aviable system-wide without going the lo…

---

## [Inserting ROR into file within the public folder](https://www.ruby-forum.com/t/inserting-ror-into-file-within-the-public-folder/119557)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 1\
**Last updated:** [November 8, 2007, 12:54am UTC](https://www.ruby-forum.com/t/inserting-ror-into-file-within-the-public-folder/119557 "2007-11-08T00:54:41Z")

</div>

Hello, I have a website that I would like to insert a ROR based calendar into. The web page is built, I just need something like this to work: \<%= insert\_calendar\_code %\> I have tried a page with .html and .rhtml ins…

---

## [Model relations are not being made in controller](https://www.ruby-forum.com/t/model-relations-are-not-being-made-in-controller/119569)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [November 8, 2007, 12:41am UTC](https://www.ruby-forum.com/t/model-relations-are-not-being-made-in-controller/119569 "2007-11-08T00:41:40Z")

</div>

I have a Member, User, and Address model, with the last two being child tables to the first. When I create the models in irb, make the relations and perform the save on the member, all three models are inserted into …

---

## [Acts\_as\_commentable release](https://www.ruby-forum.com/t/acts-as-commentable-release/60585)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 32\
**Last updated:** [November 7, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/acts-as-commentable-release/60585 "2007-11-07T23:42:23Z")

</div>

I now have the acts\_as\_commentable plugin up on RubyForge. This plugin will allow you to add comments to any active\_record object in your Rails application. So far the directions are simple, and there are only a few …

---

## [Upload Avatar on DreamHost](https://www.ruby-forum.com/t/upload-avatar-on-dreamhost/119559)

<div class="topic-metadata">

**Author:** [@mb56fg](https://www.ruby-forum.com/u/mb56fg)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/upload-avatar-on-dreamhost/119559 "2007-11-07T23:14:07Z")

</div>

After deploying my application on dreamhost, I get an error when attempting to upload and avatar. The log shows a get request though I am expecting a post request? Thanks Murphy

---

## [Initiating a GET request and immediately continue w/ action](https://www.ruby-forum.com/t/initiating-a-get-request-and-immediately-continue-w-action/119412)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/initiating-a-get-request-and-immediately-continue-w-action/119412 "2007-11-07T22:47:19Z")

</div>

I have an external image processing server and I would like to get that action going inline with an action on my current server. How do I initiate a GET request and not care for the response, so that it doesnt halt my…

---

## [Model Design question in Rails](https://www.ruby-forum.com/t/model-design-question-in-rails/119545)

<div class="topic-metadata">

**Author:** [@raghus](https://www.ruby-forum.com/u/raghus)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/model-design-question-in-rails/119545 "2007-11-07T22:21:49Z")

</div>

I have a site which has both articles and photos embedded in each article. I want to allow people to comment on both a particular article itself as well as on an individual photo in an article. My questions is: What’s…

---

## [Inviting users in highrise - random url](https://www.ruby-forum.com/t/inviting-users-in-highrise-random-url/119543)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/inviting-users-in-highrise-random-url/119543 "2007-11-07T20:37:57Z")

</div>

I’m trying to figure out how highrise invites users. When inviting a user, the following url is created: highrisehq.com/users/new/e586dbbccad1 Where is that random string being stored? Is it a custom resource method? …

---

## [Sum and count in find](https://www.ruby-forum.com/t/sum-and-count-in-find/119537)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/sum-and-count-in-find/119537 "2007-11-07T20:05:33Z")

</div>

I have 2 models: class Core \< ActiveRecord::Base has\_many :votes has\_many :messages end class Vote \< ActiveRecord::Base belongs\_to:core end class Message \< ActiveRecord::Base belongs\_to:core end In php for vie…

---

## [Acts\_as\_taggable](https://www.ruby-forum.com/t/acts-as-taggable/119529)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/acts-as-taggable/119529 "2007-11-07T20:02:15Z")

</div>

Hi, i was trying the acts\_as\_taggable gem, without success i’ve installed the gem (gem install acts\_as\_taggable), added “gem ‘acts\_as\_taggable’” at the end of environment.rb, and added ‘acts\_as\_taggable’ into my Artig…

---

## [OpenSocial with Ruby on Rails](https://www.ruby-forum.com/t/opensocial-with-ruby-on-rails/119528)

<div class="topic-metadata">

**Author:** [@mcf1986](https://www.ruby-forum.com/u/mcf1986)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/opensocial-with-ruby-on-rails/119528 "2007-11-07T19:17:45Z")

</div>

Olly (a colleague of mine here at New Bamboo) has written up a blog post about OpenSocial and Ruby on Rails, some might find it useful and you can check it out here: http://blog.nbwd.co.uk/2007/11/7/opensocial-with-r…

---

## [Record update problem - empty SET clause](https://www.ruby-forum.com/t/record-update-problem-empty-set-clause/119527)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/record-update-problem-empty-set-clause/119527 "2007-11-07T19:09:34Z")

</div>

Hi, Hopefully someone can help with what is probably a simple question. I have a simple model, initially created as a scaffold, and the “update” action does not seem to work. I set the following error: Mysql::Error: #…

---

## [Linking to Files( ie. PDF, DOC etc... )](https://www.ruby-forum.com/t/linking-to-files-ie-pdf-doc-etc/119515)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/linking-to-files-ie-pdf-doc-etc/119515 "2007-11-07T19:08:59Z")

</div>

Ok this is probably a silly question, but is there some special way to link to files? I have a directory of files that I want my software to automatically display for download. These are forms of different types, som…

---

## [Testing the contents of an http response](https://www.ruby-forum.com/t/testing-the-contents-of-an-http-response/119491)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [November 7, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/testing-the-contents-of-an-http-response/119491 "2007-11-07T18:25:33Z")

</div>

I have a show method i’m testing, that returns some data in json format. My tests show that something is being returned, but i want to get at it and test the contents. I can’t work out how to do this, can anyone help…

---

## [Many partials in one view](https://www.ruby-forum.com/t/many-partials-in-one-view/119427)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 3\
**Last updated:** [November 7, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/many-partials-in-one-view/119427 "2007-11-07T18:05:46Z")

</div>

Is it possible to render 5 different partials in one view, each of which is rendered by an instance variable from a different action? Or must all instance variables that render all partials for a given view come from…

---

## [Links always go to 'localhost'](https://www.ruby-forum.com/t/links-always-go-to-localhost/119479)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/links-always-go-to-localhost/119479 "2007-11-07T18:03:26Z")

</div>

I have installed Apache2.2 + Mongrel and deployed my build on. Now I am accessing it over LAN. When I enter http://mymachinename/myapp it opens fine but when I click on any link in my rails app, it replaces mymachinen…

---

## [Problem (and solution): ActiveMerchant and Ruby 1.8.4](https://www.ruby-forum.com/t/problem-and-solution-activemerchant-and-ruby-1-8-4/119522)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/problem-and-solution-activemerchant-and-ruby-1-8-4/119522 "2007-11-07T18:02:15Z")

</div>

I recently lost a few hours debugging a Ruby issue that I thought I’d post in the hope of saving someone else the time. Ruby 1.8.4’s net/http library has a bug in the post method: the content-type header is not set by…

---

## [Help on loop](https://www.ruby-forum.com/t/help-on-loop/119507)

<div class="topic-metadata">

**Author:** [@ratschi85](https://www.ruby-forum.com/u/ratschi85)\
**Replies:** 7\
**Last updated:** [November 7, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/help-on-loop/119507 "2007-11-07T17:44:56Z")

</div>

Hey, I have got a script that returns a long list of font family names, which I all want to store in a variable (array). I tried doing this with @f = font.family also in the for loop below but it only prints the last …

---

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

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 0\
**Last updated:** [November 7, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/single-table-inheritance/119517 "2007-11-07T17:44:05Z")

</div>

Hi, a (hopefully) quick STE question. I am loading a bunch of surveys of various types from csv files. The two relevant classes for this question: A wrapper around the loaded surveys class Load \< ActiveRecord::Base …

---

## [Action Mailer Problem, please help](https://www.ruby-forum.com/t/action-mailer-problem-please-help/119504)

<div class="topic-metadata">

**Author:** [@myowntribe](https://www.ruby-forum.com/u/myowntribe)\
**Replies:** 4\
**Last updated:** [November 7, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/action-mailer-problem-please-help/119504 "2007-11-07T17:11:18Z")

</div>

Hi I should be missing something really basic to not get this right… I need to get the name of the user and some custom text in the subject field in the mailer I need to get the name of the website instead of the full…

---

## [Is this mysql create table able to be written as a migration?](https://www.ruby-forum.com/t/is-this-mysql-create-table-able-to-be-written-as-a-migration/119508)

<div class="topic-metadata">

**Author:** [@ebeard](https://www.ruby-forum.com/u/ebeard)\
**Replies:** 1\
**Last updated:** [November 7, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/is-this-mysql-create-table-able-to-be-written-as-a-migration/119508 "2007-11-07T16:31:25Z")

</div>

CREATE TABLE searches ( id INT UNSIGNED NOT NULL , account\_id INT UNSIGNED NOT NULL , searchable\_id INT UNSIGNED NOT NULL , searchable\_type VARCHAR(255) NOT NULL , searchable\_text TEXT NOT NULL , PRIMARY KEY ( id )…

---

## [Frustrating "require" problems](https://www.ruby-forum.com/t/frustrating-require-problems/119486)

<div class="topic-metadata">

**Author:** [@creemej](https://www.ruby-forum.com/u/creemej)\
**Replies:** 4\
**Last updated:** [November 7, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/frustrating-require-problems/119486 "2007-11-07T16:12:40Z")

</div>

Hi, Recently I got the error with accompaning warning “warning: already initialized constant OPTIONS” and don’t know how to get rid of it. For me, it has something to do with dependencies. I have looked for similar …

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

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