Hacker News new | ask | show | jobs
by lojic 6695 days ago
"Couldn't you write some standalone scripts to run from the commandline to insert new posts into your blog?"

As someone mentioned in the comments on that site, there's no need to write special scripts for this - using script/console does the job nicely with Rails.

  script/console
  post = BlogPost.new("title", "body", ... )
  post.save
  ^d
You're modifying the database vs. in memory objects, but when you're scaling up via multiple app server instances, it's handy to store the info in the db.
1 comments

yeah thats what I meant. Not quite the same as the article, but to similar effect.

I do appreciate the "lisp" approach though, for sure.