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]) @compa...@user.company 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.