config/routes.rb in clipster-0.5.2 vs config/routes.rb in clipster-0.5.3
- old
+ new
@@ -1,15 +1,16 @@
-Clipster::Engine.routes.draw do
-
- resources :users, :only => :show
- resources :about, :only => :index
-
- resources :clips, :path => "/", :only=> [:create, :new, :show] do
- collection do
- get 'search'
- get 'clips'
- post 'preview'
- end
- end
-
- root :to => "clips#new"
-end
+Clipster::Engine.routes.draw do
+
+ resources :users, :only => :show
+ resources :about, :only => :index
+
+ resources :clips, :path => "/", :only=> [:new, :show] do
+ collection do
+ get 'search'
+ get 'clips'
+ post 'create', :path=> "create", :as=> "create"
+ end
+ post 'preview', on: :new
+ end
+
+ root :to => "clips#new"
+end