using this tutorial
http://railscasts.com/episodes/57-create-model-through-text-field
need to make it work in my app, was on rails 3.0.7 and it worked fine,
ok, just for others if they will get into this stupid things as I did, don't forget to have the category.rb in the app/models..
class Category < ActiveRecord::Base ... end