It's even simpler than that. Chalk it up to a rails newbie - sorry for 
the bother. Here's what I did:

Rails generated this:

 # GET /appointments/1
  # GET /appointments/1.xml
  def show
    @appointment = Appointment.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @appointment }
    end
  end

I had made a few changes, but then was undoing them - I must have 
thought that I had made those comments after format.html and uncommented 
them myself.Bah!

Walter Davis wrote in post #960107:
> That may indeed be the new Rails 3 syntax, I haven't spent any time
> with that yet, so sorry if I led you astray. But I suspect your
> problems began when you used the plural name for your scaffold
> argument. Try again, using rails g scaffold_controller Lesson and see
> if there is a different output.
>
> Walter

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to