# Rails

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

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

---

## [There is already an object named 'schema\_migrations' in the](https://www.ruby-forum.com/t/there-is-already-an-object-named-schema-migrations-in-the/158425)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 5\
**Last updated:** [January 26, 2009, 6:59pm UTC](https://www.ruby-forum.com/t/there-is-already-an-object-named-schema-migrations-in-the/158425 "2009-01-26T18:59:41Z")

</div>

Hi I have an unusual one, hoping one of you geniuses can give me a hint as I don’t know where else to look. I’m running an combo of Rails/Sql Server (I know, I know, legacy though) using Ubuntu/UnixODBC/FreeTDS/active…

---

## [News about RubyLearning!](https://www.ruby-forum.com/t/news-about-rubylearning/158672)

<div class="topic-metadata">

**Author:** [@Edson\_L](https://www.ruby-forum.com/u/Edson_L)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/news-about-rubylearning/158672 "2009-01-26T18:42:58Z")

</div>

RubyLearning (RL) just won the first prize in the education category at the Shorty Awards - http://shortyawards.com/ Nice!

---

## [Ajax partial need unique ids?](https://www.ruby-forum.com/t/ajax-partial-need-unique-ids/158628)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/ajax-partial-need-unique-ids/158628 "2009-01-26T18:41:08Z")

</div>

Im not sure about the best way to go about dealing with the following situation. I have a number of popups that each contain a link “add time” which ajaxes and renders a partial: page.replace\_html “add\_appt\_#{params\[…

---

## [ActionView::TemplateError (undefined method \`comment\_count='](https://www.ruby-forum.com/t/actionview-templateerror-undefined-method-comment-count/158554)

<div class="topic-metadata">

**Author:** [@rajahm](https://www.ruby-forum.com/u/rajahm)\
**Replies:** 5\
**Last updated:** [January 26, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-undefined-method-comment-count/158554 "2009-01-26T18:38:25Z")

</div>

Hello, I am using Facebooker RoR plug-in. Following code used to work but suddenly I am getting an error which I am not able to decipher. Any help is appreciated Thanks Rajan ActionView::TemplateError (undefined me…

---

## [ActionMailer logging EHLO etc](https://www.ruby-forum.com/t/actionmailer-logging-ehlo-etc/158668)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/actionmailer-logging-ehlo-etc/158668 "2009-01-26T17:15:41Z")

</div>

Hi, I am trying to work out why actionmailer isn’t sending emails when i have deployed it to production. Unfortunately I do not have access to the production box and I can only see the production.log file. I have no…

---

## [Cycle() not cycling in a partial](https://www.ruby-forum.com/t/cycle-not-cycling-in-a-partial/158509)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/cycle-not-cycling-in-a-partial/158509 "2009-01-26T17:13:35Z")

</div>

Hey All, I’ve got the below partial rendering each item of a collection to a table row, with some nice ajax magic for hiding the row if the user clicks a link. It works very nicely, except for the bit that assigns t…

---

## [Acts\_as\_enumerated](https://www.ruby-forum.com/t/acts-as-enumerated/63747)

<div class="topic-metadata">

**Author:** [@sylow](https://www.ruby-forum.com/u/sylow)\
**Replies:** 10\
**Last updated:** [January 26, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/acts-as-enumerated/63747 "2009-01-26T17:11:48Z")

</div>

Hello All, Any one using acts\_as\_enumerated? I need help using (I like that it caches values in memory) I am working on a dating website and there are lots of options I want to store as enumerated like Status; divor…

---

## [Habtm relation and dependent =\> :destroy](https://www.ruby-forum.com/t/habtm-relation-and-dependent-destroy/158593)

<div class="topic-metadata">

**Author:** [@pandabeer](https://www.ruby-forum.com/u/pandabeer)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/habtm-relation-and-dependent-destroy/158593 "2009-01-26T17:01:46Z")

</div>

Hi all , I have a habtm relation between 2 tables: users rights If there a way to affect a destroy dependance on those 2 tables only for the last instance? In my opinion, dependent =\> :destroy is not the solution b…

---

## [\[ANN\] querybuilder 0.5.0 Released](https://www.ruby-forum.com/t/ann-querybuilder-0-5-0-released/158666)

<div class="topic-metadata">

**Author:** [@gazoduc](https://www.ruby-forum.com/u/gazoduc)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/ann-querybuilder-0-5-0-released/158666 "2009-01-26T16:52:59Z")

</div>

querybuilder version 0.5.0 has been released (yet another gem extracted from zena) ! http://github.com/zena/querybuilder/tree/master QueryBuilder is an interpreter for the “pseudo sql” language. This language can b…

---

## [Belonging models not saving individually](https://www.ruby-forum.com/t/belonging-models-not-saving-individually/158581)

<div class="topic-metadata">

**Author:** [@macario](https://www.ruby-forum.com/u/macario)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/belonging-models-not-saving-individually/158581 "2009-01-26T16:42:57Z")

</div>

Hi, I have some Page model that has\_many Photos, I am using Paperclip for doing the file processing for the photos and I am following the Ryan Bates (Advanced Rails Recipes) recipe for handling multiple belonging mode…

---

## [Problem: using will\_paginate with Ajax](https://www.ruby-forum.com/t/problem-using-will-paginate-with-ajax/157982)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 3\
**Last updated:** [January 26, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/problem-using-will-paginate-with-ajax/157982 "2009-01-26T15:40:34Z")

</div>

I want to use pagination with ajax. I have used will\_paginate then add code to support ajax pagination. I have tried with partial with when I use the code in index.html.erb \<%= render :partial =\> 'contents' %\> Pa…

---

## [Installing sqlite3 gem on Windows](https://www.ruby-forum.com/t/installing-sqlite3-gem-on-windows/158619)

<div class="topic-metadata">

**Author:** [@rmasters](https://www.ruby-forum.com/u/rmasters)\
**Replies:** 3\
**Last updated:** [January 26, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/installing-sqlite3-gem-on-windows/158619 "2009-01-26T15:16:58Z")

</div>

Hi, I’m new to Rails (and fairly new to Ruby) and am attempting to follow the tutorial at http://guides.rubyonrails.org/getting\_started\_with\_rails.html In that guide I’m stuck at 4.1 - I can launch the server fine an…

---

## [ActiveRecord::Base class considered as module](https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/activerecord-base-class-considered-as-module/158643 "2009-01-26T14:40:33Z")

</div>

Hello, I’m trying to upgrade a rails app with an old frozen rails version (1.1.6). I got an error each time i’m calling an active record model because it considers it as a module. anyone got an idea how to fix it?

---

## [\[ANN\] Ruby In Steel Developer 1.4 Released](https://www.ruby-forum.com/t/ann-ruby-in-steel-developer-1-4-released/158661)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-developer-1-4-released/158661 "2009-01-26T14:19:51Z")

</div>

SapphireSteel Software today released version 1.4 of Ruby In Steel Developer, its professional Ruby and â€˜Ruby On Railsâ€™ IDE for Visual Studio. Ruby In Steel Developer 1.4 now includes built-in ToDo and User Task …

---

## [XMPP4R and Openfire](https://www.ruby-forum.com/t/xmpp4r-and-openfire/158657)

<div class="topic-metadata">

**Author:** [@Juan\_JosSSSS\_Vidal](https://www.ruby-forum.com/u/Juan_JosSSSS_Vidal)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/xmpp4r-and-openfire/158657 "2009-01-26T14:01:53Z")

</div>

My app sends IM with XMPP4R with Jabber accounts perfectly with this code, but when I want to use an Openfire problem I get an error of authorization jid = Jabber::JID.new('removed\_email\_address@domain.invalid') @clie…

---

## [Advice on form\_tag get post and will\_paginate](https://www.ruby-forum.com/t/advice-on-form-tag-get-post-and-will-paginate/158656)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/advice-on-form-tag-get-post-and-will-paginate/158656 "2009-01-26T13:58:31Z")

</div>

Hello, I’m using a custom form for querying some data. The resulted rows can be enormous, so I’m using will\_paginate. If I use a form\_tag with Post, the URL is nicer, but I don’t get the params in the subsequent call…

---

## [Mongrel::HttpParserError](https://www.ruby-forum.com/t/mongrel-httpparsererror/158652)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/mongrel-httpparsererror/158652 "2009-01-26T13:52:26Z")

</div>

I’m new to rails, started first project today. I’m also using flex and want to go RESTful over HTTP as much as possible, most posts seem to think this is not possible! Everything runs RESTfuly fine in the flex local s…

---

## [DRYing up form tags](https://www.ruby-forum.com/t/drying-up-form-tags/158641)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/drying-up-form-tags/158641 "2009-01-26T13:20:09Z")

</div>

Hi, I find that I have the following appear a lot inside forms in my app: \<% names = SomeAssociatedModel.find(:all, :order =\> ‘name’) \<%= f.collection\_select :some\_id, names, :id, :name %\> Which is basically a select…

---

## [Problem with will\_paginate and ajax](https://www.ruby-forum.com/t/problem-with-will-paginate-and-ajax/158650)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/problem-with-will-paginate-and-ajax/158650 "2009-01-26T13:06:05Z")

</div>

Hi guys, I am very sorry to repost in the forum My post problem is Problem: using will\_paginate with Ajax - Rails - Ruby-Forum Can anybody please give me a complete tutorial of will\_paginate with ajax? I am using ra…

---

## [Relationships in Rails](https://www.ruby-forum.com/t/relationships-in-rails/158637)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/relationships-in-rails/158637 "2009-01-26T12:50:06Z")

</div>

I have 2 tables: people (id, name) children (id, parents\_id, child\_id) parents\_id = people.id and child\_id = people\_id also So how I make a relationships in Rails? And how can all search: Children.find(:all, :condi…

---

## [Template Language for a CMS](https://www.ruby-forum.com/t/template-language-for-a-cms/158606)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 11:46am UTC](https://www.ruby-forum.com/t/template-language-for-a-cms/158606 "2009-01-26T11:46:23Z")

</div>

How would you go about creating a template language that could be used to allow access to some helpers for a CMS-style app? For example if there is a text field called content, I can use Textile or (my preference) Mar…

---

## [Unpacking gems in vendor - but what about dependent gems?](https://www.ruby-forum.com/t/unpacking-gems-in-vendor-but-what-about-dependent-gems/158642)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 11:32am UTC](https://www.ruby-forum.com/t/unpacking-gems-in-vendor-but-what-about-dependent-gems/158642 "2009-01-26T11:32:58Z")

</div>

Let’s say, that I need the gem pdf-writer for a rails project. And I define it inside environment.rb and run rake gems:unpack No problem there, pdf-writer is installed into vender/gems. But pdf-writer itself depends o…

---

## [Bug regarding ActiveRecord and TimeWithZone](https://www.ruby-forum.com/t/bug-regarding-activerecord-and-timewithzone/158449)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 3\
**Last updated:** [January 26, 2009, 11:29am UTC](https://www.ruby-forum.com/t/bug-regarding-activerecord-and-timewithzone/158449 "2009-01-26T11:29:58Z")

</div>

I’ve discovered a strange behavior regarding ActiveRecord and TimeWithZone I’ve seen the error when using SQL Server, I have not yet tried with any other database. Here’s output from the console - “User” is a simple …

---

## [Code works in Console but crashes in migration](https://www.ruby-forum.com/t/code-works-in-console-but-crashes-in-migration/158467)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 10:28am UTC](https://www.ruby-forum.com/t/code-works-in-console-but-crashes-in-migration/158467 "2009-01-26T10:28:12Z")

</div>

I am using a habtm relationship between two tables and the migration fails when updating the join table. However, it works when doing it step by step in the console! Here is the code: class User \< ActiveRecord::Base …

---

## [Nginx and mongrel, more info](https://www.ruby-forum.com/t/nginx-and-mongrel-more-info/158525)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 8:46am UTC](https://www.ruby-forum.com/t/nginx-and-mongrel-more-info/158525 "2009-01-26T08:46:44Z")

</div>

Hello, Where I can find more info on how to nginx and mongrel boot when the machine reboots ? In os x, please. In Linux world I found some scripts but they don’t work and don’t go in the same place as OS X. thanks, …

---

## ['Wrong constant name name:stringController](https://www.ruby-forum.com/t/wrong-constant-name-name-stringcontroller/158406)

<div class="topic-metadata">

**Author:** [@jlundigard](https://www.ruby-forum.com/u/jlundigard)\
**Replies:** 12\
**Last updated:** [January 26, 2009, 8:46am UTC](https://www.ruby-forum.com/t/wrong-constant-name-name-stringcontroller/158406 "2009-01-26T08:46:05Z")

</div>

Hi Guys, I’m totally new to RoR and have been using the following website as reference http://developer.apple.com/tools/developonrailsleopard.html It works fine up until the part where i have to type the following in…

---

## [Ajax.Updater and IE problem](https://www.ruby-forum.com/t/ajax-updater-and-ie-problem/158634)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 8:23am UTC](https://www.ruby-forum.com/t/ajax-updater-and-ie-problem/158634 "2009-01-26T08:23:32Z")

</div>

This is my search.erb code: \<%= submit\_tag('search', :onclick=\>‘show\_wait()’)%\> 2. \<% end -%\> 3. 4. 9. And this is my searching.erb please wait util\_controller class def searching …

---

## [Module inheritance and private methods](https://www.ruby-forum.com/t/module-inheritance-and-private-methods/158569)

<div class="topic-metadata">

**Author:** [@folkbaroque](https://www.ruby-forum.com/u/folkbaroque)\
**Replies:** 1\
**Last updated:** [January 26, 2009, 6:58am UTC](https://www.ruby-forum.com/t/module-inheritance-and-private-methods/158569 "2009-01-26T06:58:55Z")

</div>

I’m puzzling through the nuances of Ruby’s module inclusion mechanism, both inside and outside of Rails. Forgive the long text, but the behavior is truly strange and I don’t know what to make of it. I wrote some soft…

---

## [Help - undefined method \`merge' for error](https://www.ruby-forum.com/t/help-undefined-method-merge-for-error/70253)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 2\
**Last updated:** [January 26, 2009, 3:46am UTC](https://www.ruby-forum.com/t/help-undefined-method-merge-for-error/70253 "2009-01-26T03:46:06Z")

</div>

I’m getting this error due to a change necessary for my form. Initially - I was using formhelper where the form\_for looked like this: \<%= form\_tag :action =\> ‘create\_position’ %\> Now I’ve switched to the scaffold\_reso…

---

## [Undefined method error for a polymorphic route](https://www.ruby-forum.com/t/undefined-method-error-for-a-polymorphic-route/158627)

<div class="topic-metadata">

**Author:** [@pk16](https://www.ruby-forum.com/u/pk16)\
**Replies:** 0\
**Last updated:** [January 26, 2009, 2:37am UTC](https://www.ruby-forum.com/t/undefined-method-error-for-a-polymorphic-route/158627 "2009-01-26T02:37:00Z")

</div>

Hi, I’m trying to upgrade a 2.0.2 app to 2.2.2, but first I decided to upgrade to 2.1.2 after reading some posts recommending to do this. After firing up the app and running my tests, I now see that my polymorphic rou…

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

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