i honestly don't know. but still i'm eager to learn. here is something
i found on google:

[quote]
 If I were facing this dilemma, I would add a method on the
model that returns the date in the format that you need it:

def updated_at_js
    updated_at.strftime(<some format>)
end

Then call to_xml like this:

p = Person.find_by_id(params[:id])
p.to_xml :methods => :updated_at_js

so the properly formatted date is included in the xml packet. Then
just
use that one in your JS.
[/quote]

let me know when you've found a solution to that problem.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to