added rails app and base controller