Skip to content

Instantly share code, notes, and snippets.

@madzhuga
Created November 22, 2017 13:18
Show Gist options
  • Save madzhuga/03d3b2ff1b928857076db6b21072cad6 to your computer and use it in GitHub Desktop.
Save madzhuga/03d3b2ff1b928857076db6b21072cad6 to your computer and use it in GitHub Desktop.
/ app/views/rails_workflow/operations/_some_event_partial.html.slim
ruby:
# I know it's bad code but doing it this way just to focus
# on post topic
user = User.find(context.data["user"][:id])
table.table.table-striped.table-hover
tbody
tr
td User
td = link_to user.email, main_app.user_path(user)
- context.data.except('url_path', 'url_params', 'user').each_pair do |key, value|
tr
td = key
td = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment