Hi I am newbie for rails. I developed a single page with three fields. The fields are name, content and created_on I have installed the calendar_date_select plugin. I am using in-place edit for all the fields. If i change the name and content in-place editing , if i pressed ok, it stored into my database. But I can''t able to store the date. How can i do that as in-place edit with calendar_date_select. The following code snippet for show.rhtml page =======================================<p> <b>Name:</b> <%= in_place_editor_field :page, :name %> <br /> <b>Content:</b> <%= in_place_editor_field :page, :content %> <br /> <b>Created_on:</b> <%= calendar_date_select :page, :created_on %> </p> <%= link_to ''Back'', :action => ''list'' %> ============================================= Please anyone help me to solve this problem. is there any help pages and manual guide for in-place edit for date. Thanks in advance - Basha.S --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Basha,> The fields are name, content and created_onYou need to pick a different name for the created_on field. See http://wiki.rubyonrails.org/rails/pages/MagicFieldNames for more on why. Best regards, Bill --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I changed created_on field to createdon. <%= calendar_date_select :page, :createdon %> I can change the date using that datepicker control, it displayed in textfield. But it does not to my database. I just refresh the page , It always show the previous date value. I tried like this also <%= in_place_editor_field :page, :createdon, < %= calender_date_select :page, :createdon %> I guess i am wrong, is that anything i am missing? - Basha.S --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---