Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Haml indentation.
%h2= "ASKS"
-@campaign.asks.each do |ask|
=haml :ask, locals: {ask: ask, type: ask.class.typesym}
-if{|n| n.triggered_ask && n.triggered_ask == ask}.empty?
%form{action: "/campaign/#{}/broadcast}", method: "post"}
%button{type: 'submit'} Launch the Ask
%form{action: "/campaign/#{}/add_new_ask", method: 'get'}
%button Add new ask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment