Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created June 13, 2014 06:14
Show Gist options
  • Select an option

  • Save rocodev-tech/f5e391ae79b0ae6332a4 to your computer and use it in GitHub Desktop.

Select an option

Save rocodev-tech/f5e391ae79b0ae6332a4 to your computer and use it in GitHub Desktop.
app/controllers/orders_controller.rb
def show
@order = current_user.orders.find_by_token(params[:id])
@order_info = @order.info
@order_items = @order.items
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment