# Rails

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

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

---

## [Required Software Developer - Ruby on Rails](https://www.ruby-forum.com/t/required-software-developer-ruby-on-rails/117678)

<div class="topic-metadata">

**Author:** [@GatewayTechnolabs](https://www.ruby-forum.com/u/GatewayTechnolabs)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 9:09am UTC](https://www.ruby-forum.com/t/required-software-developer-ruby-on-rails/117678 "2007-10-19T09:09:07Z")

</div>

Title: Required Software Developer - Ruby on Rails Company: Gateway Technolabs Pvt. Ltd, Ahmedabad, India Location: Ahmedabad, India Skills: Ruby/Rails development Term: Fulltime Length: Fulltime Detail: Th…

---

## [Linking to restful admin controllers](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653)

<div class="topic-metadata">

**Author:** [@etikette](https://www.ruby-forum.com/u/etikette)\
**Replies:** 3\
**Last updated:** [October 19, 2007, 8:21am UTC](https://www.ruby-forum.com/t/linking-to-restful-admin-controllers/117653 "2007-10-19T08:21:20Z")

</div>

hi following the notes from DHH’s keynote at Euro RailsConf 07 ive created a restful admin controller and im wondering how i link to this using restful helpers? obviously edit\_post\_path(post) for example will no long…

---

## [Polymorphic Association?](https://www.ruby-forum.com/t/polymorphic-association/117667)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [October 19, 2007, 6:26am UTC](https://www.ruby-forum.com/t/polymorphic-association/117667 "2007-10-19T06:26:37Z")

</div>

Hi there- I’m a newbie to this board, RoR, and web development in general. So please forgive me if this is in the wrong place or if the solution is really simple… I’m trying to conceptualize the relationships betwee…

---

## [:precision =\>?](https://www.ruby-forum.com/t/precision/117665)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 2\
**Last updated:** [October 19, 2007, 1:45am UTC](https://www.ruby-forum.com/t/precision/117665 "2007-10-19T01:45:19Z")

</div>

When putting a decimal into your DB, what does the precision mean and what does scale mean? ~Jeremy

---

## [Chapter 9](https://www.ruby-forum.com/t/chapter-9/117156)

<div class="topic-metadata">

**Author:** [@arte\_fact](https://www.ruby-forum.com/u/arte_fact)\
**Replies:** 4\
**Last updated:** [October 19, 2007, 1:40am UTC](https://www.ruby-forum.com/t/chapter-9/117156 "2007-10-19T01:40:04Z")

</div>

Hello, I’m currently stunk on this issue for few days and I do not know how to get it fixed. The system always raises this error message : order is closed and here is my order.rb: class Order \< ActiveRecord::Base …

---

## [\[ANN\] Scenarios, an Alternative to Fixtures](https://www.ruby-forum.com/t/ann-scenarios-an-alternative-to-fixtures/117659)

<div class="topic-metadata">

**Author:** [@aiwilliams](https://www.ruby-forum.com/u/aiwilliams)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 12:27am UTC](https://www.ruby-forum.com/t/ann-scenarios-an-alternative-to-fixtures/117659 "2007-10-19T00:27:00Z")

</div>

Being fully aware of the work of Mr. Preston-Werner\[1\] and err.the.blog\[2\], we present to you Scenarios, a somewhat different approach\[3\] to alleviating the pain of managing table data for a Rails application under te…

---

## [Ajax and Adsense](https://www.ruby-forum.com/t/ajax-and-adsense/117657)

<div class="topic-metadata">

**Author:** [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Replies:** 0\
**Last updated:** [October 19, 2007, 12:07am UTC](https://www.ruby-forum.com/t/ajax-and-adsense/117657 "2007-10-19T00:07:42Z")

</div>

Guys, I’ve got a question on implementing Adsense with a dynamic content which uses ajax to change the content. So, let’s say I have two DIVs that I put on the same page, the first DIV contains the dynamic content wh…

---

## [In\_place\_editor\_field for select tag](https://www.ruby-forum.com/t/in-place-editor-field-for-select-tag/82648)

<div class="topic-metadata">

**Author:** [@RaW](https://www.ruby-forum.com/u/RaW)\
**Replies:** 7\
**Last updated:** [October 19, 2007, 12:00am UTC](https://www.ruby-forum.com/t/in-place-editor-field-for-select-tag/82648 "2007-10-19T00:00:41Z")

</div>

I need to have a in\_place\_edit\_field for select tag. I’ve been looking in /public/javascripts/console.js source and found Ajax.InPlaceCollectionEditor JS class which seems to be the right one I need. But the problem …

---

## ["fallback" routes](https://www.ruby-forum.com/t/fallback-routes/117650)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/fallback-routes/117650 "2007-10-18T23:53:40Z")

</div>

Hello list! Is there a way to have a “fallback” route? Like if I have one :cat,:album,:item connected to AlbumsController.show, let’s say the :cat, :album or :item were invalid so other route would try to handle it. …

---

## [Cruise control rb mailer / Action Mailer](https://www.ruby-forum.com/t/cruise-control-rb-mailer-action-mailer/117652)

<div class="topic-metadata">

**Author:** [@keynan](https://www.ruby-forum.com/u/keynan)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/cruise-control-rb-mailer-action-mailer/117652 "2007-10-18T23:11:47Z")

</div>

I am getting this error message when the mailer tries to execute TLS not available after start at /usr/lib/ruby/1.8/net/smtp.rb:680:in \`check\_response’ any one have any idea whats going on here

---

## [Translate a datetime field](https://www.ruby-forum.com/t/translate-a-datetime-field/117649)

<div class="topic-metadata">

**Author:** [@Thomas\_England](https://www.ruby-forum.com/u/Thomas_England)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/translate-a-datetime-field/117649 "2007-10-18T22:41:08Z")

</div>

In my blog. I have my created\_at colum set as datetime. How do I convert Post.created\_at to my local timezone of -11. thanks tom

---

## [In\_place\_editor\_field](https://www.ruby-forum.com/t/in-place-editor-field/117563)

<div class="topic-metadata">

**Author:** [@macsig](https://www.ruby-forum.com/u/macsig)\
**Replies:** 4\
**Last updated:** [October 18, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/in-place-editor-field/117563 "2007-10-18T22:27:14Z")

</div>

Hi guys, even if editing in place is very documented I have a issue with it and frankly speaking I feel a bit silly. I’m trying to editing the home team’s name of football schedule. Below my code class MatchControll…

---

## [Aliasing resources?](https://www.ruby-forum.com/t/aliasing-resources/117647)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/aliasing-resources/117647 "2007-10-18T22:25:25Z")

</div>

I have a resource and an associated controller called Person. I would like to generate some routes for the PersonController but call them by another name, like Registration, so that I can access the PersonController r…

---

## [Deploying for the real world. I need a plan!](https://www.ruby-forum.com/t/deploying-for-the-real-world-i-need-a-plan/117641)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/deploying-for-the-real-world-i-need-a-plan/117641 "2007-10-18T22:18:18Z")

</div>

I want to develop with Ruby and Rails, and have gone throught the Prag Prog and Agile Web Dev on my local setup with Netbeans and Instant Rails with success. What are the costs involved in running your own server? (e.…

---

## [Edge Rails - Do I need to remove the sessions table?](https://www.ruby-forum.com/t/edge-rails-do-i-need-to-remove-the-sessions-table/117618)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 3\
**Last updated:** [October 18, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/edge-rails-do-i-need-to-remove-the-sessions-table/117618 "2007-10-18T21:59:00Z")

</div>

I just upgraded to rails 1.2.5 so if I’m correct, it uses cookie based session storage. So after placing this in my config/enviroment: config.action\_controller.session = { :session\_key =\> ‘\_myapp\_session’, :secret =\> …

---

## [\[ANN\] "Ruby on Rails Beyond the Basics" video training](https://www.ruby-forum.com/t/ann-ruby-on-rails-beyond-the-basics-video-training/117643)

<div class="topic-metadata">

**Author:** [@kschell](https://www.ruby-forum.com/u/kschell)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 9:47pm UTC](https://www.ruby-forum.com/t/ann-ruby-on-rails-beyond-the-basics-video-training/117643 "2007-10-18T21:47:15Z")

</div>

Rails friends, I’m happy to announce that my latest video training, “Ruby on Rails Beyond the Basics”, has been released on the lynda.com Online Training Library. http://movielibrary.lynda.com/html/modPage.asp?ID=395 …

---

## [Can all methods be made to fit REST?](https://www.ruby-forum.com/t/can-all-methods-be-made-to-fit-rest/117628)

<div class="topic-metadata">

**Author:** [@ant](https://www.ruby-forum.com/u/ant)\
**Replies:** 6\
**Last updated:** [October 18, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/can-all-methods-be-made-to-fit-rest/117628 "2007-10-18T21:05:36Z")

</div>

I know that if you listen to DHH and similar REST evangelists that they would have you believe that all methods can be reduced to the seven that fit the REST conventions (create, show, update, destroy, index, new, and…

---

## ['rake routes' gives error](https://www.ruby-forum.com/t/rake-routes-gives-error/117634)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/rake-routes-gives-error/117634 "2007-10-18T20:53:16Z")

</div>

when I run ‘rake routes’ I get the following error: rake aborted! undefined method \`session=’ for ActionController::Base:Class I believe the new cookie based sessions in environment.rb are causing the error: config.…

---

## [Sql caching](https://www.ruby-forum.com/t/sql-caching/117636)

<div class="topic-metadata">

**Author:** [@wheels](https://www.ruby-forum.com/u/wheels)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/sql-caching/117636 "2007-10-18T20:50:55Z")

</div>

If I have something like this defined in a helper: @categories = Category.find(:all, :order =\> “name”) This table does not get changed often at all. Is there a way to cache the results so it is only called once per da…

---

## [Mongrel\_cluster and sudo to new user/group](https://www.ruby-forum.com/t/mongrel-cluster-and-sudo-to-new-user-group/117610)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-and-sudo-to-new-user-group/117610 "2007-10-18T20:31:36Z")

</div>

I’m having trouble getting my mongrel\_cluster to start up as a specified user/group. If I don’t have a user/group specified in mongrel\_cluster.yml, I can start up my app with ‘mongrel\_rails cluster::start’, no problem…

---

## [Validates\_format\_of date](https://www.ruby-forum.com/t/validates-format-of-date/117633)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/validates-format-of-date/117633 "2007-10-18T20:12:47Z")

</div>

Can someone tell me why this returns ‘dob is invalid’ when dob is ‘01/01/1969’? validates\_format\_of :dob, :with =\> /\[0-9\]{2}.\[0-9\]{2}.\[0-9\] {4}/, :message =\> ‘is invalid’ I’m trying to validate a date entred into a f…

---

## [\[ANN\] ARID 0.4 Released](https://www.ruby-forum.com/t/ann-arid-0-4-released/117632)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/ann-arid-0-4-released/117632 "2007-10-18T20:07:30Z")

</div>

I am happy to announce the release of ARID 0.4. ARID stands for Active Resource Integration DSL. It provides a means for easily writing Integration tests for conventional RESTful Rails applications. For instance, t…

---

## [Demonstration; demo or die](https://www.ruby-forum.com/t/demonstration-demo-or-die/117622)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/demonstration-demo-or-die/117622 "2007-10-18T20:01:04Z")

</div>

I like these fixtures files I am writing for the testing units. That makes a lot of sense to me. As I get to about the 60% point in my little web-application-to-learn- rails, I have started to do little demonstrations…

---

## [How does form validation works on restful controllers](https://www.ruby-forum.com/t/how-does-form-validation-works-on-restful-controllers/117600)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [October 18, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/how-does-form-validation-works-on-restful-controllers/117600 "2007-10-18T19:19:31Z")

</div>

Hi all, Let’s assume I have a calendar show view (calendar controller). On that view you can view a calendar with all its events. You can also add, edit and delete events (via the events controller) on that same view…

---

## [How to reflect database change to model](https://www.ruby-forum.com/t/how-to-reflect-database-change-to-model/196494)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/how-to-reflect-database-change-to-model/196494 "2007-10-18T18:47:21Z")

</div>

Hi, all When database schema changed dynamically, like you add new column, or create new table. The model will not reflect on those changes. How does active\_record handle this situation? Which class or method I need…

---

## [How do Least Privilege Security Practices?](https://www.ruby-forum.com/t/how-do-least-privilege-security-practices/117613)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [October 18, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/how-do-least-privilege-security-practices/117613 "2007-10-18T18:35:03Z")

</div>

Wondering how the practice of running code under the philosophy of least privilege works inside Rails – or perhaps its a Ruby question. (New to both). I’m used to a language called Lasso which has a security layer bet…

---

## [REST help](https://www.ruby-forum.com/t/rest-help/117619)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/rest-help/117619 "2007-10-18T18:31:46Z")

</div>

Hi all, I am trying to build a RESTful shopping cart and I have hit a small wall, but before I get to that let me explain what I have done thus far. I have two RESTful controllers, CartController and CartItemsControll…

---

## [Getting the through items from a has\_many :through :uniq relationship](https://www.ruby-forum.com/t/getting-the-through-items-from-a-has-many-through-uniq-relationship/117617)

<div class="topic-metadata">

**Author:** [@Andrew\_Grimm](https://www.ruby-forum.com/u/Andrew_Grimm)\
**Replies:** 0\
**Last updated:** [October 18, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/getting-the-through-items-from-a-has-many-through-uniq-relationship/117617 "2007-10-18T18:25:06Z")

</div>

Getting the through items from a has\_many :through :uniq relationship In a nutshell, I have been using the has\_many :through :uniq relationship, and I want a DRY way to list the join model objects. Currently, my objec…

---

## [Remember me functionality](https://www.ruby-forum.com/t/remember-me-functionality/196493)

<div class="topic-metadata">

**Author:** [@ruchita](https://www.ruby-forum.com/u/ruchita)\
**Replies:** 2\
**Last updated:** [October 18, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/remember-me-functionality/196493 "2007-10-18T18:07:14Z")

</div>

Hi all, I am trying to implement the functionality of Remember Me. The requirement is that once the user closes the browser after checking the remember me check box, it should return to the login page with username a…

---

## [Dynamic named routes in the view](https://www.ruby-forum.com/t/dynamic-named-routes-in-the-view/117430)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 3\
**Last updated:** [October 18, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/dynamic-named-routes-in-the-view/117430 "2007-10-18T17:30:01Z")

</div>

I need to dynamically render links to different routes in the view based on a parameter. Currently, this code below is functioning fine. But it makes use of url\_for, which is a deprecated API call. Are there better wa…

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

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