[Facebooker-talk] fb_comments and fb_board not working
Zhao Lu
zhao.lu.us at gmail.com
Thu Sep 4 01:06:52 EDT 2008
I haven't tried fb_board but I did get fb_comment working. The
instruction in the beta _book_ wasn't quite
complete and I had to look at the source code for chapter 8 to get
things working. I had the same problem
with you (or at least I think it's the same problem). Basically I
type some comment in the text area and click
submit and nothing 'happens'. When I look into the database table the
new comment is there so what I was
missing was to pull the comments out from the table and display them.
My code structure is pretty much the same as karate poke. I have this
code snippet in my view:
<% form_for Comment.new do %>
Comment on gifts: <br />
<%= text_area_tag :body %> <br />
<%= hidden_field_tag :comment_receiver, @user.id %>
<%= submit_tag 'Post' %>
<% end %>
<div id="all_comments">
<%= render :partial=>"comments/comments" %>
</div>
I was missing the <div>...</div> portion before. Do you have that and
the _comments.erb partial in place?
Zhao
On Wed, Sep 3, 2008 at 9:37 PM, Allen Walker <auswalk at gmail.com> wrote:
> It would sure be nice if these would work.
>
> I have the following in my home controller:
>
> <%= fb_board("golf_board1") %>
>
> it renders:
>
> <fb:board xid="golf_board1" />
>
> The discussion board shows on my page, but when I click start new topic, it
> reloads the previous URL (default callback) and continues to display "Start
> new topic".
>
> fb_comments does the same thing.
>
>
> Btw my URL is this after clicking "start new topic"
>
> http://apps.new.facebook.com/myapp/?fbapp_ec=751
>
> thanks
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
--
Zhao
More information about the Facebooker-talk
mailing list