module DeviseWhitelist
include ActiveSupport::Concern
included do
before_filer :configure_permitted_params, if devise_controller?
end
How to setup Hot Module Reloading as per Brian Holts FrontendMasters Course:
- .babelrc
"plugins": [
"react-ho-loader/babel",
]
I hereby claim:
- I am drumusician on github.
- I am tjaco (https://keybase.io/tjaco) on keybase.
- I have a public key ASA7Anp5feL15uwiH_0negDILo0zflJYxHk0LMCmHm7KwAo
To claim this, I am signing this object:
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
require 'spec_helper' | |
feature "User creates a user profile" do | |
scenario "User does not have a profile yet" do | |
sign_in_user | |
visit '/users/require "spec_helper" | |
feature "feature" do | |
scenario "User creates a new widget" do |
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
require "spec_helper" | |
feature "Widget management" do | |
scenario "User creates a new widget" do | |
visit "/widgets/new" | |
fill_in "Name", :with => "My Widget" | |
click_button "Create Widget" | |
expect(page).to have_text("Widget was successfully created.") |