I am using calendar_date_select for the date in my application..
<% calendar_date_select :start_date %>
I am using like this when the controller.action_name=="new".
For the controller.action_name=="edit" I am displaying the date like this
<% calendar_date_select :start_date, @date, :pop_up => "force" %>
Here @date means start_date value, I am retrieving from database, using as @date.
Actually date is displaying, and I can edit the date.
But for particular stage I should not edit the date. I tried to search calendar_date_select non-editable. Is there any way not to edit the date using calendar_date_select.
Please suggest me If there are any other alternatives.. for this..
Don’t use the
calendar_date_selectfor this, use a normaltext_field_tag:That should create a text field with your
@datevalue and mark the text field as read-only.