#130 added controller view specs to new rails
#130 fxied migrated controller view specs for new rails
Merge pull request #363 from pshivana/master

Migrated few controller view specs to new rails
#130 - Temp fix for nil pointer exception on stages page
#130 fixed issue with appening routes at runtime required for specs
Merge pull request #365 from pshivana/master

#130 fixed issue with appening routes at runtime required for specs
#130 fixed issue with appening routes at runtime required for specs
#130 - Fixed failing stages view spec
Merge pull request #364 from jyotisingh/stages_controller_rail4_migration

#130 - Temp fix for nil pointer exception on stages page
#130 - Fix dashboard refresh.

* Was broken because /pipelines.json was not resolving.
#130 - Fix 'trigger with options' material search.

* Was failing because of CSRF protection. This shouldn't even be using
  POST. Should use GET. But, that involves too much change right now.
  Since the dashboard might be rewritten soon, leaving it as POST and
  disabling CSRF protection for only that method (which is not making
  any POST-like changes anyway).
Merge pull request #368 from arvindsv/fix_trigger_with_options_material_popup

#130 - Fix 'trigger with options' material search.
Merge pull request #367 from arvindsv/fix-dashboard-refresh-new-rails

#130 - Fix dashboard refresh.
Revert "#130 - Fix 'trigger with options' material search."

This reverts commit 42445f5a77110fdb1d25808923f0877f37afed73.

Will fix by converting the POST to a GET, instead. It's possible.
#130 - Change POST to GET for material_search.

* This is the call used by the material search box in trigger with options.
  It used to do a POST. Now, it has been changed to do a GET.

* Still allowing a POST to it as well, like earlier. Might need to check
  and remove later.
#130 - Do not use layout with material_search call.

* Was trying to use a layout (pipelines layout) and failing.
#130 - Remove ability to POST to /pipelines/material_search.
#130 - Fix environment edit buttons.

* Also, new spec written for show.html.erb of environments.
#130 - Fix environment variable add.

* Was broken due to ERB change between Rails versions. Needed to use <%= instead of <%-.
Merge pull request #370 from arvindsv/fix_add_environments

Fix environments edit page