Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2014-07-23から1日間の記事一覧

strong_parameterで安全にparamを渡す

carrierwaveの自動生成スクリプトをみてたらこんな記述が... # Never trust parameters from the scary internet, only allow the white list through. def picture_params params.require(:picture).permit(:image) end これはstrong_parameterという奴で、…