This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
basic install generators, initial migrations
- Loading branch information
BillL
committed
Mar 19, 2011
1 parent
98f94a2
commit e7ed1af
Showing
77 changed files
with
10,904 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
db/*.sqlite3 | ||
log/*.log | ||
tmp/**/* | ||
*.tmproj |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Photo < ActiveRecord::Base | ||
belongs_to :photo_lookup | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class PhotoLookup < ActiveRecord::Base | ||
has_many :photos | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class User < ActiveRecord::Base | ||
# Include default devise modules. Others available are: | ||
# :token_authenticatable, :confirmable, :lockable and :timeoutable | ||
devise :database_authenticatable, :registerable, | ||
:recoverable, :rememberable, :trackable, :validatable | ||
|
||
# Setup accessible (or protected) attributes for your model | ||
attr_accessible :email, :password, :password_confirmation, :remember_me | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%h2 Resend confirmation instructions | ||
= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| | ||
= devise_error_messages! | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p= f.submit "Resend confirmation instructions" | ||
= render :partial => "devise/shared/links" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
%p | ||
Welcome #{@resource.email}! | ||
%p You can confirm your account through the link below: | ||
%p= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) |
6 changes: 6 additions & 0 deletions
6
app/views/devise/mailer/reset_password_instructions.html.haml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%p | ||
Hello #{@resource.email}! | ||
%p Someone has requested a link to change your password, and you can do this through the link below. | ||
%p= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) | ||
%p If you didn't request this, please ignore this email. | ||
%p Your password won't change until you access the link above and create a new one. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%p | ||
Hello #{@resource.email}! | ||
%p Your account has been locked due to an excessive amount of unsuccessful sign in attempts. | ||
%p Click the link below to unlock your account: | ||
%p= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
%h2 Change your password | ||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| | ||
= devise_error_messages! | ||
= f.hidden_field :reset_password_token | ||
%p | ||
= f.label :password | ||
%br/ | ||
= f.password_field :password | ||
%p | ||
= f.label :password_confirmation | ||
%br/ | ||
= f.password_field :password_confirmation | ||
%p= f.submit "Change my password" | ||
= render :partial => "devise/shared/links" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%h2 Forgot your password? | ||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| | ||
= devise_error_messages! | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p= f.submit "Send me reset password instructions" | ||
= render :partial => "devise/shared/links" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%h2 | ||
Edit #{resource_name.to_s.humanize} | ||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| | ||
= devise_error_messages! | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p | ||
= f.label :password | ||
%i (leave blank if you don't want to change it) | ||
%br/ | ||
= f.password_field :password | ||
%p | ||
= f.label :password_confirmation | ||
%br/ | ||
= f.password_field :password_confirmation | ||
%p | ||
= f.label :current_password | ||
%i (we need your current password to confirm your changes) | ||
%br/ | ||
= f.password_field :current_password | ||
%p= f.submit "Update" | ||
%h3 Cancel my account | ||
%p | ||
Unhappy? #{link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete}. | ||
= link_to "Back", :back |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%h2 Sign up | ||
= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| | ||
= devise_error_messages! | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p | ||
= f.label :password | ||
%br/ | ||
= f.password_field :password | ||
%p | ||
= f.label :password_confirmation | ||
%br/ | ||
= f.password_field :password_confirmation | ||
%p= f.submit "Sign up" | ||
= render :partial => "devise/shared/links" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%h2 Sign in | ||
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p | ||
= f.label :password | ||
%br/ | ||
= f.password_field :password | ||
- if devise_mapping.rememberable? | ||
%p | ||
= f.check_box :remember_me | ||
= f.label :remember_me | ||
%p= f.submit "Sign in" | ||
= render :partial => "devise/shared/links" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
- if controller_name != 'sessions' | ||
= link_to "Sign in", new_session_path(resource_name) | ||
%br/ | ||
- if devise_mapping.registerable? && controller_name != 'registrations' | ||
= link_to "Sign up", new_registration_path(resource_name) | ||
%br/ | ||
- if devise_mapping.recoverable? && controller_name != 'passwords' | ||
= link_to "Forgot your password?", new_password_path(resource_name) | ||
%br/ | ||
- if devise_mapping.confirmable? && controller_name != 'confirmations' | ||
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) | ||
%br/ | ||
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' | ||
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) | ||
%br/ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%h2 Resend unlock instructions | ||
= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| | ||
= devise_error_messages! | ||
%p | ||
= f.label :email | ||
%br/ | ||
= f.text_field :email | ||
%p= f.submit "Resend unlock instructions" | ||
= render :partial => "devise/shared/links" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% | ||
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" | ||
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" | ||
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip" | ||
%> | ||
default: <%= std_opts %> features | ||
wip: --tags @wip:3 --wip features | ||
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip |
This file contains 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
This file contains 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
Oops, something went wrong.