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"><< 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" /> <div class="form-group col-sm-12"> <label class="col-sm-2 control-label" for="team">new team name</label> <div class="col-sm-5"> <input class="form-control" name="team" type="text" /> </div> </div> </div> <div class="panel-footer"> <input class="btn btn-default" value="create team" type="submit" /> </div> </form> </div>
Comments
Post a Comment