Displaying 2 results from an estimated 2 matches for "blog_body".
2006 Mar 31
4
How to have a form within a form?
Say I am building a blogging platform, and I want to allow users to be
able to add an avatar without leaving the page, when they''re writing a
post. I need the avatar information to be included in the form for the
post. So for example, after a user adds a new avatar while writing a
new blog post, it would be available to be selected as the avatar to be
used for that post. What is
2006 Sep 07
6
form_for - Child object - how to set parent id
...entered into that form. Here is the rhtml for the list:
<% for blog in @blogs %>
<span class="blog_header"><%=h blog.title %></span>
<span class="blog_date"><%=h blog.date_entered.to_s(:long) %></span>
<span class="blog_body"><%=h blog.body %></span>
<div class="blog_comments">
<span class="blog_comments_count"><%=h
pluralize(blog.comments.size,"comments") %></h2>
<% for comment in blog.comments %>
<div c...