I am playing around with tabnav plugin http://blog.seesaw.it/articles/2006/07/23/the-easiest-way-to-add-tabbed-navigation-to-your-rails-app
The methodology of this plugin has a separate model and controller for each level of tabs (and I am planning on nesting the tabs). This makes it impossible to use a standard instance variable - for example...
clients_tabnav model sets the tabs in this fashion... class ClientsTabnav < Tabnav::Base
include Reloadable;
add_tab do named 'General Info' links_to :controller => 'clients', :action => 'edit_general_info' 'edit_general_info' end
add_tab do named 'Personal Info' links_to :controller => 'clients', :action => 'edit_personal_info' 'edit_personal_info' end
and if I were to add ':id => @client.id to the links_to line, @client.id means nothing to this controller but it obviously works in the same view that is rendered from one of those 'actions' above. I can push the value of @client.id into the session hash but I can see that is going to get ugly real quick so I'm wondering if there is a way I can link the ClientsTabnav Class into the Clients Class so that the @client instance variable works?