Ruby on Rails Sunday, September 29, 2013

On 26 September 2013 17:52, Derek Chadwell <derek.chadwell@gmail.com> wrote:
> Hi all,
>
> I'm trying to code log in/out and session logic into my first rails app.
> The session#new resource has no problem showing me the log in page and form,
> but every time I click submit it posts to sessionscontroller#new (again)
> instead of create, despite the fact that I've given it the create path in
> the url: parameter:
> [snip]
> the app/views/sessions/new.html.rb code
>
> 9 <div class="offset4 span4 border-radius">
> 20 <form id="sign-in">
> 21 <legend>Sign In with your email address and password</legend>
> 22 <%= form_for(:session, url: sessions_path) do |f| %>

It is not legal html to have nested forms.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtussoUztXnYMZw-rzH4ZVy5LgmebQyDaUA%2BBzV4UaWTA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment