post request with search criteria

Signed-off-by: Zeljko <zeljko@zwr.fi>

Conflicts:
	app/assets/javascripts/controllers/home_controller.js.coffee
	app/assets/javascripts/templates/home.html.haml
search criteria processing, first hit

Signed-off-by: Zeljko <zeljko@zwr.fi>
sort manufacturers by name when listing

Signed-off-by: Zeljko <zeljko@zwr.fi>
search by text indiscriminatly

This is the very basic 'search by any word' search, which adds
too many products. It is a good start though.

Signed-off-by: Zeljko <zeljko@zwr.fi>
send pid with product, so we can get images

Signed-off-by: Zeljko <zeljko@zwr.fi>
README: added some phylosophy

Signed-off-by: Zeljko <zeljko@zwr.fi>
Squish dynamic_ui onto master

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>
Query for search results

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>
show results on the right side

Images are wrongin our data, need to reseed.

Signed-off-by: Zeljko <zeljko@zwr.fi>
add image_id to product

Signed-off-by: Zeljko <zeljko@zwr.fi>
count products as you seed them

Signed-off-by: Zeljko <zeljko@zwr.fi>
Seed database inside transaction

Just making this take a somewhat more reasonable amount of time. It's
just a part of ACID: The database won't tell you it's done with an
INSERT until it actually has it on permanent storage... unless you did
it inside a transaction, in which case it's allowed to cache until
COMMIT and thus can batch writes. I didn't actually test whether the
outcome is the same because it took too long without the
transaction...

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>
Further optimize database seeding

This could probably be brought down further, but it's just the seeding,
so there's no point. Mostly I just wanted to exercise my ActiveRecord.

Note that this does change the code's meaning, but I'm not sure the
original meaning was correct: find_car_brand returned a collection (due
to using m.car_brands.where rather than #find_by) if the brand already
existed. Now we return a scalar in either case.

Signed-off-by: Ari Rahikkala <ari.rahikkala@gmail.com>
latest database

Signed-off-by: Zeljko <zeljko@zwr.fi>