Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ruby needs newlines

  • Loading branch information...
commit 9f707a48b81e52fb89926f28c1e79d7a41f425e6 1 parent 3e55cb0
@kuba-kubula kuba-kubula authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ruby.html
View
2  ruby.html
@@ -11,10 +11,10 @@
<% else if @body and @body: %>
values = <%= @helpers.escape @body %>
<% end %>
+
<% if @helpers.isNotEmpty @headers: %>
headers = {<%= [':'+@helpers.rubyKey header+' => '+@helpers.escape value for header,value of @headers] %>}
<% end %>
-
response = RestClient.<%= @method.toLowerCase() %> "<%= @apiUrl %><%= @url %>"<% if @body: %>, values<% end %><% if @helpers.isNotEmpty @headers: %>, headers<% end %>
puts response</code></pre>
Please sign in to comment.
Something went wrong with that request. Please try again.