So like many other beginners in Rails I’m following along to Michael Hartl’s tutorial. I’m nearing the end, and I’m thinking I would like to implement the ability for users (in the social network) to upload pics along with their comments and maybe even add a text editor type thing (not sure the correct term for this either)… ? Can this be accomplished through a gem, and/or is this something a little advanced for a newbie like myself? Really appreciate your feedback!
So like many other beginners in Rails I'm following along to Michael
Hartl's tutorial. I'm nearing the end, and I'm thinking I would like to
implement the ability for users (in the social network) to upload pics
along with their comments and maybe even add a text editor type thing
(not
sure the correct term for this either)... ? Can this be accomplished
through a gem, and/or is this something a little advanced for a newbie
like
myself? Really appreciate your feedback!
Text area (as in the <textarea> tag) has no support for image data. It
accepts plain text only. In order to upload images you need a <input
type="file"> along with adding the enctype="multipart/formdata"
attribute to the form tag (<form enctype="multipart/formdata" ...>).