George
March 15, 2006, 8:52am
1
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:
which can be implemented using form_remote_tag
but how to do that deeply? Anyone has any idea?
George
March 15, 2006, 8:57am
2
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ï¼
George
March 15, 2006, 9:38am
3
Have you included the default (prototype, etc) javascripts in your
layout?
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
–
George
March 15, 2006, 9:52am
4
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?
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
–