add stuff on making an api in rails.