All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
This file contains hidden or 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
<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" lang="id-ID" data-authenticated-account="" class="wf-freighttextpro-n3-active wf-freighttextpro-n7-active wf-freighttextpro-n4-active wf-baskervilledisplaypt-n4-active wf-freighttextpro-n5-active wf-freighttextpro-i3-active wf-freighttextpro-i4-active wf-baskervilledisplaypt-n7-active wf-freighttextpro-i7-active wf-baskervilledisplaypt-i7-active wf-baskervilledisplaypt-i4-active wf-active"><head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<base href="https://www.euroqol.org/"> | |
<meta charset="utf-8"> | |
<title>TOTOTOGEL > Daftar 3 Situs Toto Togel 4D Gacor Hari Ini Banjir Hadiah</title> | |
<meta http-equiv="Accept-CH" content="Sec-CH-UA-Platform-Version, Sec-CH-UA-Model"><link rel="icon" type="image/x-icon" href="https://nasiangkasa.com/2024/peach-svgrepo-com.svg"> | |
<link rel="canonical" href="https://www.euroqol.org/"> | |
<meta pr |
This file contains hidden or 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
source 'https://rubygems.org' | |
git_source(:github) {|repo| "https://github.com/#{repo}.git" } | |
gem 'aws-sdk-s3', require: false | |
gem 'bootsnap', '>= 1.4.4', require: false | |
gem 'cancancan' | |
gem 'devise' | |
gem 'devise_invitable', '~> 2.0', '>= 2.0.5' | |
gem 'jbuilder', '~> 2.7' | |
gem 'pg' |
This file contains hidden or 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
Specs: | |
gem 'rails', '~> 6.1.3', '>= 6.1.3.2' | |
Ruby 3.0.1 | |
gem 'webpacker', '~> 5.0' | |
## package.json | |
"stimulus": "^2.0.0", | |
"stimulus_reflex": "3.4.1", | |
This file contains hidden or 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
<div class="content"> | |
<div class="row"> | |
<div class="col-md-10 ml-auto mr-auto"> | |
<div class="card card-user"> | |
<div class="card-header"> | |
<div class="row"> | |
<div class="col-md-6 col-sm-12"> | |
<h5 class="card-title">Update Invoice</h5> | |
<small><b>Invoice No.</b>01234</small><br> | |
<small><b>Invoice Type: </b>Travel Expenses</small> |
This file contains hidden or 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("@rails/ujs").start() | |
require("turbolinks").start() | |
require("@rails/activestorage").start() | |
require("channels") | |
require("trix") | |
require("@rails/actiontext") | |
import '../stylesheets/application' |
- Step 1:
heroku restart
- Step 2:
heroku pg:reset DATABASE
(no need to change theDATABASE
) - Step 3:
heroku run rake db:migrate
- Step 4:
heroku run rake db:seed
(if you have seed)
One liner
heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate
This is a complete, step-by-step tutorial showing how to create a fully functional contact form in production in rails 5. Rather than reinvent things, the following borrows from the best available documentation and tutorials (most notably, this tutorial on making a contact form in development). The finished contact form can be viewed here.
This tutorial uses:
- heroku for deployment,
- gmail for the mailer, and
- github for version control
It would be a good idea to create a new gmail account to use for your mailer now, if you haven't already. If you haven't yet got a heroku account and installed the heroku CLI, it would be easiest to do so now.
This file contains hidden or 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
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |
NewerOlder