RailsCasts Pro episodes are now free!

Learn more or hide this

aonolight's Profile

GitHub User: aonolight

Comments by

Avatar

Can someone help me with this?

Extracted source (around line #3):
/app/models/product.rb:17: syntax error, unexpected $end, expecting keyword_end

class ProductsController < ApplicationController
def index

3 @products = Product.order(:name)

respond_to do |format|
format.html
format.csv { send_data @products.to_csv }