You must declare a has_many :categories in the Post model and a
belongs_to :post in the Category model (if the category table has a
post_id column, if not keep reading). If you don't do that, you need
to create a categories_posts table with two columns: category_id and a
post_id.
Im new to Ror, i want to do some userful website can u tell me ur
advice and wat steps i should to take basically in Ruby on Rails..??
then im trying to understand tat ( models, controller, action ) it
confusssed..
pls help me..
You can read the Agile Web Development With Rails (http://
www.pragprog.com/titles/rails3), is a very good book. It explains step
by step the framework and a very common (but usefull) workflow.