Which ajax function do I need - updating a div when user is logged in ?

The part of the user logging in is all set up. I want to be able to update a div with a menu, based on the type of user (acl) who is logged in. Not sure which ajax function to use ?

I’m thinking it wouldn’t work on the sign in form, but more on the success of the sign in.

Stuart

Set it up like this but not rendering , just spitting out the text of the js:

controller: unless current_user.id == 0 render :update do |page| page.insert_html :bottom, ‘subnav’, :partial => ‘navigation’ end end

navigation partial: <%= javascript_include_tag :defaults %>

<% if @current_user_level == 1 %>

  • ........................
  • # left out the menu options for this email
<% end %>