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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +28 -0
  4. data/Rakefile +5 -7
  5. data/app/assets/config/example_manifest.js +2 -0
  6. data/{test/dummy/app/assets/javascripts → app/assets/javascripts/example}/application.js +5 -3
  7. data/app/assets/javascripts/{form_create → example}/posts.js +0 -0
  8. data/{test/dummy/app/assets/stylesheets → app/assets/stylesheets/example}/application.css +4 -4
  9. data/app/assets/stylesheets/{form_create → example}/posts.css +0 -0
  10. data/app/controllers/{form_create → example}/application_controller.rb +2 -1
  11. data/app/controllers/{form_create → example}/posts_controller.rb +5 -6
  12. data/app/helpers/{form_create → example}/application_helper.rb +1 -1
  13. data/app/helpers/{form_create → example}/posts_helper.rb +1 -1
  14. data/app/jobs/example/application_job.rb +4 -0
  15. data/app/mailers/example/application_mailer.rb +6 -0
  16. data/app/models/example/application_record.rb +5 -0
  17. data/app/models/example/post.rb +4 -0
  18. data/app/views/example/posts/create.html.erb +2 -0
  19. data/app/views/example/posts/destroy.html.erb +2 -0
  20. data/app/views/{form_create/posts/update.html.erb → example/posts/edit.html.erb} +1 -1
  21. data/app/views/example/posts/index.html.erb +30 -0
  22. data/app/views/{form_create → example}/posts/new.html.erb +1 -1
  23. data/app/views/example/posts/show.html.erb +2 -0
  24. data/app/views/example/posts/update.html.erb +2 -0
  25. data/app/views/layouts/example/application.html.erb +16 -0
  26. data/config/routes.rb +2 -2
  27. data/db/migrate/{20191011114453_create_form_create_posts.rb → 20191012052014_create_example_posts.rb} +1 -1
  28. data/lib/example/engine.rb +5 -0
  29. data/lib/example/version.rb +3 -0
  30. data/lib/example.rb +5 -0
  31. data/lib/tasks/{form_create_tasks.rake → example_tasks.rake} +1 -1
  32. metadata +36 -114
  33. data/README.rdoc +0 -3
  34. data/app/assets/javascripts/form_create/application.js +0 -13
  35. data/app/assets/stylesheets/form_create/application.css +0 -15
  36. data/app/models/form_create/post.rb +0 -4
  37. data/app/views/form_create/posts/create.html.erb +0 -2
  38. data/app/views/form_create/posts/destroy.html.erb +0 -2
  39. data/app/views/form_create/posts/edit.html.erb +0 -2
  40. data/app/views/form_create/posts/index.html.erb +0 -30
  41. data/app/views/form_create/posts/show.html.erb +0 -2
  42. data/app/views/layouts/form_create/application.html.erb +0 -14
  43. data/lib/form_create/engine.rb +0 -5
  44. data/lib/form_create/version.rb +0 -3
  45. data/lib/form_create.rb +0 -4
  46. data/test/controllers/form_create/posts_controller_test.rb +0 -41
  47. data/test/dummy/README.rdoc +0 -28
  48. data/test/dummy/Rakefile +0 -6
  49. data/test/dummy/app/controllers/application_controller.rb +0 -5
  50. data/test/dummy/app/helpers/application_helper.rb +0 -2
  51. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  52. data/test/dummy/bin/bundle +0 -3
  53. data/test/dummy/bin/rails +0 -4
  54. data/test/dummy/bin/rake +0 -4
  55. data/test/dummy/config/application.rb +0 -23
  56. data/test/dummy/config/boot.rb +0 -5
  57. data/test/dummy/config/database.yml +0 -25
  58. data/test/dummy/config/environment.rb +0 -5
  59. data/test/dummy/config/environments/development.rb +0 -37
  60. data/test/dummy/config/environments/production.rb +0 -78
  61. data/test/dummy/config/environments/test.rb +0 -39
  62. data/test/dummy/config/initializers/assets.rb +0 -8
  63. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  64. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  65. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  66. data/test/dummy/config/initializers/inflections.rb +0 -16
  67. data/test/dummy/config/initializers/mime_types.rb +0 -4
  68. data/test/dummy/config/initializers/session_store.rb +0 -3
  69. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  70. data/test/dummy/config/locales/en.yml +0 -23
  71. data/test/dummy/config/routes.rb +0 -4
  72. data/test/dummy/config/secrets.yml +0 -22
  73. data/test/dummy/config.ru +0 -4
  74. data/test/dummy/log/development.log +0 -0
  75. data/test/dummy/public/404.html +0 -67
  76. data/test/dummy/public/422.html +0 -67
  77. data/test/dummy/public/500.html +0 -66
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/fixtures/form_create/posts.yml +0 -11
  80. data/test/form_create_test.rb +0 -7
  81. data/test/helpers/form_create/posts_helper_test.rb +0 -6
  82. data/test/integration/navigation_test.rb +0 -10
  83. data/test/models/form_create/post_test.rb +0 -9
  84. data/test/test_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d62bff2f298df0b076e2531e55c7b7da4a58ac3ef7f39830d3d585fbc50ba9e
4
- data.tar.gz: 413e793f06cff6942a80fae5b91f7b9fff8e76bcd2a2be1c1a72efddbd978a5b
3
+ metadata.gz: 77a73f25d60043c3cc8c1eb4ddb88c9e04c3d3e0bb84f3ca5d33c350f18bd529
4
+ data.tar.gz: 465d8b58d50392073b2adae5af0056554582180a1524d4ab165a68101c1fe634
5
5
  SHA512:
6
- metadata.gz: 3e8e4a66528b274a2ce0882812411cb6795a0818b7cd0bf309ee60367dce1ba90f7f477e255814fd5dc6347fd4466c5458de4bc34524132412dbcafe77328dc3
7
- data.tar.gz: 1e311555216f73be8bc7b9fc2891ea5f6b44f31698e361141b76a40c7b7437faa1104196a094e41f1836c6df9754c58fda1d151aeefef03d3367a8d07d4529fb
6
+ metadata.gz: a302460374207878d7af4d65920ee2e0b95297d0cf6ef1cd2957b0ca5d7eb87d50d8e42d6d2d76af7f53f0a8b7ec5ea1dd2b84b2395593258f28f5e84a341664
7
+ data.tar.gz: 8606493cafa048c3e4214773ee96b56d090d19429187d3592d25e37f165fae5720ab7fdb208ef4893f59d6e44dfe1c2963e62d541652a8bad30f74171855584e
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2019 YOURNAME
1
+ Copyright 2019 madhubabu-nyros
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 = 'FormCreate'
11
+ rdoc.title = 'Example'
12
12
  rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
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("../test/dummy/Rakefile", __FILE__)
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
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/example .js
2
+ //= link_directory ../stylesheets/example .css
@@ -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 of plugins, if any, can be referenced here using a relative path.
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/sstephenson/sprockets#sprockets-directives) for details
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 .
@@ -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 of plugins, if any, can be referenced here using a relative path.
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 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.
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
@@ -1,4 +1,5 @@
1
- module FormCreate
1
+ module Example
2
2
  class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
3
4
  end
4
5
  end
@@ -1,8 +1,7 @@
1
- require_dependency "form_create/application_controller"
1
+ require_dependency "example/application_controller"
2
2
 
3
- module FormCreate
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 root_path
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 form_create_post_index_path
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 form_create_post_index_path
53
+ redirect_to posts_path
55
54
  else
56
55
  flash[:error] = 'Failed to delete this Post!'
57
56
  render :destroy
@@ -1,4 +1,4 @@
1
- module FormCreate
1
+ module Example
2
2
  module ApplicationHelper
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module FormCreate
1
+ module Example
2
2
  module PostsHelper
3
3
  end
4
4
  end
@@ -0,0 +1,4 @@
1
+ module Example
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Example
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: 'from@example.com'
4
+ layout 'mailer'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Example
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module Example
2
+ class Post < ApplicationRecord
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ <h1>Posts#create</h1>
2
+ <p>Find me in app/views/example/posts/create.html.erb</p>
@@ -0,0 +1,2 @@
1
+ <h1>Posts#destroy</h1>
2
+ <p>Find me in app/views/example/posts/destroy.html.erb</p>
@@ -23,7 +23,7 @@
23
23
  </p>
