added Ruby code inside index.erb as well as made changes in crm.rb