# Rails

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

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

---

## [Rspec model class methods](https://www.ruby-forum.com/t/rspec-model-class-methods/135501)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/rspec-model-class-methods/135501 "2008-04-22T18:41:03Z")

</div>

I’ve started specifying a project and could use some help. I’m not sure if the spec is entirely necessary, it would be great to get some guidance on a best practice or something close. I recently realized the need to …

---

## [Dissabling cookies in webrick](https://www.ruby-forum.com/t/dissabling-cookies-in-webrick/135476)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/dissabling-cookies-in-webrick/135476 "2008-04-22T18:23:03Z")

</div>

Hi, I’m using config.action\_controller.session\_store = :active\_record\_store to store sessions for my app. I have a client that cannot parse requests when cookies are sent by server. I thought that by using the active…

---

## [Restful scaffold for models containing "new" in the name](https://www.ruby-forum.com/t/restful-scaffold-for-models-containing-new-in-the-name/135498)

<div class="topic-metadata">

**Author:** [@toverkamp](https://www.ruby-forum.com/u/toverkamp)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/restful-scaffold-for-models-containing-new-in-the-name/135498 "2008-04-22T18:20:28Z")

</div>

Hi, I’m quite new to rails especially to RESTful development so perhaps I’m got it completely wrong: Rails 2.0.2 (gem update performed today from rubyforge.org) on Mac OS X 10.5. I made use of a sqlite3 database. I …

---

## [How to convert time from rss feed to another format?](https://www.ruby-forum.com/t/how-to-convert-time-from-rss-feed-to-another-format/135447)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/how-to-convert-time-from-rss-feed-to-another-format/135447 "2008-04-22T18:08:07Z")

</div>

Hi, I need to parse the rss feed and use the pubDate field to generate a field in a xml file to use as an input to simile timeline. RSS returns the pubDate as : Sun Feb 24 06:33:32 UTC 2008 But I need it as a string…

---

## [Delete\_all with include?](https://www.ruby-forum.com/t/delete-all-with-include/135496)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/delete-all-with-include/135496 "2008-04-22T18:02:23Z")

</div>

So MySQL (among others) does support joints on a DELETE statement. If I want to delete\_all type deletion with a join, is there any way to pass :include to delete\_all? Doesn’t look like it. Any other good way to do thi…

---

## [Save returns Mysql::Error: Duplicate entry](https://www.ruby-forum.com/t/save-returns-mysql-duplicate-entry/135490)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/save-returns-mysql-duplicate-entry/135490 "2008-04-22T18:01:46Z")

</div>

Hi all, I use save on an ActiveRecord object to insert or update it. I expect save to insert a new object in the database when I didn’t assign the id to the object and update the object when I assigned an id to it. T…

---

## [Overriding to\_xml() - Why Does This Work?](https://www.ruby-forum.com/t/overriding-to-xml-why-does-this-work/135494)

<div class="topic-metadata">

**Author:** [@nbnbnb](https://www.ruby-forum.com/u/nbnbnb)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/overriding-to-xml-why-does-this-work/135494 "2008-04-22T17:57:29Z")

</div>

In Chapter 5 of his book, Flexible Rails, Peter A.'s leads his readers through an exercise to override the behavior of to\_xml() in ActiveRecord objects so that :dasherize would be false by default. I found his soluti…

---

## [Sub Domains using Routing?](https://www.ruby-forum.com/t/sub-domains-using-routing/135493)

<div class="topic-metadata">

**Author:** [@Prateek](https://www.ruby-forum.com/u/Prateek)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/sub-domains-using-routing/135493 "2008-04-22T17:48:59Z")

</div>

Hello, Let us say when a user signs up, I dedicate a sub domain to it. So to do this do I need to use routing or something else? Will I be able to test it on ‘localhost’? Will their be server settings that I’ll need …

---

## [Rails Mentor Sought - Toronto/Hamilton Area](https://www.ruby-forum.com/t/rails-mentor-sought-toronto-hamilton-area/116957)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/rails-mentor-sought-toronto-hamilton-area/116957 "2008-04-22T17:25:07Z")

</div>

I am beginning a conversion from our existing mid-range platform to a Ruby on Rails web application. Over the course of the next four to twelve months I desire an on-site Rails mentor for approximately 4 hours a day, …

---

## [Rails developer and mentor](https://www.ruby-forum.com/t/rails-developer-and-mentor/135486)

<div class="topic-metadata">

**Author:** [@James\_Burrett](https://www.ruby-forum.com/u/James_Burrett)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/rails-developer-and-mentor/135486 "2008-04-22T17:17:54Z")

</div>

Hi - I need some assistance with a complex rails project that has been worked on by several different developers. I am new to rails and I am still on the steep side of the learning curve. This project will be ongoing…

---

## [How can i save the response from the net/http post?](https://www.ruby-forum.com/t/how-can-i-save-the-response-from-the-net-http-post/124280)

<div class="topic-metadata">

**Author:** [@nobobyhere](https://www.ruby-forum.com/u/nobobyhere)\
**Replies:** 6\
**Last updated:** [April 22, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/how-can-i-save-the-response-from-the-net-http-post/124280 "2008-04-22T17:15:35Z")

</div>

this is the response from net/http post. SUCCESS {70fd9072-2886-4491-b968-b83396c3e24a} 1 how can i split RESULT, GUID & SPLITS, so that i can save the value in the database.

---

## [\[ANN\] add\_downs, plugin to help writing 'down' methods](https://www.ruby-forum.com/t/ann-add-downs-plugin-to-help-writing-down-methods/135485)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/ann-add-downs-plugin-to-help-writing-down-methods/135485 "2008-04-22T17:08:49Z")

</div>

Hi – I’ve written a little plugin, partly just for fun (though there’s no reason it couldn’t be useful), called add\_downs, which lets you do this: rake db:migrate:add\_downs and end up with your migrations with their…

---

## [Illegal instruction on FreeBSD 6.2 with Rails 2.0](https://www.ruby-forum.com/t/illegal-instruction-on-freebsd-6-2-with-rails-2-0/135427)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 3\
**Last updated:** [April 22, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/illegal-instruction-on-freebsd-6-2-with-rails-2-0/135427 "2008-04-22T16:57:48Z")

</div>

I’m upgrading an existing application from Rails 1.2 to 2.0. After deploying the new application to a production FreeBSD 6.2 server, I can’t do anything without an illegal instruction trap (SIGILL). Even a basic Mod…

---

## [How to implement user editable templates?](https://www.ruby-forum.com/t/how-to-implement-user-editable-templates/135484)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-implement-user-editable-templates/135484 "2008-04-22T16:54:12Z")

</div>

In my application, every user has a mini-portal, where his visitors go and I want this to be customized to fit the rest of his website (on his server). Ideally, this should include HTML files, which users can upload a…

---

## [Problem Associating Two Models](https://www.ruby-forum.com/t/problem-associating-two-models/135483)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/problem-associating-two-models/135483 "2008-04-22T16:42:03Z")

</div>

I have a List model which holds all of the lists used throughout the app. This model has the following fields: id, list, value, sequence. To fetch a list of states, you could do something like List.find\_by\_list(“stat…

---

## [Best way to generate Feed](https://www.ruby-forum.com/t/best-way-to-generate-feed/135481)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/best-way-to-generate-feed/135481 "2008-04-22T16:36:37Z")

</div>

I am trying to generate feeds so that visitors can subscribe to them. What is the best way to each such task. I gave a try at AtomFeedHelper, but the documentation is not very clear, and I don’t find I can tweak as I …

---

## [Custom feed items](https://www.ruby-forum.com/t/custom-feed-items/135479)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/custom-feed-items/135479 "2008-04-22T16:28:51Z")

</div>

Hello. I’m hoping someone can point me to a recipe or example of a custom feed being fetched for some identifier, like a user ID. I’d like to be able to provide custom feeds by user. In my application, user’s have m…

---

## [Eager loading or Lazy loading](https://www.ruby-forum.com/t/eager-loading-or-lazy-loading/133783)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/eager-loading-or-lazy-loading/133783 "2008-04-22T15:32:01Z")

</div>

Hai… Whether ruby on rails is eager loading or lazy loading??? I think while using association in model its getting eager loading… can any one explain more???

---

## [I get updated date in wrong format using atom feed helper](https://www.ruby-forum.com/t/i-get-updated-date-in-wrong-format-using-atom-feed-helper/135368)

<div class="topic-metadata">

**Author:** [@rya](https://www.ruby-forum.com/u/rya)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/i-get-updated-date-in-wrong-format-using-atom-feed-helper/135368 "2008-04-22T14:52:16Z")

</div>

Hi! I’m new in RoR and I’m using the atom feed helper to generate an atom feed in my web page but when I try to validate it using the Feed Validation service of W3C, I get the following error: line 6, column 41: upda…

---

## [How to model relationship for a model to itself](https://www.ruby-forum.com/t/how-to-model-relationship-for-a-model-to-itself/135450)

<div class="topic-metadata">

**Author:** [@Rockydd](https://www.ruby-forum.com/u/Rockydd)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 1:39pm UTC](https://www.ruby-forum.com/t/how-to-model-relationship-for-a-model-to-itself/135450 "2008-04-22T13:39:52Z")

</div>

I have a model named User, and the mysql table is users. Every user can have many friends. of course, every friend is a user. So, it’s a relationship from user to user. how to model this? User has\_and\_belongs\_to\_may …

---

## [Deploy / maitain / devel tool survey](https://www.ruby-forum.com/t/deploy-maitain-devel-tool-survey/135429)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/deploy-maitain-devel-tool-survey/135429 "2008-04-22T13:17:55Z")

</div>

Hello. Do you know some tools to ease deploy/maitain/devel/update tasks? I know Capistrano… Are there any other tools or tips? All suggestions are welcome. rndrfero

---

## [Rendering and action controller in a view](https://www.ruby-forum.com/t/rendering-and-action-controller-in-a-view/135435)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [April 22, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/rendering-and-action-controller-in-a-view/135435 "2008-04-22T13:11:17Z")

</div>

Hi, If I’m in the view of users\_controller’s index action (index.html.erb). Can I do something like this? \<%= render :layout=\>false, :controller =\> ‘favorites’, :action =\> :show, :id =\> 1 %\> That would be awesome. …

---

## [RESTful routes: How to pass an additional value to params?!](https://www.ruby-forum.com/t/restful-routes-how-to-pass-an-additional-value-to-params/135456)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/restful-routes-how-to-pass-an-additional-value-to-params/135456 "2008-04-22T12:53:53Z")

</div>

Hi there, is it true that with RESTful routes, I can’t pass an additional value to the params hash anymore, within a link? Example: Old school: \<%= link\_to ‘New message’, :controller =\> ‘messages’, :action =\> ‘new’, …

---

## [Design question - errors and exceptions](https://www.ruby-forum.com/t/design-question-errors-and-exceptions/135423)

<div class="topic-metadata">

**Author:** [@jordelver](https://www.ruby-forum.com/u/jordelver)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/design-question-errors-and-exceptions/135423 "2008-04-22T12:36:57Z")

</div>

Hi, I hope someone can help, this is driving me mad. I’m adding different postage methods to my cart which are user selectable. A cart can have only one postage method, and a postage method can have many rates. So, …

---

## [Roole rule Engine?](https://www.ruby-forum.com/t/roole-rule-engine/197175)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/roole-rule-engine/197175 "2008-04-22T12:31:57Z")

</div>

Hi All, Any one worked on Rools rule engine.If yes pls tell me some idea that how to use this and how can i make most of it. Need your help… Thanks, Varun

---

## [Rools Rule Engine?](https://www.ruby-forum.com/t/rools-rule-engine/196647)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/rools-rule-engine/196647 "2008-04-22T12:31:27Z")

</div>

Hi All, Any one worked on Rools rule engine.If yes pls tell me some idea that how to use this and how can i make most of it. Need your help… Thanks, Varun

---

## [Will\_paginte and ajax](https://www.ruby-forum.com/t/will-paginte-and-ajax/135455)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 11:26am UTC](https://www.ruby-forum.com/t/will-paginte-and-ajax/135455 "2008-04-22T11:26:23Z")

</div>

Hi Till now we have used the rails pagination and made it ajax successfully like following in view for both Previous and Next links (the other pages in between not possible) \<%= link\_to\_remote(‘Previous’, {:url =\> {…

---

## [Login and RESTful problem](https://www.ruby-forum.com/t/login-and-restful-problem/135444)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [April 22, 2008, 10:38am UTC](https://www.ruby-forum.com/t/login-and-restful-problem/135444 "2008-04-22T10:38:32Z")

</div>

I’ve used this http://www.aidanf.net/rails\_user\_authentication\_tutorial for Authenticate before. Now I’m trying to learn RESTful. How do I make it work? When trying to go to the login I get a server error, as it tries…

---

## [Numeric (decimal) WITH precision and scale at generate scaffold time?](https://www.ruby-forum.com/t/numeric-decimal-with-precision-and-scale-at-generate-scaffold-time/135449)

<div class="topic-metadata">

**Author:** [@Tommy\_Quist](https://www.ruby-forum.com/u/Tommy_Quist)\
**Replies:** 0\
**Last updated:** [April 22, 2008, 10:16am UTC](https://www.ruby-forum.com/t/numeric-decimal-with-precision-and-scale-at-generate-scaffold-time/135449 "2008-04-22T10:16:10Z")

</div>

Hello, I was wondering if anyone knew if it is (or ever will be ) possible at all to specify things like precision and scale at generate scaffold time, and if so how. Things like price:numeric(8,2) (obviously) just …

---

## [Webistrano 1.2: deploy hangs during initial checkout](https://www.ruby-forum.com/t/webistrano-1-2-deploy-hangs-during-initial-checkout/135446)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 1\
**Last updated:** [April 22, 2008, 10:04am UTC](https://www.ruby-forum.com/t/webistrano-1-2-deploy-hangs-during-initial-checkout/135446 "2008-04-22T10:04:23Z")

</div>

I’m doing a deploy+migrate on my server using Webistrano 1.2, and the checkout is hanging. Output looks like this: \*\* loading stage recipe ‘copy\_foo\_database\_yml’ executing \`deploy:migrations’ executing \`deploy:updat…

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

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