Forum: Ruby-Forum.com Empty submit can add a error POST,how can do?

0f5eae183bed6d6a18eede49344cd8fe?d=identicon&s=25 John Gao (softf5ajivanet)
on 2006-05-24 05:02
when I test rforum, i do a /topic/new .
I have not type anything but submit empty 'Subject' and empty 'Text'.
Then return information :"Please enter a longer subject" ..."Please
enter a longer text.".

now, do /forum/1  then get:
---------------------------------
TypeError in Forum#forum
Showing app/views/forum/forum.rhtml where line #22 raised:

no implicit conversion to float from nil

Extracted source (around line #22):

19:         </td>
20:         <td class="replies"><%=h (topic.post_counter - 1) %></td>
21:         <td class="last-post">
22:           <%=h format_relative_time(topic.last_post_created_at) %>
23:           <%=l :by %> <%=h topic.last_post_author %>
24:         </td>
25:       </tr>
---------------------------------

I found there has added a topic in datebase
this topic have null last_post_created_at  last_post_user_id
last_post_author  .

please help me.How can I do?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.