Added new rspec for controllers.

added rspec for controllers and write restful resources.