400 error when submitting tumblr post (ruby on rails)
- by Matenia Rossides
I am having a bit of an issue with getting tumblr working within a rails app.
This is the snippet of code which results in a 400 error (meaning that there was an incorrect parameter)
@postcontent = @post.content.gsub(/<\/?[^>]*>/, "")
post = Tumblr::Post.create(:email => 'valid@email', :password => 'mypassword', :type => 'video', :embed
= @post.video_html, :caption = @postcontent)
I have checked the API docs and checked my code and code content being rendered, and it still does not want to work.
The funny thing is that it worked previously. It was working about a week ago. Has something changed with tumblr?