<commit_before>---
published: true
title: Starting out. 
layout: post
---
Step one:

rails new crowdfund

Creates all the things. 

 - Go to localhost/projects which will be the index page. 
No route exists, head to routes.rb delete all the commented crap and write :

verb "url" => "name_of_controller#name_of_action"

AKA

get "projects" => "projects#index"

Then we have a projects controller error:

 - Go to terminal rails g controller projects

Now we have action 'index' error for ProjectsController. Sweet another error! 

- Add 
          def index
          end

-Refresh, now missing template error. Awesome. 
-Go to Views, Projects and create in index.html.erb<commit_msg>Post update: Starting out.<commit_after>---
published: true
title: Starting out. 
layout: post
---
Step one:

rails new crowdfund

Creates all the things. 

 - Go to localhost/projects which will be the index page. 
No route exists, head to routes.rb delete all the commented crap and write :

verb "url" => "name_of_controller#name_of_action"

AKA

get "projects" => "projects#index"

Then we have a projects controller error:

 - Go to terminal rails g controller projects

Now we have action 'index' error for ProjectsController. Sweet another error! 

- Add 
          def index
          end

-Refresh, now missing template error. Awesome. 
-Go to Views, Projects and create in index.html.erb
    put some junk content in there e.g. <h1>hello</h1>, refresh and bam!

hello written on the localhost/projects page. Now we on rails! 
{'fraction_non_alphanumeric': 0.07504937458854509, 'fraction_numerical': 0.0013166556945358788, 'mean_word_length': 3.3804034582132565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5614531', 'n_tokens_mistral': 456, 'n_tokens_neox': 429, 'n_words': 201}