Skip to content

Instantly share code, notes, and snippets.

@Elffers
Last active December 24, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elffers/6733056 to your computer and use it in GitHub Desktop.
Save Elffers/6733056 to your computer and use it in GitHub Desktop.
Ada Application, Step 3: Technical Reading Assessment

####1. In "Laying the foundations", Ryan covers a number of steps that he'll walk through. What are they?

  • Set up subscription engine and dummy application to test its functionality. The engine will be created using the rails plugin ‘new generator.’
  • Write the first feature for the engine, which is account sign up.
  • Link the accounts to an owner, who will be responsible for admin-type actions for the account.
  • Write features to handle user sign in, sign up and sign out, with the goal of scoping resources for a given application.

####2. What's a Rails Engine?

A Rails engine is like a smaller application that provides special functionality to its host applications, similar to a plugin. The difference is that an engine is considered a full plug-in, and it can also be isolated from the host application.

3. What command do we need to write to create a new rails plugin, with a dummy application and without an isolated namespace?

rails plugin new PLUGIN_NAME --dummy-path spec/dummy --skip-test-unit

The –-full option would create an engine versus a plugin, and eliminating the –-mountable option creates a non-isolated namespace.

####4. What's the first feature being built? What steps need to be taken ("tested") to verify it's working?

The first feature we want to build is for the engine to take account sign-ups. The steps needed to test that it’s working are:

    1. Visit the root path
    1. Click on a link
    1. Fill in a field
    1. Click a button
    1. See a message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment