Homepage

New Liquid tags, deprecated render_form tag

Last edit:

July 30, 2018

NEW

include_form tag

New tag allows you to use normal liquid syntax to pass variables. render_form tag is now deprecated.


{% render_form edit_user, id: @user.id %}

now should be written with


{% include_form 'edit_user', id: user.id %}

Warning

You have to quote form name and you do not include "@" when passing variable.

log tag

Until now you had log mutation at your disposal, but it was a lot of work to use for such a simple task.

From now on please use log tag to print something to logs.


{% log "hello world" %}
{% log params %}
{% log params, type: 'error' %}

Note

Default type is info.

Questions?

We are always happy to help with any questions you may have.

contact us