-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to Rails 4 and Added jQuery masonry
- Loading branch information
Neil Gehani
committed
Nov 5, 2013
1 parent
334ae06
commit 418a23c
Showing
28 changed files
with
264 additions
and
147 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
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
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 |
---|---|---|
|
@@ -19,6 +19,10 @@ body{ | |
padding-top: 1px; | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} | ||
|
||
.navbar-brand { | ||
font-weight: bold; | ||
} | ||
|
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
// Place all the styles related to the Pins controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
|
||
#pins { | ||
margin: 0 auto; | ||
} | ||
|
||
.box { | ||
margin: 5px; | ||
width: 240px; | ||
} | ||
|
||
.box img { | ||
width: 100%; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
class ApplicationController < ActionController::Base | ||
# Prevent CSRF attacks by raising an exception. | ||
# For APIs, you may want to use :null_session instead. | ||
#protect_from_forgery with: :exception | ||
protect_from_forgery with: :exception | ||
before_filter :configure_permitted_parameters, if: :devise_controller? | ||
|
||
protected | ||
protected | ||
|
||
def configure_permitted_parameters | ||
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:name, :email, :password, :password_confirmation) } | ||
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name, :email, :current_password, :password, :password_confirmation) } | ||
end | ||
def configure_permitted_parameters | ||
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:name, :email, :password, :password_confirmation) } | ||
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name, :email, :current_password, :password, :password_confirmation) } | ||
end | ||
|
||
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
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 |
---|---|---|
@@ -1,16 +1,30 @@ | ||
<h2>Change your password</h2> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<div class="panel-title"> | ||
<h1>Change your password</h1> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<%= 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 %> | ||
|
||
<%= 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 %> | ||
<div class="form-group"> | ||
<%= f.label :password, "New password" %> | ||
<%= f.password_field :password, class: "form-control", :autofocus => true %> | ||
</div> | ||
|
||
<div><%= f.label :password, "New password" %><br /> | ||
<%= f.password_field :password, :autofocus => true %></div> | ||
<div class="form-group"> | ||
<%= f.label :password_confirmation, "Confirm new password" %> | ||
<%= f.password_field :password_confirmation %> | ||
</div> | ||
|
||
<div><%= f.label :password_confirmation, "Confirm new password" %><br /> | ||
<%= f.password_field :password_confirmation %></div> | ||
|
||
<div><%= f.submit "Change my password" %></div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="form-group"> | ||
<%= f.submit "Change my password", class: "btn btn-primary" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,12 +1,24 @@ | ||
<h2>Forgot your password?</h2> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"> | ||
<div class="panel-title"> | ||
<h1>Forgot your password?</h1> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> | ||
<%= devise_error_messages! %> | ||
|
||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> | ||
<%= devise_error_messages! %> | ||
<div class="form-group"> | ||
<%= f.label :email %> | ||
<%= f.email_field :email, class: "form-control", :autofocus => true %> | ||
</div> | ||
|
||
<div><%= f.label :email %><br /> | ||
<%= f.email_field :email, :autofocus => true %></div> | ||
|
||
<div><%= f.submit "Send me reset password instructions" %></div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div class="form-group"> | ||
<%= f.submit "Send me reset password instructions", class: "btn btn-primary" %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
</div> |
Oops, something went wrong.