This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·288 lines (271 loc) · 11.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<html>
<head>
<title>Aptana RadRails</title>
<style>
html {
height: 95%;
width: 99%;
padding: 0;
margin: 0;
}
body {
font: 10pt verdana;
font-family: verdana;
height: 100%;
padding: 0;
margin: 0;
}
#contents {
width: 100%;
height: 95%;
}
#editOrSave {
width: 100%;
}
.readonly {
font: 8pt verdana;
background-color: #f0f0ff;
border: none;
padding: 8px;
}
td {
font: 10pt verdana;
font-family: verdana;
height: 100%;
padding: 10px;
margin: 0;
}
.note {
padding: 10px;
border: 1px solid #CCCCCC;
}
h2 {
width: 100%;
background-color: #b43530;
color: #FFFFFF;
padding: 20px;
}
pre {
font-size: 80%;
padding: 10px;
border: 1px solid #EEEEEE;
}
#search {
margin: 0;
padding-top: 10px;
padding-bottom: 10px;
font-size: 11px;
}
#search input {
font-size: 11px;
margin: 2px;
}
#search-text {
width: 170px
}
#sidebar {
border-left: 1px solid #DDDDDD;
}
#sidebar ul {
margin-left: 0;
padding-left: 0;
}
#sidebar ul h3 {
margin-top: 25px;
font-size: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
#sidebar li {
list-style-type: none;
}
#sidebar ul.links li {
margin-bottom: 5px;
}
</style>
<script type="text/javascript" src="javascripts/prototype.js">
</script>
<script type="text/javascript" src="javascripts/effects.js">
</script>
<script type="text/javascript">
function about(){
if (Element.empty('about-content')) {
new Ajax.Updater('about-content', 'rails/info/properties', {
method: 'get',
onFailure: function(){
Element.classNames('about-content').add('failure')
},
onComplete: function(){
new Effect.BlindDown('about-content', {
duration: 0.25
})
}
});
}
else {
new Effect[Element.visible('about-content') ? 'BlindUp' : 'BlindDown']('about-content', {
duration: 0.25
});
}
}
window.onload = function(){
$('search-text').value = '';
$('search').onsubmit = function(){
$('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
}
}
</script>
</head>
<body>
<h2>Welcome to Aptana RadRails</h2>
<table cellpadding="10">
<tr>
<td colspan="2">
<p>
<img src="images/rails.png" align="left" style="padding-right:10px">Aptana RadRails provides a rich and powerful user interface for creating Ruby on Rails applications. You can create projects,
edit them with ease, and debug them with a variety of tools. RadRails ships with an embedded jRuby interpreter ready to go,
or you can configure it to use an external Rails installation.
</p>
</td>
</tr>
<tr>
<td valign="top">
<h3>Getting Started</h3>
<p>
Below is a short introduction to using the functionality of Aptana RadRails.
<div id="about">
<h3><a href="rails/info/properties" onclick="about(); return false">About your application’s environment</a></h3>
<div id="about-content" style="display: none">
</div>
</div>
</p>
<h4>Creating a simple application</h4>
<p>
<ol>
<li>
Make sure this project is selected in the Ruby Explorer view, and select the <b>Generators</b>
view at the bottom of the screen.
</li>
<li>
Select <b>scaffold</b>
from the dropdown, and paste in the following:<pre>
recipe title:string author:string description:text
</pre>
</li>
<li>
Press <b>Go</b>. Rails will create a complete skeleton application including form entry fields and a database schema based on the above information.
</li>
<li>
Once it has finished writing information to the console, go to the </b>Rake Tasks</b>
view and choose <b>db:migrate</b>. Press <b>Go</b>.
</li>
<li>
This populates the database with an empty recipe table.
</li>
<li>
Once that has finished, click <a href="/recipes">here</a>
(note the url it created) to start populating data. Enter a few records.
</li>
<li>
If you lose this tab, you can re-launch your application from the <b>Run</b>
button in the top toolbar. Click on the arrow to the right-hand side of the button to launch the web browser again.
</li>
</ol>
</p>
<h4>Viewing your data</h4>
<p>
Go to to Window > Open Perspective > Data. Make sure the Data Navigator view is selected. You can expand out the data navigator tree for your project and view the data in the tables.
</p>
<h4>Viewing your server</h4>
<p>
Click on the <b>Servers</b>
view in order to stop and restart your internal Rails server.
</p>
<h4>Customizing your Application</h4>
<p>
You can begin editing the files under app/views to edit the template pages of your application. For further customization options and more advanced topics, see the RadRails documentation.
Key file locations:
<ol>
<li>
<b>/config/database.yml</b>: your database configuration
</li>
<li>
<b>/db/schema.db</b>: your database schema
</li>
<li>
<b>/public</b>: the root of your web site (including the location of this file)
</li>
</ol>
</p>
</td>
<td valign="top" id="sidebar">
<h3>Exploring Rails</h3>
<li>
<form id="search" action="http://www.google.com/search" method="get">
<input type="hidden" name="hl" value="en" /><input type="text" id="search-text" name="q" value="site:rubyonrails.org " /><input type="submit" value="Search" />the Rails site
</form>
</li>
<li>
<h3>RadRails Community</h3>
<ul class="links">
<li>
<a href="http://www.aptana.org/rails">RadRails home</a>
</li>
<li>
<a href="http://www.aptana.com/blog">Weblog</a>
</li>
<li>
<a href="http://forums.aptana.com/">Forums</a>
</li>
<li>
<a href="http://support.aptana.com/asap/">Bug tracker</a>
</li>
</ul>
</li>
<h3>Other Community Links</h3>
<ul class="links">
<li>
<a href="http://www.rubyonrails.org/">Ruby on Rails</a>
</li>
<li>
<a href="http://weblog.rubyonrails.org/">Official weblog</a>
</li>
<li>
<a href="http://lists.rubyonrails.org/">Mailing lists</a>
</li>
<li>
<a href="http://wiki.rubyonrails.org/rails/pages/IRC">IRC channel</a>
</li>
<li>
<a href="http://wiki.rubyonrails.org/">Wiki</a>
</li>
<li>
<a href="http://dev.rubyonrails.org/">Bug tracker</a>
</li>
</ul>
</li>
<li>
<h3>Browse the documentation</h3>
<ul class="links">
<li>
<b>Rails API:</b>
<br/>
Window > Show View > Rails API
</li>
<li>
<b>Ruby standard library:</b>
<br/>
Window > Show View > Ruby Standard Library API
</li>
<li>
<b>Core documentation:</b>
<br/>
Window > Show View > Ruby Core API
</li>
</ul>
</li>
</td>
</tr>
</table>
</body>
</html>