survey_generator 0.2.98 → 0.2.99
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
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTJlMWJmNDZiMThlZDk5NjIyZmVjZTUxMGI5ODU4MDljMTg5M2ZiMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTI1OWIzZmY3NGNkZDI5NWNiOThmZjU2NTY4ZDFlMzJkN2MwNmRjYg==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTRkNTkzOTk4NjhkMzU0Y2I5Y2FjZWU4Yjg5YjllNTFhMzk0NjllMGY3ZmQz
|
|
10
|
+
ZmJiNDVhODQ1YTJkMzI4NmJiNDBjYTY2MzY4YjY3YTFhNGJjMDg0NTA5Mzg0
|
|
11
|
+
NjE2NDBlNWZmZWNjMTQwZmUzMGQzNDA2Mzc0ZGQ1ZGJiZWNkNTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZmI3MjVhMzM4MDlhZTA4OTQwNTVhNDZmMjljMDc1Mzk4OTk4ZDAwMjI5YzQy
|
|
14
|
+
NjcwODY1MGM4ZWQwYzU5ZGJmOWE0MTVkNjc2MDNmYzhmYjUwMDkxN2IyOGRh
|
|
15
|
+
MWFiMWIxMTYwZGViNzQyOTJmMDBjZDRhNmMwNzVhMjQxZDFiMTY=
|
|
@@ -1,84 +1,46 @@
|
|
|
1
|
-
<% define '
|
|
1
|
+
<% define 'static' do %>
|
|
2
2
|
<% file "config/routes.rb" do %>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<%
|
|
13
|
-
match '/signup', to: 'users#new'
|
|
14
|
-
match '/signin', to: 'sessions#new'
|
|
15
|
-
match '/signout', to: 'sessions#destroy', via: :delete
|
|
16
|
-
|
|
17
|
-
<%nl%>
|
|
18
|
-
match '/help', to: 'static_pages#help'
|
|
19
|
-
match '/about', to: 'static_pages#about'
|
|
20
|
-
match '/contact', to: 'static_pages#contact'
|
|
21
|
-
|
|
22
|
-
<%nl%>
|
|
23
|
-
match '/<%= plural_name %>', to: '<%= plural_name %>#index'
|
|
3
|
+
<% expand 'start' %><%iinc%>
|
|
4
|
+
<% expand 'base' %>
|
|
5
|
+
<%idec%><% expand 'end' %>
|
|
6
|
+
<% end %>
|
|
7
|
+
<% end %>
|
|
8
|
+
|
|
9
|
+
<% define 'dynamic', :for => Survey do %>
|
|
10
|
+
<% file "config/routes.rb" do %>
|
|
11
|
+
<% expand 'start' %><%iinc%>
|
|
12
|
+
<% expand 'base' %>
|
|
24
13
|
|
|
25
14
|
<%nl%>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
# Sample of regular route:
|
|
30
|
-
# match 'products/:id' => 'catalog#view'
|
|
31
|
-
# Keep in mind you can assign values other than :controller and :action
|
|
32
|
-
|
|
33
|
-
# Sample of named route:
|
|
34
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
|
35
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
|
36
|
-
|
|
37
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
|
38
|
-
# resources :products
|
|
39
|
-
|
|
40
|
-
# Sample resource route with options:
|
|
41
|
-
# resources :products do
|
|
42
|
-
# member do
|
|
43
|
-
# get 'short'
|
|
44
|
-
# post 'toggle'
|
|
45
|
-
# end
|
|
46
|
-
#
|
|
47
|
-
# collection do
|
|
48
|
-
# get 'sold'
|
|
49
|
-
# end
|
|
50
|
-
# end
|
|
51
|
-
|
|
52
|
-
# Sample resource route with sub-resources:
|
|
53
|
-
# resources :products do
|
|
54
|
-
# resources :comments, :sales
|
|
55
|
-
# resource :seller
|
|
56
|
-
# end
|
|
57
|
-
|
|
58
|
-
# Sample resource route with more complex sub-resources
|
|
59
|
-
# resources :products do
|
|
60
|
-
# resources :comments
|
|
61
|
-
# resources :sales do
|
|
62
|
-
# get 'recent', :on => :collection
|
|
63
|
-
# end
|
|
64
|
-
# end
|
|
65
|
-
|
|
66
|
-
# Sample resource route within a namespace:
|
|
67
|
-
# namespace :admin do
|
|
68
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
|
69
|
-
# # (app/controllers/admin/products_controller.rb)
|
|
70
|
-
# resources :products
|
|
71
|
-
# end
|
|
72
|
-
|
|
73
|
-
# You can have the root of your site routed with "root"
|
|
74
|
-
# just remember to delete public/index.html.
|
|
75
|
-
# root :to => 'welcome#index'
|
|
76
|
-
|
|
77
|
-
# See how all your routes lay out with "rake routes"
|
|
78
|
-
|
|
79
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
|
80
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
|
81
|
-
# match ':controller(/:action(/:id))(.:format)'
|
|
82
|
-
<%idec%>end
|
|
15
|
+
resources :<%= plural_name %>
|
|
16
|
+
match '/<%= plural_name %>', to: '<%= plural_name %>#index'
|
|
17
|
+
<%idec%><% expand 'end' %>
|
|
83
18
|
<% end %>
|
|
19
|
+
<% end %>
|
|
20
|
+
|
|
21
|
+
<% define 'start' do %>
|
|
22
|
+
<%= Rails.application.class.parent_name %>::Application.routes.draw do
|
|
23
|
+
<% end %>
|
|
24
|
+
|
|
25
|
+
<% define 'base' do %>
|
|
26
|
+
resources :surveys
|
|
27
|
+
resources :users
|
|
28
|
+
resources :sessions, only: [:new, :create, :destroy]
|
|
29
|
+
|
|
30
|
+
<%nl%>
|
|
31
|
+
root to: 'static_pages#home'
|
|
32
|
+
|
|
33
|
+
<%nl%>
|
|
34
|
+
match '/signup', to: 'users#new'
|
|
35
|
+
match '/signin', to: 'sessions#new'
|
|
36
|
+
match '/signout', to: 'sessions#destroy', via: :delete
|
|
37
|
+
|
|
38
|
+
<%nl%>
|
|
39
|
+
match '/help', to: 'static_pages#help'
|
|
40
|
+
match '/about', to: 'static_pages#about'
|
|
41
|
+
match '/contact', to: 'static_pages#contact'
|
|
42
|
+
<% end %>
|
|
43
|
+
|
|
44
|
+
<% define 'end' do %>
|
|
45
|
+
end
|
|
84
46
|
<% end %>
|