ruby - HTML in Padrino html.erb form displaying on page -


i'm trying reuse portion of rails app work padrino app. there slight differences in of form helpers causing errors, i've fixed those. page displays form, it's displaying html inside form_tag on page, , can't figure out why.

here's html.erb partial:

<div class="monitor create panel panel-default">         <div class="panel-heading">                 <%= link_to("<< list", '/adminsettings/list') %>                 <%= flash[:alert] %>                 <h2>create new team</h2>         </div>         <div class="panel-body">                 <% form_tag '/createnewteam'  %>                         <div class="form-group col-sm-12">                 <%= label_tag :team, {:caption => "new team name", :class => "col-sm-2 control-label"} %>                         <div class="col-sm-5">                                         <%= text_field_tag :team, {:class => "form-control"} %>                                 </div>                 </div>         </div>         <div class="panel-footer">             <%= submit_tag("create team", disabled: false, :class => "btn btn-default") %>         </div>                 <% end %> </div> 

and here's html produces:

<div class="monitor create panel panel-default">     <div class="panel-heading">         <a href="/adminsettings/list">&lt;&lt; list</a>          <h2>create new team</h2>     </div>     <div class="panel-body">         <form method="post" action="/createnewteam" accept-charset="utf-8"><input value="95aa727c7471fe6a959b16b35eaa4cb0" name="authenticity_token" type="hidden" />             &lt;div class=&quot;form-group col-sm-12&quot;&gt;             <label class="col-sm-2 control-label" for="team">new team name</label>                 &lt;div class=&quot;col-sm-5&quot;&gt;                     <input class="form-control" name="team" type="text" />                 &lt;/div&gt;             &lt;/div&gt;         &lt;/div&gt;     &lt;div class=&quot;panel-footer&quot;&gt;         <input class="btn btn-default" value="create team" type="submit" />     &lt;/div&gt;         </form> </div> 


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -