I am new to ROR. I have been going through the article regarding as_json http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/ but i could not make as_json work with options hash . When i am using as_json with options, it is not honoring the options and returning the entire object.So a call like render :json => {:user.as_json(:only => [:email] , :methods => [:getName]} does not work as expected and returns the whole user object and disregards the :methods and :only. Can anyone suggest any solution for this? -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.