Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

  • Blog Navigation
Making sure you implement the ActiveModel interface fully

Rails 3 brings with it ActiveModel.

ActiveModel give you a way to make non-db backed models look like db backed models to your views and controllers. See this post for a good explanation of what using ActiveModel buys you.

ActiveModel gives you a great way to test that your class implements the minimum ActiveModel interface: ActiveModel::Lint::Tests

Check out this gist for the details for using these tests in RSpec:

  • For example, if there is a tall building or structure in Angry Birds,
    you should be inclined to attack the point where the weight rest’s on, or the weak point of the structure.

    West of Cabarete might be a known break , which we will not name here.

    For the little ones within your loved ones, they’ll have enjoyable just knocking down the structures.

Share This