comfy/comfortable-mexican-sofa — Issue #159: app_layouts_for_select should return layouts without .erb handler (for Rails-3-2)
Author: holli
Created: 2012-03-08 13:24:14+00:00
State: open

I'm updating to rails 3.2 and got one weird deprecation warning

```
DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. (called from realtime at ....)
```

After some searching I noticed that Comfy is giving whole layout file name. So e.g. "main.html.erb" instead of "main".

This was result that in cms-admin when choosing application layout for layout-model, the options are filenames. Easiest fix would be to add options only include filenames without the extension.

So something like `filename.split(".").first` to https://github.com/comfy/comfortable-mexican-sofa/blob/master/app/models/cms/layout.rb#L51