Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

sfielder's Profile

GitHub User: sfielder

Comments by

Avatar

how do I display a controller validation error on the liquid page once a user submits a form? basically how do i rerender the liquid page with the exception as a variable in the template?

thx

Avatar

Just digging into Koala and using it to create feed posts to a page. I can successfully create a post with the below, but struggling to make the update work.

INSERT CODE SNIPPET - Works great and returns post id from fb

ruby
@page_graph.put_connections(current_tenant.fbpage_id, 'feed', 
                        :message => @post.caption,
                        :caption => @post.caption,
                        :description => @post.description, 
                        :name => @post.title,
                        :link => url_for(@post),
                        :picture => '2B(1).jpg'
                        
                        )

UPDATE CODE SNIPPET - fb returns true, but not reflecting updates on fb page when refreshed

ruby
@page_graph.put_object(@post.uid, 'feed', 
                        :message => @post.caption,
                        :caption => @post.caption,
                        :description => @post.description, 
                        :name => @post.title,
                        :link => url_for(@post),
                        :picture => 'h2B(1).jpg'
                        
                        )

Any thoughts on where I'm going wrong?

  • thanks