timeline wotking, renmed left column
This commit is contained in:
@ -53,6 +53,6 @@ class MembersController < ApplicationController
|
||||
# Only allow a list of trusted parameters through.
|
||||
def member_params
|
||||
params.require(:member).permit(:name, :public, :bio , :picture,
|
||||
:picture_cache , :arrived ,:left)
|
||||
:picture_cache , :arriving ,:leaving)
|
||||
end
|
||||
end
|
||||
|
6
app/controllers/timeline_controller.rb
Normal file
6
app/controllers/timeline_controller.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class TimelineController < ApplicationController
|
||||
|
||||
def index
|
||||
@members = Member.visible_scope.where("leaving > ? " , Date.today).order(:arriving).page(1)
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user