-
Notifications
You must be signed in to change notification settings - Fork 60
Things You Should Know
Nick Sutterer edited this page Nov 21, 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.
Include the Trb railtie for library/CRUD autoloading.Make sure your Trb initializer loadstrailblazer/autoloading
. This is all documented here.You also need this trick to avoid aundefined method 'reforms_path'
error for now. This will be done automatically soon.- Include the
trailblazer-rails
gem. - For controller helpers (
run
,form
,present
, etc), include the Trb controller module in your controller, orApplicationController
to enable it site-wide. 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).- My test setup for Minitest: https://gist.github.com/apotonick/aa768d47d56429b6dc4b
- In earlier chapters, we're using controller tests. This will change to capybara integration tests with the final book version.