Skip to content


matenia edited this page Sep 13, 2010 · 5 revisions
Clone this wiki locally

When posting content make sure its sanitized as Tumblr allows html in the body of their posts
one quick way to do this is to pass the sanitize helper that comes with rails straight into the body element itself

post = Tumblr::Post.write(user, :type => ‘regular’, :title => ‘mytitlehere’, :body => ActionController::Base.helpers.sanitize(@myobject.mycontentfield))

This should fix random 400 errors

When retrieving your tumblr post id and saving it to your database make sure the field is a string and save it as follows
@myobject.update_attributes(:saved_tumblr_id => “#{post}”)
where the column in your database is called saved_tumblr_id

Something went wrong with that request. Please try again.