From the course: Code Clinic: Ruby

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Creating an ERB template

Creating an ERB template

From the course: Code Clinic: Ruby

Start my 1-month free trial

Creating an ERB template

- We've already put primitive ERB processing in place. In this movie, we'll create the actual template that we wanna use, and insert ERB tags as placeholders for dynamic data. We're gonna base our dynamic template off of the finished html file that's provided in the Exercise Files, graphic-design.htm. I'm gonna drag that file into Firefox so we can take a look at it. The reason why we wanna use this as a starting point is this already has lots of design in it. It has lots of images, it has css, and we wanna keep all of that. What we wanna do is just replace this portion down here, where it says First semester, Second semester, and so on. It has courses listed with the credit hours. These tables need to be dynamically generated from those csv files, but everything else we wanna keep. If we scroll down, you'll see that there's actually a Third semester and a Fourth semester, too, but we're not gonna worry about those. We only have csv files for the first two semesters. That's all we're…

Contents