I register a user in with an Ajax request
after saving a user, and setting the flash[:notice] = "welcome
message", I perform the rendering
format.js {
render :update do |page|
page << "window.parent.Shadowbox.close();"
#page.reload (?)
page.redirect_to root_url)
end
}
in my home page view, I have :
<div id="content">
<% if flash[:notice] %><div class="notice" id="flash"><%= flash
[:notice] %></div><% end %>
but when displayed the notice doesn't appear ...
I need to perform manually a page reload in the Firefox browser to see
the notice displayed...
iI tried to insert a page.reload in the js rendering but it does not
solve the problem...
what are you advices ?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---