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.
On 7/28/06, Paul Kristoff <paul@kristoffs.com>
wrote:>
> James,
>
> It looks like you are missing an "end"
>
> Paul Kristoff
> 214-598-9610
> paul@kristoffs.com
>
>
> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of James Giannini
> Sent: Friday, July 28, 2006 3:55 PM
> To: rails@lists.rubyonrails.org
> Subject: [Rails] 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
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
-B
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060728/85da2948/attachment.html