そのため、登録を実行するためのセットアップを考案しました。登録後、ユーザーはプロファイル #new にリダイレクトされますが、プロファイルを current_user id に添付できません
実際には、まったく機能しません。これが私のprofiles_controller.rbにあるものです
# POST /profiles
def create @profile = current_user.Profile.new(params[:profile])
respond_to do |format|
if @profile.save
format.html { redirect_to(@profile, :notice => 'Profile was successfully created.') }
else
format.html { render :action => "new" }
end
end
終わり
未定義のメソッド `Profile' につながる #