# Rails

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

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

---

## [Doubt in Ferret Search on multiple models](https://www.ruby-forum.com/t/doubt-in-ferret-search-on-multiple-models/145574)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/doubt-in-ferret-search-on-multiple-models/145574 "2008-08-11T18:01:06Z")

</div>

Hi. I use the following code in my “search” controller, “index” action in my project. It has multiple models like Project, Task, Note,etc. I use ferret for full text search. I use act\_as\_authenticated plugin for login…

---

## [Augmenting RESTful routes to make it more informative](https://www.ruby-forum.com/t/augmenting-restful-routes-to-make-it-more-informative/144547)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/augmenting-restful-routes-to-make-it-more-informative/144547 "2008-08-11T17:57:43Z")

</div>

Everyone knows that the trend is RESTful design. The simplicity of REST means that if makes it easier to create bigger and more complex object models. As a side effect, you have your RESTful routes/URLs, which reflect…

---

## [Bug in association\_proxy? getting method\_missing](https://www.ruby-forum.com/t/bug-in-association-proxy-getting-method-missing/145567)

<div class="topic-metadata">

**Author:** [@clemens](https://www.ruby-forum.com/u/clemens)\
**Replies:** 4\
**Last updated:** [August 11, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/bug-in-association-proxy-getting-method-missing/145567 "2008-08-11T17:51:47Z")

</div>

Using rails 2.1.0 I have a Price class class Price \< ActiveRecord::Base … end which is referenced by Offering class Offering \< ActiveRecord::Base … belongs\_to :special\_price, :class\_name =\> ‘Price’, :foreign\_key …

---

## [Errno::EBADF (Bad file descriptor - connect(2))](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/145569)

<div class="topic-metadata">

**Author:** [@shankar](https://www.ruby-forum.com/u/shankar)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/errno-ebadf-bad-file-descriptor-connect-2/145569 "2008-08-11T17:28:00Z")

</div>

Hi, I am getting this error when the Action mailer tries to send a mail- all the other sections seem to be working fine. Surprisingly, the same code used to work fine for almost a year Please find the error stack tha…

---

## [Text\_field\_with\_auto\_complete - what abou the other fields?](https://www.ruby-forum.com/t/text-field-with-auto-complete-what-abou-the-other-fields/145568)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-what-abou-the-other-fields/145568 "2008-08-11T17:24:20Z")

</div>

HI, i have a SalesORder/NEW site where i select the csustomer via text\_field\_with\_auto\_complete. this works fine. now i need to display addtional information form the Customer model at the same page. how would i do th…

---

## [DangerousAttributeError](https://www.ruby-forum.com/t/dangerousattributeerror/143866)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/dangerousattributeerror/143866 "2008-08-11T16:44:58Z")

</div>

I upgraded to rails 2.0.2 so i get this error ActiveRecord::DangerousAttributeError in Asset#show this is in the view \<%=h shekels\_to\_dollars(@asset.price\_shekel, options = {:precision =\> 0}) %\> when i delete this li…

---

## [RESTful design for statistics](https://www.ruby-forum.com/t/restful-design-for-statistics/145549)

<div class="topic-metadata">

**Author:** [@Parity](https://www.ruby-forum.com/u/Parity)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/restful-design-for-statistics/145549 "2008-08-11T16:39:06Z")

</div>

Hello, I’ve a design question about a RESTful Weblog application. I use the db layout: http://erdbeere.net/media/db\_layout.png . There is a controller for each model. Now I want to have something like “popular posts”…

---

## [Render partials in helper](https://www.ruby-forum.com/t/render-partials-in-helper/145510)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/render-partials-in-helper/145510 "2008-08-11T16:07:24Z")

</div>

hee people, Is it possible to render partials in helpers ? Why I want this: I have a menu that list many links but some of those items are children of other items. so i want to have different partials . Of course I…

---

## [Setting up Rails to send mail with Gmail](https://www.ruby-forum.com/t/setting-up-rails-to-send-mail-with-gmail/145427)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [August 11, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/setting-up-rails-to-send-mail-with-gmail/145427 "2008-08-11T16:00:20Z")

</div>

So I want to use Gmail’s SMTP to send mail with my rails app, but it isn’t working. I did what I was told (made a separate smtp\_tls.rb in / lib, added a mail.rb config in /initalizers, etc). Just wondering if anyone k…

---

## [Looping behaviour in ruby 1.8.6 pl 230 rails 2.1](https://www.ruby-forum.com/t/looping-behaviour-in-ruby-1-8-6-pl-230-rails-2-1/145489)

<div class="topic-metadata">

**Author:** [@cleca](https://www.ruby-forum.com/u/cleca)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/looping-behaviour-in-ruby-1-8-6-pl-230-rails-2-1/145489 "2008-08-11T14:45:52Z")

</div>

Please all note: Ruby 1.8.6 patchlevel 230 with rails 2.1 on Apache is completely broken and produces looping behaviour of the ruby interpreters. The problem got me busy for some 10 days and now is solved by upgrading …

---

## [Can link\_to pass object to the action?](https://www.ruby-forum.com/t/can-link-to-pass-object-to-the-action/145255)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 6\
**Last updated:** [August 11, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/can-link-to-pass-object-to-the-action/145255 "2008-08-11T14:22:51Z")

</div>

hi all, can we pass an object to an action thru link\_to? e.g. \<%= link\_to ‘action’, :action=\>‘action’, :object=\>@obj %\>. I’m showing a report to the user and on the same page, i’ve a link that generates a csv for tha…

---

## [Nested ressource path problem](https://www.ruby-forum.com/t/nested-ressource-path-problem/143484)

<div class="topic-metadata">

**Author:** [@Parity](https://www.ruby-forum.com/u/Parity)\
**Replies:** 8\
**Last updated:** [August 11, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/nested-ressource-path-problem/143484 "2008-08-11T13:55:24Z")

</div>

Hello :-), I’ve started to figure out how nested ressources are working, but I get an exception in a (i think so) simple case. The exception is: “ActionController::MethodNotAllowed - Only get, put, and delete request…

---

## [Globalite problem for website online but not offline](https://www.ruby-forum.com/t/globalite-problem-for-website-online-but-not-offline/145548)

<div class="topic-metadata">

**Author:** [@san1981](https://www.ruby-forum.com/u/san1981)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/globalite-problem-for-website-online-but-not-offline/145548 "2008-08-11T13:45:31Z")

</div>

Hello, Iâ€™ve just put online my first website in ruby on rails but Iâ€™ve a problem with the globalite plugin. Locally the plugin works perfectly, with detection of the browserâ€™s language. My application is fores…

---

## [Help with multiple one to many relationship](https://www.ruby-forum.com/t/help-with-multiple-one-to-many-relationship/145545)

<div class="topic-metadata">

**Author:** [@kanekcwu](https://www.ruby-forum.com/u/kanekcwu)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/help-with-multiple-one-to-many-relationship/145545 "2008-08-11T13:11:57Z")

</div>

Hi I have created three models class Winery has many :brands end class brand has many :wines belongs\_to winery end class wines belongs\_to brand end Now I am trying to do a find method that references from wine…

---

## [Can not search dynamically ! Please help](https://www.ruby-forum.com/t/can-not-search-dynamically-please-help/145542)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/can-not-search-dynamically-please-help/145542 "2008-08-11T12:57:04Z")

</div>

hi ! i am having problem with , in brief i am trying to search particular posting by country wise . i have listed all country after clicking on particular country i want all posted jobs along with this country , i ha…

---

## [Exception handling](https://www.ruby-forum.com/t/exception-handling/145540)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/exception-handling/145540 "2008-08-11T12:12:48Z")

</div>

Hi I have code in model as def self.record\_paginate\_pb(search\_pb\_ui\_hash,page) problem\_number=search\_pb\_ui\_hash\[:number\] problem\_priority\_id=search\_pb\_ui\_hash\[:problem\_priority\_id\] search\_problem = self.find\_where\_o…

---

## [Rss :: Parsing, generation, and caching system for xml news feeds](https://www.ruby-forum.com/t/rss-parsing-generation-and-caching-system-for-xml-news-feeds/145373)

<div class="topic-metadata">

**Author:** [@hafeez\_mia](https://www.ruby-forum.com/u/hafeez_mia)\
**Replies:** 2\
**Last updated:** [August 11, 2008, 11:55am UTC](https://www.ruby-forum.com/t/rss-parsing-generation-and-caching-system-for-xml-news-feeds/145373 "2008-08-11T11:55:12Z")

</div>

i am using rails 2.1.0 i installed feedtools gem now i don’t know how to use in my app could you please help in that

---

## [Belongs\_to and has\_many .new issues](https://www.ruby-forum.com/t/belongs-to-and-has-many-new-issues/145501)

<div class="topic-metadata">

**Author:** [@ReK2SS](https://www.ruby-forum.com/u/ReK2SS)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 11:44am UTC](https://www.ruby-forum.com/t/belongs-to-and-has-many-new-issues/145501 "2008-08-11T11:44:04Z")

</div>

I am new to rails and I been using asociations for 1-2 weeks with no issues so far, but this time I need to use them from the start… all the examples online are with “already” data in the data base to create a new rec…

---

## [Secure password storage](https://www.ruby-forum.com/t/secure-password-storage/145502)

<div class="topic-metadata">

**Author:** [@Jonathan\_Huizingh](https://www.ruby-forum.com/u/Jonathan_Huizingh)\
**Replies:** 3\
**Last updated:** [August 11, 2008, 11:38am UTC](https://www.ruby-forum.com/t/secure-password-storage/145502 "2008-08-11T11:38:48Z")

</div>

I am working on a project that needs to store the user’s login credentials for multiple other sites so that I can go and grab information for them. I am trying to figure out how to do this securely, but still make th…

---

## [New to Ruby Rails](https://www.ruby-forum.com/t/new-to-ruby-rails/145534)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 11, 2008, 11:35am UTC](https://www.ruby-forum.com/t/new-to-ruby-rails/145534 "2008-08-11T11:35:16Z")

</div>

Cheers, I am thinking of pursuing to study RoR, so I started with downloading and installing NetBeans 6.1 and it seems to be a good IDE to start diving into Ruby. However, since I dont have an Internet connection at…

---

## [About filter](https://www.ruby-forum.com/t/about-filter/145513)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 11:32am UTC](https://www.ruby-forum.com/t/about-filter/145513 "2008-08-11T11:32:56Z")

</div>

Hello: I have a filter mehtod defined in the application.rb for before\_filter,and a method(create\_action invoked in thhe ajax link)using the filter.When authorize’s redirect\_to happens and the create\_action’s codes d…

---

## [Receive the email attachment in readable format](https://www.ruby-forum.com/t/receive-the-email-attachment-in-readable-format/145536)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 11:28am UTC](https://www.ruby-forum.com/t/receive-the-email-attachment-in-readable-format/145536 "2008-08-11T11:28:09Z")

</div>

Hi All, I tried to send an email with an attachment. I am able to send the attachment but it is received in the encoded form. I want to receive the attachment file from my email in the readable format. I have the fo…

---

## [Default database in rails-2.1(Sqlite3)? why?](https://www.ruby-forum.com/t/default-database-in-rails-2-1-sqlite3-why/145532)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 10:09am UTC](https://www.ruby-forum.com/t/default-database-in-rails-2-1-sqlite3-why/145532 "2008-08-11T10:09:13Z")

</div>

what is the advanstage of Sqlite3 over others ?

---

## [Handling ActiveRecord::RecordNotFound errors](https://www.ruby-forum.com/t/handling-activerecord-recordnotfound-errors/145522)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 10:08am UTC](https://www.ruby-forum.com/t/handling-activerecord-recordnotfound-errors/145522 "2008-08-11T10:08:03Z")

</div>

Can anyone explain why an ActiveRecord::RecordNotFound error is only thrown on a regular id-based find, such as Product.find(123)? For example, if you’re using a dynamically generated attribute find method, such as Pr…

---

## [Problem with backgroundrb running twice?](https://www.ruby-forum.com/t/problem-with-backgroundrb-running-twice/196776)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 9:39am UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb-running-twice/196776 "2008-08-11T09:39:42Z")

</div>

My experience through Backgroundrb is good it’s working fine for me but i got one issue in this pls help me out?I hope some problem in scheduling the task? my config port: “3333” timer\_sleep: 60 load\_rails: true e…

---

## [Finding via recently created nested resource](https://www.ruby-forum.com/t/finding-via-recently-created-nested-resource/145454)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 9:20am UTC](https://www.ruby-forum.com/t/finding-via-recently-created-nested-resource/145454 "2008-08-11T09:20:04Z")

</div>

I have Articles and Comments. Comments are RESTfully nested in Articles (articles/1/comments/2 etc). I am attempting to display articles via how recently created their last comment was – basically how any forum is or…

---

## [RailsConf Europe 2008 Pass For Sale](https://www.ruby-forum.com/t/railsconf-europe-2008-pass-for-sale/145523)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 0\
**Last updated:** [August 11, 2008, 8:31am UTC](https://www.ruby-forum.com/t/railsconf-europe-2008-pass-for-sale/145523 "2008-08-11T08:31:30Z")

</div>

Hi, I have one full conference and tutorials pass for RailsConf Europe 2008 for sale. The conference is being held in Berlin and runs from 2-4 September. Unfortunately I’m not now able to attend so can offer the pass…

---

## [Suggestion for a good rails forum](https://www.ruby-forum.com/t/suggestion-for-a-good-rails-forum/145015)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 5\
**Last updated:** [August 11, 2008, 7:45am UTC](https://www.ruby-forum.com/t/suggestion-for-a-good-rails-forum/145015 "2008-08-11T07:45:21Z")

</div>

i’m looking for a good rails forum that will run under rails 2.0.2. i tried using altered beast but for some reason when i create the first user and click the confirmation email it never gets registered. there is no …

---

## [A bit of ajax works fine locally but breaks on nginx](https://www.ruby-forum.com/t/a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/144018)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 8\
**Last updated:** [August 11, 2008, 5:29am UTC](https://www.ruby-forum.com/t/a-bit-of-ajax-works-fine-locally-but-breaks-on-nginx/144018 "2008-08-11T05:29:49Z")

</div>

I have an ajax call that works fine locally: #in my view \<%= link\_to\_remote “Add a New Property”, { :url =\> admin\_properties\_path, :method =\> ‘POST’ } %\> This calls the create action in my admin/properties controller…

---

## [Problem with gem update](https://www.ruby-forum.com/t/problem-with-gem-update/145473)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 1\
**Last updated:** [August 11, 2008, 5:19am UTC](https://www.ruby-forum.com/t/problem-with-gem-update/145473 "2008-08-11T05:19:44Z")

</div>

Im trying to update my gems with sudo gem update --system and im getting this error. Updating RubyGems WARNING: RubyGems 1.2+ index not found for: http://merbivore.com RubyGems will revert to legacy indexes degrad…

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

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