Component like behavior with nested restful routes in beast

I’m using beast, which has routes that look like this:

map.resources :forums do |forum|
forum.resources :topics do |topic|
topic.resources :posts, :monitorships
end
end

I want an action from another controller to display the content that
would be displayed if I navigated to, for example, /forums/1/topics/2 ,
along with other content not normally displayed by that action. Is this
possible? I tried using render_component, but some of the instance
variables in TopicsController.show could not be set properly.

Thanks
Daniel

Anybody?

I use a helper to replace render component;
not sure is it helpful for you.

def render_remote(url, view = ‘remote’)
options = {}
options[:update] = view
options[:url] = url
options[:method] = :get
render :inline => %{

Loading…

#{remote_function(options)}}
end

herngwah

On Jan 13, 4:27 am, Daniel H.