You don't need an empty action index
Delete this empty action, navigate to /lecturer
it will render index.html.erb automatically
@Serag8 
Same for other controllers