エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
My First Blog [Merb Wiki]
In app/models/post.rb add the folowing: class Post ... snipp ... has n, :comments end and in app/... In app/models/post.rb add the folowing: class Post ... snipp ... has n, :comments end and in app/models/comment.rb add: class Comment ... snipp ... belongs_to :post end Edit new.html.haml to look like this: = error_messages_for :post = form_for(@post, :action => url(:posts) ) do = partial :form %p= submit "Create" = link_to 'Back', url(:posts) Edit edit.html.haml to look like this: = error_message
2009/04/22 リンク