Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

404pnf opened this issue Jun 15, 2012 · 1 comment

Comments

@404pnf
Copy link

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
Copy link
Author

404pnf commented Mar 14, 2016

fixed a long time ago.

@404pnf 404pnf closed this as completed Mar 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant