rails_apps_pages 0.1.0

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 (32) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.textile +5 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.textile +153 -0
  9. data/Rakefile +2 -0
  10. data/lib/generators/clean/gemfile_generator.rb +17 -0
  11. data/lib/generators/clean/routes_generator.rb +17 -0
  12. data/lib/generators/pages/authorized/authorized_generator.rb +25 -0
  13. data/lib/generators/pages/authorized/templates/users/_user.html.erb +12 -0
  14. data/lib/generators/pages/authorized/templates/users/index.html.erb +16 -0
  15. data/lib/generators/pages/authorized/templates/users/show.html.erb +2 -0
  16. data/lib/generators/pages/authorized/templates/users_controller.rb +46 -0
  17. data/lib/generators/pages/authorized/templates/visitors/index.html.erb +2 -0
  18. data/lib/generators/pages/authorized/templates/visitors_controller.rb +2 -0
  19. data/lib/generators/pages/home/home_generator.rb +19 -0
  20. data/lib/generators/pages/home/templates/index.html.erb +1 -0
  21. data/lib/generators/pages/home/templates/visitors_controller.rb +2 -0
  22. data/lib/generators/pages/users/templates/users/_user.html.erb +3 -0
  23. data/lib/generators/pages/users/templates/users/index.html.erb +16 -0
  24. data/lib/generators/pages/users/templates/users/show.html.erb +2 -0
  25. data/lib/generators/pages/users/templates/users_controller.rb +12 -0
  26. data/lib/generators/pages/users/templates/visitors/index.html.erb +2 -0
  27. data/lib/generators/pages/users/templates/visitors_controller.rb +2 -0
  28. data/lib/generators/pages/users/users_generator.rb +25 -0
  29. data/lib/rails_apps_pages.rb +5 -0
  30. data/lib/rails_apps_pages/version.rb +3 -0
  31. data/rails_apps_pages.gemspec +23 -0
  32. metadata +103 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ba3a1a31cdbd9801ce11a4c2f6770185edfb83b2
