can't set post[slug] with curl post #85

Closed
404pnf opened this Issue Jun 15, 2012 · 1 comment

Comments

Projects
None yet
1 participant

404pnf commented Jun 15, 2012

using curb for migraton

I am using curb to migrate posts to obtvse.

But I can't set slug.

c = Curl::Easy.http_post("http://username:password@0.0.0.0:3000/posts",
                         Curl::PostField.content('post[title]', 'title from curb'),
                         Curl::PostField.content('post[content]', 'content-crub'),
                         Curl::PostField.content('post[slug]', "this-is-slug"),
                         Curl::PostField.content('post[url]', ''),
                         Curl::PostField.content('post[draft]', '0'))

Expected slug: this-is-slug

Actual slug: title-from-curb

Something extra: How to set created time of a post?

OK, I see it's done but not in the master branch at the moment
ref: /obtvse/issues/69

404pnf commented Mar 14, 2016

fixed a long time ago.

@404pnf 404pnf closed this Mar 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment