Hi all!
Is there a way I can turn this:
<%= f.datetime_select :truckleft, :start_year => Date.current.year, :end_year => Date.current.year, :include_blank => true %>
into a helper, because I need to use it a lot throughout the form
I do however would like the rest to stay in the view file, like the:
<%= form_for(@trip) do |f| %>
so far nothing worked yet
Thank you so much!
ps, i'm using Rails 3..