Confusing routing behavior

What happens in dev mode locally

Processing ImagesController#create (for 127.0.0.1 at 2009-11-05 21:52:27) [POST]   Session ID: 2e54b69d91dafe551b5edabc637c019b   Parameters: {"x"=>"52", "y"=>"21", "action"=>"create", "authenticity_token"=>"4221d581c4a9acc11ef32170b788078b70b3e282", "controller"=>"images", "image"=>{"uploaded_data"=>#<File:/var/folders/5c/5cG2ScrbEriNyQAAX0GkLU+++TI/-Tmp-/CGI1416-1>}}   e[4;36;1mImage Create (11.8ms)e[0m e[0;1mINSERT INTO "images" ("name", "size", "created_at", "content_type", "kwiker_id", "thumbnail", "category_id", "filename", "height", "parent_id", "width", "fake_sold", "real_sold") VALUES(NULL, 336787, '2009-11-05 21:52:30', 'image/png', 4100684228, NULL, NULL, 'c8e367cf60f5f85cd598a9c5c364def122066836.png', 565, NULL, 755, NULL, NULL)e[0m   e[4;35;1mImage Load (0.7ms)e[0m e[0mSELECT * FROM "images" WHERE ("images"."thumbnail" = 'thumb' AND "images"."parent_id" = 67) LIMIT 1e[0m   e[4;36;1mImage Create (0.7ms)e[0m e[0;1mINSERT INTO "images" ("name", "size", "created_at", "content_type", "kwiker_id", "thumbnail", "category_id", "filename", "height", "parent_id", "width", "fake_sold", "real_sold") VALUES(NULL, 309301, '2009-11-05 21:52:30', 'image/png', NULL, 'thumb', NULL, 'c8e367cf60f5f85cd598a9c5c364def122066836_thumb.png', 112, 67, 150, NULL, NULL)e[0m Redirected to /grusskarten/deinenachricht/67 Completed in 3076ms (DB: 14) | 302 Found [http://localhost/images/create\]

Processing GrusskartenController#deinenachricht (for 127.0.0.1 at 2009-11-05 21:52:31) [GET]   Session ID: 2e54b69d91dafe551b5edabc637c019b   Parameters: {"action"=>"deinenachricht", "id"=>"67", "controller"=>"grusskarten"}   e[4;35;1mOrder Load (0.2ms)e[0m e[0mSELECT * FROM "orders" WHERE (kwiker_id= 4100684228 AND status = 0) LIMIT

As it should be...

I have it! It was because of

# protected # def ssl_required? # ENV["RAILS_ENV"] == "production" # end

in the image controller. But why?