Custom Fields

I have an application where I want the ability to customize a blog post
with custom fields.

The custom fields come in 2 types , global and user.

global custom fields should appear on EVERY initial blog post, and the
user ones can be added optionally.

At this point, I have for the post model a has_many:custom_fields, but I
have no idea how to implement the ability to have an interface where the
custom fields always display (along with their values), and any custom
user fields that have since been associated with the post.

Any ideas?