If these lines are not there it will not be able to find any local resources and end up with a nil pointer.

The config.action_controller.relative_url_root is what it should be, but it does not work with the version of ruby I have on my local machine, so I had to add the line below to actually make it work.