Railtie working

* Also fixed config#name_attributes