test env. added cucumber et al
This commit is contained in:
parent
8bd5668d57
commit
740f4e3811
7 changed files with 47 additions and 2 deletions
6
app/views/collections/_form.html.erb
Normal file
6
app/views/collections/_form.html.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%= form.label :title, :Title, {:class => 'big'} %><br />
|
||||
<%= form.text_field :title, {:class => 'big'} %><br />
|
||||
|
||||
<%= form.label :description %><br />
|
||||
<%= form.text_area :description %><br />
|
||||
<br />
|
12
app/views/collections/edit.html.erb
Normal file
12
app/views/collections/edit.html.erb
Normal file
|
@ -0,0 +1,12 @@
|
|||
<h1>Edit collection</h1>
|
||||
|
||||
<% form_for @collection do |f| %>
|
||||
<%= f.error_messages %>
|
||||
<%= render :partial => "form", :object => f %>
|
||||
<%= f.submit "Update" %>
|
||||
<% end %>
|
||||
|
||||
<br /><%= link_to("Delete collection", { :action => "destroy", :id => @collection },
|
||||
:confirm => "Are you sure you want to delete this collection?",
|
||||
:method => :delete) %>
|
||||
<br /><%= link_to "All collections", collections_path %>
|
9
app/views/collections/new.html.erb
Normal file
9
app/views/collections/new.html.erb
Normal file
|
@ -0,0 +1,9 @@
|
|||
<h1>New collection</h1>
|
||||
|
||||
<% form_for @collection do |f| %>
|
||||
<%= f.error_messages %>
|
||||
<%= render :partial => "form", :object => f %>
|
||||
<%= f.submit "Create" %>
|
||||
<% end %>
|
||||
|
||||
<br /><%= link_to "All collections", collections_path %>
|
|
@ -1 +1,6 @@
|
|||
<h1><%= h @collection.title %></h1>
|
||||
<p><%= h @collection.description %></p>
|
||||
<%= render :partial => @collection.albums %>
|
||||
|
||||
<br /><%= link_to "Update collection", edit_collection_path(@collection) %>
|
||||
<br /><%= link_to "All collections", collections_path %>
|
|
@ -4,6 +4,9 @@
|
|||
<br/>
|
||||
Tagged with: <%= @photo.tag_list %>
|
||||
<p><%= @photo.description %></p>
|
||||
<% if @current_user.role.access_to("photo_note") %>
|
||||
<p><%= @photo.note %></p>
|
||||
<% end %>
|
||||
<br /><%= link_to "Update photo details", edit_photo_path(@photo) %>
|
||||
<br /><%= link_to "Back to #{@photo.album.title}", @photo.album %>
|
||||
<br /><%= link_to "All albums", albums_path %>
|
|
@ -9,4 +9,9 @@ production:
|
|||
username: photogallery
|
||||
password: changeme
|
||||
database: gallery_production
|
||||
socket: /var/run/mysqld/mysqld.sock
|
||||
socket: /var/run/mysqld/mysqld.sock
|
||||
test:
|
||||
adapter: postgresql
|
||||
database: gallery_test
|
||||
username: gallery
|
||||
password: changeme
|
||||
|
|
|
@ -25,4 +25,9 @@ config.action_mailer.delivery_method = :test
|
|||
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
||||
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
||||
# like if you have constraints or database-specific column types
|
||||
# config.active_record.schema_format = :sql
|
||||
# config.active_record.schema_format = :sql
|
||||
|
||||
config.gem "rspec"
|
||||
config.gem "rspec-rails"
|
||||
config.gem "webrat"
|
||||
config.gem "cucumber"
|
Loading…
Reference in a new issue