In my app I have dashboard part where all major function will perform,
besides that I have few scaffolds (question, performance etc) which I
want to display in that dashboard. I'm little confused what will the
best practice of doing this.
1) Make partial and then render that partial
2) By using content_for and then yield it
It sounds silly but I have little confusing in above two points too.
If I choose first option then how do I move from one scaffold to
another (dashboard UI / content remain unchanged only scaffold part
I did experiment with second only but it works only in
application.html.erb instead of any other view.
Please guide me what should I do to re-factor my problem instead of
writing same code again and again.