If a use a basic
in application layout, everything is working...
BUT I wanted to load AS content only in the admin layout for better performance. So I did this:
class Admin::AdminController < ApplicationController
<% content_for :other_stylesheets_and_js do %>
<%= active_scaffold_includes %>
<%= stylesheet_link_tag 'admin'%>
<% end %>
<%= render :file => 'layouts/application' %>
and layout Application:
<%= yield :other_stylesheets_and_js %>
But using this configuration made some AS actions not working:
for search and sort columns, the loader appear, but the list isn't refreshed. When I reload the page, then the list appear filtered or sorted.
Which rails version do you use?
Do you use prototype or jquery?
Oups excuse the lack of precisions:
Rails 3.0.9 & JQuery
jquery does not use activescaffold_includes, please take a look at an example app generated by one_step_activescaffold to see necessary includes for jquery