Any one who can help with how to implement such a login?

http://www.wayfaring.com/
I think it is implemented using rails.
For if u input the wrong url,u can see a “rails” style error hint.
I really like its ajax login system.
from the source of the homepage,it can be seen the login part is:

Log In

Email or Name:

Password:



 Forget your password?

which can be implemented using form_remote_tag
but how to do that deeply? Anyone has any idea?

I plan to use the Login Engine to do the job

in the login.rhtml
I change the source into as follows(just change from form_tag to
form_remote_tag):

<%= form_remote_tag :action => 'login' %> <%= form_input :text_field, "Login ID", "login", :size => 30 %>
<%= form_input :password_field, "Password", "password", :size => 30 %>
  <div class="button-bar">
    <%= submit_tag 'Login' %>
    <%= link_to 'Register for an account', :action => 'signup' %> |
    <%= link_to 'Forgot my password', :action => 'forgot_password' 

%>


<%= end_form_tag %>

but as soon as i click the “login” button,nothing happens,anyone who can
tell me the reason?thanks a lot!

Have you included the default (prototype, etc) javascripts in your
layout?

  • james

On 3/15/06, George [email protected] wrote:

    <%= form_input :password_field, "Password", "password", :size =>

but as soon as i click the “login” button,nothing happens,anyone who can
tell me the reason?thanks a lote$B!*e(B


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

  • J *
    ~

yeah,prototype has been included,in fact,the project is extended from
the Ajaxscaffold… therefore all the necessaries have been included in
the layout.

James A. wrote:

Have you included the default (prototype, etc) javascripts in your
layout?

  • james

On 3/15/06, George [email protected] wrote:

    <%= form_input :password_field, "Password", "password", :size =>

but as soon as i click the “login” button,nothing happens,anyone who can
tell me the reason?thanks a lote$B!*e(B


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

  • J *
    ~