form_create 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +28 -0
- data/Rakefile +5 -7
- data/app/assets/config/example_manifest.js +2 -0
- data/{test/dummy/app/assets/javascripts → app/assets/javascripts/example}/application.js +5 -3
- data/app/assets/javascripts/{form_create → example}/posts.js +0 -0
- data/{test/dummy/app/assets/stylesheets → app/assets/stylesheets/example}/application.css +4 -4
- data/app/assets/stylesheets/{form_create → example}/posts.css +0 -0
- data/app/controllers/{form_create → example}/application_controller.rb +2 -1
- data/app/controllers/{form_create → example}/posts_controller.rb +5 -6
- data/app/helpers/{form_create → example}/application_helper.rb +1 -1
- data/app/helpers/{form_create → example}/posts_helper.rb +1 -1
- data/app/jobs/example/application_job.rb +4 -0
- data/app/mailers/example/application_mailer.rb +6 -0
- data/app/models/example/application_record.rb +5 -0
- data/app/models/example/post.rb +4 -0
- data/app/views/example/posts/create.html.erb +2 -0
- data/app/views/example/posts/destroy.html.erb +2 -0
- data/app/views/{form_create/posts/update.html.erb → example/posts/edit.html.erb} +1 -1
- data/app/views/example/posts/index.html.erb +30 -0
- data/app/views/{form_create → example}/posts/new.html.erb +1 -1
- data/app/views/example/posts/show.html.erb +2 -0
- data/app/views/example/posts/update.html.erb +2 -0
- data/app/views/layouts/example/application.html.erb +16 -0
- data/config/routes.rb +2 -2
- data/db/migrate/{20191011114453_create_form_create_posts.rb → 20191012052014_create_example_posts.rb} +1 -1
- data/lib/example/engine.rb +5 -0
- data/lib/example/version.rb +3 -0
- data/lib/example.rb +5 -0
- data/lib/tasks/{form_create_tasks.rake → example_tasks.rake} +1 -1
- metadata +36 -114
- data/README.rdoc +0 -3
- data/app/assets/javascripts/form_create/application.js +0 -13
- data/app/assets/stylesheets/form_create/application.css +0 -15
- data/app/models/form_create/post.rb +0 -4
- data/app/views/form_create/posts/create.html.erb +0 -2
- data/app/views/form_create/posts/destroy.html.erb +0 -2
- data/app/views/form_create/posts/edit.html.erb +0 -2
- data/app/views/form_create/posts/index.html.erb +0 -30
- data/app/views/form_create/posts/show.html.erb +0 -2
- data/app/views/layouts/form_create/application.html.erb +0 -14
- data/lib/form_create/engine.rb +0 -5
- data/lib/form_create/version.rb +0 -3
- data/lib/form_create.rb +0 -4
- data/test/controllers/form_create/posts_controller_test.rb +0 -41
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -78
- data/test/dummy/config/environments/test.rb +0 -39
- data/test/dummy/config/initializers/assets.rb +0 -8
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config.ru +0 -4
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/form_create/posts.yml +0 -11
- data/test/form_create_test.rb +0 -7
- data/test/helpers/form_create/posts_helper_test.rb +0 -6
- data/test/integration/navigation_test.rb +0 -10
- data/test/models/form_create/post_test.rb +0 -9
- data/test/test_helper.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77a73f25d60043c3cc8c1eb4ddb88c9e04c3d3e0bb84f3ca5d33c350f18bd529
|
|
4
|
+
data.tar.gz: 465d8b58d50392073b2adae5af0056554582180a1524d4ab165a68101c1fe634
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a302460374207878d7af4d65920ee2e0b95297d0cf6ef1cd2957b0ca5d7eb87d50d8e42d6d2d76af7f53f0a8b7ec5ea1dd2b84b2395593258f28f5e84a341664
|
|
7
|
+
data.tar.gz: 8606493cafa048c3e4214773ee96b56d090d19429187d3592d25e37f165fae5720ab7fdb208ef4893f59d6e44dfe1c2963e62d541652a8bad30f74171855584e
|
data/MIT-LICENSE
CHANGED
data/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Example
|
|
2
|
+
Short description and motivation.
|
|
3
|
+
|
|
4
|
+
## Usage
|
|
5
|
+
How to use my plugin.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
Add this line to your application's Gemfile:
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
gem 'example'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
And then execute:
|
|
15
|
+
```bash
|
|
16
|
+
$ bundle
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
```bash
|
|
21
|
+
$ gem install example
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Contributing
|
|
25
|
+
Contribution directions go here.
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
|
@@ -8,27 +8,25 @@ require 'rdoc/task'
|
|
|
8
8
|
|
|
9
9
|
RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
10
|
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
-
rdoc.title = '
|
|
11
|
+
rdoc.title = 'Example'
|
|
12
12
|
rdoc.options << '--line-numbers'
|
|
13
|
-
rdoc.rdoc_files.include('README.
|
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
APP_RAKEFILE = File.expand_path("
|
|
17
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
|
18
18
|
load 'rails/tasks/engine.rake'
|
|
19
19
|
|
|
20
|
+
load 'rails/tasks/statistics.rake'
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
Bundler::GemHelper.install_tasks
|
|
22
|
+
require 'bundler/gem_tasks'
|
|
23
23
|
|
|
24
24
|
require 'rake/testtask'
|
|
25
25
|
|
|
26
26
|
Rake::TestTask.new(:test) do |t|
|
|
27
|
-
t.libs << 'lib'
|
|
28
27
|
t.libs << 'test'
|
|
29
28
|
t.pattern = 'test/**/*_test.rb'
|
|
30
29
|
t.verbose = false
|
|
31
30
|
end
|
|
32
31
|
|
|
33
|
-
|
|
34
32
|
task default: :test
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// listed below.
|
|
3
3
|
//
|
|
4
4
|
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts
|
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
6
6
|
//
|
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
9
9
|
//
|
|
10
|
-
// Read Sprockets README (https://github.com/
|
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
11
11
|
// about supported directives.
|
|
12
12
|
//
|
|
13
|
+
//= require rails-ujs
|
|
14
|
+
//= require activestorage
|
|
13
15
|
//= require_tree .
|
|
File without changes
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* listed below.
|
|
4
4
|
*
|
|
5
5
|
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets
|
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
7
7
|
*
|
|
8
8
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any
|
|
10
|
-
*
|
|
11
|
-
* file per style scope.
|
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
11
|
+
* It is generally better to create a new file per style scope.
|
|
12
12
|
*
|
|
13
13
|
*= require_tree .
|
|
14
14
|
*= require_self
|
|
File without changes
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
require_dependency "
|
|
1
|
+
require_dependency "example/application_controller"
|
|
2
2
|
|
|
3
|
-
module
|
|
3
|
+
module Example
|
|
4
4
|
class PostsController < ApplicationController
|
|
5
|
-
# GET method to get all Posts from database
|
|
6
5
|
def index
|
|
7
6
|
@posts = Post.all
|
|
8
7
|
end
|
|
@@ -22,7 +21,7 @@ module FormCreate
|
|
|
22
21
|
@post = Post.new(post_params)
|
|
23
22
|
if @post.save
|
|
24
23
|
flash[:notice] = 'Post added!'
|
|
25
|
-
redirect_to
|
|
24
|
+
redirect_to posts_path
|
|
26
25
|
else
|
|
27
26
|
flash[:error] = 'Failed to edit Post!'
|
|
28
27
|
render :new
|
|
@@ -39,7 +38,7 @@ module FormCreate
|
|
|
39
38
|
@post = Post.find(params[:id])
|
|
40
39
|
if @post.update_attributes(post_params)
|
|
41
40
|
flash[:notice] = 'Post updated!'
|
|
42
|
-
redirect_to
|
|
41
|
+
redirect_to posts_path
|
|
43
42
|
else
|
|
44
43
|
flash[:error] = 'Failed to edit Post!'
|
|
45
44
|
render :edit
|
|
@@ -51,7 +50,7 @@ module FormCreate
|
|
|
51
50
|
@post = Post.find(params[:id])
|
|
52
51
|
if @post.delete
|
|
53
52
|
flash[:notice] = 'Post deleted!'
|
|
54
|
-
redirect_to
|
|
53
|
+
redirect_to posts_path
|
|
55
54
|
else
|
|
56
55
|
flash[:error] = 'Failed to delete this Post!'
|
|
57
56
|
render :destroy
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div class="container" style="margin-top: 70px;">
|
|
2
|
+
<h3>Posts</h3>
|
|
3
|
+
<table class="table table-striped">
|
|
4
|
+
<thead>
|
|
5
|
+
<tr>
|
|
6
|
+
<th>Title</th>
|
|
7
|
+
<th>Descption</th>
|
|
8
|
+
<th>Created_by</th>
|
|
9
|
+
<th>Actions</th>
|
|
10
|
+
</tr>
|
|
11
|
+
</thead>
|
|
12
|
+
<tbody>
|
|
13
|
+
<% @posts.each do |p| %>
|
|
14
|
+
<tr>
|
|
15
|
+
<td><%= p.title %></td>
|
|
16
|
+
<td><%= p.description %></td>
|
|
17
|
+
<td><%= p.created_by %></td>
|
|
18
|
+
<td>
|
|
19
|
+
<%= link_to 'Show', post_path(p) %>
|
|
20
|
+
<%= link_to 'Edit', edit_post_path(p) %>
|
|
21
|
+
<%= link_to 'Delete', post_path(p), method: :delete %>
|
|
22
|
+
</td>
|
|
23
|
+
</tr>
|
|
24
|
+
<% end %>
|
|
25
|
+
</tbody>
|
|
26
|
+
</table>
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
<%= link_to 'Add User', new_post_path %>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Example</title>
|
|
5
|
+
<%= csrf_meta_tags %>
|
|
6
|
+
<%= csp_meta_tag %>
|
|
7
|
+
|
|
8
|
+
<%= stylesheet_link_tag "example/application", media: "all" %>
|
|
9
|
+
<%= javascript_include_tag "example/application" %>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
|
|
13
|
+
<%= yield %>
|
|
14
|
+
<h4>Hello</h4>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
data/config/routes.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
resources :posts
|
|
1
|
+
Example::Engine.routes.draw do
|
|
2
|
+
resources :posts
|
|
3
3
|
end
|
data/lib/example.rb
ADDED
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: form_create
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- madhubabu-nyros
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
@@ -14,16 +14,16 @@ dependencies:
|
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 5.2.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 5.2.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: mysql2
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -46,73 +46,36 @@ extensions: []
|
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
48
|
- MIT-LICENSE
|
|
49
|
-
- README.
|
|
49
|
+
- README.md
|
|
50
50
|
- Rakefile
|
|
51
|
-
- app/assets/
|
|
52
|
-
- app/assets/javascripts/
|
|
53
|
-
- app/assets/
|
|
54
|
-
- app/assets/stylesheets/
|
|
55
|
-
- app/
|
|
56
|
-
- app/controllers/
|
|
57
|
-
- app/
|
|
58
|
-
- app/helpers/
|
|
59
|
-
- app/
|
|
60
|
-
- app/
|
|
61
|
-
- app/
|
|
62
|
-
- app/
|
|
63
|
-
- app/
|
|
64
|
-
- app/views/
|
|
65
|
-
- app/views/
|
|
66
|
-
- app/views/
|
|
67
|
-
- app/views/
|
|
51
|
+
- app/assets/config/example_manifest.js
|
|
52
|
+
- app/assets/javascripts/example/application.js
|
|
53
|
+
- app/assets/javascripts/example/posts.js
|
|
54
|
+
- app/assets/stylesheets/example/application.css
|
|
55
|
+
- app/assets/stylesheets/example/posts.css
|
|
56
|
+
- app/controllers/example/application_controller.rb
|
|
57
|
+
- app/controllers/example/posts_controller.rb
|
|
58
|
+
- app/helpers/example/application_helper.rb
|
|
59
|
+
- app/helpers/example/posts_helper.rb
|
|
60
|
+
- app/jobs/example/application_job.rb
|
|
61
|
+
- app/mailers/example/application_mailer.rb
|
|
62
|
+
- app/models/example/application_record.rb
|
|
63
|
+
- app/models/example/post.rb
|
|
64
|
+
- app/views/example/posts/create.html.erb
|
|
65
|
+
- app/views/example/posts/destroy.html.erb
|
|
66
|
+
- app/views/example/posts/edit.html.erb
|
|
67
|
+
- app/views/example/posts/index.html.erb
|
|
68
|
+
- app/views/example/posts/new.html.erb
|
|
69
|
+
- app/views/example/posts/show.html.erb
|
|
70
|
+
- app/views/example/posts/update.html.erb
|
|
71
|
+
- app/views/layouts/example/application.html.erb
|
|
68
72
|
- config/routes.rb
|
|
69
|
-
- db/migrate/
|
|
70
|
-
- lib/
|
|
71
|
-
- lib/
|
|
72
|
-
- lib/
|
|
73
|
-
- lib/tasks/
|
|
74
|
-
|
|
75
|
-
- test/dummy/README.rdoc
|
|
76
|
-
- test/dummy/Rakefile
|
|
77
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
78
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
79
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
80
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
81
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
82
|
-
- test/dummy/bin/bundle
|
|
83
|
-
- test/dummy/bin/rails
|
|
84
|
-
- test/dummy/bin/rake
|
|
85
|
-
- test/dummy/config.ru
|
|
86
|
-
- test/dummy/config/application.rb
|
|
87
|
-
- test/dummy/config/boot.rb
|
|
88
|
-
- test/dummy/config/database.yml
|
|
89
|
-
- test/dummy/config/environment.rb
|
|
90
|
-
- test/dummy/config/environments/development.rb
|
|
91
|
-
- test/dummy/config/environments/production.rb
|
|
92
|
-
- test/dummy/config/environments/test.rb
|
|
93
|
-
- test/dummy/config/initializers/assets.rb
|
|
94
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
95
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
|
96
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
97
|
-
- test/dummy/config/initializers/inflections.rb
|
|
98
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
99
|
-
- test/dummy/config/initializers/session_store.rb
|
|
100
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
101
|
-
- test/dummy/config/locales/en.yml
|
|
102
|
-
- test/dummy/config/routes.rb
|
|
103
|
-
- test/dummy/config/secrets.yml
|
|
104
|
-
- test/dummy/log/development.log
|
|
105
|
-
- test/dummy/public/404.html
|
|
106
|
-
- test/dummy/public/422.html
|
|
107
|
-
- test/dummy/public/500.html
|
|
108
|
-
- test/dummy/public/favicon.ico
|
|
109
|
-
- test/fixtures/form_create/posts.yml
|
|
110
|
-
- test/form_create_test.rb
|
|
111
|
-
- test/helpers/form_create/posts_helper_test.rb
|
|
112
|
-
- test/integration/navigation_test.rb
|
|
113
|
-
- test/models/form_create/post_test.rb
|
|
114
|
-
- test/test_helper.rb
|
|
115
|
-
homepage: ''
|
|
73
|
+
- db/migrate/20191012052014_create_example_posts.rb
|
|
74
|
+
- lib/example.rb
|
|
75
|
+
- lib/example/engine.rb
|
|
76
|
+
- lib/example/version.rb
|
|
77
|
+
- lib/tasks/example_tasks.rake
|
|
78
|
+
homepage: https://rubygems.org/gems/
|
|
116
79
|
licenses:
|
|
117
80
|
- MIT
|
|
118
81
|
metadata: {}
|
|
@@ -131,49 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
94
|
- !ruby/object:Gem::Version
|
|
132
95
|
version: '0'
|
|
133
96
|
requirements: []
|
|
134
|
-
rubygems_version: 3.0.
|
|
97
|
+
rubygems_version: 3.0.3
|
|
135
98
|
signing_key:
|
|
136
99
|
specification_version: 4
|
|
137
100
|
summary: simple form
|
|
138
|
-
test_files:
|
|
139
|
-
- test/models/form_create/post_test.rb
|
|
140
|
-
- test/dummy/Rakefile
|
|
141
|
-
- test/dummy/bin/rake
|
|
142
|
-
- test/dummy/bin/bundle
|
|
143
|
-
- test/dummy/bin/rails
|
|
144
|
-
- test/dummy/config.ru
|
|
145
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
146
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
147
|
-
- test/dummy/app/assets/javascripts/application.js
|
|
148
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
149
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
150
|
-
- test/dummy/config/locales/en.yml
|
|
151
|
-
- test/dummy/config/initializers/assets.rb
|
|
152
|
-
- test/dummy/config/initializers/session_store.rb
|
|
153
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
|
154
|
-
- test/dummy/config/initializers/inflections.rb
|
|
155
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
|
156
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
157
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
158
|
-
- test/dummy/config/initializers/mime_types.rb
|
|
159
|
-
- test/dummy/config/environment.rb
|
|
160
|
-
- test/dummy/config/application.rb
|
|
161
|
-
- test/dummy/config/boot.rb
|
|
162
|
-
- test/dummy/config/secrets.yml
|
|
163
|
-
- test/dummy/config/database.yml
|
|
164
|
-
- test/dummy/config/environments/test.rb
|
|
165
|
-
- test/dummy/config/environments/development.rb
|
|
166
|
-
- test/dummy/config/environments/production.rb
|
|
167
|
-
- test/dummy/config/routes.rb
|
|
168
|
-
- test/dummy/public/422.html
|
|
169
|
-
- test/dummy/public/500.html
|
|
170
|
-
- test/dummy/public/favicon.ico
|
|
171
|
-
- test/dummy/public/404.html
|
|
172
|
-
- test/dummy/README.rdoc
|
|
173
|
-
- test/dummy/log/development.log
|
|
174
|
-
- test/test_helper.rb
|
|
175
|
-
- test/form_create_test.rb
|
|
176
|
-
- test/helpers/form_create/posts_helper_test.rb
|
|
177
|
-
- test/fixtures/form_create/posts.yml
|
|
178
|
-
- test/controllers/form_create/posts_controller_test.rb
|
|
179
|
-
- test/integration/navigation_test.rb
|
|
101
|
+
test_files: []
|
data/README.rdoc
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
2
|
-
// listed below.
|
|
3
|
-
//
|
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
|
6
|
-
//
|
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
8
|
-
// compiled file.
|
|
9
|
-
//
|
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
|
11
|
-
// about supported directives.
|
|
12
|
-
//
|
|
13
|
-
//= require_tree .
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
3
|
-
* listed below.
|
|
4
|
-
*
|
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
|
7
|
-
*
|
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
|
11
|
-
* file per style scope.
|
|
12
|
-
*
|
|
13
|
-
*= require_tree .
|
|
14
|
-
*= require_self
|
|
15
|
-
*/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<div class="container" style="margin-top: 70px;">
|
|
2
|
-
<h3>Posts</h3>
|
|
3
|
-
<table class="table table-striped">
|
|
4
|
-
<thead>
|
|
5
|
-
<tr>
|
|
6
|
-
<th>Title</th>
|
|
7
|
-
<th>Descption</th>
|
|
8
|
-
<th>Created_by</th>
|
|
9
|
-
<th>Actions</th>
|
|
10
|
-
</tr>
|
|
11
|
-
</thead>
|
|
12
|
-
<tbody>
|
|
13
|
-
<% @posts.each do |p| %>
|
|
14
|
-
<tr>
|
|
15
|
-
<td><%= p.title %></td>
|
|
16
|
-
<td><%= p.description %></td>
|
|
17
|
-
<td><%= p.created_by %></td>
|
|
18
|
-
<td>
|
|
19
|
-
<%= link_to 'Show', form_create_post_path(p) %>
|
|
20
|
-
<%= link_to 'Edit', edit_form_create_post_path(p) %>
|
|
21
|
-
<%= link_to 'Delete', form_create_post_path(p), method: :delete %>
|
|
22
|
-
</td>
|
|
23
|
-
</tr>
|
|
24
|
-
<% end %>
|
|
25
|
-
</tbody>
|
|
26
|
-
</table>
|
|
27
|
-
</div>
|
|
28
|
-
<div>
|
|
29
|
-
<%= link_to 'Add User', new_form_create_post_path %>
|
|
30
|
-
</div>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>FormCreate</title>
|
|
5
|
-
<%= stylesheet_link_tag "form_create/application", media: "all" %>
|
|
6
|
-
<%= javascript_include_tag "form_create/application" %>
|
|
7
|
-
<%= csrf_meta_tags %>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
|
|
11
|
-
<%= yield %>
|
|
12
|
-
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|