-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zad 5 + Zad6 #261
base: master
Are you sure you want to change the base?
Zad 5 + Zad6 #261
Conversation
zad1_v2
Merge branch 'master' of https://github.com/zakpat/ror4beginners2018 Merge branch 'master' of https://github.com/zakpat/ror4beginners2018
Merge branch 'master' of https://github.com/daftcode/ror4beginners2018
zad1_v2
@@ -0,0 +1,2 @@ | |||
module ArtistsHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
railsy tworzą wiele plików przy generowaniu kontrolerów.
jak się jakiegoś nie używa to można spokojnie skasować 🚜
<td><%= artist.name %></td> | ||
<td class="text-right"> | ||
<%= link_to 'edit', edit_artist_url(artist), class: 'btn btn-warning' %> | ||
<%= link_to 'remove', artist_url(artist), class: 'btn btn-danger', method: :delete %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
można dodać data: { confirm: 'Are you sure?' }
, aby przypadkiem nie usunąć niczego 🙈
Zdecydowanie tak, dodatkowe potwierdzenie byłoby wskazane 😉
W dniu śr., 12.12.2018 o 15:19 Szymon <[email protected]> napisał(a):
***@***.**** commented on this pull request.
------------------------------
In zad5/app/helpers/artists_helper.rb
<#261 (comment)>
:
> @@ -0,0 +1,2 @@
+module ArtistsHelper
railsy tworzą wiele plików przy generowaniu kontrolerów.
jak się jakiegoś nie używa to można spokojnie skasować 🚜
------------------------------
In zad5/app/views/artists/index.html.erb
<#261 (comment)>
:
> + <%= link_to 'Add new artist', new_artist_url, class: 'btn btn-success pull-right' %>
+ <h2>Artist Table</h2>
+ <table class="table">
+ <thead>
+ <tr>
+ <th class="text-left">Artists</th>
+ <th class="text-right">Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @artists.each do |artist| %>
+ <tr>
+ <td><%= artist.name %></td>
+ <td class="text-right">
+ <%= link_to 'edit', edit_artist_url(artist), class: 'btn btn-warning' %>
+ <%= link_to 'remove', artist_url(artist), class: 'btn btn-danger', method: :delete %>
można dodać data: { confirm: 'Are you sure?' }, aby przypadkiem nie
usunąć niczego 🙈
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#261 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AqqG_AoFmmdSed3m-rCSY56gJFtOhiVlks5u4RBhgaJpZM4ZKKdi>
.
--
Z wyrazami szacunku
Patryk Żak
|
Po kolejnym boju dostarczam na githubie zad 5. Wszelkie inne zmiany (w tym usuniete pliki) prosze zignorowac :)