Skip to content

Commit

Permalink
Setup dashboard controller and routing per #65
Browse files Browse the repository at this point in the history
  • Loading branch information
augustf committed May 3, 2012
1 parent 8384638 commit 70d0116
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/concerto_devise/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def create
if resource.active_for_authentication?
set_flash_message :notice, :signed_up if is_navigational_format?
sign_in(resource_name, resource)
respond_with resource, :location => after_sign_up_path_for(resource)
#respond_with resource, :location => after_sign_up_path_for(resource)
redirect_to "/dashboard"
else
set_flash_message :notice, :"signed_up_but_#{resource.inactive_message}" if is_navigational_format?
expire_session_data_after_sign_in!
Expand Down
8 changes: 8 additions & 0 deletions app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class DashboardController < ApplicationController

# GET /dashboard
def index

end

end
1 change: 1 addition & 0 deletions app/views/dashboard/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is the Dashboard.
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
end

resources :tickers, :controller => :contents, :path => "content"

#Set a non-restul route to the dashboard
match 'dashboard/' => 'dashboard#index'

# The priority is based upon order of creation:
# first created -> highest priority.

Expand Down

0 comments on commit 70d0116

Please sign in to comment.