4
+ data.tar.gz: 608cfffbc48fc019767260605bf2d5e8863ce06c
5
+ SHA512:
6
+ metadata.gz: c13ac0bb6597651c329ca3cedfa1e9d45faa9e7eabe3cdee228ce410aebdef5f0fc838739b3e686e2c9768541b01252053917d1118204067f82f45624bbb3422
7
+ data.tar.gz: 3f2f2ae34a86c319a2659785ead8aa11661d7090baf3e96d575ebced6340a137846cdc7ab5d9e57e5f19112a4582f5ee38a9fbf30a63f40f78052da613c7f906
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+ .DS_Store
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ rails_apps_pages
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.1
data/CHANGELOG.textile ADDED
@@ -0,0 +1,5 @@
1
+ h1. CHANGELOG
2
+
3
+ h3. 0.1.0 May 1, 2014
4
+
5
+ * initial release
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rails_apps_pages.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Daniel Kehoe
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.textile ADDED
@@ -0,0 +1,153 @@
1
+ h1. !http://railsapps.github.io/images/rails-36x36.jpg(RailsApps Page Gem)! RailsApps Pages Gem
2
+
3
+ Use this gem to add pages to a Rails application, including controllers, views, and routing.
4
+
5
+ RailsApps Pages is a utility gem to use during development. You can remove it after generating the pages you need. It was originally written for use by the "Rails Composer":http://railsapps.github.io/rails-composer/ tool. Use Rails Composer to build any of the "RailApps example applications":http://railsapps.github.io/ for use as starter apps.
6
+
7
+ If you like the RailsApps Pages gem, you might be interested in the "RailsLayout gem":https://github.com/RailsApps/rails_layout which generates Rails application layout files for various front-end frameworks such as Bootstrap and Foundation.
8
+
9
+ h4. !http://railsapps.github.io/images/join/join-railsapps.png(Join RailsApps)!:http://railsapps.github.io/
10
+
11
+ h4. Support the RailsApps Project
12
+
13
+ If the RailsApps Pages gem is useful to you, please accept our invitation to "join the RailsApps project":http://railsapps.github.io/. The RailsApps project provides example applications, tutorials, and starter tools, including the RailsApps Pages gem.
14
+
15
+ h2. Install the Gem
16
+
17
+ Add the gem to your Rails application Gemfile:
18
+
19
+ <pre>
20
+ group :development do
21
+ gem 'rails_apps_pages'
22
+ end
23
+ </pre>
24
+
25
+ You don't need the RailsApps Pages gem deployed to production, so put it in the @development@ group.
26
+
27
+ If you want to use a newer unreleased version from GitHub:
28
+
29
+ <pre>
30
+ group :development do
31
+ gem 'rails_apps_pages', github: 'RailsApps/rails_apps_pages'
32
+ end
33
+ </pre>
34
+
35
+ h4. Use Bundler
36
+
37
+ Use Bundler to install the gems:
38
+
39
+ <pre>
40
+ $ bundle install
41
+ </pre>
42
+
43
+ h2. Generate a Home Page
44
+
45
+ To run the generator and create a home page:
46
+
47
+ <pre>
48
+ $ rails generate pages:home
49
+ </pre>
50
+
51
+ The generator will create:
52
+
53
+ * app/views/visitors/index.html.erb
54
+ * app/controllers/visitors_controller.rb
55
+
56
+ It will add a route to the *config/routes.rb* file:
57
+
58
+ <pre>
59
+ root :to => "visitors#index"
60
+ </pre>
61
+
62
+ Why a "Visitors" controller? Why not a "Home" controller or "Welcome" controller? Those names are acceptable. But the home page often implements a user story for a persona named "visitor," so a "Visitors" controller is appropriate.
63
+
64
+ h2. Generate User Pages Requiring Authentication
65
+
66
+ If you have a User model and authentication with Devise, you might want to add pages to display a list of users or each user's profile, restricted to logged in users.
67
+
68
+ To run the generator and create pages to accompany a User model:
69
+
70
+ <pre>
71
+ $ rails generate pages:users
72
+ </pre>
73
+
74
+ The generator will create:
75
+
76
+ * app/views/visitors/index.html.erb
77
+ * app/controllers/visitors_controller.rb
78
+ * app/views/users/_user.html.erb
79
+ * app/views/users/index.html.erb
80
+ * app/views/users/show.html.erb
81
+ * app/controllers/users_controller.rb
82
+
83
+ It will add routes to the *config/routes.rb* file:
84
+
85
+ <pre>
86
+ resources :users
87
+ root :to => "visitors#index"
88
+ </pre>
89
+
90
+ h2. Generate User Pages Requiring Authorization
91
+
92
+ If you have a User model, authentication with Devise, and authorization with Pundit, you might want to add pages to display a list of users, restricted to an administrator. Each user can see his or her own profile if logged in.
93
+
94
+ To run the generator and create pages to accompany a User model:
95
+
96
+ <pre>
97
+ $ rails generate pages:authorized
98
+ </pre>
99
+
100
+ The generator will create:
101
+
102
+ * app/views/visitors/index.html.erb
103
+ * app/controllers/visitors_controller.rb
104
+ * app/views/users/_user.html.erb
105
+ * app/views/users/index.html.erb
106
+ * app/views/users/show.html.erb
107
+ * app/controllers/users_controller.rb
108
+
109
+ It will add routes to the *config/routes.rb* file:
110
+
111
+ <pre>
112
+ resources :users
113
+ root :to => "visitors#index"
114
+ </pre>
115
+
116
+ All files are identical to the @rails generate pages:users@ generator, except:
117
+
118
+ * app/views/users/_user.html.erb
119
+ * app/controllers/users_controller.rb
120
+
121
+ h2. Clean a Gemfile
122
+
123
+ Remove commented lines and multiple blank lines from a Gemfile:
124
+
125
+ <pre>
126
+ $ rails generate clean:gemfile
127
+ </pre>
128
+
129
+ h2. Clean a Routes File
130
+
131
+ Remove commented lines and multiple blank lines from the file *config/routes.rb*:
132
+
133
+ <pre>
134
+ $ rails generate clean:routes
135
+ </pre>
136
+
137
+ h2. Issues
138
+
139
+ Any issues? Please create an "issue":http://github.com/RailsApps/rails_apps_pages/issues on GitHub. Reporting issues (and patching!) helps everyone.
140
+
141
+ h2. Credits
142
+
143
+ Daniel Kehoe maintains this gem as part of the "RailsApps project":http://railsapps.github.io/.
144
+
145
+ Please see the "CHANGELOG":https://github.com/RailsApps/rails_apps_pages/blob/master/CHANGELOG.textile for a list of contributors.
146
+
147
+ Is the gem useful to you? Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. I'd love to know you were helped out by the gem.
148
+
149
+ h2. MIT License
150
+
151
+ "MIT License":http://www.opensource.org/licenses/mit-license
152
+
153
+ Copyright © 2014 Daniel Kehoe
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+
3
+ module Clean
4
+ module Generators
5
+ class GemfileGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "remove commented lines and multiple blank lines from a Gemfile"
9
+
10
+ def clean_gemfile
11
+ gsub_file 'Gemfile', /#.*\n/, "\n"
12
+ gsub_file 'Gemfile', /\n^\s*\n/, "\n"
13
+ end
14
+
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+
3
+ module Clean
4
+ module Generators
5
+ class RoutesGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "remove commented lines and multiple blank lines from config/routes.rb"
9
+
10
+ def clean_gemfile
11
+ gsub_file 'config/routes.rb', / #.*\n/, "\n"
12
+ gsub_file 'config/routes.rb', /\n^\s*\n/, "\n"
13
+ end
14
+
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ require 'rails/generators'
2
+
3
+ module Pages
4
+ module Generators
5
+ class AuthorizedGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "Create pages to accompany a User model when authorization is available."
9
+
10
+ def create_page
11
+ copy_file 'users/_user.html.erb', 'app/views/users/_user.html.erb'
12
+ copy_file 'users/index.html.erb', 'app/views/users/index.html.erb'
13
+ copy_file 'users/show.html.erb', 'app/views/users/show.html.erb'
14
+ copy_file 'users_controller.rb', 'app/controllers/users_controller.rb'
15
+ route = ' resources :users'
16
+ inject_into_file 'config/routes.rb', route + "\n", :before => "end"
17
+ copy_file 'visitors/index.html.erb', 'app/views/visitors/index.html.erb'
18
+ copy_file 'visitors_controller.rb', 'app/controllers/visitors_controller.rb'
19
+ route = ' root :to => "visitors#index"'
20
+ inject_into_file 'config/routes.rb', route + "\n", :after => "routes.draw do\n"
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,12 @@
1
+ <td>
2
+ <%= link_to user.email, user %>
3
+ </td>
4
+ <td>
5
+ <%= form_for(user) do |f| %>
6
+ <%= f.select(:role, User.roles.keys.map {|role| [role.titleize,role]}) %>
7
+ <%= f.submit 'Change Role', :class => 'button-xs' %>
8
+ <% end %>
9
+ </td>
10
+ <td>
11
+ <%= link_to("Delete user", user_path(user), :data => { :confirm => "Are you sure?" }, :method => :delete, :class => 'button-xs') unless user == current_user %>
12
+ </td>
@@ -0,0 +1,16 @@
1
+ <div class="container">
2
+ <div class="row">
3
+ <h3>Users</h3>
4
+ <div class="column">
5
+ <table class="table">
6
+ <tbody>
7
+ <% @users.each do |user| %>
8
+ <tr>
9
+ <%= render user %>
10
+ </tr>
11
+ <% end %>
12
+ </tbody>
13
+ </table>
14
+ </div>
15
+ </div>
16
+ </div>
@@ -0,0 +1,2 @@
1
+ <h3>User</h3>
2
+ <p>Email: <%= @user.email if @user.email %></p>
@@ -0,0 +1,46 @@
1
+ class UsersController < ApplicationController
2
+ before_filter :authenticate_user!
3
+ after_action :verify_authorized, except: [:show]
4
+
5
+ def index
6
+ @users = User.all
7
+ authorize @users
8
+ end
9
+
10
+ def show
11
+ @user = User.find(params[:id])
12
+ unless current_user.admin?
13
+ unless @user == current_user
14
+ redirect_to root_path, :alert => "Access denied."
15
+ end
16
+ end
17
+ end
18
+
19
+ def update
20
+ @user = User.find(params[:id])
21
+ authorize @user
22
+ if @user.update_attributes(secure_params)
23
+ redirect_to users_path, :notice => "User updated."
24
+ else
25
+ redirect_to users_path, :alert => "Unable to update user."
26
+ end
27
+ end
28
+
29
+ def destroy
30
+ user = User.find(params[:id])
31
+ authorize user
32
+ unless user == current_user
33
+ user.destroy
34
+ redirect_to users_path, :notice => "User deleted."
35
+ else
36
+ redirect_to users_path, :notice => "Can't delete yourself."
37
+ end
38
+ end
39
+
40
+ private
41
+
42
+ def secure_params
43
+ params.require(:user).permit(:role)
44
+ end
45
+
46
+ end
@@ -0,0 +1,2 @@
1
+ <h3>Welcome</h3>
2
+ <p><%= link_to 'Users:', users_path %> <%= User.count %> registered</p>
@@ -0,0 +1,2 @@
1
+ class VisitorsController < ApplicationController
2
+ end
@@ -0,0 +1,19 @@
1
+ require 'rails/generators'
2
+
3
+ module Pages
4
+ module Generators
5
+ class HomeGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "Create a home page"
9
+
10
+ def create_page
11
+ copy_file 'index.html.erb', 'app/views/visitors/index.html.erb'
12
+ copy_file 'visitors_controller.rb', 'app/controllers/visitors_controller.rb'
13
+ route = ' root :to => "visitors#index"'
14
+ inject_into_file 'config/routes.rb', route + "\n", :after => "routes.draw do\n"
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -0,0 +1 @@
1
+ <h3>Welcome</h3>
@@ -0,0 +1,2 @@
1
+ class VisitorsController < ApplicationController
2
+ end
@@ -0,0 +1,3 @@
1
+ <td>
2
+ <%= link_to user.email, user %>
3
+ </td>
@@ -0,0 +1,16 @@
1
+ <div class="container">
2
+ <div class="row">
3
+ <h3>Users</h3>
4
+ <div class="column">
5
+ <table class="table">
6
+ <tbody>
7
+ <% @users.each do |user| %>
8
+ <tr>
9
+ <%= render user %>
10
+ </tr>
11
+ <% end %>
12
+ </tbody>
13
+ </table>
14
+ </div>
15
+ </div>
16
+ </div>
@@ -0,0 +1,2 @@
1
+ <h3>User</h3>
2
+ <p>Email: <%= @user.email if @user.email %></p>
@@ -0,0 +1,12 @@
1
+ class UsersController < ApplicationController
2
+ before_filter :authenticate_user!
3
+
4
+ def index
5
+ @users = User.all
6
+ end
7
+
8
+ def show
9
+ @user = User.find(params[:id])
10
+ end
11
+
12
+ end
@@ -0,0 +1,2 @@
1
+ <h3>Welcome</h3>
2
+ <p><%= link_to 'Users:', users_path %> <%= User.count %> registered</p>
@@ -0,0 +1,2 @@
1
+ class VisitorsController < ApplicationController
2
+ end
@@ -0,0 +1,25 @@
1
+ require 'rails/generators'
2
+
3
+ module Pages
4
+ module Generators
5
+ class UsersGenerator < ::Rails::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ desc "Create pages to accompany a User model when authentication is available."
9
+
10
+ def create_page
11
+ copy_file 'users/_user.html.erb', 'app/views/users/_user.html.erb'
12
+ copy_file 'users/index.html.erb', 'app/views/users/index.html.erb'
13
+ copy_file 'users/show.html.erb', 'app/views/users/show.html.erb'
14
+ copy_file 'users_controller.rb', 'app/controllers/users_controller.rb'
15
+ route = ' resources :users'
16
+ inject_into_file 'config/routes.rb', route + "\n", :before => "end"
17
+ copy_file 'visitors/index.html.erb', 'app/views/visitors/index.html.erb'
18
+ copy_file 'visitors_controller.rb', 'app/controllers/visitors_controller.rb'
19
+ route = ' root :to => "visitors#index"'
20
+ inject_into_file 'config/routes.rb', route + "\n", :after => "routes.draw do\n"
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,5 @@
1
+ require "rails_apps_pages/version"
2
+
3
+ module RailsAppsPages
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module RailsAppsPages
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rails_apps_pages/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rails_apps_pages"
8
+ spec.version = RailsAppsPages::VERSION
9
+ spec.authors = ["Daniel Kehoe"]
10
+ spec.email = ["daniel@danielkehoe.com"]
11
+ spec.summary = %q{Add pages to a Rails application, including controllers, views, and routing.}
12
+ spec.description = %q{A utility gem to use during development. Generates controllers, views, and routing.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_apps_pages
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Kehoe
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: A utility gem to use during development. Generates controllers, views,
42
+ and routing.
43
+ email:
44
+ - daniel@danielkehoe.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - ".ruby-gemset"
51
+ - ".ruby-version"
52
+ - CHANGELOG.textile
53
+ - Gemfile
54
+ - LICENSE.txt
55
+ - README.textile
56
+ - Rakefile
57
+ - lib/generators/clean/gemfile_generator.rb
58
+ - lib/generators/clean/routes_generator.rb
59
+ - lib/generators/pages/authorized/authorized_generator.rb
60
+ - lib/generators/pages/authorized/templates/users/_user.html.erb
61
+ - lib/generators/pages/authorized/templates/users/index.html.erb
62
+ - lib/generators/pages/authorized/templates/users/show.html.erb
63
+ - lib/generators/pages/authorized/templates/users_controller.rb
64
+ - lib/generators/pages/authorized/templates/visitors/index.html.erb
65
+ - lib/generators/pages/authorized/templates/visitors_controller.rb
66
+ - lib/generators/pages/home/home_generator.rb
67
+ - lib/generators/pages/home/templates/index.html.erb
68
+ - lib/generators/pages/home/templates/visitors_controller.rb
69
+ - lib/generators/pages/users/templates/users/_user.html.erb
70
+ - lib/generators/pages/users/templates/users/index.html.erb
71
+ - lib/generators/pages/users/templates/users/show.html.erb
72
+ - lib/generators/pages/users/templates/users_controller.rb
73
+ - lib/generators/pages/users/templates/visitors/index.html.erb
74
+ - lib/generators/pages/users/templates/visitors_controller.rb
75
+ - lib/generators/pages/users/users_generator.rb
76
+ - lib/rails_apps_pages.rb
77
+ - lib/rails_apps_pages/version.rb
78
+ - rails_apps_pages.gemspec
79
+ homepage: ''
80
+ licenses:
81
+ - MIT
82
+ metadata: {}
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubyforge_project:
99
+ rubygems_version: 2.2.2
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Add pages to a Rails application, including controllers, views, and routing.
103
+ test_files: []