Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions app/assets/javascripts/featurer_web/anchors_to_delete.js

This file was deleted.

3 changes: 2 additions & 1 deletion app/assets/javascripts/featurer_web/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//

//= require jquery
//= require jquery_ujs
//= require_tree .
3 changes: 2 additions & 1 deletion app/controllers/featurer_web/features_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def create
def destroy
Featurer.delete(params[:id])

head 200
flash[:info] = "Feature deleted"
redirect_to root_path
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/featurer_web/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<%= csrf_meta_tags %>
<%= stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css", media: "all" %>
<%= stylesheet_link_tag "featurer_web/application", media: "all" %>

<%= javascript_include_tag "https://code.jquery.com/jquery-3.1.1.min.js" %>
<%= javascript_include_tag "featurer_web/application" %>
</head>
<body>
Expand Down
2 changes: 2 additions & 0 deletions featurer_web.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.push File.expand_path('../lib', __FILE__)

# Maintain your gem's version:
Expand All @@ -18,4 +19,5 @@ Gem::Specification.new do |s|

s.add_dependency 'rails', '>= 4.2.7'
s.add_dependency 'featurer', '~> 0.1.1'
s.add_dependency 'jquery-rails', '>= 1.0'
end
1 change: 1 addition & 0 deletions lib/featurer_web/engine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module FeaturerWeb
class Engine < ::Rails::Engine
require 'jquery-rails'
isolate_namespace FeaturerWeb
end
end