hi to everyone .i am using rails 2.1.0 for my current project.in the
console mode i tried to excute the statement in console mode
User.find(:first,:select=>â€name as text,id as valueâ€).to_json
=> “{\â€user\â€: {\â€text\â€: \â€thillai\â€, \â€value\â€: \â€1\â€}}â€
in rails 2.1.0 its giving the model name user also
but in rails 2.0.2 the results are coming as
{\â€text\â€: \â€thillai\â€, \â€value\â€: \â€1\â€}
as per my requirement i want results to be
{\â€text\â€: \â€thillai\â€, \â€value\â€: \â€1\â€}.
Is there any solution for this problem