h1 Listing database_configs table thead tr th Adapter th Encoding th Pool th Username th Password th Host th Port th Database name th th th tbody - @database_configs.each do |database_config| tr td = database_config.adapter td = database_config.encoding td = database_config.pool td = database_config.username td = database_config.password td = database_config.host td = database_config.port td = database_config.database_name td = link_to 'Show', database_config td = link_to 'Edit', edit_database_config_path(database_config) td = link_to 'Destroy', database_config, data: {:confirm => 'Are you sure?'}, :method => :delete br = link_to 'New Database config', new_database_config_path