Removed the unused layout application_wide.html.erb which was renamed to just application.html.erb. Due to a weird error with partial rendering - Rails cannot find the application layout unless it is in file _applciation.html.erb with underscore. So the application layout was copied to _application. A silly workaround.