{"author_name":"dev-actindi","author_url":"https://blog.hatena.ne.jp/dev-actindi/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"change \u30de\u30c3\u30c1\u30e3\u306e\u6319\u52d5\u3092\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u3044\u306a\u304f\u3066\u3064\u307e\u3065\u304d\u307e\u3057\u305f\u3002 class User < ActiveRecord::Base has_many :blogs end class Blog < ActiveRecord::Base belongs_to :user end class UsersController < ApplicationController def index @user = User.new(name: 'popo') @user.save b = Blog.new(title: 'mudotaosenai', user_id: @user.id) b.save\u2026","title":"rspec \u306e change \u30de\u30c3\u30c1\u30e3\u3067 assigns \u304c nil \u306b\u306a\u308b","published":"2016-01-08 18:53:55","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.actindi.net%2F2016%2F01%2F08%2F3661235635\" title=\"rspec \u306e change \u30de\u30c3\u30c1\u30e3\u3067 assigns \u304c nil \u306b\u306a\u308b - \u30a2\u30af\u30c8\u30a4\u30f3\u30c7\u30a3\u958b\u767a\u8005\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://tech.actindi.net/2016/01/08/3661235635","blog_title":"\u30a2\u30af\u30c8\u30a4\u30f3\u30c7\u30a3\u958b\u767a\u8005\u30d6\u30ed\u30b0","image_url":null,"categories":["namikata","Rspec"],"type":"rich","blog_url":"https://tech.actindi.net/","version":"1.0","height":"190","width":"100%"}