Skip to content

Commit

Permalink
small stash for search test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhardy committed Jan 31, 2014
1 parent dcb8fc5 commit 1094f0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class Extension < ActiveRecord::Base
manifest_hash = JSON.parse(manifest_data)
manifest_hash.merge!(parsed_params)


puts "***********************"
puts "***********************"
puts manifest_hash
puts "***********************"
puts "***********************"

@extension = Extension.new(manifest_hash)

puts @extension
Expand All @@ -107,3 +114,6 @@ class Extension < ActiveRecord::Base



get '/search/:query' do
#@extensions = Extension.where("? = ANY LIKE (tags)", '%' + params[:tag] '%')
end
3 changes: 2 additions & 1 deletion views/_sache_bar.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
%img{:src => "/img/logo.png", :alt => "Sache", :title => "Sache"}
%ul{:class => "sache-bar-actions"}
%li{:class => "sache-search"}
%input{:type => "search", :placeholder => "Find extensions"}
%form{:action => '/search'}
%input{:type => "search", :placeholder => "Find extensions"}
%li{:class => "sache-add-extension"}
%a{:href => "#", :data => {:add_project => ""}} Add Extension

0 comments on commit 1094f0f

Please sign in to comment.