rails_apps_pages 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/lib/generators/pages/users/templates/omniauth/_user.html.erb +1 -0
- data/lib/generators/pages/users/templates/omniauth/show.html.erb +2 -0
- data/lib/generators/pages/users/templates/omniauth/users_controller.rb +0 -19
- data/lib/generators/pages/users/users_generator.rb +3 -4
- data/lib/rails_apps_pages/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1c11e41645c4a387c819a55da0f91066ae2873f
|
4
|
+
data.tar.gz: c8b903c69b38096c6968e66636ed75c0a3e51912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c99797da2d68abb0661f00f088577f7ae553e1345de57f22051c9ab3803c8bf4b4211d399875b1883a14b77e41e844a498ab911f35781f143503c0e9210df70
|
7
|
+
data.tar.gz: 8d9359f086a7b5c884f43726e7be31a7b1c21102499175793700c7e348faa16812d3c22f6983fabe62e2238dde184d59d1ff187f460120d45dfd06ef22fc7575
|
data/CHANGELOG.textile
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
<td><%= link_to user.name, user %></td>
|
@@ -6,27 +6,8 @@ class UsersController < ApplicationController
|
|
6
6
|
@users = User.all
|
7
7
|
end
|
8
8
|
|
9
|
-
def edit
|
10
|
-
@user = User.find(params[:id])
|
11
|
-
end
|
12
|
-
|
13
|
-
def update
|
14
|
-
@user = User.find(params[:id])
|
15
|
-
if @user.update_attributes(secure_params)
|
16
|
-
redirect_to @user
|
17
|
-
else
|
18
|
-
render :edit
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
9
|
def show
|
23
10
|
@user = User.find(params[:id])
|
24
11
|
end
|
25
12
|
|
26
|
-
private
|
27
|
-
|
28
|
-
def secure_params
|
29
|
-
params.require(:user).permit(:email)
|
30
|
-
end
|
31
|
-
|
32
13
|
end
|
@@ -24,12 +24,11 @@ module Pages
|
|
24
24
|
|
25
25
|
def create_omniauth_pages
|
26
26
|
return unless File.exists?('config/initializers/omniauth.rb')
|
27
|
-
copy_file 'users/edit.html.erb', 'app/views/users/edit.html.erb'
|
28
27
|
copy_file 'omniauth/users_controller.rb', 'app/controllers/users_controller.rb'
|
29
|
-
route = ' resources :users, :only => [:index, :show
|
28
|
+
route = ' resources :users, :only => [:index, :show]'
|
30
29
|
inject_into_file 'config/routes.rb', route + "\n", :after => "root :to => \"visitors#index\"\n"
|
31
|
-
|
32
|
-
|
30
|
+
copy_file 'omniauth/_user.html.erb', 'app/views/users/_user.html.erb'
|
31
|
+
copy_file 'omniauth/show.html.erb', 'app/views/users/show.html.erb'
|
33
32
|
end
|
34
33
|
|
35
34
|
def add_devise_name_field
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,6 +72,8 @@ files:
|
|
72
72
|
- lib/generators/pages/home/templates/visitors_controller.rb
|
73
73
|
- lib/generators/pages/users/templates/devise/devise_permitted_parameters.rb
|
74
74
|
- lib/generators/pages/users/templates/devise/users_controller.rb
|
75
|
+
- lib/generators/pages/users/templates/omniauth/_user.html.erb
|
76
|
+
- lib/generators/pages/users/templates/omniauth/show.html.erb
|
75
77
|
- lib/generators/pages/users/templates/omniauth/users_controller.rb
|
76
78
|
- lib/generators/pages/users/templates/users/_user.html.erb
|
77
79
|
- lib/generators/pages/users/templates/users/edit.html.erb
|