Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MeetingsController < ApplicationController
- def index
- @upcoming_meetings = Meeting.upcoming_meetings
- @past_meetings = Meeting.past_meetings
- end
- def new
- @meeting = Meeting.new
- end
- def show
- @meeting = Meeting.find(params[:id])
- end
- def create
- @meeting = Meeting.new(params[:meeting])
- if @meeting.save
- flash[:notice] = 'Meeting successfully created.'
- redirect_to :action => "index"
- else
- render :action => "new"
- end
- end
- end
Add Comment
Please, Sign In to add comment