🚀 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 12:48
[ROR] Zapamiętywanie haseł przez przeglądarkę
#1294
Author: Zbigniew Malec
Date: Sat, 24 Jul 2010 12:48
46 lines
2290 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