<%= form_for @event || Event.new(:owner_id => profile_subject.actor_id, :interval => 1), :remote => true do |f| %> <%= f.hidden_field :owner_id %> <%= f.hidden_field :start_at %> <%= f.hidden_field :end_at %> <%= f.hidden_field :all_day %> <% if f.object.errors.any? %>

<%= pluralize(f.object.errors.count, "error") %> evitaron que se guardara esta actividad:

<% end %>
<%= f.label :title %> <%= f.text_field :title %>
<% if profile_subject.rooms.any? %>
<%= f.label :room %> <%= f.select :room_id, profile_subject.rooms.map{ |r| [r.name, r.id] }, { :include_blank => true } %>
<% end %>
<%= render :partial => 'scheduler/form', :locals => { :f => f } %>
<%= f.submit %>
<% end %>