Hi I have a post and a category model br class Post lt; ActiveRecord::Base br has_and_belongs_to_many :categories br end br class Category lt; ActiveRecord::Base br has_and_belongs_to_many osts br end br I created join table migration files br Now I wanna create category while creating post I mean user can choose br category or add a new category to this post how can i imlement this?