The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
94 views

Checking if current user exists before executing code

In one of my controllers I have this method: def method_name if current_user @model = Model.find(params[:id]) if @model.destroy flash.alert = 'Model deleted successfully' ...