簡單的博客應用程序/ nobrainer寶石導軌5和RethinkDB錯誤存儲數據在軌道/ Rethinkdb
模型
class Post
include NoBrainer::Document
include NoBrainer::Document::Timestamps
field :title, :type => String
field :body, :type => Text
控制器
def post_params
params.require(:post).permit(:title, :body)
end
正常工作與導軌4相同的在導軌5錯誤:
一些想法??
To assign attributes, please pass a hash instead of `ActionController::Parameters'
Thanks..for修復.. – Werner