You can have a look at this other SO question to understand the difference between form_for
and form_tag
.
In the Railscasts episode you mentioned, the code looks like this:
= form_tag(sessions_path) do
= label_tag :email
= text_field_tag :email, params[:email]
Which is not similar to your code!