turingschool / curriculum

Turing's main repository of tutorials and projects
385 stars 502 forks source link

190120SU2309 updated multipart syntax & deleted broken link #1256

Open ivanscdo opened 5 years ago

ivanscdo commented 5 years ago

<%= form_for(@article, html: {multipart: true}) do |f| %> gave syntax error. changed to <%= form_for @article, :html => {:multipart => true} do |f| %> based on Alston's answer at https://stackoverflow.com/questions/10526641/form-for-with-multipart-true-spits-out/10526674