<commit_before>---
layout: post
title: Hartl's Rails Tutorial - Solutions for Ch 10 Exercises 
permalink: hartl-solutions-ch10
---

My solutions for <NAME>l's Rails tutorial, [Ch. 10 exercises](http://www.railstutorial.org/book/user_microposts#sec-micropost_exercises).  I found a lot of help on [StackOverflow](http://stackoverflow.com/), which I recommend if you're looking for detailed-explanations, discussion, or different ways to complete some of these exercises.

<!--more-->

##Exercises 

[1](#step1)
[2](#step2)
[3](#step3)
[4](#step4)<commit_msg>Edit ch 10 solutions post<commit_after>---
layout: post
title: Hartl's Rails Tutorial - Solutions for Ch 10 Exercises 
permalink: hartl-solutions-ch10
---

My solutions for <NAME>'s Rails tutorial, [Ch. 10 exercises](http://www.railstutorial.org/book/user_microposts#sec-micropost_exercises). Some of these exercises are quite challenging; [StackOverflow](http://stackoverflow.com/) is a great resource if you get stuck.

<!--more-->

##Exercises 

[1](#step1)
[2](#step2)
[3](#step3)
[4](#step4)
{'fraction_non_alphanumeric': 0.1462488129154796, 'fraction_numerical': 0.02849002849002849, 'mean_word_length': 5.022857142857143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '921200', 'n_tokens_mistral': 380, 'n_tokens_neox': 346, 'n_words': 103}