Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Basics of Rails Security

Basics of Rails Security

Presented at CodeMash v2.0.1.5. Originally titled "What to say when they ask you about security", which turned out to be dumb.

Jon Canady

January 09, 2015
Tweet

More Decks by Jon Canady

Other Decks in Programming

Transcript

  1. class CommentsController < ApplicationContro before_filter :authorize_and_load def authorize_and_load @comment =

    Comment.find params[:id] unless @comment.author == current_user raise "Nope" end end end