Fixes: properly infer model name from filename, fixed #button_to helper