Is this safe from SQL injection:
Guest.where(:event_id => params[:id])
I am sending in params[:id] without doing any type of sanitization.
and in general, are all of those activerecord method safe? (like where, joins, etc..)
And if not, what is the best practise to be safe? Also, please is there any caveats/edge cases I should be aware of?
Thanks