reviewable 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +23 -0
- data/app/assets/javascripts/reviewable/application.js +13 -0
- data/app/assets/stylesheets/reviewable/application.css +15 -0
- data/app/controllers/reviewable/questions_controller.rb +58 -0
- data/app/controllers/reviewable/reviewable_controller.rb +5 -0
- data/app/controllers/reviewable/reviews_controller.rb +58 -0
- data/app/helpers/reviewable/application_helper.rb +4 -0
- data/app/models/reviewable/question.rb +37 -0
- data/app/models/reviewable/review.rb +24 -0
- data/app/views/layouts/reviewable/application.html.erb +14 -0
- data/app/views/reviewable/questions/_form.html.erb +28 -0
- data/app/views/reviewable/questions/_question.html.erb +10 -0
- data/app/views/reviewable/questions/_question.json.jbuilder +10 -0
- data/app/views/reviewable/questions/edit.html.erb +3 -0
- data/app/views/reviewable/questions/index.html.erb +21 -0
- data/app/views/reviewable/questions/index.json.jbuilder +5 -0
- data/app/views/reviewable/questions/new.html.erb +3 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20141013142401_enable_uuid_ossp_extension.rb +7 -0
- data/db/migrate/20141013142552_create_reviewable_reviews.rb +15 -0
- data/db/migrate/20141013145632_create_reviewable_questions.rb +15 -0
- data/lib/reviewable.rb +4 -0
- data/lib/reviewable/acts_as_reviewable.rb +25 -0
- data/lib/reviewable/engine.rb +22 -0
- data/lib/reviewable/version.rb +3 -0
- data/lib/tasks/reviewable_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/product.rb +4 -0
- data/spec/dummy/app/models/user.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +85 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141013173317_create_products.rb +9 -0
- data/spec/dummy/db/migrate/20141013174327_create_users.rb +9 -0
- data/spec/dummy/db/schema.rb +56 -0
- data/spec/dummy/log/development.log +256 -0
- data/spec/dummy/log/test.log +41431 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/capybara/capybara-201410141638119443873212.html +24 -0
- data/spec/dummy/tmp/capybara/capybara-201410141807209663577120.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141808528516645046.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141809478831156886.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141811022811314427.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141813201391325985.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141855296114330585.html +86 -0
- data/spec/dummy/tmp/capybara/capybara-201410141857326053813040.html +34 -0
- data/spec/dummy/tmp/capybara/capybara-201410141857482438637842.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-201410141858304336368395.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-20141014185925908498887.html +86 -0
- data/spec/dummy/tmp/capybara/capybara-201410141904184954015862.html +35 -0
- data/spec/dummy/tmp/capybara/capybara-201410141905062396116920.html +46 -0
- data/spec/dummy/tmp/capybara/capybara-201410141905261123020644.html +46 -0
- data/spec/factories/product.rb +7 -0
- data/spec/factories/question.rb +25 -0
- data/spec/factories/review.rb +22 -0
- data/spec/factories/user.rb +7 -0
- data/spec/features/questions/question_create_spec.rb +43 -0
- data/spec/features/questions/question_delete_spec.rb +30 -0
- data/spec/features/questions/question_edit_spec.rb +106 -0
- data/spec/features/questions/question_index_spec.rb +23 -0
- data/spec/models/acts_as_reviewable_spec.rb +12 -0
- data/spec/models/reviewable/question_spec.rb +27 -0
- data/spec/models/reviewable/review_spec.rb +61 -0
- data/spec/rails_helper.rb +60 -0
- data/spec/spec_helper.rb +78 -0
- metadata +263 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet" />
|
6
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
7
|
+
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<h2>New Question</h2>
|
12
|
+
|
13
|
+
<form accept-charset="UTF-8" action="/reviewable/questions" class="simple_form new_question" id="new_question" method="post"><div style="display:none"><input name="utf8" type="hidden" value="✓" /></div>
|
14
|
+
<div class="input string required question_question_text"><label class="string required" for="question_question_text"><abbr title="required">*</abbr> Question text</label><input aria-required="true" class="string required" id="question_question_text" maxlength="255" name="question[question_text]" required="required" size="255" type="text" /></div>
|
15
|
+
<div class="input string required question_question_type"><label class="string required" for="question_question_type"><abbr title="required">*</abbr> Question type</label><input aria-required="true" class="string required" id="question_question_type" maxlength="255" name="question[question_type]" required="required" size="255" type="text" /></div>
|
16
|
+
<div class="input string required question_slug"><label class="string required" for="question_slug"><abbr title="required">*</abbr> Slug</label><input aria-required="true" class="string required" id="question_slug" maxlength="255" name="question[slug]" required="required" size="255" type="text" /></div>
|
17
|
+
<div class="input string optional question_answer_options_string"><label class="string optional" for="question_answer_options_string">Answer options string</label><input class="string optional" id="question_answer_options_string" maxlength="255" name="question[answer_options_string]" size="255" type="text" /></div>
|
18
|
+
<div class="input integer optional question_answer_min"><label class="integer optional" for="question_answer_min">Answer min</label><input class="numeric integer optional" id="question_answer_min" name="question[answer_min]" step="1" type="number" /></div>
|
19
|
+
<div class="input integer optional question_answer_max"><label class="integer optional" for="question_answer_max">Answer max</label><input class="numeric integer optional" id="question_answer_max" name="question[answer_max]" step="1" type="number" /></div>
|
20
|
+
<div class="input boolean optional question_enabled"><input name="question[enabled]" type="hidden" value="0" /><input class="boolean optional" id="question_enabled" name="question[enabled]" type="checkbox" value="1" /><label class="boolean optional" for="question_enabled">Enabled</label></div>
|
21
|
+
</form>
|
22
|
+
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html><html><head>
|
2
|
+
<title>Dummy</title>
|
3
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
|
4
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<h2>Questions</h2>
|
10
|
+
|
11
|
+
<table class="table table-striped">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Question text</th>
|
15
|
+
<th>Question type</th>
|
16
|
+
<th>Enabled</th>
|
17
|
+
<th>Updated at</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<a href="/reviewable/questions/new">New Question</a>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
</body></html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html><html><head>
|
2
|
+
<title>Dummy</title>
|
3
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
|
4
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<h2>Questions</h2>
|
10
|
+
|
11
|
+
<table class="table table-striped">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Question text</th>
|
15
|
+
<th>Question type</th>
|
16
|
+
<th>Enabled</th>
|
17
|
+
<th>Updated at</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<a href="/reviewable/questions/new">New Question</a>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
</body></html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html><html><head>
|
2
|
+
<title>Dummy</title>
|
3
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
|
4
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<h2>Questions</h2>
|
10
|
+
|
11
|
+
<table class="table table-striped">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Question text</th>
|
15
|
+
<th>Question type</th>
|
16
|
+
<th>Enabled</th>
|
17
|
+
<th>Updated at</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<a href="/reviewable/questions/new">New Question</a>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
</body></html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html><html><head>
|
2
|
+
<title>Dummy</title>
|
3
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
|
4
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<h2>Questions</h2>
|
10
|
+
|
11
|
+
<table class="table table-striped">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Question text</th>
|
15
|
+
<th>Question type</th>
|
16
|
+
<th>Enabled</th>
|
17
|
+
<th>Updated at</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<a href="/reviewable/questions/new">New Question</a>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
</body></html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!DOCTYPE html><html><head>
|
2
|
+
<title>Dummy</title>
|
3
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
|
4
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
|
9
|
+
<h2>Questions</h2>
|
10
|
+
|
11
|
+
<table class="table table-striped">
|
12
|
+
<thead>
|
13
|
+
<tr>
|
14
|
+
<th>Question text</th>
|
15
|
+
<th>Question type</th>
|
16
|
+
<th>Enabled</th>
|
17
|
+
<th>Updated at</th>
|
18
|
+
<th></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
|
22
|
+
<tbody>
|
23
|
+
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<a href="/reviewable/questions/new">New Question</a>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
</body></html>
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet" />
|
6
|
+
<script data-turbolinks-track="true" src="/assets/application.js"></script>
|
7
|
+
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<h2>Questions</h2>
|
12
|
+
|
13
|
+
<table class='table table-striped'>
|
14
|
+
<thead>
|
15
|
+
<tr>
|
16
|
+
<th>Question text</th>
|
17
|
+
<th>Question type</th>
|
18
|
+
<th>Enabled</th>
|
19
|
+
<th>Updated at</th>
|
20
|
+
<th></th>
|
21
|
+
</tr>
|
22
|
+
</thead>
|
23
|
+
|
24
|
+
<tbody>
|
25
|
+
#<ActiveRecord::Relation [#<Reviewable::Question id: 1047, question_text: "question_3", question_type: "integer", slug: "slug_3", answer_options_string: "", answer_min: nil, answer_max: nil, enabled: nil, created_at: "2014-10-14 16:55:29", updated_at: "2014-10-14 16:55:29">, #<Reviewable::Question id: 1048, question_text: "question_4", question_type: "select", slug: "slug_4", answer_options_string: "", answer_min: nil, answer_max: nil, enabled: nil, created_at: "2014-10-14 16:55:29", updated_at: "2014-10-14 16:55:29">, #<Reviewable::Question id: 1049, question_text: "question_5", question_type: "integer", slug: "slug_5", answer_options_string: "", answer_min: nil, answer_max: nil, enabled: nil, created_at: "2014-10-14 16:55:29", updated_at: "2014-10-14 16:55:29">, #<Reviewable::Question id: 1050, question_text: "question_6", question_type: "text", slug: "slug_6", answer_options_string: "", answer_min: nil, answer_max: nil, enabled: nil, created_at: "2014-10-14 16:55:29", updated_at: "2014-10-14 16:55:29">, #<Reviewable::Question id: 1051, question_text: "question_7", question_type: "string", slug: "slug_7", answer_options_string: "", answer_min: nil, answer_max: nil, enabled: nil, created_at: "2014-10-14 16:55:29", updated_at: "2014-10-14 16:55:29">]>
|
26
|
+
<tr>
|
27
|
+
<td>question_3</td>
|
28
|
+
<td>integer</td>
|
29
|
+
<td></td>
|
30
|
+
<td>2014-10-14 16:55:29 UTC</td>
|
31
|
+
<td>
|
32
|
+
<a href="/reviewable/questions/1047/edit">Edit</a> |
|
33
|
+
<a data-confirm="Are you sure?" data-method="delete" href="/reviewable/questions/1047" rel="nofollow">Destroy</a>
|
34
|
+
</td>
|
35
|
+
</tr>
|
36
|
+
<tr>
|
37
|
+
<td>question_4</td>
|
38
|
+
<td>select</td>
|
39
|
+
<td></td>
|
40
|
+
<td>2014-10-14 16:55:29 UTC</td>
|
41
|
+
<td>
|
42
|
+
<a href="/reviewable/questions/1048/edit">Edit</a> |
|
43
|
+
<a data-confirm="Are you sure?" data-method="delete" href="/reviewable/questions/1048" rel="nofollow">Destroy</a>
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
<tr>
|
47
|
+
<td>question_5</td>
|
48
|
+
<td>integer</td>
|
49
|
+
<td></td>
|
50
|
+
<td>2014-10-14 16:55:29 UTC</td>
|
51
|
+
<td>
|
52
|
+
<a href="/reviewable/questions/1049/edit">Edit</a> |
|
53
|
+
<a data-confirm="Are you sure?" data-method="delete" href="/reviewable/questions/1049" rel="nofollow">Destroy</a>
|
54
|
+
</td>
|
55
|
+
</tr>
|
56
|
+
<tr>
|
57
|
+
<td>question_6</td>
|
58
|
+
<td>text</td>
|
59
|
+
<td></td>
|
60
|
+
<td>2014-10-14 16:55:29 UTC</td>
|
61
|
+
<td>
|
62
|
+
<a href="/reviewable/questions/1050/edit">Edit</a> |
|
63
|
+
<a data-confirm="Are you sure?" data-method="delete" href="/reviewable/questions/1050" rel="nofollow">Destroy</a>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>question_7</td>
|
68
|
+
<td>string</td>
|
69
|
+
<td></td>
|
70
|
+
<td>2014-10-14 16:55:29 UTC</td>
|
71
|
+
<td>
|
72
|
+
<a href="/reviewable/questions/1051/edit">Edit</a> |
|
73
|
+
<a data-confirm="Are you sure?" data-method="delete" href="/reviewable/questions/1051" rel="nofollow">Destroy</a>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
|
77
|
+
</tbody>
|
78
|
+
</table>
|
79
|
+
|
80
|
+
<br>
|
81
|
+
|
82
|
+
<a href="/reviewable/questions/new">New Question</a>
|
83
|
+
|
84
|
+
|
85
|
+
</body>
|
86
|
+
</html>
|