spree/spree — Issue #1191: Add a Scope to a Product Group fails with ssl_required
Author: edave
Created: 2012-02-24 21:01:26+00:00
State: open

I extended the Admin BaseController to require ssl across the entire admin site:

```
Spree::Admin::BaseController.class_eval do
ssl_required
end
```

Unfortunately, this results in a problem with trying to add scopes to Product Groups. The form_tag in

admin/product_groups/edit.html.erb

appears to use an absolute http reference instead of https. This results in the AJAX failing because the request receives a 302 header.

I realize this is more future looking, but it'd be nice to support having SSL required across the entire admin site. Thanks!