title: syntax error, unexpected keyword_do_block, expecting keyword_end ...off
body: <p>I'm try to develop redmine plugin which have some forms about dates.
  When I try to configure route settings, rails showed me this error. I couldn't fix it. Where is the problem?</p>
  
  <p>I got this error: </p>
  
  <pre><code>/days/new.html.erb:20: syntax error, unexpected tLABEL, expecting keyword_end ...ppend= form_for(@daysoff) url: {action: "create"} do |f| @o... ... ^ /var/www/redmine/plugins/days_off_redmine/app/views/days/new.html.erb:20: syntax error, unexpected keyword_do_block, expecting keyword_end ...off) url: {action: "create"} do |f| @output_buffer.safe_appe... ... ^ /var/www/redmine/plugins/days_off_redmine/app/views/days/new.html.erb:44: syntax error, unexpected keyword_ensure, expecting end-of-input
  </code></pre>
  
  <p>config/routes.rb</p>
  
  <pre><code>get 'days_off_redmine', :to =&gt; 'days#index'
  get 'days_off_redmine/new', :to =&gt; 'days#new'
  post 'days_off_redmine', :to =&gt; 'days#create'
  </code></pre>
  
  <p>model/daysoff.rb</p>
  
  <pre><code>class Daysoff &lt; ActiveRecord::Base
  unloadable
  end
  </code></pre>
  
  <p>days_controller.rb</p>
  
  <pre><code>class DaysController &lt; ApplicationController
    unloadable
  
      def index
  
  
    end
  
    def new
      @people = User.all
      @user = User.current
  
      @daysoff = Daysoff.new
    end
  
    def create
    end
  
  
  
  end
  </code></pre>
  
  <p>days/index.html.erb</p>
  
  <pre><code>&lt;%= link_to 'New', days_off_redmine_new_path %&gt;
  </code></pre>
  
  <p>days/new.html.erb</p>
  
  <pre><code>&lt;%= form_for(@daysoff) url: {action: "create"} do |f| %&gt;
  &lt;%= f.date_field :date, id: 'altField' %&gt;
  &lt;%= f.select_field "user", options_from_collection_for_select(@people, "id", "name"), prompt: "Select user" %&gt; 
  &lt;%= f.submit "Submit" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Extra Question: Actually I don't need extra page, how can post my form in the index controller?</p>