Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
matenia edited this page Sep 13, 2010 · 5 revisions

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

Clone this wiki locally