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

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


On 11/15/06, Dark A. [email protected] wrote:

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 ?

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 %>

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