Skip to content

bkrigel/phrg-sinatra-mvc-lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra MVC Lab - Pig Latinizer

In this lab, you'll be building a Pig Latinizer using Sinatra and the MVC paradigm of app development. Your app will take in a string from a user through a form, convert it to pig latin, and return the string to the user. Using the previous code-along as a guide, get the tests to pass by building out this application. Use the guide below to get you started!

Instructions

  1. Build a form to take user input in user_input.erb. Show that form using a GET request at /.

  2. Create a POST method in your controller (app.rb) to receive your form's params.

  3. Build a PigLatinizer model (in your models directory) that converts a string into pig latin.

  4. In your application controller, create an instance of the PigLatinizer class to convert your user input to Pig Latin.

  5. Use ERB within a new view to display the final pig latin string to the user.

Pig Latin on wikipedia

View Sinatra MVC Lab on Learn.co and start learning to code for free.

PHRG Sinatra MVC Lab - Pig Latinizer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 97.5%
  • HTML 2.5%