我为导航栏创建了这个表单:
<form action="/sessions" method="post" class="well form-inline">
<input id="user_email" name="user[email]" type="text" placeholder="Email">
<input id="user_password" name="user[password]" type="password" placeholder="Password">
<label class="checkbox">
<input type="checkbox"> Remember me
</label>
<button name="commit" type="submit" class="btn">Sign in</button>
</form>
该表单位于导航栏上,我必须告诉它进入sessions controller
并使用该create
操作。这是怎么做的?我找了好几天!
……