wheels 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +22 -22
- data/VERSION +1 -0
- data/app/controllers/access_control_entries_controller.rb +38 -0
- data/app/controllers/app_configs_controller.rb +17 -0
- data/app/controllers/application_controller.rb +39 -0
- data/app/controllers/attachments_controller.rb +16 -0
- data/app/controllers/blogs_controller.rb +39 -0
- data/app/controllers/discussions_controller.rb +10 -0
- data/app/controllers/external_links_controller.rb +5 -0
- data/app/controllers/feedbacks_controller.rb +10 -0
- data/app/controllers/forum_messages_controller.rb +13 -0
- data/app/controllers/forums_controller.rb +2 -0
- data/app/controllers/galleries_controller.rb +60 -0
- data/app/controllers/images_controller.rb +30 -0
- data/app/controllers/menus_controller.rb +2 -0
- data/app/controllers/pages_controller.rb +80 -0
- data/app/controllers/profiles_controller.rb +16 -0
- data/app/controllers/sitemaps_controller.rb +135 -0
- data/app/controllers/users_controller.rb +28 -0
- data/app/helpers/access_control_entries_helper.rb +2 -0
- data/app/helpers/app_configs_helper.rb +2 -0
- data/app/helpers/application_helper.rb +43 -0
- data/app/helpers/blogs_helper.rb +10 -0
- data/app/helpers/discussions_helper.rb +2 -0
- data/app/helpers/external_links_helper.rb +2 -0
- data/app/helpers/feedbacks_helper.rb +2 -0
- data/app/helpers/forums_helper.rb +2 -0
- data/app/helpers/menus_helper.rb +2 -0
- data/app/helpers/pages_helper.rb +192 -0
- data/app/helpers/sitemaps_helper.rb +12 -0
- data/app/mailers/feedback_mailer.rb +10 -0
- data/app/models/ability.rb +43 -0
- data/app/models/access_control_entry.rb +109 -0
- data/app/models/app_config.rb +26 -0
- data/app/models/attachment.rb +10 -0
- data/app/models/blog.rb +10 -0
- data/app/models/discussion.rb +19 -0
- data/app/models/external_link.rb +10 -0
- data/app/models/feedback.rb +11 -0
- data/app/models/forum.rb +4 -0
- data/app/models/forum_message.rb +5 -0
- data/app/models/gallery.rb +5 -0
- data/app/models/image.rb +10 -0
- data/app/models/menu.rb +5 -0
- data/app/models/page.rb +8 -0
- data/app/models/page_revision.rb +2 -0
- data/app/models/profile.rb +12 -0
- data/app/models/role.rb +29 -0
- data/app/models/s3_provider.rb +84 -0
- data/app/models/sitemap.rb +175 -0
- data/app/models/tagging.rb +4 -0
- data/app/models/user.rb +69 -0
- data/app/validators/email_validator.rb +22 -0
- data/app/views/access_control_entries/_form.html.haml +33 -0
- data/app/views/access_control_entries/_index.html.haml +53 -0
- data/app/views/access_control_entries/_show.html.haml +12 -0
- data/app/views/access_control_entries/create.js.haml +3 -0
- data/app/views/access_control_entries/destroy.js.haml +3 -0
- data/app/views/access_control_entries/edit.html.haml +7 -0
- data/app/views/access_control_entries/edit.js.haml +3 -0
- data/app/views/access_control_entries/index.html.haml +2 -0
- data/app/views/access_control_entries/index.js.haml +3 -0
- data/app/views/access_control_entries/new.html.haml +5 -0
- data/app/views/access_control_entries/new.js.haml +3 -0
- data/app/views/access_control_entries/show.html.haml +2 -0
- data/app/views/access_control_entries/show.js.haml +4 -0
- data/app/views/access_control_entries/update.js.haml +3 -0
- data/app/views/app_configs/_form.html.haml +11 -0
- data/app/views/app_configs/_index.html.haml +6 -0
- data/app/views/app_configs/_show.html.haml +3 -0
- data/app/views/app_configs/create.js.haml +3 -0
- data/app/views/app_configs/css.css.haml +2 -0
- data/app/views/app_configs/destroy.js.haml +3 -0
- data/app/views/app_configs/edit.html.haml +2 -0
- data/app/views/app_configs/edit.js.haml +3 -0
- data/app/views/app_configs/index.html.haml +2 -0
- data/app/views/app_configs/index.js.haml +3 -0
- data/app/views/app_configs/new.html.haml +2 -0
- data/app/views/app_configs/new.js.haml +3 -0
- data/app/views/app_configs/show.html.haml +2 -0
- data/app/views/app_configs/show.js.haml +3 -0
- data/app/views/app_configs/update.js.haml +3 -0
- data/app/views/attachments/_form.html.haml +26 -0
- data/app/views/attachments/_index.html.haml +9 -0
- data/app/views/attachments/_show.html.haml +6 -0
- data/app/views/attachments/_uploadify.html.erb +12 -0
- data/app/views/attachments/create.js.haml +3 -0
- data/app/views/attachments/destroy.js.haml +3 -0
- data/app/views/attachments/edit.js.haml +3 -0
- data/app/views/attachments/index.html.haml +2 -0
- data/app/views/attachments/index.js.haml +3 -0
- data/app/views/attachments/new.html.haml +3 -0
- data/app/views/attachments/new.js.haml +3 -0
- data/app/views/attachments/show.html.haml +2 -0
- data/app/views/attachments/show.js.haml +3 -0
- data/app/views/attachments/update.js.haml +3 -0
- data/app/views/blogs/_form.html.haml +22 -0
- data/app/views/blogs/edit.html.haml +8 -0
- data/app/views/blogs/index.html.haml +21 -0
- data/app/views/blogs/index.xml.builder +27 -0
- data/app/views/blogs/new.html.haml +6 -0
- data/app/views/blogs/show.html.haml +25 -0
- data/app/views/discussions/_form.html.haml +16 -0
- data/app/views/discussions/edit.html.haml +7 -0
- data/app/views/discussions/index.html.haml +10 -0
- data/app/views/discussions/new.html.haml +25 -0
- data/app/views/discussions/show.html.haml +16 -0
- data/app/views/external_links/_fields_for.html.haml +2 -0
- data/app/views/external_links/_form.html.haml +18 -0
- data/app/views/external_links/_show.html.haml +7 -0
- data/app/views/external_links/create.js.haml +3 -0
- data/app/views/external_links/destroy.js.haml +3 -0
- data/app/views/external_links/edit.html.haml +7 -0
- data/app/views/external_links/edit.js.haml +3 -0
- data/app/views/external_links/index.html.haml +23 -0
- data/app/views/external_links/index.js.haml +3 -0
- data/app/views/external_links/new.html.haml +5 -0
- data/app/views/external_links/new.js.haml +3 -0
- data/app/views/external_links/show.html.haml +2 -0
- data/app/views/external_links/show.js.haml +3 -0
- data/app/views/external_links/update.js.haml +3 -0
- data/app/views/feedback_mailer/submit_feedback.html.haml +22 -0
- data/app/views/feedbacks/_form.html.haml +38 -0
- data/app/views/feedbacks/index.html.haml +27 -0
- data/app/views/feedbacks/new.html.haml +6 -0
- data/app/views/feedbacks/show.html.haml +19 -0
- data/app/views/forum_messages/_form.html.haml +6 -0
- data/app/views/forum_messages/index.html.haml +11 -0
- data/app/views/forum_messages/new.html.haml +5 -0
- data/app/views/forums/_form.html.haml +13 -0
- data/app/views/forums/edit.html.haml +7 -0
- data/app/views/forums/index.html.haml +23 -0
- data/app/views/forums/new.html.haml +5 -0
- data/app/views/forums/show.html.haml +20 -0
- data/app/views/galleries/_form.html.haml +30 -0
- data/app/views/galleries/_show.html.haml +21 -0
- data/app/views/galleries/edit.html.haml +7 -0
- data/app/views/galleries/index.html.haml +15 -0
- data/app/views/galleries/new.html.haml +5 -0
- data/app/views/galleries/show.html.haml +4 -0
- data/app/views/images/_form.html.haml +10 -0
- data/app/views/images/create.js.haml +3 -0
- data/app/views/images/destroy.js.haml +3 -0
- data/app/views/images/edit.html.haml +7 -0
- data/app/views/images/edit.js.haml +3 -0
- data/app/views/images/index.html.haml +17 -0
- data/app/views/images/index.js.haml +3 -0
- data/app/views/images/new.html.haml +5 -0
- data/app/views/images/new.js.haml +3 -0
- data/app/views/images/show.html.haml +5 -0
- data/app/views/images/show.js.haml +3 -0
- data/app/views/images/update.js.haml +3 -0
- data/app/views/layouts/application.html.haml +60 -0
- data/app/views/layouts/bare.html.haml +2 -0
- data/app/views/layouts/image_dialog.html.haml +18 -0
- data/app/views/loadbehind/_destroy.js.haml +3 -0
- data/app/views/loadbehind/_edit.js.haml +4 -0
- data/app/views/loadbehind/_errors.html.haml +5 -0
- data/app/views/loadbehind/_growl_template.html.haml +65 -0
- data/app/views/loadbehind/_show_box.html.haml +9 -0
- data/app/views/loadbehind/_view.js.haml +4 -0
- data/app/views/loadbehind/growl.js.haml +4 -0
- data/app/views/loadbehind/index.js.haml +4 -0
- data/app/views/menus/_form.html.haml +13 -0
- data/app/views/menus/edit.html.haml +7 -0
- data/app/views/menus/index.html.haml +19 -0
- data/app/views/menus/new.html.haml +5 -0
- data/app/views/menus/show.html.haml +7 -0
- data/app/views/pages/_child_pages_links.html.haml +5 -0
- data/app/views/pages/_control_panel.html.haml +15 -0
- data/app/views/pages/_form.html.haml +27 -0
- data/app/views/pages/_form_fields.html.haml +23 -0
- data/app/views/pages/_show.html.haml +4 -0
- data/app/views/pages/_show_attachment.html.haml +6 -0
- data/app/views/pages/_show_small.html.haml +2 -0
- data/app/views/pages/create.js.haml +3 -0
- data/app/views/pages/destroy.js.haml +3 -0
- data/app/views/pages/edit.html.haml +16 -0
- data/app/views/pages/edit.js.haml +4 -0
- data/app/views/pages/index.html.haml +19 -0
- data/app/views/pages/index.js.haml +3 -0
- data/app/views/pages/new.html.haml +5 -0
- data/app/views/pages/new.js.haml +3 -0
- data/app/views/pages/show.html.haml +18 -0
- data/app/views/pages/show.js.haml +3 -0
- data/app/views/pages/update.js.haml +3 -0
- data/app/views/profiles/_form.html.haml +26 -0
- data/app/views/profiles/edit.html.haml +7 -0
- data/app/views/profiles/index.html.haml +25 -0
- data/app/views/profiles/new.html.haml +5 -0
- data/app/views/profiles/show.html.haml +21 -0
- data/app/views/sitemaps/edit.html.haml +12 -0
- data/app/views/sitemaps/index.html.haml +83 -0
- data/app/views/sitemaps/index.json.erb +23 -0
- data/app/views/sitemaps/new.html.haml +8 -0
- data/app/views/sitemaps/new.js.erb +0 -0
- data/app/views/users/edit.html.haml +45 -0
- data/app/views/users/index.html.haml +19 -0
- data/config/amazon_s3.yml +15 -0
- data/db/migrate/0000_devise_create_users.rb +26 -0
- data/db/migrate/0010_add_fields_to_users.rb +28 -0
- data/db/migrate/0020_create_blogs.rb +16 -0
- data/db/migrate/0030_create_galleries.rb +15 -0
- data/db/migrate/0040_create_images.rb +17 -0
- data/db/migrate/0050_create_profiles.rb +24 -0
- data/db/migrate/0060_insert_admin_user_and_roles.rb +24 -0
- data/db/migrate/0070_create_pages.rb +16 -0
- data/db/migrate/0080_create_forums.rb +13 -0
- data/db/migrate/0090_create_discussions.rb +14 -0
- data/db/migrate/0100_create_forum_messages.rb +15 -0
- data/db/migrate/0110_create_access_control_entries.rb +23 -0
- data/db/migrate/0120_create_attachments.rb +17 -0
- data/db/migrate/0130_create_roles.rb +13 -0
- data/db/migrate/0140_create_feedbacks.rb +20 -0
- data/db/migrate/0150_create_external_links.rb +14 -0
- data/db/migrate/0160_create_sitemaps.rb +17 -0
- data/db/migrate/0170_create_menus.rb +14 -0
- data/db/migrate/0180_acts_as_taggable_on_migration.rb +28 -0
- data/db/migrate/20100912194121_add_stylesheet_to_pages.rb +9 -0
- data/db/migrate/20100913073354_add_position_to_access_control_entries.rb +9 -0
- data/init.rb +2 -0
- data/lib/{core_extensions.rb → generators/core_extensions.rb} +2 -2
- data/lib/generators/templates/haml/app/views/layouts/application.html.haml +0 -0
- data/lib/generators/wheels/wheels_generator.rb +2 -0
- data/lib/generators/wheels_update/wheels_update_generator.rb +1 -1
- data/lib/wheels/routes.rb +13 -2
- data/wheels.gemspec +254 -122
- metadata +268 -124
- data/README +0 -2
- data/lib/generators/wheels/recipes/public.rb +0 -9
- data/lib/generators/wheels_update/core_extensions.3.rb +0 -64
- data/lib/wheels/base.rb +0 -7
- data/test/functional/access_control_entries_controller_test.rb +0 -49
- data/test/functional/app_configs_controller_test.rb +0 -49
- data/test/functional/discussions_controller_test.rb +0 -49
- data/test/functional/external_links_controller_test.rb +0 -49
- data/test/functional/feedback_mailer_test.rb +0 -8
- data/test/functional/feedbacks_controller_test.rb +0 -49
- data/test/functional/forums_controller_test.rb +0 -49
- data/test/functional/layouts_controller_test.rb +0 -49
- data/test/functional/member_pages_controller_test.rb +0 -49
- data/test/functional/members_controller_test.rb +0 -8
- data/test/functional/menus_controller_test.rb +0 -49
- data/test/functional/pages_controller_test.rb +0 -49
- data/test/functional/product_revisions_controller_test.rb +0 -49
- data/test/performance/browsing_test.rb +0 -9
- data/test/test_helper.rb +0 -13
- data/test/unit/access_control_entry_test.rb +0 -8
- data/test/unit/app_config_test.rb +0 -8
- data/test/unit/attachment_test.rb +0 -8
- data/test/unit/discussion_test.rb +0 -8
- data/test/unit/external_link_test.rb +0 -8
- data/test/unit/feedback_test.rb +0 -8
- data/test/unit/forum_message_test.rb +0 -8
- data/test/unit/forum_test.rb +0 -8
- data/test/unit/helpers/access_control_entries_helper_test.rb +0 -4
- data/test/unit/helpers/app_configs_helper_test.rb +0 -4
- data/test/unit/helpers/discussions_helper_test.rb +0 -4
- data/test/unit/helpers/external_links_helper_test.rb +0 -4
- data/test/unit/helpers/feedbacks_helper_test.rb +0 -4
- data/test/unit/helpers/forums_helper_test.rb +0 -4
- data/test/unit/helpers/layouts_helper_test.rb +0 -4
- data/test/unit/helpers/member_pages_helper_test.rb +0 -4
- data/test/unit/helpers/members_helper_test.rb +0 -4
- data/test/unit/helpers/menus_helper_test.rb +0 -4
- data/test/unit/helpers/pages_helper_test.rb +0 -4
- data/test/unit/helpers/product_revisions_helper_test.rb +0 -4
- data/test/unit/layout_test.rb +0 -8
- data/test/unit/member_page_test.rb +0 -8
- data/test/unit/menu_test.rb +0 -8
- data/test/unit/page_revision_test.rb +0 -8
- data/test/unit/page_test.rb +0 -8
- data/test/unit/product_revision_test.rb +0 -8
- data/test/unit/settings_test.rb +0 -8
- data/test/unit/sitemap_test.rb +0 -8
- data/test/unit/user_test.rb +0 -8
- /data/{lib/generators/wheels/templates/haml/app/views/layouts/application.html.haml → app/views/sitemaps/edit.js.erb} +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/cancan.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/cucumber.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/default.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/design.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/devise.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/factory_girl.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/haml.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/jquery.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/mongoid.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/postgresql.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/recipes.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/remarkable.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/rspec.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/wheels.rb +0 -0
- /data/lib/generators/{wheels_update/recipes/wheels.rb → recipes/wheels_update.rb} +0 -0
- /data/lib/generators/{wheels/snippets → snippets}/cucumber/database_config +0 -0
- /data/lib/generators/{wheels/templates → templates}/cancan/ability.rb +0 -0
- /data/lib/generators/{wheels/templates → templates}/database/postgresql.yml +0 -0
- /data/lib/generators/{wheels/templates → templates}/git/gitignore +0 -0
- /data/lib/generators/{wheels/templates → templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
- /data/lib/generators/{wheels/templates → templates}/mongoid/features/support/hooks.rb +0 -0
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 12
|
9
|
+
version: 0.1.12
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tyler Gannon
|
@@ -16,50 +16,284 @@ cert_chain: []
|
|
16
16
|
|
17
17
|
date: 2010-09-13 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: thoughtbot-shoulda
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
33
|
+
description: Call rails generate wheels.
|
34
|
+
email: tgannon@gmail.com
|
23
35
|
executables: []
|
24
36
|
|
25
37
|
extensions: []
|
26
38
|
|
27
39
|
extra_rdoc_files:
|
28
|
-
- README
|
40
|
+
- README.rdoc
|
29
41
|
files:
|
30
42
|
- Gemfile
|
31
|
-
-
|
43
|
+
- LICENSE
|
44
|
+
- README.rdoc
|
32
45
|
- Rakefile
|
33
|
-
-
|
46
|
+
- VERSION
|
47
|
+
- app/controllers/access_control_entries_controller.rb
|
48
|
+
- app/controllers/app_configs_controller.rb
|
49
|
+
- app/controllers/application_controller.rb
|
50
|
+
- app/controllers/attachments_controller.rb
|
51
|
+
- app/controllers/blogs_controller.rb
|
52
|
+
- app/controllers/discussions_controller.rb
|
53
|
+
- app/controllers/external_links_controller.rb
|
54
|
+
- app/controllers/feedbacks_controller.rb
|
55
|
+
- app/controllers/forum_messages_controller.rb
|
56
|
+
- app/controllers/forums_controller.rb
|
57
|
+
- app/controllers/galleries_controller.rb
|
58
|
+
- app/controllers/images_controller.rb
|
59
|
+
- app/controllers/menus_controller.rb
|
60
|
+
- app/controllers/pages_controller.rb
|
61
|
+
- app/controllers/profiles_controller.rb
|
62
|
+
- app/controllers/sitemaps_controller.rb
|
63
|
+
- app/controllers/users_controller.rb
|
64
|
+
- app/helpers/access_control_entries_helper.rb
|
65
|
+
- app/helpers/app_configs_helper.rb
|
66
|
+
- app/helpers/application_helper.rb
|
67
|
+
- app/helpers/blogs_helper.rb
|
68
|
+
- app/helpers/discussions_helper.rb
|
69
|
+
- app/helpers/external_links_helper.rb
|
70
|
+
- app/helpers/feedbacks_helper.rb
|
71
|
+
- app/helpers/forums_helper.rb
|
72
|
+
- app/helpers/menus_helper.rb
|
73
|
+
- app/helpers/pages_helper.rb
|
74
|
+
- app/helpers/sitemaps_helper.rb
|
75
|
+
- app/mailers/feedback_mailer.rb
|
76
|
+
- app/models/ability.rb
|
77
|
+
- app/models/access_control_entry.rb
|
78
|
+
- app/models/app_config.rb
|
79
|
+
- app/models/attachment.rb
|
80
|
+
- app/models/blog.rb
|
81
|
+
- app/models/discussion.rb
|
82
|
+
- app/models/external_link.rb
|
83
|
+
- app/models/feedback.rb
|
84
|
+
- app/models/forum.rb
|
85
|
+
- app/models/forum_message.rb
|
86
|
+
- app/models/gallery.rb
|
87
|
+
- app/models/image.rb
|
88
|
+
- app/models/menu.rb
|
89
|
+
- app/models/page.rb
|
90
|
+
- app/models/page_revision.rb
|
91
|
+
- app/models/profile.rb
|
92
|
+
- app/models/role.rb
|
93
|
+
- app/models/s3_provider.rb
|
94
|
+
- app/models/sitemap.rb
|
95
|
+
- app/models/tagging.rb
|
96
|
+
- app/models/user.rb
|
97
|
+
- app/validators/email_validator.rb
|
98
|
+
- app/views/access_control_entries/_form.html.haml
|
99
|
+
- app/views/access_control_entries/_index.html.haml
|
100
|
+
- app/views/access_control_entries/_show.html.haml
|
101
|
+
- app/views/access_control_entries/create.js.haml
|
102
|
+
- app/views/access_control_entries/destroy.js.haml
|
103
|
+
- app/views/access_control_entries/edit.html.haml
|
104
|
+
- app/views/access_control_entries/edit.js.haml
|
105
|
+
- app/views/access_control_entries/index.html.haml
|
106
|
+
- app/views/access_control_entries/index.js.haml
|
107
|
+
- app/views/access_control_entries/new.html.haml
|
108
|
+
- app/views/access_control_entries/new.js.haml
|
109
|
+
- app/views/access_control_entries/show.html.haml
|
110
|
+
- app/views/access_control_entries/show.js.haml
|
111
|
+
- app/views/access_control_entries/update.js.haml
|
112
|
+
- app/views/app_configs/_form.html.haml
|
113
|
+
- app/views/app_configs/_index.html.haml
|
114
|
+
- app/views/app_configs/_show.html.haml
|
115
|
+
- app/views/app_configs/create.js.haml
|
116
|
+
- app/views/app_configs/css.css.haml
|
117
|
+
- app/views/app_configs/destroy.js.haml
|
118
|
+
- app/views/app_configs/edit.html.haml
|
119
|
+
- app/views/app_configs/edit.js.haml
|
120
|
+
- app/views/app_configs/index.html.haml
|
121
|
+
- app/views/app_configs/index.js.haml
|
122
|
+
- app/views/app_configs/new.html.haml
|
123
|
+
- app/views/app_configs/new.js.haml
|
124
|
+
- app/views/app_configs/show.html.haml
|
125
|
+
- app/views/app_configs/show.js.haml
|
126
|
+
- app/views/app_configs/update.js.haml
|
127
|
+
- app/views/attachments/_form.html.haml
|
128
|
+
- app/views/attachments/_index.html.haml
|
129
|
+
- app/views/attachments/_show.html.haml
|
130
|
+
- app/views/attachments/_uploadify.html.erb
|
131
|
+
- app/views/attachments/create.js.haml
|
132
|
+
- app/views/attachments/destroy.js.haml
|
133
|
+
- app/views/attachments/edit.js.haml
|
134
|
+
- app/views/attachments/index.html.haml
|
135
|
+
- app/views/attachments/index.js.haml
|
136
|
+
- app/views/attachments/new.html.haml
|
137
|
+
- app/views/attachments/new.js.haml
|
138
|
+
- app/views/attachments/show.html.haml
|
139
|
+
- app/views/attachments/show.js.haml
|
140
|
+
- app/views/attachments/update.js.haml
|
141
|
+
- app/views/blogs/_form.html.haml
|
142
|
+
- app/views/blogs/edit.html.haml
|
143
|
+
- app/views/blogs/index.html.haml
|
144
|
+
- app/views/blogs/index.xml.builder
|
145
|
+
- app/views/blogs/new.html.haml
|
146
|
+
- app/views/blogs/show.html.haml
|
147
|
+
- app/views/discussions/_form.html.haml
|
148
|
+
- app/views/discussions/edit.html.haml
|
149
|
+
- app/views/discussions/index.html.haml
|
150
|
+
- app/views/discussions/new.html.haml
|
151
|
+
- app/views/discussions/show.html.haml
|
152
|
+
- app/views/external_links/_fields_for.html.haml
|
153
|
+
- app/views/external_links/_form.html.haml
|
154
|
+
- app/views/external_links/_show.html.haml
|
155
|
+
- app/views/external_links/create.js.haml
|
156
|
+
- app/views/external_links/destroy.js.haml
|
157
|
+
- app/views/external_links/edit.html.haml
|
158
|
+
- app/views/external_links/edit.js.haml
|
159
|
+
- app/views/external_links/index.html.haml
|
160
|
+
- app/views/external_links/index.js.haml
|
161
|
+
- app/views/external_links/new.html.haml
|
162
|
+
- app/views/external_links/new.js.haml
|
163
|
+
- app/views/external_links/show.html.haml
|
164
|
+
- app/views/external_links/show.js.haml
|
165
|
+
- app/views/external_links/update.js.haml
|
166
|
+
- app/views/feedback_mailer/submit_feedback.html.haml
|
167
|
+
- app/views/feedbacks/_form.html.haml
|
168
|
+
- app/views/feedbacks/index.html.haml
|
169
|
+
- app/views/feedbacks/new.html.haml
|
170
|
+
- app/views/feedbacks/show.html.haml
|
171
|
+
- app/views/forum_messages/_form.html.haml
|
172
|
+
- app/views/forum_messages/index.html.haml
|
173
|
+
- app/views/forum_messages/new.html.haml
|
174
|
+
- app/views/forums/_form.html.haml
|
175
|
+
- app/views/forums/edit.html.haml
|
176
|
+
- app/views/forums/index.html.haml
|
177
|
+
- app/views/forums/new.html.haml
|
178
|
+
- app/views/forums/show.html.haml
|
179
|
+
- app/views/galleries/_form.html.haml
|
180
|
+
- app/views/galleries/_show.html.haml
|
181
|
+
- app/views/galleries/edit.html.haml
|
182
|
+
- app/views/galleries/index.html.haml
|
183
|
+
- app/views/galleries/new.html.haml
|
184
|
+
- app/views/galleries/show.html.haml
|
185
|
+
- app/views/images/_form.html.haml
|
186
|
+
- app/views/images/create.js.haml
|
187
|
+
- app/views/images/destroy.js.haml
|
188
|
+
- app/views/images/edit.html.haml
|
189
|
+
- app/views/images/edit.js.haml
|
190
|
+
- app/views/images/index.html.haml
|
191
|
+
- app/views/images/index.js.haml
|
192
|
+
- app/views/images/new.html.haml
|
193
|
+
- app/views/images/new.js.haml
|
194
|
+
- app/views/images/show.html.haml
|
195
|
+
- app/views/images/show.js.haml
|
196
|
+
- app/views/images/update.js.haml
|
197
|
+
- app/views/layouts/application.html.haml
|
198
|
+
- app/views/layouts/bare.html.haml
|
199
|
+
- app/views/layouts/image_dialog.html.haml
|
200
|
+
- app/views/loadbehind/_destroy.js.haml
|
201
|
+
- app/views/loadbehind/_edit.js.haml
|
202
|
+
- app/views/loadbehind/_errors.html.haml
|
203
|
+
- app/views/loadbehind/_growl_template.html.haml
|
204
|
+
- app/views/loadbehind/_show_box.html.haml
|
205
|
+
- app/views/loadbehind/_view.js.haml
|
206
|
+
- app/views/loadbehind/growl.js.haml
|
207
|
+
- app/views/loadbehind/index.js.haml
|
208
|
+
- app/views/menus/_form.html.haml
|
209
|
+
- app/views/menus/edit.html.haml
|
210
|
+
- app/views/menus/index.html.haml
|
211
|
+
- app/views/menus/new.html.haml
|
212
|
+
- app/views/menus/show.html.haml
|
213
|
+
- app/views/pages/_child_pages_links.html.haml
|
214
|
+
- app/views/pages/_control_panel.html.haml
|
215
|
+
- app/views/pages/_form.html.haml
|
216
|
+
- app/views/pages/_form_fields.html.haml
|
217
|
+
- app/views/pages/_show.html.haml
|
218
|
+
- app/views/pages/_show_attachment.html.haml
|
219
|
+
- app/views/pages/_show_small.html.haml
|
220
|
+
- app/views/pages/create.js.haml
|
221
|
+
- app/views/pages/destroy.js.haml
|
222
|
+
- app/views/pages/edit.html.haml
|
223
|
+
- app/views/pages/edit.js.haml
|
224
|
+
- app/views/pages/index.html.haml
|
225
|
+
- app/views/pages/index.js.haml
|
226
|
+
- app/views/pages/new.html.haml
|
227
|
+
- app/views/pages/new.js.haml
|
228
|
+
- app/views/pages/show.html.haml
|
229
|
+
- app/views/pages/show.js.haml
|
230
|
+
- app/views/pages/update.js.haml
|
231
|
+
- app/views/profiles/_form.html.haml
|
232
|
+
- app/views/profiles/edit.html.haml
|
233
|
+
- app/views/profiles/index.html.haml
|
234
|
+
- app/views/profiles/new.html.haml
|
235
|
+
- app/views/profiles/show.html.haml
|
236
|
+
- app/views/sitemaps/edit.html.haml
|
237
|
+
- app/views/sitemaps/edit.js.erb
|
238
|
+
- app/views/sitemaps/index.html.haml
|
239
|
+
- app/views/sitemaps/index.json.erb
|
240
|
+
- app/views/sitemaps/new.html.haml
|
241
|
+
- app/views/sitemaps/new.js.erb
|
242
|
+
- app/views/users/edit.html.haml
|
243
|
+
- app/views/users/index.html.haml
|
244
|
+
- config/amazon_s3.yml
|
245
|
+
- db/migrate/0000_devise_create_users.rb
|
246
|
+
- db/migrate/0010_add_fields_to_users.rb
|
247
|
+
- db/migrate/0020_create_blogs.rb
|
248
|
+
- db/migrate/0030_create_galleries.rb
|
249
|
+
- db/migrate/0040_create_images.rb
|
250
|
+
- db/migrate/0050_create_profiles.rb
|
251
|
+
- db/migrate/0060_insert_admin_user_and_roles.rb
|
252
|
+
- db/migrate/0070_create_pages.rb
|
253
|
+
- db/migrate/0080_create_forums.rb
|
254
|
+
- db/migrate/0090_create_discussions.rb
|
255
|
+
- db/migrate/0100_create_forum_messages.rb
|
256
|
+
- db/migrate/0110_create_access_control_entries.rb
|
257
|
+
- db/migrate/0120_create_attachments.rb
|
258
|
+
- db/migrate/0130_create_roles.rb
|
259
|
+
- db/migrate/0140_create_feedbacks.rb
|
260
|
+
- db/migrate/0150_create_external_links.rb
|
261
|
+
- db/migrate/0160_create_sitemaps.rb
|
262
|
+
- db/migrate/0170_create_menus.rb
|
263
|
+
- db/migrate/0180_acts_as_taggable_on_migration.rb
|
264
|
+
- db/migrate/20100912194121_add_stylesheet_to_pages.rb
|
265
|
+
- db/migrate/20100913073354_add_position_to_access_control_entries.rb
|
266
|
+
- init.rb
|
34
267
|
- lib/development_mail_interceptor.rb
|
35
268
|
- lib/generators/app_layout/LICENCE
|
36
269
|
- lib/generators/app_layout/USAGE
|
37
270
|
- lib/generators/app_layout/app_layout_generator.rb
|
271
|
+
- lib/generators/core_extensions.rb
|
272
|
+
- lib/generators/recipes/cancan.rb
|
273
|
+
- lib/generators/recipes/cucumber.rb
|
274
|
+
- lib/generators/recipes/default.rb
|
275
|
+
- lib/generators/recipes/design.rb
|
276
|
+
- lib/generators/recipes/devise.rb
|
277
|
+
- lib/generators/recipes/factory_girl.rb
|
278
|
+
- lib/generators/recipes/haml.rb
|
279
|
+
- lib/generators/recipes/jquery.rb
|
280
|
+
- lib/generators/recipes/mongoid.rb
|
281
|
+
- lib/generators/recipes/postgresql.rb
|
282
|
+
- lib/generators/recipes/recipes.rb
|
283
|
+
- lib/generators/recipes/remarkable.rb
|
284
|
+
- lib/generators/recipes/rspec.rb
|
285
|
+
- lib/generators/recipes/wheels.rb
|
286
|
+
- lib/generators/recipes/wheels_update.rb
|
287
|
+
- lib/generators/snippets/cucumber/database_config
|
288
|
+
- lib/generators/templates/cancan/ability.rb
|
289
|
+
- lib/generators/templates/database/postgresql.yml
|
290
|
+
- lib/generators/templates/git/gitignore
|
291
|
+
- lib/generators/templates/haml/app/views/layouts/application.html.haml
|
292
|
+
- lib/generators/templates/mongoid/features/step_definitions/mongoid_steps.rb
|
293
|
+
- lib/generators/templates/mongoid/features/support/hooks.rb
|
38
294
|
- lib/generators/wheels/LICENCE
|
39
295
|
- lib/generators/wheels/USAGE
|
40
|
-
- lib/generators/wheels/recipes/cancan.rb
|
41
|
-
- lib/generators/wheels/recipes/cucumber.rb
|
42
|
-
- lib/generators/wheels/recipes/default.rb
|
43
|
-
- lib/generators/wheels/recipes/design.rb
|
44
|
-
- lib/generators/wheels/recipes/devise.rb
|
45
|
-
- lib/generators/wheels/recipes/factory_girl.rb
|
46
|
-
- lib/generators/wheels/recipes/haml.rb
|
47
|
-
- lib/generators/wheels/recipes/jquery.rb
|
48
|
-
- lib/generators/wheels/recipes/mongoid.rb
|
49
|
-
- lib/generators/wheels/recipes/postgresql.rb
|
50
|
-
- lib/generators/wheels/recipes/public.rb
|
51
|
-
- lib/generators/wheels/recipes/recipes.rb
|
52
|
-
- lib/generators/wheels/recipes/remarkable.rb
|
53
|
-
- lib/generators/wheels/recipes/rspec.rb
|
54
|
-
- lib/generators/wheels/recipes/wheels.rb
|
55
|
-
- lib/generators/wheels/snippets/cucumber/database_config
|
56
296
|
- lib/generators/wheels/templater.rb
|
57
|
-
- lib/generators/wheels/templates/cancan/ability.rb
|
58
|
-
- lib/generators/wheels/templates/database/postgresql.yml
|
59
|
-
- lib/generators/wheels/templates/git/gitignore
|
60
|
-
- lib/generators/wheels/templates/haml/app/views/layouts/application.html.haml
|
61
|
-
- lib/generators/wheels/templates/mongoid/features/step_definitions/mongoid_steps.rb
|
62
|
-
- lib/generators/wheels/templates/mongoid/features/support/hooks.rb
|
63
297
|
- lib/generators/wheels/wheels_generator.rb
|
64
298
|
- lib/generators/wheels_checkout_assets/USAGE
|
65
299
|
- lib/generators/wheels_checkout_assets/wheels_checkout_assets_generator.rb
|
@@ -71,8 +305,6 @@ files:
|
|
71
305
|
- lib/generators/wheels_model/wheels_model_generator.rb
|
72
306
|
- lib/generators/wheels_update/LICENCE
|
73
307
|
- lib/generators/wheels_update/USAGE
|
74
|
-
- lib/generators/wheels_update/core_extensions.3.rb
|
75
|
-
- lib/generators/wheels_update/recipes/wheels.rb
|
76
308
|
- lib/generators/wheels_update/wheels_update_generator.rb
|
77
309
|
- lib/generators/wheels_view/USAGE
|
78
310
|
- lib/generators/wheels_view/wheels_view_generator.rb
|
@@ -81,7 +313,6 @@ files:
|
|
81
313
|
- lib/wheels/action_view_helper_extensions.rb
|
82
314
|
- lib/wheels/active_record_extensions.rb
|
83
315
|
- lib/wheels/active_record_user_extensions.rb
|
84
|
-
- lib/wheels/base.rb
|
85
316
|
- lib/wheels/flash_session_cookie_middleware.rb
|
86
317
|
- lib/wheels/paperclip_interpolations.rb
|
87
318
|
- lib/wheels/password_validators.rb
|
@@ -89,50 +320,6 @@ files:
|
|
89
320
|
- lib/wheels/s3login_provider.rb
|
90
321
|
- lib/wheels/user.rb
|
91
322
|
- lib/wheels/wheels_engine.rb
|
92
|
-
- test/functional/access_control_entries_controller_test.rb
|
93
|
-
- test/functional/app_configs_controller_test.rb
|
94
|
-
- test/functional/discussions_controller_test.rb
|
95
|
-
- test/functional/external_links_controller_test.rb
|
96
|
-
- test/functional/feedback_mailer_test.rb
|
97
|
-
- test/functional/feedbacks_controller_test.rb
|
98
|
-
- test/functional/forums_controller_test.rb
|
99
|
-
- test/functional/layouts_controller_test.rb
|
100
|
-
- test/functional/member_pages_controller_test.rb
|
101
|
-
- test/functional/members_controller_test.rb
|
102
|
-
- test/functional/menus_controller_test.rb
|
103
|
-
- test/functional/pages_controller_test.rb
|
104
|
-
- test/functional/product_revisions_controller_test.rb
|
105
|
-
- test/performance/browsing_test.rb
|
106
|
-
- test/test_helper.rb
|
107
|
-
- test/unit/access_control_entry_test.rb
|
108
|
-
- test/unit/app_config_test.rb
|
109
|
-
- test/unit/attachment_test.rb
|
110
|
-
- test/unit/discussion_test.rb
|
111
|
-
- test/unit/external_link_test.rb
|
112
|
-
- test/unit/feedback_test.rb
|
113
|
-
- test/unit/forum_message_test.rb
|
114
|
-
- test/unit/forum_test.rb
|
115
|
-
- test/unit/helpers/access_control_entries_helper_test.rb
|
116
|
-
- test/unit/helpers/app_configs_helper_test.rb
|
117
|
-
- test/unit/helpers/discussions_helper_test.rb
|
118
|
-
- test/unit/helpers/external_links_helper_test.rb
|
119
|
-
- test/unit/helpers/feedbacks_helper_test.rb
|
120
|
-
- test/unit/helpers/forums_helper_test.rb
|
121
|
-
- test/unit/helpers/layouts_helper_test.rb
|
122
|
-
- test/unit/helpers/member_pages_helper_test.rb
|
123
|
-
- test/unit/helpers/members_helper_test.rb
|
124
|
-
- test/unit/helpers/menus_helper_test.rb
|
125
|
-
- test/unit/helpers/pages_helper_test.rb
|
126
|
-
- test/unit/helpers/product_revisions_helper_test.rb
|
127
|
-
- test/unit/layout_test.rb
|
128
|
-
- test/unit/member_page_test.rb
|
129
|
-
- test/unit/menu_test.rb
|
130
|
-
- test/unit/page_revision_test.rb
|
131
|
-
- test/unit/page_test.rb
|
132
|
-
- test/unit/product_revision_test.rb
|
133
|
-
- test/unit/settings_test.rb
|
134
|
-
- test/unit/sitemap_test.rb
|
135
|
-
- test/unit/user_test.rb
|
136
323
|
- wheels.gemspec
|
137
324
|
has_rdoc: true
|
138
325
|
homepage: http://github.com/tylergannon/wheels
|
@@ -165,49 +352,6 @@ rubyforge_project:
|
|
165
352
|
rubygems_version: 1.3.7
|
166
353
|
signing_key:
|
167
354
|
specification_version: 3
|
168
|
-
summary:
|
169
|
-
test_files:
|
170
|
-
|
171
|
-
- test/unit/product_revision_test.rb
|
172
|
-
- test/unit/helpers/pages_helper_test.rb
|
173
|
-
- test/unit/helpers/layouts_helper_test.rb
|
174
|
-
- test/unit/helpers/feedbacks_helper_test.rb
|
175
|
-
- test/unit/helpers/member_pages_helper_test.rb
|
176
|
-
- test/unit/helpers/product_revisions_helper_test.rb
|
177
|
-
- test/unit/helpers/menus_helper_test.rb
|
178
|
-
- test/unit/helpers/app_configs_helper_test.rb
|
179
|
-
- test/unit/helpers/external_links_helper_test.rb
|
180
|
-
- test/unit/helpers/access_control_entries_helper_test.rb
|
181
|
-
- test/unit/helpers/members_helper_test.rb
|
182
|
-
- test/unit/helpers/forums_helper_test.rb
|
183
|
-
- test/unit/helpers/discussions_helper_test.rb
|
184
|
-
- test/unit/sitemap_test.rb
|
185
|
-
- test/unit/page_revision_test.rb
|
186
|
-
- test/unit/discussion_test.rb
|
187
|
-
- test/unit/feedback_test.rb
|
188
|
-
- test/unit/access_control_entry_test.rb
|
189
|
-
- test/unit/layout_test.rb
|
190
|
-
- test/unit/page_test.rb
|
191
|
-
- test/unit/user_test.rb
|
192
|
-
- test/unit/menu_test.rb
|
193
|
-
- test/unit/external_link_test.rb
|
194
|
-
- test/unit/app_config_test.rb
|
195
|
-
- test/unit/forum_message_test.rb
|
196
|
-
- test/unit/settings_test.rb
|
197
|
-
- test/unit/forum_test.rb
|
198
|
-
- test/unit/attachment_test.rb
|
199
|
-
- test/unit/member_page_test.rb
|
200
|
-
- test/functional/forums_controller_test.rb
|
201
|
-
- test/functional/pages_controller_test.rb
|
202
|
-
- test/functional/member_pages_controller_test.rb
|
203
|
-
- test/functional/menus_controller_test.rb
|
204
|
-
- test/functional/external_links_controller_test.rb
|
205
|
-
- test/functional/feedbacks_controller_test.rb
|
206
|
-
- test/functional/product_revisions_controller_test.rb
|
207
|
-
- test/functional/feedback_mailer_test.rb
|
208
|
-
- test/functional/layouts_controller_test.rb
|
209
|
-
- test/functional/discussions_controller_test.rb
|
210
|
-
- test/functional/access_control_entries_controller_test.rb
|
211
|
-
- test/functional/members_controller_test.rb
|
212
|
-
- test/functional/app_configs_controller_test.rb
|
213
|
-
- test/test_helper.rb
|
355
|
+
summary: Generator builds a web site with blog, user profile, etc.
|
356
|
+
test_files: []
|
357
|
+
|
data/README
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
|
2
|
-
get "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "public/javascripts/jquery.js"
|
3
|
-
get "http://github.com/rails/jquery-ujs/raw/master/src/rails.js", "public/javascripts/rails.js"
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# Set default JavaScript files
|
8
|
-
# environment "config.action_view.javascript_expansions = { :defaults => ['jquery', 'rails'] }"
|
9
|
-
|
@@ -1,64 +0,0 @@
|
|
1
|
-
module Rails
|
2
|
-
module Generators
|
3
|
-
module Actions
|
4
|
-
|
5
|
-
attr_accessor :stategies
|
6
|
-
attr_accessor :recipes
|
7
|
-
attr_reader :template_options
|
8
|
-
|
9
|
-
def initialize_templater
|
10
|
-
self.recipes = []
|
11
|
-
@stategies = []
|
12
|
-
@template_options = {}
|
13
|
-
end
|
14
|
-
|
15
|
-
def execute_stategies
|
16
|
-
stategies.each {|stategy| stategy.call }
|
17
|
-
end
|
18
|
-
|
19
|
-
def load_options
|
20
|
-
@template_options[:design] = ask("Which design framework? [none(default), compass]: ").downcase
|
21
|
-
@template_options[:design] = "none" if @template_options[:design].nil?
|
22
|
-
end
|
23
|
-
|
24
|
-
def recipe(name)
|
25
|
-
recipes << name
|
26
|
-
File.join File.dirname(__FILE__), 'recipes', "#{name}.rb"
|
27
|
-
end
|
28
|
-
|
29
|
-
# TODO: Refactor loading of files
|
30
|
-
|
31
|
-
def load_snippet(name, group)
|
32
|
-
path = File.expand_path name, snippet_path(group)
|
33
|
-
File.read path
|
34
|
-
end
|
35
|
-
|
36
|
-
def load_template(name, group, match={})
|
37
|
-
path = File.expand_path name, template_path(group)
|
38
|
-
contents = File.read path
|
39
|
-
match.each do |key, value|
|
40
|
-
contents.gsub! "\%#{key.to_s}\%", value
|
41
|
-
end
|
42
|
-
contents
|
43
|
-
end
|
44
|
-
|
45
|
-
def migrations
|
46
|
-
Dir.new('db/migrate').entries
|
47
|
-
end
|
48
|
-
|
49
|
-
def have_migration?(name)
|
50
|
-
!migrations.select{|t| t.include? name}.empty?
|
51
|
-
end
|
52
|
-
|
53
|
-
def snippet_path(name)
|
54
|
-
File.join(File.dirname(__FILE__), 'snippets', name)
|
55
|
-
end
|
56
|
-
|
57
|
-
def template_path(name)
|
58
|
-
File.join(File.dirname(__FILE__), 'templates', name)
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
data/lib/wheels/base.rb
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class AccessControlEntriesControllerTest < ActionController::TestCase
|
4
|
-
setup do
|
5
|
-
@access_control_entry = access_control_entries(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get :index
|
10
|
-
assert_response :success
|
11
|
-
assert_not_nil assigns(:access_control_entries)
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should get new" do
|
15
|
-
get :new
|
16
|
-
assert_response :success
|
17
|
-
end
|
18
|
-
|
19
|
-
test "should create access_control_entry" do
|
20
|
-
assert_difference('AccessControlEntry.count') do
|
21
|
-
post :create, :access_control_entry => @access_control_entry.attributes
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_redirected_to access_control_entry_path(assigns(:access_control_entry))
|
25
|
-
end
|
26
|
-
|
27
|
-
test "should show access_control_entry" do
|
28
|
-
get :show, :id => @access_control_entry.to_param
|
29
|
-
assert_response :success
|
30
|
-
end
|
31
|
-
|
32
|
-
test "should get edit" do
|
33
|
-
get :edit, :id => @access_control_entry.to_param
|
34
|
-
assert_response :success
|
35
|
-
end
|
36
|
-
|
37
|
-
test "should update access_control_entry" do
|
38
|
-
put :update, :id => @access_control_entry.to_param, :access_control_entry => @access_control_entry.attributes
|
39
|
-
assert_redirected_to access_control_entry_path(assigns(:access_control_entry))
|
40
|
-
end
|
41
|
-
|
42
|
-
test "should destroy access_control_entry" do
|
43
|
-
assert_difference('AccessControlEntry.count', -1) do
|
44
|
-
delete :destroy, :id => @access_control_entry.to_param
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_redirected_to access_control_entries_path
|
48
|
-
end
|
49
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class AppConfigsControllerTest < ActionController::TestCase
|
4
|
-
setup do
|
5
|
-
@app_config = app_configs(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get :index
|
10
|
-
assert_response :success
|
11
|
-
assert_not_nil assigns(:app_configs)
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should get new" do
|
15
|
-
get :new
|
16
|
-
assert_response :success
|
17
|
-
end
|
18
|
-
|
19
|
-
test "should create app_config" do
|
20
|
-
assert_difference('AppConfig.count') do
|
21
|
-
post :create, :app_config => @app_config.attributes
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_redirected_to app_config_path(assigns(:app_config))
|
25
|
-
end
|
26
|
-
|
27
|
-
test "should show app_config" do
|
28
|
-
get :show, :id => @app_config.to_param
|
29
|
-
assert_response :success
|
30
|
-
end
|
31
|
-
|
32
|
-
test "should get edit" do
|
33
|
-
get :edit, :id => @app_config.to_param
|
34
|
-
assert_response :success
|
35
|
-
end
|
36
|
-
|
37
|
-
test "should update app_config" do
|
38
|
-
put :update, :id => @app_config.to_param, :app_config => @app_config.attributes
|
39
|
-
assert_redirected_to app_config_path(assigns(:app_config))
|
40
|
-
end
|
41
|
-
|
42
|
-
test "should destroy app_config" do
|
43
|
-
assert_difference('AppConfig.count', -1) do
|
44
|
-
delete :destroy, :id => @app_config.to_param
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_redirected_to app_configs_path
|
48
|
-
end
|
49
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class DiscussionsControllerTest < ActionController::TestCase
|
4
|
-
setup do
|
5
|
-
@discussion = discussions(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get :index
|
10
|
-
assert_response :success
|
11
|
-
assert_not_nil assigns(:discussions)
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should get new" do
|
15
|
-
get :new
|
16
|
-
assert_response :success
|
17
|
-
end
|
18
|
-
|
19
|
-
test "should create discussion" do
|
20
|
-
assert_difference('Discussion.count') do
|
21
|
-
post :create, :discussion => @discussion.attributes
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_redirected_to discussion_path(assigns(:discussion))
|
25
|
-
end
|
26
|
-
|
27
|
-
test "should show discussion" do
|
28
|
-
get :show, :id => @discussion.to_param
|
29
|
-
assert_response :success
|
30
|
-
end
|
31
|
-
|
32
|
-
test "should get edit" do
|
33
|
-
get :edit, :id => @discussion.to_param
|
34
|
-
assert_response :success
|
35
|
-
end
|
36
|
-
|
37
|
-
test "should update discussion" do
|
38
|
-
put :update, :id => @discussion.to_param, :discussion => @discussion.attributes
|
39
|
-
assert_redirected_to discussion_path(assigns(:discussion))
|
40
|
-
end
|
41
|
-
|
42
|
-
test "should destroy discussion" do
|
43
|
-
assert_difference('Discussion.count', -1) do
|
44
|
-
delete :destroy, :id => @discussion.to_param
|
45
|
-
end
|
46
|
-
|
47
|
-
assert_redirected_to discussions_path
|
48
|
-
end
|
49
|
-
end
|