added db config default file
This commit is contained in:
parent
1633b61637
commit
a85e8fac71
2 changed files with 30 additions and 0 deletions
|
@ -5,6 +5,11 @@
|
||||||
#%>
|
#%>
|
||||||
|
|
||||||
<%= div_for topic do %>
|
<%= div_for topic do %>
|
||||||
|
|
||||||
|
<% if topic.authorize_to_edit(user) %>
|
||||||
|
<div class="permission canEdit">
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="CardOnGraph"
|
<div class="CardOnGraph"
|
||||||
id="topic_<%=topic.id %>">
|
id="topic_<%=topic.id %>">
|
||||||
<% if topic.user == user %><%= link_to 'Delete', topic_path(topic), :class => 'delete', :confirm => 'Delete this topic and all synapses linking to it?', :method => :delete, :remote => true%><% end %>
|
<% if topic.user == user %><%= link_to 'Delete', topic_path(topic), :class => 'delete', :confirm => 'Delete this topic and all synapses linking to it?', :method => :delete, :remote => true%><% end %>
|
||||||
|
@ -59,4 +64,8 @@
|
||||||
|
|
||||||
<div class="clearfloat"></div>
|
<div class="clearfloat"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% if topic.authorize_to_edit(user) %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
21
config/database.yml.default
Normal file
21
config/database.yml.default
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
development:
|
||||||
|
min_messages: WARNING
|
||||||
|
adapter: postgresql
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 5432
|
||||||
|
encoding: unicode
|
||||||
|
database: metamap002_development
|
||||||
|
pool: 5
|
||||||
|
username: postgres
|
||||||
|
password: "3112"
|
||||||
|
|
||||||
|
production:
|
||||||
|
min_messages: WARNING
|
||||||
|
adapter: postgresql
|
||||||
|
host: ec2-107-21-107-194.compute-1.amazonaws.com
|
||||||
|
port: 5432
|
||||||
|
encoding: unicode
|
||||||
|
database: ddcrn2lgphjk9k
|
||||||
|
pool: 5
|
||||||
|
username: qqpckkahytovwv
|
||||||
|
password: "njeP6cMA8EjM9ukHk9s3ReOdy7"
|
Loading…
Reference in a new issue