February 16 - Build a Breadcrumb Generator in Ruby
This guide walks through how to build a breadcrumb generator that converts an array to a slash separated string.
Guide Tasks
- Read Tutorial
- Watch Guide Video
- Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license
Already a Bottega Student? Sign In
Summary
Create a method that builds a breadcrumb based navigation.
Exercise Description
Given an array of strings, build a method that converts the strings into a single string where each element is separated by a /
.
Sample Input
['String 1', 'String 2', 'String 3']
Expected Output
'String 1 / String 2 / String 3'
Real World Usage
When it comes to building Rails applications, it's a common requirement to implement view helper methods. This exercise will test your ability to convert an array of strings into a single object that is properly formatted.