24
24
  </div>
25
25
  <div>
26
- <%= link_to 'Back', form_create_post_index_path %>
26
+ <%= link_to 'Back', posts_path %>
27
27
  <%= f.submit 'Update Post' %>
28
28
  </div>
29
29
  <% end %>
@@ -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>
@@ -23,7 +23,7 @@
23
23
  </p>
24
24
  </div>
25
25
  <div>
26
- <%= link_to 'Back', form_create_post_index_path %>
26
+ <%= link_to 'Back', posts_path %>
27
27
  <%= f.submit 'Create Post' %>
28
28
  </div>
29
29
  <% end %>
@@ -0,0 +1,2 @@
1
+ <h1>Posts#show</h1>
2
+ <p>Find me in app/views/example/posts/show.html.erb</p>
@@ -0,0 +1,2 @@
1
+ <h1>Posts#update</h1>
2
+ <p>Find me in app/views/example/posts/update.html.erb</p>
@@ -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
- FormCreate::Engine.routes.draw do
2
- resources :posts
1
+ Example::Engine.routes.draw do
2
+ resources :posts
3
3
  end
@@ -1,4 +1,4 @@
1
- class CreateFormCreatePosts < ActiveRecord::Migration
1
+ class CreateExamplePosts < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :posts do |t|
4
4
  t.string :title
@@ -0,0 +1,5 @@
1
+ module Example
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Example
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Example
2
+ VERSION = '0.0.2'
3
+ end
data/lib/example.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "example/engine"
2
+
3
+ module Example
4
+ # Your code goes here...
5
+ end
@@ -1,4 +1,4 @@
1
1
  # desc "Explaining what the task does"
2
- # task :form_create do
2
+ # task :example do
3
3
  # # Task goes here
4
4
  # end
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - Madhubabu
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: '0'
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: '0'
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.rdoc
49
+ - README.md
50
50
  - Rakefile
51
- - app/assets/javascripts/form_create/application.js
52
- - app/assets/javascripts/form_create/posts.js
53
- - app/assets/stylesheets/form_create/application.css
54
- - app/assets/stylesheets/form_create/posts.css
55
- - app/controllers/form_create/application_controller.rb
56
- - app/controllers/form_create/posts_controller.rb
57
- - app/helpers/form_create/application_helper.rb
58
- - app/helpers/form_create/posts_helper.rb
59
- - app/models/form_create/post.rb
60
- - app/views/form_create/posts/create.html.erb
61
- - app/views/form_create/posts/destroy.html.erb
62
- - app/views/form_create/posts/edit.html.erb
63
- - app/views/form_create/posts/index.html.erb
64
- - app/views/form_create/posts/new.html.erb
65
- - app/views/form_create/posts/show.html.erb
66
- - app/views/form_create/posts/update.html.erb
67
- - app/views/layouts/form_create/application.html.erb
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/20191011114453_create_form_create_posts.rb
70
- - lib/form_create.rb
71
- - lib/form_create/engine.rb
72
- - lib/form_create/version.rb
73
- - lib/tasks/form_create_tasks.rake
74
- - test/controllers/form_create/posts_controller_test.rb
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.4
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,3 +0,0 @@
1
- = FormCreate
2
-
3
- This project rocks and uses MIT-LICENSE.
@@ -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,4 +0,0 @@
1
- module FormCreate
2
- class Post < ActiveRecord::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- <h1>Posts#create</h1>
2
- <p>Find me in app/views/form_create/posts/create.html.erb</p>
@@ -1,2 +0,0 @@
1
- <h1>Posts#destroy</h1>
2
- <p>Find me in app/views/form_create/posts/destroy.html.erb</p>
@@ -1,2 +0,0 @@
1
- <h1>Posts#edit</h1>
2
- <p>Find me in app/views/form_create/posts/edit.html.erb</p>
@@ -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,2 +0,0 @@
1
- <h1>Posts#show</h1>
2
- <p>Find me in app/views/form_create/posts/show.html.erb</p>
@@ -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>
@@ -1,5 +0,0 @@
1
- module FormCreate
2
- class Engine < ::Rails::Engine
3
- isolate_namespace FormCreate
4
- end
5
- end