Skip to content

Instantly share code, notes, and snippets.

@joshrendek
Created January 15, 2011 23:58
Show Gist options
  • Save joshrendek/781387 to your computer and use it in GitHub Desktop.
Save joshrendek/781387 to your computer and use it in GitHub Desktop.
controller.rb
@range_days = RangeDay.where("user_id = ? AND rifle_id = ?", current_user.id, params[:rifle_id])
<% @range_days.each do |range_day| -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment