mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-17 09:46:25 -07:00
set up example scaffold with rspec + factorybot tests
This commit is contained in:
parent
533c921a6d
commit
d1e6fb1e39
23 changed files with 512 additions and 6 deletions
10
app/views/dashboard/examples/show.html.erb
Normal file
10
app/views/dashboard/examples/show.html.erb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @example %>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this example", edit_example_path(@example) %> |
|
||||
<%= link_to "Back to examples", examples_path %>
|
||||
|
||||
<%= button_to "Destroy this example", @example, method: :delete %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue