# Rails

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

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

---

## [Removing an association on an AR model via monkey patching](https://www.ruby-forum.com/t/removing-an-association-on-an-ar-model-via-monkey-patching/157945)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 8\
**Last updated:** [January 16, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/removing-an-association-on-an-ar-model-via-monkey-patching/157945 "2009-01-16T23:23:36Z")

</div>

How can I remove an association from an AR model with a monkey patch? Assume: class Foo \< AR::Base has\_many :bars end It’s a long story, but in one particular data loading (not running the app. context), I’d like t…

---

## [Net::SMTPSyntaxError (504..)](https://www.ruby-forum.com/t/net-smtpsyntaxerror-504/157923)

<div class="topic-metadata">

**Author:** [@DJDJDJ](https://www.ruby-forum.com/u/DJDJDJ)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 11:19pm UTC](https://www.ruby-forum.com/t/net-smtpsyntaxerror-504/157923 "2009-01-16T23:19:28Z")

</div>

Hi Group members I am trying to send e-mail through emailer and gettong this error → Net::SMTPSyntaxError (504 5.5.4 Encryption required for requested authentication mechanism ): /usr/lib/ruby/1.8/net/smtp.rb:680…

---

## [RoR Development Opportunity](https://www.ruby-forum.com/t/ror-development-opportunity/157959)

<div class="topic-metadata">

**Author:** [@Becky](https://www.ruby-forum.com/u/Becky)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/ror-development-opportunity/157959 "2009-01-16T21:51:59Z")

</div>

Search Marketing company looking to expand their development team. Company doing really well, very established yet has a “start-up” feel. Fun, laid-back, collaborative group that works in an Agile development environm…

---

## [Saving results of sum method into another column?](https://www.ruby-forum.com/t/saving-results-of-sum-method-into-another-column/157901)

<div class="topic-metadata">

**Author:** [@herman](https://www.ruby-forum.com/u/herman)\
**Replies:** 5\
**Last updated:** [January 16, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/saving-results-of-sum-method-into-another-column/157901 "2009-01-16T21:31:25Z")

</div>

Basically what I’m trying to do is get the sum of 2 columns and save those results in another. I guess I’m looking to do something like this: a = Product.find(:all) b = Product.sum(“test + test2”, :group =\> “id”) a.…

---

## [Problem with tiny\_mce](https://www.ruby-forum.com/t/problem-with-tiny-mce/157935)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 9:13pm UTC](https://www.ruby-forum.com/t/problem-with-tiny-mce/157935 "2009-01-16T21:13:12Z")

</div>

I have a problem with the tiny\_mce, i have this javascript in my view (that javacript works fine because when i didn’t had tiny\_mce it worked fine): . And also I have this in the HTML . \<%= collection\_select(:temp,…

---

## [Random Stack Level Too Deep Errors From Facebooker](https://www.ruby-forum.com/t/random-stack-level-too-deep-errors-from-facebooker/157941)

<div class="topic-metadata">

**Author:** [@David\_Law](https://www.ruby-forum.com/u/David_Law)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/random-stack-level-too-deep-errors-from-facebooker/157941 "2009-01-16T19:36:11Z")

</div>

Hi everyone, I just recently added the facebooker plugin into the vendor/plugin, but have not really used it yet on the staging server. However, it seems that every once in a while I’ll run into an error like this: A…

---

## [Help in creating quiz](https://www.ruby-forum.com/t/help-in-creating-quiz/157907)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/help-in-creating-quiz/157907 "2009-01-16T19:27:55Z")

</div>

Hi. This is a quiz app. There is a questions table and an answers table. There are 5 questions which are created using normal form helpers. While answering all the questions must be answered in the same page. Question…

---

## [Ruby on rails API website suggestion](https://www.ruby-forum.com/t/ruby-on-rails-api-website-suggestion/156727)

<div class="topic-metadata">

**Author:** [@Marco\_Rodrigues](https://www.ruby-forum.com/u/Marco_Rodrigues)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-api-website-suggestion/156727 "2009-01-16T18:57:22Z")

</div>

I would like to request a feature… like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has… PHP: basename - Manual Example: http://rubyo…

---

## ["obj.is\_one\_of? {Class1, Class2, ...}" as similar to "obj.is\_a?(Class1) or obj.is\_a?(Class2)"](https://www.ruby-forum.com/t/obj-is-one-of-class1-class2-as-similar-to-obj-is-a-class1-or-obj-is-a-class2/157934)

<div class="topic-metadata">

**Author:** [@jmfreitas](https://www.ruby-forum.com/u/jmfreitas)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/obj-is-one-of-class1-class2-as-similar-to-obj-is-a-class1-or-obj-is-a-class2/157934 "2009-01-16T18:40:20Z")

</div>

I need to check if a given object is an instance of a range of Classes, and I was wondering if I could do it by passing in is\_a? an hash of classes, instead of calling is\_a? for each class I have to compare… As I sta…

---

## [\[JOBS\] Open Source Dev Position](https://www.ruby-forum.com/t/jobs-open-source-dev-position/157937)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/jobs-open-source-dev-position/157937 "2009-01-16T18:22:43Z")

</div>

Hi, I’m in search of an Open Source Web D., to include the RoR skillset. Position is on-site in Charlotte. Please feel free to pass along as appropriate. I would appreciate any qualified referrals. http://www.care…

---

## [Nested resources & render](https://www.ruby-forum.com/t/nested-resources-render/157933)

<div class="topic-metadata">

**Author:** [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/nested-resources-render/157933 "2009-01-16T18:17:26Z")

</div>

Is there a way to render actions from different controllers? Now you’re probably thinking “why isn’t he using redirect\_to?”. Well, because I need to display validation-errors on that view and those informations would …

---

## [Raisl 2.2 and has\_many\_trough problems](https://www.ruby-forum.com/t/raisl-2-2-and-has-many-trough-problems/157895)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/raisl-2-2-and-has-many-trough-problems/157895 "2009-01-16T18:08:44Z")

</div>

Have just installed rails 2.2.2 My application has many has\_many\_trough associtions. With rails 2.2.2 I got an error trying to access some of them Event Model has\_many :people,:through =\> :participants has\_many :par…

---

## [Has\_one :through and update\_attributes](https://www.ruby-forum.com/t/has-one-through-and-update-attributes/157925)

<div class="topic-metadata">

**Author:** [@throwern](https://www.ruby-forum.com/u/throwern)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/has-one-through-and-update-attributes/157925 "2009-01-16T16:58:17Z")

</div>

I’m wondering about the difference between update\_attributes(:method) and class.method= I have setup an example similar to the one here: http://ryandaigle.com/articles/2008/3/24/what-s-new-in-edge-rails-has-one-throug…

---

## [Database changes aren't happening in callback before\_destroy()](https://www.ruby-forum.com/t/database-changes-arent-happening-in-callback-before-destroy/157921)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/database-changes-arent-happening-in-callback-before-destroy/157921 "2009-01-16T16:53:39Z")

</div>

I have a model Model1 with the before\_destory() method defined as below. def before\_destroy self.status = ‘deleted’ self.save! return false #don’t want to delete the row. end But in the database the change in the …

---

## [Ignore / setup loaded plugins](https://www.ruby-forum.com/t/ignore-setup-loaded-plugins/157904)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/ignore-setup-loaded-plugins/157904 "2009-01-16T16:46:58Z")

</div>

Hello Is there way to ignore loading plugin without removing it from plugins directory? Or select plugins i wish to use manually? Thank you for replying. Fero

---

## [Has\_one :through doesn't work in Rails 2.2.2](https://www.ruby-forum.com/t/has-one-through-doesnt-work-in-rails-2-2-2/156861)

<div class="topic-metadata">

**Author:** [@clive](https://www.ruby-forum.com/u/clive)\
**Replies:** 3\
**Last updated:** [January 16, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/has-one-through-doesnt-work-in-rails-2-2-2/156861 "2009-01-16T16:34:40Z")

</div>

I followed the steps in the following link literally in a new Rails 2.2.2 project http://ryandaigle.com/articles/2008/3/24/what-s-new-in-edge-rails-has-one-through Then I ran it in script/console, getting these error …

---

## [How to refresh Image through ajax request](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157924)

<div class="topic-metadata">

**Author:** [@sauravsuman012](https://www.ruby-forum.com/u/sauravsuman012)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/how-to-refresh-image-through-ajax-request/157924 "2009-01-16T16:34:40Z")

</div>

Hi all , I am very new for ruby. I am using Ajax Request(Rmagick in controller) for changing image on my DIV but the problem is it refresh for first time only then after i have to refresh the browser always. If anybod…

---

## [Uninitialized constant OpenID::Store](https://www.ruby-forum.com/t/uninitialized-constant-openid-store/157920)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-openid-store/157920 "2009-01-16T16:19:19Z")

</div>

Hi All, I am getting this error after implementing OpenId with restful\_authentication.Could anyone tell me what sort of problem is this? Shahroon

---

## [REST: transfer data between applications](https://www.ruby-forum.com/t/rest-transfer-data-between-applications/157897)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/rest-transfer-data-between-applications/157897 "2009-01-16T16:11:13Z")

</div>

Hi all I’m having trouble finding info on how to tranfser data between 2 rest appliations. I will try to scetch my problem as simple as possible. I store data in my first application. In my first application, users ne…

---

## [Need XSLT help](https://www.ruby-forum.com/t/need-xslt-help/157916)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/need-xslt-help/157916 "2009-01-16T15:52:56Z")

</div>

is there any tool which will generate XSLT for converting from XML to fixed lenght Text format.I mean is there any IDE which will let us drag and drop the contents of XML and set some properties and give us the XSLT c…

---

## [Problem in text\_field](https://www.ruby-forum.com/t/problem-in-text-field/157906)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/problem-in-text-field/157906 "2009-01-16T14:53:27Z")

</div>

hello everybody I have this text\_field \<%= f.text\_field :precio\_compra, {:size=\> 10, :onchange =\> “#{remote\_function(:url=\>{:controller=\> “accions”, :action=\> “comprueba”},:with =\> “‘valor=’+ ‘accion\[precio\_compra\]’.…

---

## [Named\_scope with instance methods](https://www.ruby-forum.com/t/named-scope-with-instance-methods/157909)

<div class="topic-metadata">

**Author:** [@bartz](https://www.ruby-forum.com/u/bartz)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 2:05pm UTC](https://www.ruby-forum.com/t/named-scope-with-instance-methods/157909 "2009-01-16T14:05:54Z")

</div>

Hey all, Imagine I’m writing a weblog with a RSS feeds. I only want the active articles to be in the RSS feed. Articles have a fairly complex method to define whether they active, which is pretty hard to convert to fi…

---

## [Partial + custom class](https://www.ruby-forum.com/t/partial-custom-class/157905)

<div class="topic-metadata">

**Author:** [@golf](https://www.ruby-forum.com/u/golf)\
**Replies:** 2\
**Last updated:** [January 16, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/partial-custom-class/157905 "2009-01-16T13:58:09Z")

</div>

Hi all, I am using partial: \<%= render :partial =\> ‘post’, :collection =\> @posts %\> \_post.rhtml \<%= post.created\_at %\> . . this will display my last 4 posts next to each other, but each of this block…

---

## [AR based message queuing](https://www.ruby-forum.com/t/ar-based-message-queuing/157903)

<div class="topic-metadata">

**Author:** [@raphael\_b](https://www.ruby-forum.com/u/raphael_b)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/ar-based-message-queuing/157903 "2009-01-16T13:38:05Z")

</div>

Hi, I think there is a rails plugin providing a message queing solution based on active record, but I can’t find it back. Anyone know of it? Kind of starling but based on activerecord, not memcached. Thanks in advan…

---

## [Certification](https://www.ruby-forum.com/t/certification/157902)

<div class="topic-metadata">

**Author:** [@Himanshu](https://www.ruby-forum.com/u/Himanshu)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 1:08pm UTC](https://www.ruby-forum.com/t/certification/157902 "2009-01-16T13:08:03Z")

</div>

Hi all, I’m a ROR developer, just thinking about the certification courses. I want to get the ideas from all of you, about which CERT is good: 1- MySQL 2- Linux OR is there any Ruby Certification also? Regards, Hi…

---

## [Problem with render :layout with yield :something inside in Rails 2.2.2](https://www.ruby-forum.com/t/problem-with-render-layout-with-yield-something-inside-in-rails-2-2-2/157894)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/problem-with-render-layout-with-yield-something-inside-in-rails-2-2-2/157894 "2009-01-16T12:14:48Z")

</div>

Hi, I got something like this: \_inner\_layout.erb.html \<%= yield %\> \<%= yield :sidebar %\> index.erb.html \<% render :layout =\> “inner\_layout” do %\> should be rendered only once \<% end %\> After switching from Rails…

---

## [Help: OpenId and restful\_acl](https://www.ruby-forum.com/t/help-openid-and-restful-acl/157889)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 11:54am UTC](https://www.ruby-forum.com/t/help-openid-and-restful-acl/157889 "2009-01-16T11:54:11Z")

</div>

Hi All, I have restful\_authentication with restful\_acl installed on my app, now I want to use OpenId with restful\_acl,so my question is… does this make any problems for me or not? I haven’t explored the OpenI…

---

## [Error with ActionMailer](https://www.ruby-forum.com/t/error-with-actionmailer/157828)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 11:30am UTC](https://www.ruby-forum.com/t/error-with-actionmailer/157828 "2009-01-16T11:30:04Z")

</div>

I wrote my app in Rails 2.1 - emails seemed to work fine. My host are running Rails 2.2.2 though and now I get this error message when sending emails: OpenSSL::SSL::SSLError (hostname was not match with the server ce…

---

## [Importing text files - file type (UTF-16 for instance)](https://www.ruby-forum.com/t/importing-text-files-file-type-utf-16-for-instance/157879)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 0\
**Last updated:** [January 16, 2009, 8:06am UTC](https://www.ruby-forum.com/t/importing-text-files-file-type-utf-16-for-instance/157879 "2009-01-16T08:06:44Z")

</div>

Hi, I’m using the iFrame and responds\_to\_parent method to import some text files (csv files) from various sources. Some of the files of interest are in UTF-8 or UTF-16 format. How can my code determine what the file…

---

## [Paginate\_by\_sql giving errors](https://www.ruby-forum.com/t/paginate-by-sql-giving-errors/157877)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 1\
**Last updated:** [January 16, 2009, 8:05am UTC](https://www.ruby-forum.com/t/paginate-by-sql-giving-errors/157877 "2009-01-16T08:05:25Z")

</div>

Hi, I’m using paginate\_by\_sql to have pagination for my list views as my queries have joins on multiple tables. I have included the code into my application.rb , and in the controller I have: @discipline\_pages, @dis…

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

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