Categories: how do I do?

Posted by pat 536 days ago

MarsEdit retrieves categories that you can assign to your posts from the server. There are no way to create them on the client. But Typo does not have any category screation screen. Hey, this is a Rails app! Let’s see what rails can do for me

ruby script/generate controller Category exists app/controllers/ exists app/helpers/ create app/views/category exists test/functional/ create app/controllers/category_controller.rb create test/functional/category_controller_test.rb create app/helpers/category_helper.rb Then vi app/controllers/category_controller.rb add one line: scaffold :category like this: class CategoryController < ApplicationController scaffold :category end

Now I have list and new autogenerated screens to manage categories: no security there yet though, will do that tomorrow.

I used the new screens to create 2 categories, refreshed categories in MarsEdit, and am now going to categorize this post in the new ruby and typo categories: neato!

Oh Oh, not so easy! trying to post I get an error, and looking at the XML-RPC console I get:

XML-RPC reply received: 2005-03-24 17:57:33 +0100 URL: http://blog.chanezon.com/backend/xmlrpc Method name: metaWeblog.newPost Status code: 500 Succeeded: NO --Download Error-- Response text: Application error (Apache) Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html

Will look into that tomorrow. In the meantime, let’s post this without any category.

Comments

  1. jakarikukan said 452 days later:
    christine levrette anal X@X ecoliere baiser bukkake X@X porn ejaculer plus X@X perverse blonde habile X@X trihotos ikones X@X trihotos ikonidio X@X trihotos ikonidia X@X trihotos porno X@X freskos anigontas X@X freskos kano banio X@X freskos striptiz X@X freskos gelastos X@X

Trackbacks

Use the following link to trackback from your own site:
http://blog.chanezon.com/articles/trackback/5

(leave url »)