Tableless model in rails 3.1

前端 未结 6 1669
小蘑菇
小蘑菇 2021-02-04 17:04

Looks like this method doesn\'t work anymore in rails 3.1. So, does someone have a working solution?

Actually, I\'ve found this gist. It solves problems with colum

6条回答
  •  失恋的感觉
    2021-02-04 17:34

    You should create your own model class and mix in the parts of ActiveModel (for example, validations) that you require. This blog post from Yehuda Katz has the details.

提交回复
热议问题