# \[ANN\] Inferred Routes plugin for Rails 2.0

**URL:** <https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254>\
**Category:** Rails\
**Created:** [April 20, 2008, 12:52am UTC](https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254 "2008-04-20T00:52:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_ASBlack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Post date:** [April 20, 2008, 12:52am UTC](https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254/1 "2008-04-20T00:52:14Z")

</div>

Hi everyone –

I’ve updated my Inferred Routes plugin for Rails 2.0. The plugin,  
which is somewhat experimental, lets you do this:

collection\_item\_path(@item)

instead of:

collection\_item\_path(@item.collection, @item)

and similarly with other nested routes. Basically, the idea is to  
prevent you from having to type the whole drill-down of objects.

There are limitations to the plugin – in particular, it only knows  
about very vanilla, default association and route naming, and it  
doesn’t work with form\_for. But if you’d like to save some typing of  
easily inferred objects, you might like it (or want to improve it or  
suggest improvements).

You can get Inferred Routes at:

[http://www.risleydale.net/svn/plugins/inferred\_routes](http://www.risleydale.net/svn/plugins/inferred_routes)

David

–  
Rails training from David A. Black and Ruby Power and Light:  
INTRO TO RAILS June 9-12 Berlin  
ADVANCING WITH RAILS June 16-19 Berlin  
INTRO TO RAILS June 24-27 London (Skills Matter)  
See [http://www.rubypal.com](http://www.rubypal.com) for details and updates!

---

<div class="post-metadata">

**Author:** ![David\_ASBlack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b4bc9f/32.png) [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Post date:** [April 20, 2008, 9:32am UTC](https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254/2 "2008-04-20T09:32:30Z")

</div>

Those of us who have nested resources 4-5 levels deep thank you. 😉

–Jeremy

On Sat, Apr 19, 2008 at 6:51 PM, David A. Black [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> collection\_item\_path(@item.collection, @item)  
> You can get Inferred Routes at:  
> INTRO TO RAILS June 24-27 London (Skills Matter)  
> See [http://www.rubypal.com](http://www.rubypal.com) for details and updates!
> 
> >

–  
[http://jeremymcanally.com/](http://jeremymcanally.com/)  
[http://entp.com](http://entp.com)

Read my books:  
Ruby in Practice ([Ruby in Practice](http://manning.com/mcanally/))  
My free Ruby e-book ([http://humblelittlerubybook.com/](http://humblelittlerubybook.com/))

Or, my blogs:

> **[Site not found · DreamHost](http://mrneighborly.com)**
>
> The owner of this domain has not yet uploaded their website.

[http://rubyinpractice.com](http://rubyinpractice.com)
