🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.ruby
1 messages
1 total messages Started by Zbigniew Malec Sat, 24 Jul 2010 14:48
[ROR] =?iso-8859-2?Q?Zapamiêtywanie_hase³_przez_przegl±darkê?
#1272
Author: Zbigniew Malec
Date: Sat, 24 Jul 2010 14:48
47 lines
1487 bytes
Cze�� Rubinowcy!
Mam taki problem, �e przegl�darka nie proponuje mi zapami�tania has�a w
moim formularzu sporz�dzonym w railsach. W firefoxie dzia�a, w IE - sam nie
wiem (;) ), a w operze zupe�nie nic. M�j formularz:

<form action="/session" method="post">
<div style="margin:0;padding:0;display:inline">
<input name="authenticity_token" type="hidden" value="dada" /></div>

    <div>
      <label for="login">Login:</label>
      <input id="login" name="login" type="text" />
      <label for="password">Password:</label>
      <input id="password" name="password" type="password" />
      <input name="commit" type="submit" value="Log in" />
    </div>
    <div>
      <label for="rememeber_me">Remember me</label>
      <input id="remember_me" name="remember_me" type="checkbox" value="1"
/>
    </div>
  </form>

, �r�d�o:

<% form_tag session_path do %>
  <%= show_errors(flash[:alert]) %>
    <div>
      <%= label_tag :login, t('labels.login') + ':' %>
      <%= text_field_tag :login, @login %>
      <%= label_tag :password, t('labels.password') + ':' %>
      <%= password_field_tag :password, nil %>
      <%= submit_tag t('actions.log_in')%>
    </div>
    <div>
      <%= label_tag :rememeber_me, t('labels.remember_me') %>
      <%= check_box_tag 'remember_me', '1', @remember_me %>
    </div>
  <%  end %>

Wiem, �e pytanie jest bardzo og�lne i pewnie nie do ko�ca zwi�zane z
railsami, ale mo�e jednak?

--
Pozdrawiam
Zbyszek Malec

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads