シンプルなブログアプリ/ nobrainer宝石レール5とRethinkDBエラーデータを記憶するのRails/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
はRailsの5エラーでRailsの同じ4と正常に動作します:
いくつかのアイデア??
はTo assign attributes, please pass a hash instead of `ActionController::Parameters'
ありがとうございます。 – Werner