Newb question

This is what it says when i have this stupid error…

app/controllers/info_controller.rb:9: syntax error

this is what is inside of info_controller,

class InfoController < ApplicationController
def who_bought
@product = Product.find(params[:id])
@orders = @product.orders
respond_to do |accepts|
accepts.html
accepts.xml
end
end

if someone could please help me…

-/ James

James,

It looks like you are missing an “end”

Paul Kristoff
214-598-9610
[email protected]

The line: app/controllers/info_controller.rb:9
tells you that your syntax error is on line 9. As a rule, if the syntax
error is at the end of the class, or file. Then you are missing an end
somewhere.