ruby on rails - Styling a form_tag -
i have following form:
= form_tag '/posts', {id: "link-form"} = text_field :post, :link = submit_tag "add link", {id: "submit-button"}
, renders:
<form accept-charset="utf-8" action="/posts" id="link-form" method="post"> <div style="margin:0;padding:0;display:inline"> <input id="post_link" name="post[link]" type="text"> <input id="submit-button" name="commit" type="submit" value="add link"> </form>
it seems rails automatically add div in second line: <div style="margin:0;padding:0;display:inline">
this div inherits parents, , can't access div (such assigning id) change appearance.
how can access div, or how go around it?
its div hidden inputs existing data. not have touch it.
Comments
Post a Comment