acts_as_ferret 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +6 -0
- data/doc/demo/Gemfile +18 -0
- data/doc/demo/Rakefile +3 -6
- data/doc/demo/app/controllers/application_controller.rb +3 -0
- data/doc/demo/app/helpers/application_helper.rb +0 -1
- data/doc/demo/app/views/admin/backend/search.rhtml +1 -1
- data/doc/demo/app/views/contents/edit.rhtml +1 -1
- data/doc/demo/app/views/contents/new.rhtml +1 -1
- data/doc/demo/app/views/searches/search.html.erb +1 -1
- data/doc/demo/config.ru +4 -0
- data/doc/demo/config/application.rb +57 -0
- data/doc/demo/config/boot.rb +4 -107
- data/doc/demo/config/database.yml +16 -24
- data/doc/demo/config/environment.rb +4 -68
- data/doc/demo/config/environments/development.rb +22 -12
- data/doc/demo/config/environments/production.rb +43 -13
- data/doc/demo/config/environments/test.rb +32 -16
- data/doc/demo/config/initializers/backtrace_silencers.rb +7 -0
- data/doc/demo/config/initializers/inflections.rb +10 -0
- data/doc/demo/config/initializers/mime_types.rb +5 -0
- data/doc/demo/config/initializers/secret_token.rb +7 -0
- data/doc/demo/config/initializers/session_store.rb +13 -0
- data/doc/demo/config/locales/en.yml +5 -0
- data/doc/demo/config/routes.rb +4 -5
- data/doc/demo/public/404.html +23 -5
- data/doc/demo/public/422.html +26 -0
- data/doc/demo/public/500.html +23 -5
- data/doc/demo/public/images/rails.png +0 -0
- data/doc/demo/public/index.html +50 -88
- data/doc/demo/public/javascripts/application.js +2 -0
- data/doc/demo/public/javascripts/controls.js +965 -0
- data/doc/demo/public/javascripts/dragdrop.js +974 -0
- data/doc/demo/public/javascripts/effects.js +1123 -0
- data/doc/demo/public/javascripts/prototype.js +6001 -0
- data/doc/demo/public/javascripts/rails.js +191 -0
- data/doc/demo/public/robots.txt +5 -1
- data/doc/demo/script/rails +6 -0
- data/doc/demo/test/functional/admin/backend_controller_test.rb +1 -1
- data/doc/demo/test/functional/contents_controller_test.rb +1 -2
- data/doc/demo/test/functional/searches_controller_test.rb +1 -2
- data/doc/demo/test/performance/browsing_test.rb +9 -0
- data/doc/demo/test/test_helper.rb +13 -18
- data/doc/demo/test/unit/comment_test.rb +4 -4
- data/doc/demo/test/unit/content_test.rb +6 -4
- data/doc/demo/test/unit/ferret_result_test.rb +2 -3
- data/doc/demo/test/unit/multi_index_test.rb +2 -3
- data/doc/demo/test/unit/remote_index_test.rb +2 -2
- data/doc/demo/test/unit/shared_index1_test.rb +2 -3
- data/doc/demo/test/unit/shared_index2_test.rb +2 -3
- data/doc/demo/test/unit/sort_test.rb +2 -2
- data/doc/demo/test/unit/special_content_test.rb +3 -4
- data/lib/acts_as_ferret.rb +17 -3
- data/lib/acts_as_ferret/blank_slate.rb +11 -10
- data/lib/acts_as_ferret/class_methods.rb +9 -7
- data/lib/acts_as_ferret/ferret_find_methods.rb +5 -1
- data/lib/acts_as_ferret/ferret_result.rb +11 -4
- data/lib/acts_as_ferret/multi_index.rb +8 -1
- data/lib/acts_as_ferret/search_results.rb +0 -1
- data/lib/acts_as_ferret/version.rb +1 -1
- metadata +23 -44
- data/doc/demo/test/fixtures/remote_contents.yml +0 -9
- data/doc/demo/vendor/plugins/will_paginate/LICENSE +0 -18
- data/doc/demo/vendor/plugins/will_paginate/README +0 -108
- data/doc/demo/vendor/plugins/will_paginate/Rakefile +0 -23
- data/doc/demo/vendor/plugins/will_paginate/init.rb +0 -21
- data/doc/demo/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +0 -45
- data/doc/demo/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +0 -44
- data/doc/demo/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +0 -159
- data/doc/demo/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +0 -95
- data/doc/demo/vendor/plugins/will_paginate/test/array_pagination_test.rb +0 -23
- data/doc/demo/vendor/plugins/will_paginate/test/boot.rb +0 -27
- data/doc/demo/vendor/plugins/will_paginate/test/console +0 -10
- data/doc/demo/vendor/plugins/will_paginate/test/finder_test.rb +0 -219
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/admin.rb +0 -3
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/companies.yml +0 -24
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/company.rb +0 -23
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/developer.rb +0 -11
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/developers_projects.yml +0 -13
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/project.rb +0 -4
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/projects.yml +0 -7
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/replies.yml +0 -20
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/reply.rb +0 -5
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/schema.sql +0 -44
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/topic.rb +0 -19
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/topics.yml +0 -30
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/user.rb +0 -2
- data/doc/demo/vendor/plugins/will_paginate/test/fixtures/users.yml +0 -35
- data/doc/demo/vendor/plugins/will_paginate/test/helper.rb +0 -42
- data/doc/demo/vendor/plugins/will_paginate/test/lib/activerecord_test_connector.rb +0 -64
- data/doc/demo/vendor/plugins/will_paginate/test/lib/load_fixtures.rb +0 -10
- data/doc/demo/vendor/plugins/will_paginate/test/pagination_test.rb +0 -136
@@ -1,21 +1,37 @@
|
|
1
|
-
|
1
|
+
Demo::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
2
3
|
|
3
|
-
# The test environment is used exclusively to run your application's
|
4
|
-
# test suite. You never need to work with it otherwise. Remember that
|
5
|
-
# your test database is "scratch space" for the test suite and is wiped
|
6
|
-
# and recreated between test runs. Don't rely on the data there!
|
7
|
-
config.cache_classes = true
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
8
9
|
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils
|
10
|
+
# Log error messages when you accidentally call methods on nil.
|
11
|
+
config.whiny_nils = true
|
11
12
|
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.
|
14
|
-
config.action_controller.perform_caching
|
13
|
+
# Show full error reports and disable caching
|
14
|
+
config.consider_all_requests_local = true
|
15
|
+
config.action_controller.perform_caching = false
|
15
16
|
|
16
|
-
#
|
17
|
-
|
18
|
-
# ActionMailer::Base.deliveries array.
|
19
|
-
config.action_mailer.delivery_method = :test
|
17
|
+
# Raise exceptions instead of rendering exception templates
|
18
|
+
config.action_dispatch.show_exceptions = false
|
20
19
|
|
21
|
-
#
|
20
|
+
# Disable request forgery protection in test environment
|
21
|
+
config.action_controller.allow_forgery_protection = false
|
22
|
+
|
23
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
+
# The :test delivery method accumulates sent emails in the
|
25
|
+
# ActionMailer::Base.deliveries array.
|
26
|
+
config.action_mailer.delivery_method = :test
|
27
|
+
|
28
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
+
# like if you have constraints or database-specific column types
|
31
|
+
# config.active_record.schema_format = :sql
|
32
|
+
|
33
|
+
# Print deprecation notices to the stderr
|
34
|
+
config.active_support.deprecation = :stderr
|
35
|
+
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Demo::Application.config.secret_token = '2f9aef209c908d7965c1777f075b81df521fd34b3653d4aa0c36e321fa68358e2e0c7c0e679efd9478bae2de36684c6c58d502805535dbe63baa6af3aca93b28'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Demo::Application.config.session_store :cookie_store, :key => '_demo_session'
|
4
|
+
|
5
|
+
|
6
|
+
#config.action_controller.session = { :session_key => "_demo_session", :secret => "aaaaaaaaaaaaaaaabbbbbbbbbbbbbbccccccccccccccsome secret phrase" }
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
# Use the database for sessions instead of the cookie-based default,
|
11
|
+
# which shouldn't be used to store highly confidential information
|
12
|
+
# (create the session table with "rails generate session_migration")
|
13
|
+
# Demo::Application.config.session_store :active_record_store
|
data/doc/demo/config/routes.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
map.search 'search', :controller => 'searches', :action => 'search'
|
1
|
+
Demo::Application.routes.draw do
|
2
|
+
resources :contents
|
3
|
+
match 'search', :to => 'searches#search'
|
5
4
|
|
6
5
|
|
7
6
|
# Install the default route as the lowest priority.
|
8
|
-
|
7
|
+
match ':controller(/:action(/:id))'
|
9
8
|
end
|
data/doc/demo/public/404.html
CHANGED
@@ -1,8 +1,26 @@
|
|
1
|
-
<!DOCTYPE
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
4
19
|
<body>
|
5
|
-
|
6
|
-
<
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
7
25
|
</body>
|
8
|
-
</html>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/doc/demo/public/500.html
CHANGED
@@ -1,8 +1,26 @@
|
|
1
|
-
<!DOCTYPE
|
2
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
4
19
|
<body>
|
5
|
-
|
6
|
-
<
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
7
25
|
</body>
|
8
|
-
</html>
|
26
|
+
</html>
|
Binary file
|
data/doc/demo/public/index.html
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
<html>
|
4
3
|
<head>
|
5
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
4
|
<title>Ruby on Rails: Welcome aboard</title>
|
7
5
|
<style type="text/css" media="screen">
|
8
6
|
body {
|
@@ -14,20 +12,20 @@
|
|
14
12
|
font-size: 13px;
|
15
13
|
color: #333;
|
16
14
|
}
|
17
|
-
|
15
|
+
|
18
16
|
h1 {
|
19
17
|
font-size: 28px;
|
20
18
|
color: #000;
|
21
19
|
}
|
22
|
-
|
20
|
+
|
23
21
|
a {color: #03c}
|
24
22
|
a:hover {
|
25
23
|
background-color: #03c;
|
26
24
|
color: white;
|
27
25
|
text-decoration: none;
|
28
26
|
}
|
29
|
-
|
30
|
-
|
27
|
+
|
28
|
+
|
31
29
|
#page {
|
32
30
|
background-color: #f0f0f0;
|
33
31
|
width: 750px;
|
@@ -35,7 +33,7 @@
|
|
35
33
|
margin-left: auto;
|
36
34
|
margin-right: auto;
|
37
35
|
}
|
38
|
-
|
36
|
+
|
39
37
|
#content {
|
40
38
|
float: left;
|
41
39
|
background-color: white;
|
@@ -44,7 +42,7 @@
|
|
44
42
|
padding: 25px;
|
45
43
|
width: 500px;
|
46
44
|
}
|
47
|
-
|
45
|
+
|
48
46
|
#sidebar {
|
49
47
|
float: right;
|
50
48
|
width: 175px;
|
@@ -53,7 +51,7 @@
|
|
53
51
|
#footer {
|
54
52
|
clear: both;
|
55
53
|
}
|
56
|
-
|
54
|
+
|
57
55
|
|
58
56
|
#header, #about, #getting-started {
|
59
57
|
padding-left: 75px;
|
@@ -73,18 +71,19 @@
|
|
73
71
|
font-weight: normal;
|
74
72
|
font-size: 16px;
|
75
73
|
}
|
76
|
-
|
77
|
-
|
74
|
+
|
75
|
+
|
78
76
|
#about h3 {
|
79
77
|
margin: 0;
|
80
78
|
margin-bottom: 10px;
|
81
79
|
font-size: 14px;
|
82
80
|
}
|
83
|
-
|
81
|
+
|
84
82
|
#about-content {
|
85
83
|
background-color: #ffd;
|
86
84
|
border: 1px solid #fc0;
|
87
|
-
margin-left: -
|
85
|
+
margin-left: -55px;
|
86
|
+
margin-right: -10px;
|
88
87
|
}
|
89
88
|
#about-content table {
|
90
89
|
margin-top: 10px;
|
@@ -99,7 +98,12 @@
|
|
99
98
|
}
|
100
99
|
#about-content td.name {color: #555}
|
101
100
|
#about-content td.value {color: #000}
|
102
|
-
|
101
|
+
|
102
|
+
#about-content ul {
|
103
|
+
padding: 0;
|
104
|
+
list-style-type: none;
|
105
|
+
}
|
106
|
+
|
103
107
|
#about-content.failure {
|
104
108
|
background-color: #fcc;
|
105
109
|
border: 1px solid #f00;
|
@@ -108,8 +112,8 @@
|
|
108
112
|
margin: 0;
|
109
113
|
padding: 10px;
|
110
114
|
}
|
111
|
-
|
112
|
-
|
115
|
+
|
116
|
+
|
113
117
|
#getting-started {
|
114
118
|
border-top: 1px solid #ccc;
|
115
119
|
margin-top: 25px;
|
@@ -145,21 +149,8 @@
|
|
145
149
|
color: #555;
|
146
150
|
font-size: 13px;
|
147
151
|
}
|
148
|
-
|
149
|
-
|
150
|
-
#search {
|
151
|
-
margin: 0;
|
152
|
-
padding-top: 10px;
|
153
|
-
padding-bottom: 10px;
|
154
|
-
font-size: 11px;
|
155
|
-
}
|
156
|
-
#search input {
|
157
|
-
font-size: 11px;
|
158
|
-
margin: 2px;
|
159
|
-
}
|
160
|
-
#search-text {width: 170px}
|
161
|
-
|
162
|
-
|
152
|
+
|
153
|
+
|
163
154
|
#sidebar ul {
|
164
155
|
margin-left: 0;
|
165
156
|
padding-left: 0;
|
@@ -176,29 +167,19 @@
|
|
176
167
|
#sidebar ul.links li {
|
177
168
|
margin-bottom: 5px;
|
178
169
|
}
|
179
|
-
|
170
|
+
|
180
171
|
</style>
|
181
|
-
<script type="text/javascript" src="javascripts/prototype.js"></script>
|
182
|
-
<script type="text/javascript" src="javascripts/effects.js"></script>
|
183
172
|
<script type="text/javascript">
|
184
173
|
function about() {
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
}
|
195
|
-
}
|
196
|
-
|
197
|
-
window.onload = function() {
|
198
|
-
$('search-text').value = '';
|
199
|
-
$('search').onsubmit = function() {
|
200
|
-
$('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
|
201
|
-
}
|
174
|
+
info = document.getElementById('about-content');
|
175
|
+
if (window.XMLHttpRequest)
|
176
|
+
{ xhr = new XMLHttpRequest(); }
|
177
|
+
else
|
178
|
+
{ xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
|
179
|
+
xhr.open("GET","rails/info/properties",false);
|
180
|
+
xhr.send("");
|
181
|
+
info.innerHTML = xhr.responseText;
|
182
|
+
info.style.display = 'block'
|
202
183
|
}
|
203
184
|
</script>
|
204
185
|
</head>
|
@@ -206,32 +187,13 @@
|
|
206
187
|
<div id="page">
|
207
188
|
<div id="sidebar">
|
208
189
|
<ul id="sidebar-items">
|
209
|
-
<li>
|
210
|
-
<form id="search" action="http://www.google.com/search" method="get">
|
211
|
-
<input type="hidden" name="hl" value="en" />
|
212
|
-
<input type="text" id="search-text" name="q" value="site:rubyonrails.org " />
|
213
|
-
<input type="submit" value="Search" /> the Rails site
|
214
|
-
</form>
|
215
|
-
</li>
|
216
|
-
|
217
|
-
<li>
|
218
|
-
<h3>Join the community</h3>
|
219
|
-
<ul class="links">
|
220
|
-
<li><a href="http://www.rubyonrails.org/">Ruby on Rails</a></li>
|
221
|
-
<li><a href="http://weblog.rubyonrails.org/">Official weblog</a></li>
|
222
|
-
<li><a href="http://lists.rubyonrails.org/">Mailing lists</a></li>
|
223
|
-
<li><a href="http://wiki.rubyonrails.org/rails/pages/IRC">IRC channel</a></li>
|
224
|
-
<li><a href="http://wiki.rubyonrails.org/">Wiki</a></li>
|
225
|
-
<li><a href="http://dev.rubyonrails.org/">Bug tracker</a></li>
|
226
|
-
</ul>
|
227
|
-
</li>
|
228
|
-
|
229
190
|
<li>
|
230
191
|
<h3>Browse the documentation</h3>
|
231
192
|
<ul class="links">
|
232
193
|
<li><a href="http://api.rubyonrails.org/">Rails API</a></li>
|
233
|
-
<li><a href="http://
|
234
|
-
<li><a href="http://
|
194
|
+
<li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
|
195
|
+
<li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
|
196
|
+
<li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
|
235
197
|
</ul>
|
236
198
|
</li>
|
237
199
|
</ul>
|
@@ -240,38 +202,38 @@
|
|
240
202
|
<div id="content">
|
241
203
|
<div id="header">
|
242
204
|
<h1>Welcome aboard</h1>
|
243
|
-
<h2>You’re riding
|
205
|
+
<h2>You’re riding Ruby on Rails!</h2>
|
244
206
|
</div>
|
245
207
|
|
246
208
|
<div id="about">
|
247
|
-
<h3><a href="
|
209
|
+
<h3><a href="rails/info/properties" onclick="about(); return false">About your application’s environment</a></h3>
|
248
210
|
<div id="about-content" style="display: none"></div>
|
249
211
|
</div>
|
250
|
-
|
212
|
+
|
251
213
|
<div id="getting-started">
|
252
214
|
<h1>Getting started</h1>
|
253
215
|
<h2>Here’s how to get rolling:</h2>
|
254
|
-
|
216
|
+
|
255
217
|
<ol>
|
256
218
|
<li>
|
257
|
-
<h2>
|
258
|
-
<p>Rails needs to know your login and password.</p>
|
259
|
-
</li>
|
260
|
-
|
261
|
-
<li>
|
262
|
-
<h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
|
219
|
+
<h2>Use <code>rails generate</code> to create your models and controllers</h2>
|
263
220
|
<p>To see all available options, run it without parameters.</p>
|
264
221
|
</li>
|
265
|
-
|
222
|
+
|
266
223
|
<li>
|
267
224
|
<h2>Set up a default route and remove or rename this file</h2>
|
268
|
-
<p>Routes are
|
225
|
+
<p>Routes are set up in config/routes.rb.</p>
|
226
|
+
</li>
|
227
|
+
|
228
|
+
<li>
|
229
|
+
<h2>Create your database</h2>
|
230
|
+
<p>Run <code>rake db:migrate</code> to create your database. If you're not using SQLite (the default), edit <code>config/database.yml</code> with your username and password.</p>
|
269
231
|
</li>
|
270
232
|
</ol>
|
271
233
|
</div>
|
272
234
|
</div>
|
273
|
-
|
235
|
+
|
274
236
|
<div id="footer"> </div>
|
275
237
|
</div>
|
276
238
|
</body>
|
277
|
-
</html>
|
239
|
+
</html>
|