Coder Manual

Today is day 2 of the Coder Manual lessons. I ended up paying the $39 price from Stacksocial for the online CoderManual course by Rob Dey, which was originally $399. At $39 and with lifetime access to the material, I didn’t think it was a bad investment.

I completed Phase 1 and Part 1 yesterday. Today I will be doing the Part 2 videos. So far the videos are pretty easy to follow and not too long so as to lose focus. Rob explains things in an easy to understand manner and it’s been great following along. As great as that sounds, Phase 1 was just an intro to computers and the internet, and Part 1 was just making sure you had the necessary software installed, so it wasn’t much in-depth coding. We’ll see how Part 2 is today.

Will keep you posted!

Advertisements

Chapter 5 of Michael Hartl’s guide

I’m working on Chapter 5 of the Michael Hartl guide Ruby on Rails Tutorial and I have this error when running the rails server:

undefined method `full_title'

On this line of code in the application.html.erb page:

 <title><%= full_title(yield(:title)) %></title>

Found a solution on StackOverflow that solved the error:

def full_title(page_title)
  base_title = "Ruby on Rails Tutorial Sample App"
  if page_title.empty?
    base_title
  else
    "#{base_title} | #{page_title}"
  end
 end

I had to define the full_title method in the application_helper.rb page. (Why the helper page?) And then add this to the application_controller.rb page:

include ApplicationHelper

Source: http://stackoverflow.com/questions/23630949/undefined-method-full-title