[#74948186] upload category image

Squashed commit of the following:

commit 2a6505fab9b66197256c557acfb54035c7a7eafc
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 13:01:32 2014 +0200

    test prepare

commit 87db7ba094d1c5851c25046ee313af6908e86dd4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 12:44:35 2014 +0200

    tag issue for category test

commit e51d3d2f43d9fbe80eed130523b5413d0ea61f7e
Merge: 0e77c06 c370062
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 12:09:56 2014 +0200

    Merge branch 'master' into mk_default_category_picture

    Conflicts:
    	cider-ci/tasks/cucumber_scenarios.yml
    	features/personas/dumps/minimal_seed.sql
    	features/step_definitions/languages/de_steps.rb

commit 0e77c06db2c757efb93db5f334c3bb0c71591bf7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Sat Aug 23 11:41:57 2014 +0200

    start page category image test

commit c0370577f2607fcff0ccab90c3211bd21a442784
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 16:25:35 2014 +0200

    start page test wip

commit d1b3f7ab9bf9a33c3cfa82496a92dacab0884ac7
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:29:16 2014 +0200

    test for changing category picture

commit faf8149042837304fa33a7a679f800ca0b743e91
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:04:04 2014 +0200

    tags for first test

commit 7b9bc8a6e06dd07d7ab14d635fadd9113e0e9d48
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 14:02:49 2014 +0200

    create category with image test

commit 31149fbe901ea93cddf9988419ecb2e59241d2d2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 22 13:12:39 2014 +0200

    frontend validation of 1 image

commit e4d4848d262b7358661092981852501d0ffb80c8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:53:04 2014 +0200

    description for fields

commit b1326595f952ff5f5d76cbf2ac74e846e4ca1bff
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:30:45 2014 +0200

    image key label for category

commit e225f199fddfbfa2163e45b8d675b5f6d9674f79
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 17:16:56 2014 +0200

    adapt scenarios

commit de9d161d6e25291e71187b337768b428fe2573dd
Merge: 7a7a26e b9390f4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 16:30:42 2014 +0200

    Merge branch 'master' into mk_default_category_picture & test prepare

    Conflicts:
    	features/examples/kategorien.feature
    	features/personas/dumps/minimal_seed.sql

commit 7a7a26ee56be295ccb0cc9110164ca3965e2e79f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 16:09:59 2014 +0200

    [FIX CI] software_loeschen.feature

commit 84bb413be032db40afe8acec0c8338ea9d833d60
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Thu Aug 21 15:34:54 2014 +0200

    refactoring image and image_:thumb paths

commit 8b7e318ad1c3bda398712f7c954bcd0499190cb5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 13:50:48 2014 +0200

    one image validation

commit ae4fb32f4845ca7bcc21a54b52a95f2dcf3a2383
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 11:43:03 2014 +0200

    fix @url for coffee controller

commit 3e2c6b339d3cd61b2771b7a33e0a6507c5d35550
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 11:42:54 2014 +0200

    has_many instead of has_one

commit 1bdd013bbe328e2b2f1cd99dfc2f1c21a9cc04f5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 10:35:44 2014 +0200

    fix render entries for category

commit 0bb1fe1b0f3dc5c08f092037f0496f816daa7e31
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 09:48:40 2014 +0200

    remove the upload tag from model new view

commit 355692ba2113e99bb23ec86d128ac5550fcdc1c0
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 21 09:48:15 2014 +0200

    fix upload image for model new form

commit 731f94b4383848a075ddd30b883d230d1f0ee7b4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Wed Aug 20 15:02:46 2014 +0200

    test prepare

commit 72645dd7517bdd680a5d59eff131222774cbf5fc
Author: Franco Sellitto <franco.sellitto@zhdk.ch>
Date:   Wed Aug 20 12:43:23 2014 +0200

    polymorphic target for images

commit 5ba10c4d3144501c4f684cb6aac8f14bf6931776
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 12:02:24 2014 +0200

    add route for category image upload

commit d394233b8b894ec8539d30b9e98cc9c501128be2
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:53:36 2014 +0200

    prepare test

commit 29c08d82298c5667e0ed2fb0e02ac0b6e914ddd5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:51:04 2014 +0200

    fix @javascript tag in feature

commit abafe0e4c0480ff674329a038d5674bf3cf0b452
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 10:50:53 2014 +0200

    fix edit view + edit js controller

commit d4478d2170f8d85356d71710a2f4a611817dcc36
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 09:59:33 2014 +0200

    test prepare

commit 3d98819777498ea7750bcb7032bea7b90265bdad
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Tue Aug 19 09:58:06 2014 +0200

    uncomment line#

commit 5a3403261ea443b1ba569a2ad65ccd6060469475
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 18:11:17 2014 +0200

    remove upload javascript tag from model edit view

commit 63a258d34c8a48b62d7d4ad8476a5960a729541f
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 17:38:25 2014 +0200

    error modal reusage & other abstractions

commit 354ba84b935cdacee283d869b6acca8fe276c31e
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 14:00:14 2014 +0200

    click on add opens file upload dialog

commit 04b1a79b01ac11495ff6d7253e1a7a7dbfc62d88
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 13:59:51 2014 +0200

    fix js requirements for class loading

commit ffdea3c69e7f59c8249275687a28ffa4ef9f8b3a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 10:42:14 2014 +0200

    [FIX CI] pakete.feature

commit d7ed04cad9a9a08b9c1427df68802a9d4849b321
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Mon Aug 18 10:38:25 2014 +0200

    [FIX CI] software_erfassen.feature

commit 773b9e47b006d6b7d3ec1c1e3ee3f9f258f1dbde
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 16:36:41 2014 +0200

    fix #save element for software view

commit 7a6a49c87c38a9c0da9b49acb4cf791aa91c4ba8
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 16:02:59 2014 +0200

    fix #save element for model new view

commit d6345f4c166af53804aa4922cabb3885fe6b233a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 15:17:32 2014 +0200

    fix category edit js initialization

commit c664cd5bfc148e02e830f2d8d590b60759de4fe4
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 15:06:34 2014 +0200

    fix _field.haml

commit de70b614511790c1553d6418aba1abe928e97ae5
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:32:03 2014 +0200

    extract from upload logic to own controller

commit ecdc9cbd1c200c45c149f13881bdff1923fcdc6c
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:31:38 2014 +0200

    remove options from category controller constructor

commit 9dff35cf53366c2fb047560b2f40a489b3f3638a
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:03:21 2014 +0200

    remove backup controller

commit 8e06af6d1f99128efa315d3ef55a53a8a2356d50
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 14:03:12 2014 +0200

    category controller frontend

commit 0a450feed1b5faabff34661da487e64e935c9f46
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 11:56:00 2014 +0200

    reuse images template

commit 075f5b08d36d05c27ceb4bca5df7abcb1aa80d51
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Fri Aug 15 10:53:41 2014 +0200

    form partial

commit be9e48e4b5856de94b9f292099f4dcd1e8c4b0eb
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 17:33:04 2014 +0200

    decouple images controller from models

commit 60427e3c5c1ec1842ea582555167683e8587dc31
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 16:07:18 2014 +0200

    decouple upload controller from models

commit 676195e29c2c537429e019fce0017db1a6e5dead
Author: Matus Kmit <matus.kmit@zhdk.ch>
Date:   Thu Aug 14 15:52:18 2014 +0200

    remove unnecessary uid from models upload controller