[Fwd: named_paths in non AR/AC class]


-------- Original Message --------
Subject: named_paths in non AR/AC class
Date: Thu, 23 Nov 2006 19:51:35 +0000
From: Chris T [email protected]
Reply-To: [email protected]
To: [email protected]

I’ve got a Sidebar class which handles the generating of various
sidebars, and I’d like to be able to insert a named path as one of its
attributes (each sidebar is fed into the sidebar partial, so the feeds
sidebar might have the Sidebar#more_info_link pointing at the RESTful
resource for editing/managing the users feeds.

Can anyone point me in the direction of how to include the
edit_feed_path (for example) method in the Sidebar class…


On 11/24/06, Chris T [email protected] wrote:


Include the Sidebar into the controller where you need it, or the
ApplicationController if you need it across the app. Named routes
depend upon the controller state, so you can’t easily include them in
other classes. You want to do the opposite - include Sidebar into the

  • rob

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs