I am building a web application using Rails 3.2.6 and when I try to do this query it compains about the comma after the first half of the query.
Checkin.where ("user_id = ? AND event_id = ?", current_user.id, params[:event_id])
What is wrong with the above code?
Remove the space between
whereand opening(.