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
resources :users | |
devise_for :users, controllers: { sessions: 'users/sessions',registrations: 'users/registrations' ,passwords: 'users/passwords' } | |
devise_scope :user do | |
unauthenticated :user do | |
root :to => "users/sessions#new" | |
end | |
authenticated :user do | |
root :to => 'dashboard#index', as: :authenticated_path |
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
Add HTML Wrapper in page | |
<div class="loading">Loading…</div> | |
=============================================================================================== | |
Add CSS | |
=============================================================================================== | |
/* Absolute Center Spinner */ | |
.loading { |
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
<script type="text/javascript"> | |
function Imagw(thisvalue) { | |
var slideshow = $('#slider-product-template-2'); | |
theme.slideshows[slideshow] = new theme.Slideshow(slideshow); | |
// slideshow.flexslider(6); | |
var $newImgs = slideshow.find( | |
'.slide[data-img-alt="' + thisvalue + '"]' | |
); |
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
http://railscasts.com/episodes/165-edit-multiple?view=asciicast | |
http://viralpatel.net/blogs/multiple-checkbox-select-deselect-jquery-tutorial-example/ |
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
http://stackoverflow.com/questions/30221340/allow-user-to-create-custom-email-template-for-actionmailer-in-rails | |
https://github.com/code-and-effect/effective_email_templates | |
http://jejacks0n.github.io/mercury/ | |
https://github.com/glebm/rails_email_preview |
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
rails create module | |
create a file in lib/foo.rb and put | |
module Foo | |
def self.hello | |
puts "ohohohohhhohohohoh" | |
end | |
end |