Tableless model in rails 3.1

前端 未结 6 1670
小蘑菇
小蘑菇 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:31

    For Rails 3.2 there is the activerecord-tableless gem. Its a gem to create tableless ActiveRecord models, so it has support for validations, associations, types.

    When you are using the recommended way to do it in Rails 3.x there is no support for association nor types.

提交回复
热议问题