javascript - modal window in rails after create action? -


so, want show modal message after create event or user in website, or after editing something, far know how use flash show small messages, i'd know how modal windows, , show after method in controller used, flash message, in modal window.

i've looked matter , have found format.html , format.js seem trick i'm kinda lost on how use them.

you can use instance variable @objectcreated , access in view.erb file, ,

<% if @objectcreated %> insert html modal <% end %>.

then assuming page refreshes use dom loaded javascript function open modal.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -