Techy Things

Installing node on a Linux Debian server 0

Installing node on a Linux Debian server

$> sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev $> git clone https://github.com/joyent/node.git $> cd node $> git checkout v0.12.7 (or the latest release) $> ./configure –openssl-libpath=/usr/lib/ssl $> make (it might take a...

How fo fix Image from origin AWS has been blocked Cross-Origin 0

How fo fix Image from origin AWS has been blocked Cross-Origin

Image from origin ‘https://olignyf-sandbox.s3.amazonaws.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present Solution: On AWS bucket Properties, set CORS Configuration to : <CORSConfiguration> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <MaxAgeSeconds>3000</MaxAgeSeconds>...

ActiveModel::ForbiddenAttributesError when creating new user 0

ActiveModel::ForbiddenAttributesError when creating new user

ActiveModel::ForbiddenAttributesError when creating new user Solution: On your POST handler, you need to untaint your params with: class UsersController < ApplicationController (…) def create #post @user = User.new(user_params) (…) end (…) private def user_params...