Solution. I was running in dev w/ bundle exec rake assets:precompile This seems to screw everything up. Clearing out the assets fix's the issue.
On Dec 15, 10:56 am, Erik Ordway <[email protected]> wrote: > Ok I have found a difference. Not that I know what it is. > Both apps are running AX 3f83b28da14654acbd9e62535902a61b25149e5d > Both apps return --- :jquery for <%=debug ActiveScaffold.js_framework > %> > > In the working test app the response is pure html and in the not > working one it is wrapped and encoded in javascript. > Working > <tr class="inline-adapter" id="as_users_2_room-nested--row"> > <td colspan="99" class="inline-adapter-cell"> > <div class="index-view rooms-view view"> > > Not working > ActiveScaffold.replace_html('as_offerings_3264_websites- > content','<table cellpadding=\"0\" cellspacing=\"0\">\n <thead>\n > <tr>\n > > I am thinking that this is the core issue but I do not have any > thoughts as to what is causing this other than that is it some obvious > small thing I missed in the upgrade. > > On Dec 15, 10:14 am, Erik Ordway <[email protected]> wrote: > > > > > > > > > That is all there. The javascript seems to be partially working in > > that clicking a link to open an nested table appends > > "&adapter=_list_inline_adapter" to the link > > > beforehttp://rails.local/websites?assoc_id=3264&association=websites&eid=of... > > > afterhttp://rails.local/websites?assoc_id=3264&association=websites&eid=of... > > > Which is the same thing that happens in the working light weight test > > app. The appropriate html is returned in the response. I am > > wondering if somehow the response in not typed correctly but in both > > apps the request and response headers are the same. I have tried > > moving the app out from behind Passenger but there is no change. > > > On Dec 15, 3:20 am, Sergio Cambra <[email protected]> wrote: > > > > On Miércoles, 14 de diciembre de 2011 18:08:26 Erik Ordway escribió: > > > > > Ok so my app has been in use for 3 or 4 years. It has used what ever > > > > the current version of AS was at the time including vhochstein for > > > > 3.0 . I have now migrated back to the mainline AS for 3.1. I did all > > > > the asset and initializer stuff and stripped out plugins. All the CSS > > > > works and even the timepicker for jquery. > > > > > What does not work is any of the inline/nested create , edit , show. > > > > If you click on them of the links to nest/related tables the spinner > > > > just spins even though the server returns the html that should have > > > > been inserted . Delete works. If I switch the actions to > > > > config.x.link.page = true they work but this does not fix editing > > > > related tables. The effects all the controllers in the app that use > > > > AS (actually that is all of them). The spinner keeps spinning and if > > > > I look at what the server returned it is the raw html that should have > > > > been inserted into the page but was not. > > > > > So I figured that I must have missed something in upgrading so I made > > > > a new simple app with Rooms and Users that are assigned to Rooms. > > > > Everything works fine. I then have gone back through both apps > > > > config's application.rb application.js application.css and found no > > > > issues. > > > > > Any thoughts? > > > > Check jquery, jquery_ujs and active_scaffold are included in source code. > > > //= require jquery > > > //= require jquery_ujs > > > //= require active_scaffold -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.
