How to create a underscore template dynamically?

Scaffolding: How can I create a template similar to what Ryan Bates uses.

  • If you've ever watched Ryan Bates's railscasts then I'm sure you've witnessed his infamous template. It looks something like this: I'd like to know how he creates such a template. Basically, you can add, remove, and edit products verbatim. This provides a great way to test various gems. Albeit, he never show's how he goes about creating the basic template. You're basically thrust into the video with the template pre-made. Which is fine, as showcasing various gems is what Railscasts is about. However, I'd like to find out how I can go about creating a basic template like this from scratch. I presume that he is using scaffolding to create this basic functionality - the ability to add, remove, edit various products. I look forward to hearing from fellow rails dev's how I can go about creating a basic page like the one shown above. (dis-regard the pricing table -- I am referring to the "New product", "Edit", "Delete") Thanks.

  • Answer:

    You can download the source code for the apps he makes in the videos.

Michael Mitchell at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.