简单的博客应用程序/ 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