start on card editing
This commit is contained in:
17
app/controllers/merged/cards_controller.rb
Normal file
17
app/controllers/merged/cards_controller.rb
Normal file
@ -0,0 +1,17 @@
|
||||
module Merged
|
||||
class CardsController < MergedController
|
||||
before_action :set_page
|
||||
|
||||
def index
|
||||
|
||||
end
|
||||
|
||||
private
|
||||
def set_page
|
||||
@page = Page.find(params[:page_id])
|
||||
section_id = params[:id] || params[:section_id]
|
||||
@section = @page.find_section( section_id )
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user