In addition to this, if possible, I would like the application to know
whether to execute the lines in the .rjs file or display a warning by
evaluating flash[:warning].

So, if I have a form in which you can add an object, I would
automatically want to do:

  page.insert_html :bottom, :object_list, :partial => @object #only
this line would actually be in the .rjs file
  page.replace_html :notice, flash[:notice]
  flash.discard

every time it actually does something and:

  page.replace_html :notice, flash[:warning]
  flash.discard

every time an error occurs.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to