Created
June 1, 2010 00:53
-
-
Save sprite2005/420435 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_form.html.haml | |
%b= form.label :login, "Login <em>(used in your Cashlink.it links)</em>" | |
= form.text_field :login | |
%br | |
%b= form.label :email | |
= form.text_field :email | |
%br | |
%b= form.label :password, form.object.new_record? ? "Password <em>(minimum 6 characters)</em>" : "Change password" | |
= form.password_field :password | |
%br | |
%b= form.label :password_confirmation | |
= form.password_field :password_confirmation | |
edit.html.erb | |
<h1>Edit My Account</h1> | |
<% form_for @user, :url => account_path do |f| %> | |
<%= f.error_messages %> | |
<%= render :partial => "form", :object => f %> | |
<%= f.submit "Update" %> | |
<% end %> | |
<br /><%= link_to "My Profile", account_path %> | |
new.html.haml | |
.container | |
.left.top | |
%h1 Register | |
- form_for @user, :url => account_path, :html => {:class => 'mainform'} do |f| | |
= f.error_messages | |
= render :partial => 'form', :object => f | |
%p | |
= f.submit 'Register' | |
.right.top | |
%h1 Why join? | |
.about_box | |
= image_tag 'box-top-530.png' | |
.inner | |
%h2 Free! | |
%p It does not cost anything to join Cashlink.it | |
%h2 Simple registration | |
%p All we need to get started is a username, password and your Google Adsense publisher id. | |
%h2 Simplicity | |
%p Cashlink.it makes it easy to monetize exciting traffic sources, such as links shared through forums, posted on your blog, or linked to friends through instant messenger. | |
= image_tag 'box-bottom-530.png' | |
show.html.erb | |
<p> | |
<b>Login:</b> | |
<%=h @user.login %> | |
</p> | |
<p> | |
<b>Login count:</b> | |
<%=h @user.login_count %> | |
</p> | |
<p> | |
<b>Last request at:</b> | |
<%=h @user.last_request_at %> | |
</p> | |
<p> | |
<b>Last login at:</b> | |
<%=h @user.last_login_at %> | |
</p> | |
<p> | |
<b>Current login at:</b> | |
<%=h @user.current_login_at %> | |
</p> | |
<p> | |
<b>Last login ip:</b> | |
<%=h @user.last_login_ip %> | |
</p> | |
<p> | |
<b>Current login ip:</b> | |
<%=h @user.current_login_ip %> | |
</p> | |
<%= link_to 'Edit', edit_account_path %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment