Skip to content

Instantly share code, notes, and snippets.

@madzhuga
Created November 14, 2017 17:56
Show Gist options
  • Select an option

  • Save madzhuga/c75b65efc475485d83380d866fc52f07 to your computer and use it in GitHub Desktop.

Select an option

Save madzhuga/c75b65efc475485d83380d866fc52f07 to your computer and use it in GitHub Desktop.
body
...
main[role="main"]
== render 'layouts/messages'
- if show_back_to_operation_button
.btn-group
/ And just add a button right to layout.
/ I know I need to add a helper for that - will do that shortly
= button_to "Back to #{current_operation.title}",
RailsWorkflow::Engine.routes.url_helpers.navigate_to_operations_path,
class: "btn", method: :get
== yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment