- Its not best practice to have a lot of code in your layout, keep it to the bare minimum such as the nav bar that is consistent across all pages in the app; 
- Move this form into the home.erb