Skip to content

Things You Should Know

Nick Sutterer edited this page Jul 9, 2015 · 11 revisions

This page lists steps you shouldn't forget to set up your own Trailblazer app. As this is still in flux, these steps are not documented in the book, yet.

  1. Include the Trb railtie for CRUD autoloading.
  2. Make sure your Trb initializer loads trailblazer/autoloading.
  3. You also need this trick to avoid a undefined method 'reforms_path' error for now. This will be done automatically soon.
  4. For controller helpers (run, form, present, etc), include the Trb controller module in your controller, or ApplicationController to enable it site-wide.
  5. DONE: The code examples all are written with Reform 2. This is why I link against the github version of Reform. Reform will hopefully be ready for the public in 2-4 weeks (sometime in June 2015).
  6. My test setup for Minitest: https://github.com/judofyr/minitest-line
  7. In earlier chapters, we're using controller tests. This will change to capybara integration tests with the final book version.
Clone this wiki locally