CultivateLabs / storytime

Storytime is a Rails 4+ CMS and blogging engine, with a core focus on content. It is built and maintained by @cultivatelabs
MIT License
752 stars 81 forks source link

Custom Fields #160

Closed danielmag closed 9 years ago

danielmag commented 9 years ago

In the wiki section about custom fields you say we can have custom fields by adding them to the VideoPost. I tried this but it did not work, because I think storytime only uses it's post table and not the host's VideoPost table.

Do I need to add the columns to the storytime post table?

Thank you!

dvanderbeek commented 9 years ago

Yep, you need to add the fields to the storytime posts table because your custom VideoPost model should inherit from Storytime::BlogPost and they will share the same table in the database.

danielmag commented 9 years ago

In the wiki it seemed like it was meant to be added to my model.

Thank you!

dvanderbeek commented 9 years ago

No problem. I just updated the wiki to clarify this a bit.