motion-wizard icon indicating copy to clipboard operation
motion-wizard copied to clipboard

Error with teacup layouts

Open steakunderscore opened this issue 9 years ago • 0 comments

I'm noticing that the samples are broken. It looks like they are broken by a change in the teacup API.

To recreate error:

git clone [email protected]:ijpiantanida/motion-wizard.git
cd motion-wizard/samples/wizard-1
bundle install
rake

Produces this error:

(main)> 2016-03-17 08:49:59.130 wizard-1[94023:314020] teacup_controller.rb:59:in `layout:': Time to update your syntax!

It was discovered that passing a block to the Controller##layout was causing
irreparable memory leaks.  The only recourse is to use a new syntax and remove
the old functionality.

If you need to assign a stylename to the root view, you can still do this using
`layout :stylename`, but you cannot pass a block to this class method any
longer.

Instead, define a method called `teacup_layout` and create your views there.  No
other changes are required.
 (RuntimeError)
    from steps_view_controller.rb:4:in `<main>'
    from steps_view_controller.rb:1:in `<main>'
2016-03-17 08:49:59.136 wizard-1[94023:314020] *** Terminating app due to uncaught exception 'RuntimeError', reason: 'teacup_controller.rb:59:in `layout:': Time to update your syntax!

steakunderscore avatar Mar 17 '16 12:03 steakunderscore