Need Rails 2.3.5 Query Code based on Below Models and Tables

Hello,

Below are my Models and Tables/Migrations and I want Query Code based on them

Model: FinanceFeeCategory
Table: finance_fee_categories
Fields: id,name,batch_id

Model: FinanceFeeParticular
Table: finance_fee_particulars
Fields: id,finance_fee_category_id,student_category_id,admission_no,batch_id, due_date

Model: Batch
Table: batches
Fields: id, name

Relationships:

class FinanceFeeCategory < ActiveRecord::Base
belongs_to :batch
belongs_to :student

If you read the Rails Guides you will find much useful information. However I suggest that first you work right through a good tutorial such as railstutorial.org (which is free to use online) which will show you the basics of Rails. Then you will be able to answer such questions yourself.

Colin