Skip to content

Commit

Permalink
Rename get_events to index action in the events_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Kapoor committed Jun 25, 2014
1 parent 14468af commit 8c7c14d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/controllers/fullcalendar_engine/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def new
end
end

def get_events
def index
start_time = Time.at(params[:start].to_i).to_formatted_s(:db)
end_time = Time.at(params[:end].to_i).to_formatted_s(:db)

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
'timeFormat' => "h:mm t{ - h:mm t}"
}
FullcalendarEngine::Configuration.merge!(config)
FullcalendarEngine::Configuration['events'] = "#{FullcalendarEngine::Configuration['mount_path']}/events/get_events"
FullcalendarEngine::Configuration['events'] = "#{FullcalendarEngine::Configuration['mount_path']}/events"
5 changes: 1 addition & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FullcalendarEngine::Engine.routes.draw do
root :to => 'events#index'
resources :events do
collection do
get :get_events
end
member do
post :move
post :resize
end
end
root :to => 'events#index'
end

0 comments on commit 8c7c14d

Please sign in to comment.