Skip to content
Browse files

ruby needs newlines

  • Loading branch information...
1 parent 3e55cb0 commit 9f707a48b81e52fb89926f28c1e79d7a41f425e6 @kuba-kubula kuba-kubula committed Jan 29, 2013
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>

0 comments on commit 9f707a4

Please sign in to comment.
Something went wrong with that request. Please try again.