Skip to content

Instantly share code, notes, and snippets.

@stephenaument
Created March 7, 2014 02:34
Show Gist options
  • Save stephenaument/9404014 to your computer and use it in GitHub Desktop.
Save stephenaument/9404014 to your computer and use it in GitHub Desktop.

Revisions

  1. stephenaument created this gist Mar 7, 2014.
    7 changes: 7 additions & 0 deletions hash_to_hash_post.js.haml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    var options = {
    "gender": "#{search_params['gender']}",
    "age": "#{current_user.age}",
    "language": "#{search_params['language']}",
    "query": "#{search_params['query']}",
    "properties": #{search_params.fetch('properties', {})}
    };