primary.item :account, 'Account', accounts_path do |account|
account.item :profile, 'Profile', accounts_profile_path
account.item :letters, 'Letters', accounts_letters_path
account.item :payment_methods, 'Payment Methods', '/accounts/payment-methods'
account.item :pending, 'Pending', accounts_pending_path
account.item :cancel, 'Cancel', accounts_cancel_path, :unless => Proc.new { @account.blank? || !@account.is_cancelled? }
account.item :refund, 'Refund', accounts_refund_path, :unless => Proc.new { @account.blank? || !@account.is_cancelled? }
end
When I simply click on the "Account" nav item, the subnav loads properly. I also have a search that lists accounts into a table and POSTs to the Account (accounts#overview) page. The reason for this is because I need to store the account id of the selected account in a session variable. Do you have any idea why the subnav would not load when POST is used?