On Dec 8, 1:41 pm, RVince <[email protected]> wrote:
> If I have a form in a view (below) shouldn't I be able to access the
> password field in the corresponding controller with params
> [:password] ? -RVince

no. it will be params[:something][:password]. Take a look at your
development log to see how parameters are being sent.

Fred
>
> <% title "Login" %>
> <% form_for @associate_session do |f| %>
>   <%= f.error_messages %>
>   <p>
>   <br/><br/>
>     <%= f.label :username %><br />
>     <%= f.text_field :username %>
>   </p>
>   <p>
>     <%= f.label :password %><br />
>     <%= f.password_field :password %>
>   </p>
>   <br />
>   <%= f.check_box :remember_me %>
>   <%= f.label :remember_me %><br />
>   <br />
>   <% session['fromlogin'] = 1 %>
>   <p><%= f.submit "Submit" %></p>
> <% end %>

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to