You are previewing Aptana RadRails: An IDE for Rails Development.
O'Reilly logo
Aptana RadRails: An IDE for Rails Development

Book Description

A comprehensive guide to using RadRails to develop your Ruby on Rails projects in a professional and productive manner

  • Comprehensive guide to using RadRails during the whole development cycle

  • Code Assistance, Graphical Debugger, Testing, Integrated Console

  • Manage your gems, plug-ins, servers, generators, and Rake tasks

  • Rails 2.0-ready

  • Includes a chapter about Subversion and Database integration

  • Smart Code Assistants for HTML, JavaScript, and CSS

Table of Contents

  1. Aptana RadRails: An IDE for Rails Development
  2. Credits
  3. About the Author
  4. About the Reviewer
  5. Preface
    1. What This Book Covers
    2. What You Need for This Book
    3. Who This Book Is For
    4. Conventions
    5. Reader Feedback
    6. Customer Support
      1. Downloading the Example Code for the Book
      2. Errata
      3. Questions
  6. 1. Getting Started
    1. Do I Need an IDE for Rails Development?
    2. About Aptana RadRails
    3. How Can Aptana RadRails Help Me?
    4. Prerequisites
      1. Java Virtual Machine
      2. Ruby and Rails
        1. Components to Install
        2. Installing Rails if you already have Ruby and RubyGems
        3. Installing Ruby and Rails on Linux
          1. Installing Ruby and Rails Using yum
          2. Installing Ruby and Rails Using apt
        4. Installing Ruby and Rails on OS X
        5. Installing Ruby and Rails on Windows
        6. Supported Databases
    5. Installing Eclipse
    6. Installing Plugins in Eclipse
      1. RadRails Installation
    7. Summary
  7. 2. First Steps
    1. Basic Configuration
      1. Eclipse Preferences Dialog
      2. File Encoding
      3. Connecting through a Proxy
      4. Ruby Environment
      5. Rails Environment
    2. Creating a Rails Project
    3. Importing an Existing Project into RadRails
    4. Working with Perspectives and Views
      1. Eclipse Perspectives
      2. Eclipse Views
    5. Summary
  8. 3. Your First Application
    1. Basic Views
      1. The Ruby Explorer View
        1. Ruby Explorer Top Icons
      2. The Console View
    2. The Generators View
      1. Generating Models and Migrations
      2. Running Your Migrations
      3. Generating Scaffolds
    3. Starting Your Server
    4. Monitoring Your Server
    5. Summary
  9. 4. Writing Ruby Code
    1. A Quick Note about Keyboard Shortcuts
    2. The Ruby Editor
    3. Syntax Highlighting
    4. Outlining the Structure of Your Ruby Code
      1. Quick Outline
      2. Type Hierarchy
      3. General Outline View
    5. Code Folding
    6. Code Formatting
      1. Indenting Code Blocks
      2. Commenting Code Blocks
    7. Code Completion
    8. Code Templates
      1. Defining Your Own Code Templates
    9. Navigating Your Code
      1. General Source Navigation Tools
      2. Matching Brackets
      3. Declarations of Classes, Modules, Methods, and Variables
      4. Navigating Your MVC Code
      5. Opening Types and Resources
    10. Refactoring
      1. Generate Accessors
      2. Generate Constructors
      3. Convert Local Variable to Field
      4. Encapsulate Field
      5. Extract Method
      6. Extract Constant
      7. Inline Method
      8. Rename
      9. Split Local Variable
    11. Searching in Ruby Projects
      1. Searching within the Current File
      2. Searching across Multiple Files
      3. Ruby Search
        1. Call Hierarchy
    12. Summary
  10. 5. Coding Rails Views
    1. ERB/RHTML Templates
      1. Views Navigation
      2. View Templates
      3. HTML Code Assist
      4. Refactoring into Partials
      5. Outline
    2. Editing HTML Files
    3. Editing JavaScript Files
    4. Editing CSS Files
    5. Summary
  11. 6. Debugging Your Application
    1. Getting Started with Debugging
      1. Debugger Configuration
      2. Starting Your Server
      3. Debugging a Ruby Script
    2. Using Breakpoints
      1. The Breakpoints View
        1. Setting Generic Breakpoints for Exceptions
        2. Exporting and Importing Breakpoints
    3. The Debug View
      1. The Debug View and the Stack Frame
      2. Stepping through Your Application
    4. Variables and Expressions
      1. The Variables View
      2. The Expressions View
    5. The Display View
    6. Useful Tools for Debugging
      1. Linking Errors and Source Code from the Browser
      2. Tailing the Log Files
    7. Summary
  12. 7. RadRails Views
    1. Opening the RadRails Views
    2. Documentation Views
      1. Ruby Interactive (RI) View
      2. Ruby Core, Ruby Standard Library, and Rails API
    3. Servers View
      1. Starting a Server with Additional Arguments
      2. Managing Non-Rails Servers from the Servers View
    4. Launching External Tools from Eclipse
    5. Rails Console
    6. Rails Plugins View
    7. RubyGems View
    8. Rake Tasks
    9. Generators View
    10. Rails Shell View
    11. RegExp View
    12. Problems View
    13. Tasks View
    14. Test::Unit View
    15. Summary
  13. 8. Configuration Reference
    1. General
      1. Appearance
      2. Editors
        1. Annotations
        2. Linked Mode
        3. Quick Diff
        4. Spelling
      3. Keys
      4. Workspace
    2. Aptana
      1. Browsers/User Agents
      2. Editors
        1. Code Assist
        2. Colors
        3. Folding
        4. Formatting
        5. Typing
        6. RHTML Templates
      3. Start Page
    3. Rails
    4. Ruby
      1. Appearance
      2. Editor
        1. Syntax Coloring
      3. Errors/Warnings
      4. Task Tags
    5. Summary
  14. 9. Other Useful Plugins
    1. Database Management
      1. Installing DBViewer
      2. Creating New Connections
      3. DB Tree View
      4. SQL Execute View
      5. SQL History View
      6. DBViewer Configuration
    2. Version Control with Eclipse
      1. Installing Subclipse
      2. SVN Repository Exploration
      3. Projects and Repositories
        1. Checking out an Existing Project
        2. Importing a New Project into a Repository
      4. Update, Edit, Compare, and Commit
      5. The Synchronize View
      6. History View
    3. Summary