Skip to content

Instantly share code, notes, and snippets.

@notesolution
Created June 13, 2012 18:33
Show Gist options
  • Save notesolution/2925693 to your computer and use it in GitHub Desktop.
Save notesolution/2925693 to your computer and use it in GitHub Desktop.
def index
@g_questions = GroupQuestion.where('group_id = ?',params[:group_id]) if params[:group_id].present?
group = Group.find(params[:group_id])
@allow = group.instructor_id == _user.id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment