Activity
Posted in Login with Facebook Discussion
Hey Chris,
How dose one go ahead an configure development to force ssl? Facebook requires https now and there is now way (that i have found) in their dashboard to link to anything http?
George,
I would recommend roe based with something like acts as tenant! Apartment has its purposes but if your going to scale at any point apartment will for sure bite ya! I used to want to use apartment until I found go rails and heard horror stories lol
I just made the switch to the Citus gem.. super simple and easy to use!
Posted in Error Tracking with Errbit Discussion
FANTASTIC video..
Note to anyone who follows this.. if you just use the out of the box gem suggestion your app will break.. use the latest version..
Thanks for the brain food Chris!
as @tabish said, activerecord-multi-tenant gem is super simple to work with and works really well if your looking for a non partitioned approach!
Fantastic! glad I found this! was looking at different options and as always, cheaper to roll your own lol..!
Thanks again Chris!
ok so I am a complete idiot..
all i had to do was run the following in my terminal
./node_modules/.bin/tailwind init path/to/app/tailwind.config.js
Hey Chirs!
Great video, only question I have about using tailwind with rails 6 is the theme config.
in the docs it says to place:
module.exports = {
theme: {
container: {
center: true,
},
},
}
within tailwind.config.js however when i make this file it dosn't load and if i try to add it to the postcss coinfig it crashes and wont compile.. any solutions or suggestions?
Posted in Enable HTTPS SSL in rails localhost
i just run an ngrok server now.. spits everything out to https or http depending on your requirements
checkout the acts_as_tenant gem.. Ive used it in apps where i dont need the full power of apartment or subdomains..
Extremly easy to implement aswell!
hey Guillermo (hope i spelled that right).
im not gonna lie, im not a webpack expert by any stretch. This guide was pieced together by me over a few days of struggling to get it set up and loading boot strap.
ill collect the best explained stack questions and post them here
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack
Step 1:
yarn add bootstrap@4.3.1 jquery popper.js
Step 2:
in config/webpack/environment.js add the following:
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.append('Provide', new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Popper: ['popper.js', 'default']
}))
module.exports = environment
Step 3:
in app/javascript/packs/application.js add the following:
import 'bootstrap'
import './src/application.scss'
step 4:
create the following folder app/javascript/packs/src
and create the file 'application.scss
and place @import '~bootstrap/scss/bootstrap';
This should get bootstrap 4 up and running with Rails 6 Beta and webpack!
For anyone who may be wanting to use Typed_store in rails 6, there is currently no support.
https://github.com/byroot/activerecord-typedstore/issues/64
another well explained video! I have been struggling with how to handle timezones for some time now!
The timing of this video is perfect! I was wanting to add something like this to my app.. but was stuck on what approach to take!
Again another usefull and well explained video! Keep it coming Chris!
Posted in User create Dynamic Role base
Hey so there have been some changes to AWS-SDK and the endpoints, thus resulting is some necessary changes to shrine.rb (if your using the newer versions of AWS-SDK Gem.
in the shrine.rb file to make it work it should appear like so
require "shrine/storage/s3"
s3_options = {
access_key_id: ENV["AWS_ACCESS_KEY_ID"],
secret_access_key: ENV["AWS_SECRET_KEY"],
region: ENV["AWS_REGION"], us-west-2 (or whatever your aws region is from Chris's Post above)
bucket: ENV["AWS_BUCKET"],
endpoint: ENV["AWS_HOST"], (needs to be like this (find these at http://docs.aws.amazon.com/... make sure you include the http or https like so (https://s3-us-west-2.amazon...).
}
Shrine.storages = {
cache: Shrine::Storage::S3.new(prefix: "cache", **s3_options),
store: Shrine::Storage::S3.new(prefix: "store", **s3_options),
}
Shrine.plugin :activerecord
Shrine.plugin :direct_upload
Shrine.plugin :restore_cached_data
Hope this helps if your running into an endpoint issue or permanent redirect error.
Posted in Subscriptions with Stripe Discussion
https://uploads.disquscdn.c... Just so everyone is aware.. The card details that Stripe returns in the form around 47:22 have been changed by stripe they are now:
exp_month
exp_year
brand
Ive added a photo with the updated values incase anyone hits a snag retrieving data.
Happy Floundering :)
Here ya Go..
https://rubygems.org/gems/d... - RubyGems.org
https://github.com/swilson2... - GitRepo
resolved i had to add us-west-2