5 ms·
Huh? I have seen the same done with rails over and over. Well kind of.
by michaelneale 19y ago
Huh? I have seen the same done with rails over and over. Well kind of.
- cstejerean 19y agoReally? You've seen folks running SSH into a server and firing up irb to add a blog post?
- mattjones 19y agoAs a primary interface for blogging, perhaps not. But using irb and your ORM as an admin interface to your database? Absolutely.
- lojic 19y 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.
- michaelneale 19y agoyeah thats what I meant. Not quite the same as the article, but to similar effect. I do appreciate the "lisp" approach though, for sure.