Add edit view in main.rb and template