Actions
Patch #966
closedDRY: Move repetitive calendar include code from views into helper
Start date:
2008-03-31
Due date:
% Done:
0%
Estimated time:
Description
Avoid repetitive code snippets seen in many views:
<% content_for :header_tags do %> <%= javascript_include_tag 'calendar/calendar' %> <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> <%= javascript_include_tag 'calendar/calendar-setup' %> <%= stylesheet_link_tag 'calendar' %> <% end %>
Move that code to ApplicationHelper in call it implicitly when calling calendar_for('field_id').
Files
Actions