controller.rb
if @object.save
Post.method_name(@object)
end
post.rb
def self.method_name(object)
post_id = 1
p = Post.new
p.post_id = post_id
p.save
end
実行するPost.method_name(@object)
と、エラーも表示されないのに、テーブルに追加された新しい投稿が表示されません...