Hi,
I am trying to get the response in xml format.
For that I have written following code
def user_details
@user=User.find(params[:id])
@[email protected]
respond_to do |format|
format.xml {render :xml=> @user.to_xml(:include => @company)}
end
end
I am getting following error:-
"undefined method `macro' for nil:NilClass"
Can anyone tell, what is wrong with the code?
Thanks,
Mike
--
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.