Show
Ignore:
Timestamp:
08/12/08 18:10:55 (5 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/public/index.html

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