GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
class CommunitiesController < ApplicationController | |
# ... | |
def show | |
@community = Community.find(params[:id]) | |
@users = @community.users | |
@ressources = Ressource.paginate(:page => params[:page], :per_page => 5) | |
end |
GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.
{
"name": "web",
"active": true,
Well, to get Bootstrap working, first install [Less Rails Bootstrap][lrb].
Then create a button with a [fancy icon][fi] like so:
<%= link_to raw('<i class="icon-trash icon-white"></i>'), card, confirm: 'Are you sure?', method: :delete, :class => 'btn btn-danger' %>
Note that you have to link to raw
to get it to not escape the HTML.