سؤال

When you create scaffolds in Rails, by default, files that end in .json.jbuilder get added to the View. Are these files necessary to keep (and keep updating as you add columns to model's table) or can they be deleted?

هل كانت مفيدة؟

المحلول

If you're not using jbuilder to generate JSON outputs they are not necessary and you should delete them.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top