On Friday, October 23, 2015 at 6:54:36 AM UTC-4, Cláudio Forain wrote: > > Yes, it fails. But if I open on another tab, it renders the AS table, but > with broken CSS. > > Anyway, as it turns out, the bootstrap drop_down makes an ajax request to > the page, which seems to prevent events like page onload from being > triggered. >
Are you using turbolinks? It is on by default in recent versions of rails. It will automagically turn links into ajax requests and replace the page content, to avoid sending requests for all the resources (javascripts, css, etc). See this stackoverflow.com answer for ideas on how to reliably execute javascript on page load: http://stackoverflow.com/questions/18770517/rails-4-how-to-use-document-ready-with-turbo-links Jim Crate -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
