Skip to content

Instantly share code, notes, and snippets.

@soilforlifeforms
Created June 18, 2015 09:00
Show Gist options
  • Select an option

  • Save soilforlifeforms/ce04f02cea135d6626c0 to your computer and use it in GitHub Desktop.

Select an option

Save soilforlifeforms/ce04f02cea135d6626c0 to your computer and use it in GitHub Desktop.
route
Rails.application.routes.draw do
resources :user_areas
root to: 'home#index'
match 'post/index' => 'post#index', via: [:get, :post], :as => :post
mount Upmin::Engine => '/admin'
devise_for :users, controllers: {registrations: 'users/registrations'}
resources :users
resources :home
resources :emailapi
post 'emailapi/subscribe' => 'emailapi#subscribe'
resources :contacts, only: [:new, :create]
resources :posts do
resources :comments
end
resources :tags
scope 'pay_fast' do
post 'paid' => 'payments#paid', as: :payfast_paid
get 'success' => 'payments#success', as: :payfast_success
get 'fail' => 'payments#fail', as: :payfast_fail
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment