railsのフォーム

<h1>新規投稿ページ</h1>

<form action="/main" method="post">
  <input type="text" name="content">
  <input type="submit" value="投稿する">
</form>

 

https://tech-master.s3.amazonaws.com/uploads/curriculums//dac47a522f552b454bfef12d087035af.png

type 用途例
type="text" 1行テキストボックス
type="password" パスワード入力ボックス(入力したテキストがアスタリスクなどに置き換えて表示される)
type="checkbox" チェックボックス(複数選択可能)
type="radio" ラジオボタン(複数の中から一つしか選択できない)
type="submit" 送信ボタン