Basha
(Basha)
1
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
Bill_Walton
(Bill Walton)
2
Hi Basha,
The fields are name, content and created_on
You 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
Basha
(Basha)
3
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