Thanks for your reply. So let me ask a few specific questions to
clarify my understanding of Ruby.
class UserCommentsController < ApplicationController
def new
@usercomment = UserComment.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @usercomment }
end
end
....
I would have thought, given that this was scaffolding, that
UserComment.new allocated the space for the UserComment, assigned the
values to nil, and that the view would render them as empty data. What
IS this really doing? I assumed it passes the usercomment to one of to
format methods that are internal to Ruby on Rails. Thanks again!
--
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.