sandboxy 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +26 -36
- data/{examples/rails_example/app → app}/models/sandbox.rb +1 -1
- data/lib/generators/sandboxy_generator.rb +0 -4
- data/lib/generators/templates/initializer.rb +7 -7
- data/lib/generators/templates/migration.rb.erb +4 -9
- data/lib/sandboxy.rb +2 -9
- data/lib/sandboxy/configuration.rb +37 -10
- data/lib/sandboxy/engine.rb +6 -0
- data/lib/sandboxy/middleware.rb +3 -3
- data/lib/sandboxy/railtie.rb +7 -6
- data/lib/sandboxy/sandboxed.rb +69 -19
- data/lib/sandboxy/version.rb +1 -1
- metadata +5 -197
- data/.github/issue_template.md +0 -14
- data/.github/pull_request_template.md +0 -21
- data/.gitignore +0 -8
- data/.travis.yml +0 -3
- data/CODE_OF_CONDUCT.md +0 -46
- data/CONTRIBUTING.md +0 -1
- data/DEPRECATIONS.md +0 -5
- data/Gemfile +0 -9
- data/INSTALL.md +0 -3
- data/Rakefile +0 -15
- data/examples/rails_example/.gitignore +0 -23
- data/examples/rails_example/Gemfile +0 -54
- data/examples/rails_example/README.md +0 -24
- data/examples/rails_example/Rakefile +0 -6
- data/examples/rails_example/app/api/books/api.rb +0 -33
- data/examples/rails_example/app/assets/config/manifest.js +0 -3
- data/examples/rails_example/app/assets/images/.keep +0 -0
- data/examples/rails_example/app/assets/javascripts/application.js +0 -15
- data/examples/rails_example/app/assets/javascripts/applications.coffee +0 -3
- data/examples/rails_example/app/assets/javascripts/authors.coffee +0 -3
- data/examples/rails_example/app/assets/javascripts/books.coffee +0 -3
- data/examples/rails_example/app/assets/javascripts/cable.js +0 -13
- data/examples/rails_example/app/assets/javascripts/channels/.keep +0 -0
- data/examples/rails_example/app/assets/javascripts/libraries.coffee +0 -3
- data/examples/rails_example/app/assets/javascripts/sandbox.coffee +0 -3
- data/examples/rails_example/app/assets/stylesheets/application.css +0 -15
- data/examples/rails_example/app/assets/stylesheets/applications.scss +0 -3
- data/examples/rails_example/app/assets/stylesheets/authors.scss +0 -3
- data/examples/rails_example/app/assets/stylesheets/books.scss +0 -3
- data/examples/rails_example/app/assets/stylesheets/libraries.scss +0 -3
- data/examples/rails_example/app/assets/stylesheets/sandbox.scss +0 -3
- data/examples/rails_example/app/assets/stylesheets/scaffolds.scss +0 -84
- data/examples/rails_example/app/channels/application_cable/channel.rb +0 -4
- data/examples/rails_example/app/channels/application_cable/connection.rb +0 -4
- data/examples/rails_example/app/controllers/application_controller.rb +0 -7
- data/examples/rails_example/app/controllers/applications_controller.rb +0 -74
- data/examples/rails_example/app/controllers/authors_controller.rb +0 -77
- data/examples/rails_example/app/controllers/books_controller.rb +0 -77
- data/examples/rails_example/app/controllers/concerns/.keep +0 -0
- data/examples/rails_example/app/controllers/libraries_controller.rb +0 -77
- data/examples/rails_example/app/controllers/sandbox_controller.rb +0 -6
- data/examples/rails_example/app/helpers/application_helper.rb +0 -2
- data/examples/rails_example/app/helpers/applications_helper.rb +0 -2
- data/examples/rails_example/app/helpers/authors_helper.rb +0 -2
- data/examples/rails_example/app/helpers/books_helper.rb +0 -2
- data/examples/rails_example/app/helpers/libraries_helper.rb +0 -2
- data/examples/rails_example/app/helpers/sandbox_helper.rb +0 -2
- data/examples/rails_example/app/jobs/application_job.rb +0 -2
- data/examples/rails_example/app/mailers/application_mailer.rb +0 -4
- data/examples/rails_example/app/models/application.rb +0 -14
- data/examples/rails_example/app/models/application_record.rb +0 -3
- data/examples/rails_example/app/models/author.rb +0 -2
- data/examples/rails_example/app/models/book.rb +0 -2
- data/examples/rails_example/app/models/concerns/.keep +0 -0
- data/examples/rails_example/app/models/library.rb +0 -2
- data/examples/rails_example/app/views/applications/_application.json.jbuilder +0 -2
- data/examples/rails_example/app/views/applications/_form.html.erb +0 -19
- data/examples/rails_example/app/views/applications/edit.html.erb +0 -6
- data/examples/rails_example/app/views/applications/index.html.erb +0 -25
- data/examples/rails_example/app/views/applications/index.json.jbuilder +0 -1
- data/examples/rails_example/app/views/applications/new.html.erb +0 -5
- data/examples/rails_example/app/views/applications/show.html.erb +0 -7
- data/examples/rails_example/app/views/applications/show.json.jbuilder +0 -1
- data/examples/rails_example/app/views/authors/_author.json.jbuilder +0 -2
- data/examples/rails_example/app/views/authors/_form.html.erb +0 -19
- data/examples/rails_example/app/views/authors/edit.html.erb +0 -6
- data/examples/rails_example/app/views/authors/index.html.erb +0 -25
- data/examples/rails_example/app/views/authors/index.json.jbuilder +0 -1
- data/examples/rails_example/app/views/authors/new.html.erb +0 -5
- data/examples/rails_example/app/views/authors/show.html.erb +0 -4
- data/examples/rails_example/app/views/authors/show.json.jbuilder +0 -1
- data/examples/rails_example/app/views/books/_book.json.jbuilder +0 -2
- data/examples/rails_example/app/views/books/_form.html.erb +0 -19
- data/examples/rails_example/app/views/books/edit.html.erb +0 -6
- data/examples/rails_example/app/views/books/index.html.erb +0 -25
- data/examples/rails_example/app/views/books/index.json.jbuilder +0 -1
- data/examples/rails_example/app/views/books/new.html.erb +0 -5
- data/examples/rails_example/app/views/books/show.html.erb +0 -4
- data/examples/rails_example/app/views/books/show.json.jbuilder +0 -1
- data/examples/rails_example/app/views/layouts/application.html.erb +0 -14
- data/examples/rails_example/app/views/layouts/mailer.html.erb +0 -13
- data/examples/rails_example/app/views/layouts/mailer.text.erb +0 -1
- data/examples/rails_example/app/views/libraries/_form.html.erb +0 -19
- data/examples/rails_example/app/views/libraries/_library.json.jbuilder +0 -2
- data/examples/rails_example/app/views/libraries/edit.html.erb +0 -6
- data/examples/rails_example/app/views/libraries/index.html.erb +0 -25
- data/examples/rails_example/app/views/libraries/index.json.jbuilder +0 -1
- data/examples/rails_example/app/views/libraries/new.html.erb +0 -5
- data/examples/rails_example/app/views/libraries/show.html.erb +0 -4
- data/examples/rails_example/app/views/libraries/show.json.jbuilder +0 -1
- data/examples/rails_example/bin/bundle +0 -3
- data/examples/rails_example/bin/rails +0 -4
- data/examples/rails_example/bin/rake +0 -4
- data/examples/rails_example/bin/setup +0 -38
- data/examples/rails_example/bin/update +0 -29
- data/examples/rails_example/bin/yarn +0 -11
- data/examples/rails_example/config.ru +0 -5
- data/examples/rails_example/config/application.rb +0 -18
- data/examples/rails_example/config/boot.rb +0 -3
- data/examples/rails_example/config/cable.yml +0 -10
- data/examples/rails_example/config/database.yml +0 -25
- data/examples/rails_example/config/environment.rb +0 -5
- data/examples/rails_example/config/environments/development.rb +0 -54
- data/examples/rails_example/config/environments/production.rb +0 -91
- data/examples/rails_example/config/environments/test.rb +0 -42
- data/examples/rails_example/config/initializers/application_controller_renderer.rb +0 -6
- data/examples/rails_example/config/initializers/assets.rb +0 -14
- data/examples/rails_example/config/initializers/backtrace_silencers.rb +0 -7
- data/examples/rails_example/config/initializers/cookies_serializer.rb +0 -5
- data/examples/rails_example/config/initializers/filter_parameter_logging.rb +0 -4
- data/examples/rails_example/config/initializers/grape.rb +0 -2
- data/examples/rails_example/config/initializers/inflections.rb +0 -16
- data/examples/rails_example/config/initializers/mime_types.rb +0 -4
- data/examples/rails_example/config/initializers/sandboxy.rb +0 -13
- data/examples/rails_example/config/initializers/wrap_parameters.rb +0 -14
- data/examples/rails_example/config/locales/en.yml +0 -33
- data/examples/rails_example/config/puma.rb +0 -56
- data/examples/rails_example/config/routes.rb +0 -13
- data/examples/rails_example/config/secrets.yml +0 -32
- data/examples/rails_example/db/migrate/20170827184048_create_books.rb +0 -9
- data/examples/rails_example/db/migrate/20170827184054_create_authors.rb +0 -9
- data/examples/rails_example/db/migrate/20170827184106_create_libraries.rb +0 -9
- data/examples/rails_example/db/migrate/20170827184304_create_applications.rb +0 -11
- data/examples/rails_example/db/migrate/20170827190815_sandboxy_migration.rb +0 -14
- data/examples/rails_example/db/schema.rb +0 -50
- data/examples/rails_example/db/seeds.rb +0 -7
- data/examples/rails_example/lib/assets/.keep +0 -0
- data/examples/rails_example/lib/tasks/.keep +0 -0
- data/examples/rails_example/package.json +0 -5
- data/examples/rails_example/public/404.html +0 -67
- data/examples/rails_example/public/422.html +0 -67
- data/examples/rails_example/public/500.html +0 -66
- data/examples/rails_example/public/apple-touch-icon-precomposed.png +0 -0
- data/examples/rails_example/public/apple-touch-icon.png +0 -0
- data/examples/rails_example/public/favicon.ico +0 -0
- data/examples/rails_example/public/robots.txt +0 -1
- data/examples/rails_example/test/application_system_test_case.rb +0 -5
- data/examples/rails_example/test/controllers/.keep +0 -0
- data/examples/rails_example/test/controllers/applications_controller_test.rb +0 -48
- data/examples/rails_example/test/controllers/authors_controller_test.rb +0 -48
- data/examples/rails_example/test/controllers/books_controller_test.rb +0 -48
- data/examples/rails_example/test/controllers/libraries_controller_test.rb +0 -48
- data/examples/rails_example/test/controllers/sandbox_controller_test.rb +0 -7
- data/examples/rails_example/test/fixtures/.keep +0 -0
- data/examples/rails_example/test/fixtures/applications.yml +0 -11
- data/examples/rails_example/test/fixtures/authors.yml +0 -11
- data/examples/rails_example/test/fixtures/books.yml +0 -11
- data/examples/rails_example/test/fixtures/files/.keep +0 -0
- data/examples/rails_example/test/fixtures/libraries.yml +0 -11
- data/examples/rails_example/test/helpers/.keep +0 -0
- data/examples/rails_example/test/integration/.keep +0 -0
- data/examples/rails_example/test/mailers/.keep +0 -0
- data/examples/rails_example/test/models/.keep +0 -0
- data/examples/rails_example/test/models/application_test.rb +0 -7
- data/examples/rails_example/test/models/author_test.rb +0 -7
- data/examples/rails_example/test/models/book_test.rb +0 -7
- data/examples/rails_example/test/models/library_test.rb +0 -7
- data/examples/rails_example/test/system/.keep +0 -0
- data/examples/rails_example/test/system/applications_test.rb +0 -9
- data/examples/rails_example/test/system/authors_test.rb +0 -9
- data/examples/rails_example/test/system/books_test.rb +0 -9
- data/examples/rails_example/test/system/libraries_test.rb +0 -9
- data/examples/rails_example/test/test_helper.rb +0 -9
- data/examples/rails_example/tmp/.keep +0 -0
- data/examples/rails_example/vendor/.keep +0 -0
- data/init.rb +0 -1
- data/lib/generators/templates/model.rb +0 -7
- data/sandboxy.gemspec +0 -28
- data/test/dummy30/Gemfile +0 -1
- data/test/dummy30/Rakefile +0 -4
- data/test/dummy30/app/models/application_record.rb +0 -3
- data/test/dummy30/app/models/shared_sandbox.rb +0 -4
- data/test/dummy30/app/models/some.rb +0 -3
- data/test/dummy30/app/models/user.rb +0 -3
- data/test/dummy30/config.ru +0 -2
- data/test/dummy30/config/application.rb +0 -14
- data/test/dummy30/config/boot.rb +0 -10
- data/test/dummy30/config/database.yml +0 -6
- data/test/dummy30/config/environment.rb +0 -5
- data/test/dummy30/config/environments/development.rb +0 -7
- data/test/dummy30/config/environments/test.rb +0 -6
- data/test/dummy30/config/initializers/sandboxy.rb +0 -13
- data/test/dummy30/config/initializers/secret_token.rb +0 -1
- data/test/dummy30/config/initializers/session_store.rb +0 -1
- data/test/dummy30/config/locales/en.yml +0 -2
- data/test/dummy30/config/routes.rb +0 -2
- data/test/dummy30/config/sandboxy.yml +0 -1
- data/test/factories/somes.rb +0 -17
- data/test/factories/users.rb +0 -5
- data/test/sandbox_test.rb +0 -51
- data/test/sandboxed_test.rb +0 -58
- data/test/schema.rb +0 -18
- data/test/test_helper.rb +0 -20
File without changes
|
@@ -1,77 +0,0 @@
|
|
1
|
-
class LibrariesController < ApplicationController
|
2
|
-
before_action :set_library, only: [:show, :edit, :update, :destroy]
|
3
|
-
|
4
|
-
# GET /libraries
|
5
|
-
# GET /libraries.json
|
6
|
-
def index
|
7
|
-
$sandbox = session[:sandbox]
|
8
|
-
@libraries = Library.all
|
9
|
-
end
|
10
|
-
|
11
|
-
# GET /libraries/1
|
12
|
-
# GET /libraries/1.json
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /libraries/new
|
17
|
-
def new
|
18
|
-
$sandbox = session[:sandbox]
|
19
|
-
@library = Library.new
|
20
|
-
end
|
21
|
-
|
22
|
-
# GET /libraries/1/edit
|
23
|
-
def edit
|
24
|
-
end
|
25
|
-
|
26
|
-
# POST /libraries
|
27
|
-
# POST /libraries.json
|
28
|
-
def create
|
29
|
-
$sandbox = session[:sandbox]
|
30
|
-
@library = Library.new(library_params)
|
31
|
-
|
32
|
-
respond_to do |format|
|
33
|
-
if @library.save
|
34
|
-
format.html { redirect_to @library, notice: 'Library was successfully created.' }
|
35
|
-
format.json { render :show, status: :created, location: @library }
|
36
|
-
else
|
37
|
-
format.html { render :new }
|
38
|
-
format.json { render json: @library.errors, status: :unprocessable_entity }
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
# PATCH/PUT /libraries/1
|
44
|
-
# PATCH/PUT /libraries/1.json
|
45
|
-
def update
|
46
|
-
respond_to do |format|
|
47
|
-
if @library.update(library_params)
|
48
|
-
format.html { redirect_to @library, notice: 'Library was successfully updated.' }
|
49
|
-
format.json { render :show, status: :ok, location: @library }
|
50
|
-
else
|
51
|
-
format.html { render :edit }
|
52
|
-
format.json { render json: @library.errors, status: :unprocessable_entity }
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# DELETE /libraries/1
|
58
|
-
# DELETE /libraries/1.json
|
59
|
-
def destroy
|
60
|
-
@library.destroy
|
61
|
-
respond_to do |format|
|
62
|
-
format.html { redirect_to libraries_url, notice: 'Library was successfully destroyed.' }
|
63
|
-
format.json { head :no_content }
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
private
|
68
|
-
# Use callbacks to share common setup or constraints between actions.
|
69
|
-
def set_library
|
70
|
-
@library = Library.find(params[:id])
|
71
|
-
end
|
72
|
-
|
73
|
-
# Never trust parameters from the scary internet, only allow the white list through.
|
74
|
-
def library_params
|
75
|
-
params.fetch(:library, {})
|
76
|
-
end
|
77
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class Application < ApplicationRecord
|
2
|
-
before_create :create_access_tokens
|
3
|
-
|
4
|
-
private
|
5
|
-
|
6
|
-
def create_access_tokens
|
7
|
-
begin
|
8
|
-
self.access_token = SecureRandom.hex(32)
|
9
|
-
end while self.class.where(access_token: self.access_token, sandbox_access_token: self.access_token).exists?
|
10
|
-
begin
|
11
|
-
self.sandbox_access_token = SecureRandom.hex(32)
|
12
|
-
end while self.class.where(sandbox_access_token: self.sandbox_access_token, access_token: self.sandbox_access_token).exists?
|
13
|
-
end
|
14
|
-
end
|
File without changes
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= form_with(model: application, local: true) do |form| %>
|
2
|
-
<% if application.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(application.errors.count, "error") %> prohibited this application from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% application.errors.full_messages.each do |message| %>
|
8
|
-
<li><%= message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= form.input :name %>
|
15
|
-
|
16
|
-
<div class="actions">
|
17
|
-
<%= form.submit %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<h1>Applications</h1>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th colspan="3"></th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
|
12
|
-
<tbody>
|
13
|
-
<% @applications.each do |application| %>
|
14
|
-
<tr>
|
15
|
-
<td><%= link_to 'Show', application %></td>
|
16
|
-
<td><%= link_to 'Edit', edit_application_path(application) %></td>
|
17
|
-
<td><%= link_to 'Destroy', application, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
18
|
-
</tr>
|
19
|
-
<% end %>
|
20
|
-
</tbody>
|
21
|
-
</table>
|
22
|
-
|
23
|
-
<br>
|
24
|
-
|
25
|
-
<%= link_to 'New Application', new_application_path %>
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @applications, partial: 'applications/application', as: :application
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "applications/application", application: @application
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= form_with(model: author, local: true) do |form| %>
|
2
|
-
<% if author.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(author.errors.count, "error") %> prohibited this author from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% author.errors.full_messages.each do |message| %>
|
8
|
-
<li><%= message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= form.input :name %>
|
15
|
-
|
16
|
-
<div class="actions">
|
17
|
-
<%= form.submit %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<h1>Authors</h1>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th colspan="3"></th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
|
12
|
-
<tbody>
|
13
|
-
<% @authors.each do |author| %>
|
14
|
-
<tr>
|
15
|
-
<td><%= link_to 'Show', author %></td>
|
16
|
-
<td><%= link_to 'Edit', edit_author_path(author) %></td>
|
17
|
-
<td><%= link_to 'Destroy', author, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
18
|
-
</tr>
|
19
|
-
<% end %>
|
20
|
-
</tbody>
|
21
|
-
</table>
|
22
|
-
|
23
|
-
<br>
|
24
|
-
|
25
|
-
<%= link_to 'New Author', new_author_path %>
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @authors, partial: 'authors/author', as: :author
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "authors/author", author: @author
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= form_with(model: book, local: true) do |form| %>
|
2
|
-
<% if book.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(book.errors.count, "error") %> prohibited this book from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% book.errors.full_messages.each do |message| %>
|
8
|
-
<li><%= message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= form.input :name %>
|
15
|
-
|
16
|
-
<div class="actions">
|
17
|
-
<%= form.submit %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<p id="notice"><%= notice %></p>
|
2
|
-
|
3
|
-
<h1>Books</h1>
|
4
|
-
|
5
|
-
<table>
|
6
|
-
<thead>
|
7
|
-
<tr>
|
8
|
-
<th colspan="3"></th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
|
12
|
-
<tbody>
|
13
|
-
<% @books.each do |book| %>
|
14
|
-
<tr>
|
15
|
-
<td><%= link_to 'Show', book %></td>
|
16
|
-
<td><%= link_to 'Edit', edit_book_path(book) %></td>
|
17
|
-
<td><%= link_to 'Destroy', book, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
18
|
-
</tr>
|
19
|
-
<% end %>
|
20
|
-
</tbody>
|
21
|
-
</table>
|
22
|
-
|
23
|
-
<br>
|
24
|
-
|
25
|
-
<%= link_to 'New Book', new_book_path %>
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @books, partial: 'books/book', as: :book
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "books/book", book: @book
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>RailsExample</title>
|
5
|
-
<%= csrf_meta_tags %>
|
6
|
-
|
7
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body>
|
12
|
-
<%= yield %>
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= yield %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= form_with(model: library, local: true) do |form| %>
|
2
|
-
<% if library.errors.any? %>
|
3
|
-
<div id="error_explanation">
|
4
|
-
<h2><%= pluralize(library.errors.count, "error") %> prohibited this library from being saved:</h2>
|
5
|
-
|
6
|
-
<ul>
|
7
|
-
<% library.errors.full_messages.each do |message| %>
|
8
|
-
<li><%= message %></li>
|
9
|
-
<% end %>
|
10
|
-
</ul>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= form.input :name %>
|
15
|
-
|
16
|
-
<div class="actions">
|
17
|
-
<%= form.submit %>
|
18
|
-
</div>
|
19
|
-
<% end %>
|