# Rails

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

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

---

## [Getting new items from an RSS feed](https://www.ruby-forum.com/t/getting-new-items-from-an-rss-feed/149287)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:42am UTC](https://www.ruby-forum.com/t/getting-new-items-from-an-rss-feed/149287 "2008-09-23T09:42:27Z")

</div>

Hi everyone, I have an RSS feed that updates. I’d like to find the new items (based on the database) since the last time I checked, take them and store them into the database, and repeat this cycle. Does anyone know o…

---

## [Rails cookie missing for IE](https://www.ruby-forum.com/t/rails-cookie-missing-for-ie/149286)

<div class="topic-metadata">

**Author:** [@xiaozh](https://www.ruby-forum.com/u/xiaozh)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:41am UTC](https://www.ruby-forum.com/t/rails-cookie-missing-for-ie/149286 "2008-09-23T09:41:52Z")

</div>

I have a rails 2.1 application have the following code: class CookieController \< ApplicationController def index extra = cookies\[“extra”\] end end \<%= “index” %\> The problem is that I can not see the cookie in con…

---

## [Parsing HTML Email with Inline Images](https://www.ruby-forum.com/t/parsing-html-email-with-inline-images/149285)

<div class="topic-metadata">

**Author:** [@eli.lindner](https://www.ruby-forum.com/u/eli.lindner)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:41am UTC](https://www.ruby-forum.com/t/parsing-html-email-with-inline-images/149285 "2008-09-23T09:41:52Z")

</div>

Hi All, Has somebody come up with a method of parsing multipart html email with inline embedded images? Removing the images as attachments is easy enough, but I’d like to then embed img tags (Using textile) that rela…

---

## [Weird transaction problem](https://www.ruby-forum.com/t/weird-transaction-problem/149207)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 9\
**Last updated:** [September 23, 2008, 9:37am UTC](https://www.ruby-forum.com/t/weird-transaction-problem/149207 "2008-09-23T09:37:09Z")

</div>

Hi all, I have a doubt in transactions. Please see the code below. begin Project.transaction do p = Project.new p.name = “test” p.user\_id = 10 p.save! if nil.projects puts “User is having projects” end end re…

---

## [Passing object as URL parameter](https://www.ruby-forum.com/t/passing-object-as-url-parameter/149281)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:30am UTC](https://www.ruby-forum.com/t/passing-object-as-url-parameter/149281 "2008-09-23T09:30:08Z")

</div>

I am trying to send an object “student” as a url parameter. It seems that I need to convert it to string to send it . This is how I am doing this. /dashboard/action?student=student.to\_s Now, in the action, I want to …

---

## [Trying to use RJS, raw Try(my javascript) catch is displayed on page](https://www.ruby-forum.com/t/trying-to-use-rjs-raw-try-my-javascript-catch-is-displayed-on-page/130760)

<div class="topic-metadata">

**Author:** [@sweiss](https://www.ruby-forum.com/u/sweiss)\
**Replies:** 4\
**Last updated:** [September 23, 2008, 9:25am UTC](https://www.ruby-forum.com/t/trying-to-use-rjs-raw-try-my-javascript-catch-is-displayed-on-page/130760 "2008-09-23T09:25:07Z")

</div>

def index redirect\_to(:action =\> ‘test’) end def test render :update do |page| page \<\< ’ ’ end end mozilla just displayes the following, my function is defined in the layout and my goal is just to call this java…

---

## [How to add,list, delete, view using ajax?](https://www.ruby-forum.com/t/how-to-add-list-delete-view-using-ajax/149280)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 9:17am UTC](https://www.ruby-forum.com/t/how-to-add-list-delete-view-using-ajax/149280 "2008-09-23T09:17:49Z")

</div>

Dear all, Could anyone suggest me with a link to perform add, view, delete, modify in a single page using ajax. regards, Jose martin

---

## [Dynamic Select Box](https://www.ruby-forum.com/t/dynamic-select-box/149277)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 1\
**Last updated:** [September 23, 2008, 8:53am UTC](https://www.ruby-forum.com/t/dynamic-select-box/149277 "2008-09-23T08:53:48Z")

</div>

I have two select boxes and I update the content of second box on the basis of selection made on first with AJAX. I was wondering if any one can point to related tutorial. – Thanks, Jaikishan

---

## [Database clustering](https://www.ruby-forum.com/t/database-clustering/149274)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 8:36am UTC](https://www.ruby-forum.com/t/database-clustering/149274 "2008-09-23T08:36:29Z")

</div>

Assume, if we are using single database in the multi tenant application. If the database capacity is exceeded and if we need to add one more database server, should we do anything in ROR application?

---

## [ActiveRecord find in order for an array parameter](https://www.ruby-forum.com/t/activerecord-find-in-order-for-an-array-parameter/149254)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 3\
**Last updated:** [September 23, 2008, 8:03am UTC](https://www.ruby-forum.com/t/activerecord-find-in-order-for-an-array-parameter/149254 "2008-09-23T08:03:56Z")

</div>

How can i make ActiveRecord find in order for an array parameter? Ex. for Test.find(\[1, 2, 3, 4, 5\]) it should return test.id=1 as the first entry. Right, it just returns in a random order. thanks

---

## [Question about render](https://www.ruby-forum.com/t/question-about-render/149228)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 1\
**Last updated:** [September 23, 2008, 7:25am UTC](https://www.ruby-forum.com/t/question-about-render/149228 "2008-09-23T07:25:52Z")

</div>

Hi there, i have a question respect to the “render” when use render in the controller def create @contacto = Contacto.new(params\[:contacto\]) respond\_to do |format| if @contacto.save flash\[:notice\] = ‘Su Consulta ha…

---

## [How to filter info and keep everything DRY](https://www.ruby-forum.com/t/how-to-filter-info-and-keep-everything-dry/149249)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 1\
**Last updated:** [September 23, 2008, 5:53am UTC](https://www.ruby-forum.com/t/how-to-filter-info-and-keep-everything-dry/149249 "2008-09-23T05:53:59Z")

</div>

Hey, I’m trying to give this problem the best solution possible: I have a posts and an events model both have categories, tags and belong both to users and groups Now I need to filter results by any of the above, let …

---

## [Restful\_auth and -includes-activation](https://www.ruby-forum.com/t/restful-auth-and-includes-activation/149266)

<div class="topic-metadata">

**Author:** [@GabrielG1976](https://www.ruby-forum.com/u/GabrielG1976)\
**Replies:** 0\
**Last updated:** [September 23, 2008, 5:10am UTC](https://www.ruby-forum.com/t/restful-auth-and-includes-activation/149266 "2008-09-23T05:10:43Z")

</div>

Hello I was starting a app with Restful\_auth and added the --include- activation it but it doesnt send Action and comfromatiom email any help would be great thanks Gabriel

---

## [Error Handeling](https://www.ruby-forum.com/t/error-handeling/149259)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [September 23, 2008, 5:01am UTC](https://www.ruby-forum.com/t/error-handeling/149259 "2008-09-23T05:01:21Z")

</div>

Is it possible to have error handling or error tolerances inside of a ruby controller? So when my lucene java server has a hiccup and causes my Acts\_As\_solr search to quit working, i can use good old fashioned .find. …

---

## [Activerecord: use attributes methods instead of attrs var](https://www.ruby-forum.com/t/activerecord-use-attributes-methods-instead-of-attrs-var/149255)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 4:15am UTC](https://www.ruby-forum.com/t/activerecord-use-attributes-methods-instead-of-attrs-var/149255 "2008-09-23T04:15:09Z")

</div>

This is the case: when you call save() on an activerecord::base object it goes through all the attrs\[:\] and saves them. But I have a lot of attributes overriden. For example: class Tester def name write\_attribute(:…

---

## [Determining the member type in Params Hash](https://www.ruby-forum.com/t/determining-the-member-type-in-params-hash/149221)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [September 23, 2008, 1:53am UTC](https://www.ruby-forum.com/t/determining-the-member-type-in-params-hash/149221 "2008-09-23T01:53:57Z")

</div>

Is there an easy way to determine what is the “type” of a member in the Params hash? The reason that I ask this question is that I have to make adjustments for UK dates in the params hash for date and datetime fields…

---

## [Polymorphic Problem](https://www.ruby-forum.com/t/polymorphic-problem/149057)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 12\
**Last updated:** [September 23, 2008, 12:30am UTC](https://www.ruby-forum.com/t/polymorphic-problem/149057 "2008-09-23T00:30:21Z")

</div>

Hi. I believe that I need to write a method to get my user’s information, but I’m not sure how to write this and where it should go. I have Reviews as polymorphic and there are several types items that can be reviewe…

---

## [System calls prohibited?](https://www.ruby-forum.com/t/system-calls-prohibited/149233)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 8\
**Last updated:** [September 23, 2008, 12:27am UTC](https://www.ruby-forum.com/t/system-calls-prohibited/149233 "2008-09-23T00:27:02Z")

</div>

I have a controller method written along these lines: begin system("/script/that/generates/output \> text\_file") var += IO.readlines(“text\_file”) send\_data var, :filename =\> “attachment.txt”, :disposition =\> ‘attachm…

---

## [Pls tell the answer](https://www.ruby-forum.com/t/pls-tell-the-answer/149195)

<div class="topic-metadata">

**Author:** [@Barun\_A](https://www.ruby-forum.com/u/Barun_A)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/pls-tell-the-answer/149195 "2008-09-22T23:53:05Z")

</div>

. What is the difference between having a method in a Model, Helper and a Controller?

---

## [Joins vs include?](https://www.ruby-forum.com/t/joins-vs-include/149244)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 7\
**Last updated:** [September 22, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/joins-vs-include/149244 "2008-09-22T22:53:48Z")

</div>

I know this is probably a noob question, but I needed a little clarification. I did the following in the console of my app: User.find(:all, :conditions =\> “orders.id \> 1”, :joins =\> :orders).size =\> 1254 User.f…

---

## [We have excellent Ruby on Rails developers](https://www.ruby-forum.com/t/we-have-excellent-ruby-on-rails-developers/149250)

<div class="topic-metadata">

**Author:** [@Ruby\_onRails](https://www.ruby-forum.com/u/Ruby_onRails)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/we-have-excellent-ruby-on-rails-developers/149250 "2008-09-22T22:29:10Z")

</div>

\*kindly send me Ruby on rails requirements to removed\_email\_address@domain.invalid Thanks & Regards, PAL removed\_email\_address@domain.invalid \*

---

## [Unicode in fixtures](https://www.ruby-forum.com/t/unicode-in-fixtures/149248)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/unicode-in-fixtures/149248 "2008-09-22T22:08:38Z")

</div>

Hi, I’m trying to store encrypted passwords in the test fixtures. Passwords are encrypted using a openssl cipher (aes 256). The fixtures seem to break when they encounter unicode characters. Is this a know issue that …

---

## [RoR IDE - which one do you use?](https://www.ruby-forum.com/t/ror-ide-which-one-do-you-use/149085)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 19\
**Last updated:** [September 22, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/ror-ide-which-one-do-you-use/149085 "2008-09-22T22:04:14Z")

</div>

Hello all, I am a .net/c# developer using Visual Studio, and I wonder which ID is widely being used for RoR development. I downloaded and installed the following three products, but I have not started comparing each …

---

## [Attachment\_fu and server generated assets (PDF)](https://www.ruby-forum.com/t/attachment-fu-and-server-generated-assets-pdf/149224)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-server-generated-assets-pdf/149224 "2008-09-22T21:24:28Z")

</div>

Hello, I using attachment\_fu in our application for several data. attachment\_fu works fine for uploaded files. Now I generating some files (PDF) in an action. These PDF should stored in the filesystem as an asset dir…

---

## [\[ANN\] inspect\_sql](https://www.ruby-forum.com/t/ann-inspect-sql/147921)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [September 22, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/ann-inspect-sql/147921 "2008-09-22T20:21:00Z")

</div>

Railsters: When you use ActiveRecord, it conglomerates your has\_many directives together to produce elaborate queries. Sometimes these might be a little too elaborate. I wrote a test helper function that lets you pe…

---

## [Non-Ruby REST client for Ruby REST server](https://www.ruby-forum.com/t/non-ruby-rest-client-for-ruby-rest-server/149046)

<div class="topic-metadata">

**Author:** [@Roberto](https://www.ruby-forum.com/u/Roberto)\
**Replies:** 7\
**Last updated:** [September 22, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/non-ruby-rest-client-for-ruby-rest-server/149046 "2008-09-22T19:45:05Z")

</div>

Hi, I have a Rails 2 app and I wand to provide an API for 3rd party applications written on any language the customer uses. My thoughts are that the best way of providing it is by taking advantage of rails RESTfulnes…

---

## [Creating database static data (roles, adminstators accounts)](https://www.ruby-forum.com/t/creating-database-static-data-roles-adminstators-accounts/149190)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 7:17pm UTC](https://www.ruby-forum.com/t/creating-database-static-data-roles-adminstators-accounts/149190 "2008-09-22T19:17:28Z")

</div>

Hello! I have a task to create some static data in database (for instance, bunch of user roles or administrator account). Certainly, we should not create it up in our migrations. If we create them in initializers, we…

---

## [Problems testing method with rSpec](https://www.ruby-forum.com/t/problems-testing-method-with-rspec/149234)

<div class="topic-metadata">

**Author:** [@carlos\_blazquez](https://www.ruby-forum.com/u/carlos_blazquez)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/problems-testing-method-with-rspec/149234 "2008-09-22T19:07:02Z")

</div>

I have this code in my rSpec file: describe Alineado, “cambiar\_por” do include AlineadoSpecHelper describe “Con el partido en juego y con cambios disponibles” do before(:each) do @partido = mock\_model(Partido, { :c…

---

## [Ð¿Ñ€Ð¾Ð±Ð»ÐµÐ¼Ð° gem install mysql CenOS](https://www.ruby-forum.com/t/d-n-d-d-d-d-d-d-gem-install-mysql-cenos/149230)

<div class="topic-metadata">

**Author:** [@Uskolul](https://www.ruby-forum.com/u/Uskolul)\
**Replies:** 0\
**Last updated:** [September 22, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/d-n-d-d-d-d-d-d-gem-install-mysql-cenos/149230 "2008-09-22T18:29:18Z")

</div>

÷ÓÅÍ ðÒÉ×ÅÔ. ðÙÔÁÀÓØ ÐÏ ÒÕËÏ×ÏÄÓÔ×Õ ( http://www.html-blog.ru/2008/8/26/rails-on-agava-vps ), ÐÏÓÔÁ×ÉÔØ rails ÎÁ CentOS 5.2. ëÏÇÄÁ ÐÙÔÁÀÓØ ÐÏÓÔÁ×ÉÔØ gem install mysql, ÐÏÌÕÞÁÀ: Building native extensions. This could…

---

## [\[ANN\] ar-extensions 0.8.0](https://www.ruby-forum.com/t/ann-ar-extensions-0-8-0/145251)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 1\
**Last updated:** [September 22, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/ann-ar-extensions-0-8-0/145251 "2008-09-22T18:26:49Z")

</div>

ar-extensions 0.8.0 What’s New ? The big update is Rails 2.1.0 compatibility for MySQL and SQLite3. I don’t have access to Oracle and I don’t have PostgreSQL setup, so I apologize in advance to anyone using ar-extens…

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

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