# Rails

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

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

---

## [Model Versioning Plugin?](https://www.ruby-forum.com/t/model-versioning-plugin/141533)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/model-versioning-plugin/141533 "2008-06-26T23:00:00Z")

</div>

Hi Everyone, I am attempting to version my model, so I can go back through time, as well as offer an audit trail. I have attempted to use acts\_as\_versioned (http://wiki.rubyonrails.org/ rails/pages/ActsAsVersioned), …

---

## [Problem with date\_select after Rails 2.1 upgrade](https://www.ruby-forum.com/t/problem-with-date-select-after-rails-2-1-upgrade/141539)

<div class="topic-metadata">

**Author:** [@Billy\_G](https://www.ruby-forum.com/u/Billy_G)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/problem-with-date-select-after-rails-2-1-upgrade/141539 "2008-06-26T22:19:29Z")

</div>

Folks, I think I should start a new thread for this, because a similar one I saw is a bit old and the resolution there doesn’t seem to apply to what I’m running into now. Anyway, my date\_select calls are bombing on m…

---

## [Help with to\_xml - Add a custom tag in each ele in a coll](https://www.ruby-forum.com/t/help-with-to-xml-add-a-custom-tag-in-each-ele-in-a-coll/141543)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/help-with-to-xml-add-a-custom-tag-in-each-ele-in-a-coll/141543 "2008-06-26T21:46:23Z")

</div>

Hi, I was advised to use either the :methods option of to\_xml or use a block to add additional tags to the output. What I’m trying to do is add a permalink tag to each element in a collection, but I can’t seem to get …

---

## [BackgrounDRb](https://www.ruby-forum.com/t/backgroundrb/141381)

<div class="topic-metadata">

**Author:** [@dipeshbatheja](https://www.ruby-forum.com/u/dipeshbatheja)\
**Replies:** 6\
**Last updated:** [June 26, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/backgroundrb/141381 "2008-06-26T21:16:39Z")

</div>

I have installed the latest backgrouDrb plugin in my rails application. I have scheduled a task in the backgroundrb.yml, but nothing seems to happen, when i start the backgroundrb server. I am running Mac OS X 10.5.2.…

---

## [Validate with ajax](https://www.ruby-forum.com/t/validate-with-ajax/141538)

<div class="topic-metadata">

**Author:** [@anka](https://www.ruby-forum.com/u/anka)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/validate-with-ajax/141538 "2008-06-26T21:11:32Z")

</div>

How to validate form when I use ajax? and how to display vlidation message when I use remote\_form\_for? can someone help me?

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/226012)

<div class="topic-metadata">

**Author:** [@McLobster](https://www.ruby-forum.com/u/McLobster)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/nomethoderror/226012 "2008-06-26T21:10:13Z")

</div>

Hello there, My task is to update an already existing website, an app created using Ruby on Rails. I’ve created a copy of the original database and modified it, adding some tables. I then set the new database as the …

---

## [A little perspective on the behavior of models that share a has\_and\_belongs\_to\_many relation](https://www.ruby-forum.com/t/a-little-perspective-on-the-behavior-of-models-that-share-a-has-and-belongs-to-many-relation/141535)

<div class="topic-metadata">

**Author:** [@FredO](https://www.ruby-forum.com/u/FredO)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/a-little-perspective-on-the-behavior-of-models-that-share-a-has-and-belongs-to-many-relation/141535 "2008-06-26T20:45:00Z")

</div>

Hi, I am experimenting with rails 2.1 using the Netbeans IDE. Recently I have been looking at the behavior of rails when dealing with two models that share a has\_and\_belongs\_to\_many relation. I created two simple mod…

---

## [Helpers spec references](https://www.ruby-forum.com/t/helpers-spec-references/141484)

<div class="topic-metadata">

**Author:** [@rake\_drop\_all](https://www.ruby-forum.com/u/rake_drop_all)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/helpers-spec-references/141484 "2008-06-26T20:39:42Z")

</div>

I saw very minimum helpers spec references on the net unless one video I saw on peepcode that contains one chapter talking about helpers spec, well the example there showed us how to stub and then should receive from …

---

## [Rails 2.1 and ddatetime\_select](https://www.ruby-forum.com/t/rails-2-1-and-ddatetime-select/139923)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 7:16pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-ddatetime-select/139923 "2008-06-26T19:16:48Z")

</div>

I’ve updated to 2.1 and am continuing to have issues with datetime\_select helpers which worked fine previously. Example: \<% form\_remote\_tag(:url =\> { :controller =\> ‘notes’, :action =\> :add\_booking\_note\_ajax, :id =\>…

---

## [Generating XML for a model](https://www.ruby-forum.com/t/generating-xml-for-a-model/141524)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/generating-xml-for-a-model/141524 "2008-06-26T19:00:00Z")

</div>

Hi yet again! I’m currently using an erb template to generate XML for a model (say /persons.xml), because I need custom tags added to the XML I have to generate it from zero. I tried using person.to\_xml but that retu…

---

## [Using static name as unique key instead of id in some table](https://www.ruby-forum.com/t/using-static-name-as-unique-key-instead-of-id-in-some-table/141510)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/using-static-name-as-unique-key-instead-of-id-in-some-table/141510 "2008-06-26T18:50:16Z")

</div>

Hi, I am not sure if this is best practice or not. or it is a stupid question. Using static name as unique key instead of id in some table. What I mean by static name is the unique name from the actual field name Fo…

---

## [ActiveResource - 404 when resources use the :as parameter](https://www.ruby-forum.com/t/activeresource-404-when-resources-use-the-as-parameter/141522)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/activeresource-404-when-resources-use-the-as-parameter/141522 "2008-06-26T18:41:01Z")

</div>

Hi, I have another question about ActiveResource. In a REST server I have resources defined with the :as parameter, like: map.resources :alerts, :as =\> ‘alertas’ But when I try an ActiveResource client to access that…

---

## [ActiveResource - Authenticate dynamically?](https://www.ruby-forum.com/t/activeresource-authenticate-dynamically/141518)

<div class="topic-metadata">

**Author:** [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/activeresource-authenticate-dynamically/141518 "2008-06-26T18:33:25Z")

</div>

Hi, There doesn’t seem to be a lot of info about ActiveResource, and I have an issue which I think would be pretty common, but I haven’t found any info about. Is there a convention to allow ActiveResource to authenti…

---

## [Best practise structure for large project](https://www.ruby-forum.com/t/best-practise-structure-for-large-project/141430)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 6\
**Last updated:** [June 26, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/best-practise-structure-for-large-project/141430 "2008-06-26T18:10:31Z")

</div>

Hi all Is there anywhere a good tutorial for a “best-practise” structure (controller,…) for a large project? I did’t find one by now… thank you for your help! Greets sigma

---

## [Unit Test: Mocking the User-Agent](https://www.ruby-forum.com/t/unit-test-mocking-the-user-agent/141391)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [June 26, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/unit-test-mocking-the-user-agent/141391 "2008-06-26T17:54:41Z")

</div>

Hi, Im trying to test the following method: def notice 65 userAgent = request.env\[‘HTTP\_USER\_AGENT’\] 66 67 if userAgent.index(‘MSIE 7.0;’) != nil 68 @ie7 = true 69 elsif userAgent.index(‘MSIE 6.0;…

---

## [Attribute filtering in Rails 2.1](https://www.ruby-forum.com/t/attribute-filtering-in-rails-2-1/141054)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/attribute-filtering-in-rails-2-1/141054 "2008-06-26T17:35:47Z")

</div>

Hello, I was unable to find the commit related to removing attribute filtering in Rails 2.1. I’m interested in the reasoning as to why this was removed. Can anyone provide any insight? Thanks, Jonathan

---

## [Mod\_rails and fastcgi questions](https://www.ruby-forum.com/t/mod-rails-and-fastcgi-questions/141511)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/mod-rails-and-fastcgi-questions/141511 "2008-06-26T17:22:20Z")

</div>

Originally, I had rails running under apache with fastcgi. I just recently successfully installed mod\_rails and updated my apache httpd.conf file with the correct configuration but kept my virtual host the same. i’m …

---

## [Updating existing rails project to 2.1](https://www.ruby-forum.com/t/updating-existing-rails-project-to-2-1/141206)

<div class="topic-metadata">

**Author:** [@macace](https://www.ruby-forum.com/u/macace)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/updating-existing-rails-project-to-2-1/141206 "2008-06-26T17:17:32Z")

</div>

Hi. I´m in a “jame”… My host just updated rails to 2.1 and now my app don´t work. It´s a 2.0.2 app Is there anyway to update an existing app to a 2.1 app? or any other way to make it run again? Macace -with a broke…

---

## [RoR 2.1 best message plugin](https://www.ruby-forum.com/t/ror-2-1-best-message-plugin/141512)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/ror-2-1-best-message-plugin/141512 "2008-06-26T16:44:06Z")

</div>

Hello, What is the best pluing for messages between users? I am currently running restful-authentication. So far I have looked at restful-easy- message and has-messages. Best regards. Asbjørn Morell.

---

## [RoR 2.1 and Restful\_authentication](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/ror-2-1-and-restful-authentication/141501 "2008-06-26T16:42:19Z")

</div>

Hello, I can’t start RoR if I put config.active\_record.observers = :users\_observer into my environment.rb file. Mongrel gives me this error: \*\* Daemonized, any open files are closed. Look at tmp/pids/mongrel. 80.pi…

---

## [How to have users who can only view his/her own stuff](https://www.ruby-forum.com/t/how-to-have-users-who-can-only-view-his-her-own-stuff/140343)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 7\
**Last updated:** [June 26, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/how-to-have-users-who-can-only-view-his-her-own-stuff/140343 "2008-06-26T16:26:29Z")

</div>

I know that it is better to have codes when asking questions here, but I have none, which is kind of why I am asking. I want to make a to-do list for my friends and family, I learned from the Agile Development With Ra…

---

## [Using another objects methods within another object](https://www.ruby-forum.com/t/using-another-objects-methods-within-another-object/141457)

<div class="topic-metadata">

**Author:** [@GearSSS\_id\_OSCealla](https://www.ruby-forum.com/u/GearSSS_id_OSCealla)\
**Replies:** 2\
**Last updated:** [June 26, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/using-another-objects-methods-within-another-object/141457 "2008-06-26T16:18:52Z")

</div>

Hey, I’m just getting used to ruby on rails and im designing a website that has a forum and a list of events. So there are two models: forum and event. I’ve got a method for event called find\_upcoming\_events which is…

---

## [Problem creating a new view](https://www.ruby-forum.com/t/problem-creating-a-new-view/141402)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/problem-creating-a-new-view/141402 "2008-06-26T16:17:41Z")

</div>

I’ve created a new action in the recipes\_controller class called some\_action and a corresponding view for it in the /views/recipes/ folder. However, when I go to the localhost:3000/recipes/some\_action url i get “NoMe…

---

## [ActiveRecord search Query Question](https://www.ruby-forum.com/t/activerecord-search-query-question/141500)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 6\
**Last updated:** [June 26, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/activerecord-search-query-question/141500 "2008-06-26T16:00:03Z")

</div>

I’m not using ferret because the search I need is not that complicated. I created a basic active record search. I’m using some code from the pragmaticprogrammer book. This is the issue: I can get the single keyword to…

---

## [A question on redirect\_to](https://www.ruby-forum.com/t/a-question-on-redirect-to/141494)

<div class="topic-metadata">

**Author:** [@Titan](https://www.ruby-forum.com/u/Titan)\
**Replies:** 7\
**Last updated:** [June 26, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/a-question-on-redirect-to/141494 "2008-06-26T15:22:26Z")

</div>

Hello, I have been trying to do something like this… I have an object which is being sent through to the view from the controller and since the object is not guarenteed to have non nil values, i use an exception hand…

---

## [Application\_helper.rb available to action mailer templates?](https://www.ruby-forum.com/t/application-helper-rb-available-to-action-mailer-templates/141503)

<div class="topic-metadata">

**Author:** [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/application-helper-rb-available-to-action-mailer-templates/141503 "2008-06-26T14:44:15Z")

</div>

Hi - Curious - shouldn’t application\_helper methods be available to action mailer templates? I keep getting no method errors when trying to use my helpers - seems there would be an easy adjustment to include this mo…

---

## [Symfony like "forward404"](https://www.ruby-forum.com/t/symfony-like-forward404/141406)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 5\
**Last updated:** [June 26, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/symfony-like-forward404/141406 "2008-06-26T13:47:18Z")

</div>

Hi community, as I’m a previous PHP and especially symfony programmer, I often try to find features of symfony in rails. Now I’m looking for a method which forwards to a 404 error page (but with stack trace and so on …

---

## [JRuby on Rails and SAP Netweaver](https://www.ruby-forum.com/t/jruby-on-rails-and-sap-netweaver/141497)

<div class="topic-metadata">

**Author:** [@peterlih](https://www.ruby-forum.com/u/peterlih)\
**Replies:** 0\
**Last updated:** [June 26, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/jruby-on-rails-and-sap-netweaver/141497 "2008-06-26T13:37:21Z")

</div>

Hi, has anyone experiences working with JRuby on Rails and SAP Netweaver? Are there problems and issues I have to solve? Sincerely, Peter

---

## [Mashup question](https://www.ruby-forum.com/t/mashup-question/141463)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/mashup-question/141463 "2008-06-26T12:31:43Z")

</div>

I have a question regarding mashup development. I am currently developing a google mashup application and am wondering how to test its functionality. I am not sure if I can communicate with the google calendar and a…

---

## [Undefined method: camelize](https://www.ruby-forum.com/t/undefined-method-camelize/141481)

<div class="topic-metadata">

**Author:** [@jacques](https://www.ruby-forum.com/u/jacques)\
**Replies:** 1\
**Last updated:** [June 26, 2008, 11:33am UTC](https://www.ruby-forum.com/t/undefined-method-camelize/141481 "2008-06-26T11:33:09Z")

</div>

Hi, I am fairly new at Rails, and attempting to deploy an application that’s running fine using InstantRails on my PC. On the deployment server (I use railsplayground.net), I get the following error: Processing Appli…

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

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