All Projects → kuroda → Vue Rails Form Builder Demo

kuroda / Vue Rails Form Builder Demo

An example of Rails app using vue-form-for gem

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Vue Rails Form Builder Demo

Npm Pipeline Rails
Use npm as part of your Rails asset pipeline
Stars: ✭ 93 (+675%)
Mutual labels:  webpack, rails
Webpacker React
Webpacker plugin to integrate React in your Rails application
Stars: ✭ 201 (+1575%)
Mutual labels:  webpack, rails
Simpacker
Use modern JavaScript build system in Rails.
Stars: ✭ 100 (+733.33%)
Mutual labels:  webpack, rails
Vueport
Single file components for Rails with Vue JS and Webpack
Stars: ✭ 141 (+1075%)
Mutual labels:  webpack, rails
Hyper React
The project has moved to Hyperstack!!
Stars: ✭ 295 (+2358.33%)
Mutual labels:  webpack, rails
Ifme
Free, open source mental health communication web app to share experiences with loved ones
Stars: ✭ 1,147 (+9458.33%)
Mutual labels:  webpack, rails
Limestone
Boilerplate Rails 6 SaaS application with Webpack, Stimulus and Docker integration.
Stars: ✭ 191 (+1491.67%)
Mutual labels:  webpack, rails
Docker Rails React Starter
A basic docker-compose, Rails and React / Webpack starter kit
Stars: ✭ 52 (+333.33%)
Mutual labels:  webpack, rails
Kickoff tailwind
A rapid Rails 6 application template for personal use bundled with Tailwind CSS
Stars: ✭ 287 (+2291.67%)
Mutual labels:  webpack, rails
React webpack rails
Simple and lightweight react-webpack-rails integration.
Stars: ✭ 248 (+1966.67%)
Mutual labels:  webpack, rails
Docker Web Framework Examples
Example apps that demonstate how to use Docker with your favorite web frameworks.
Stars: ✭ 204 (+1600%)
Mutual labels:  webpack, rails
Kails
A Web App like Ruby on Rails with Koa2, Webpack and Postgres
Stars: ✭ 512 (+4166.67%)
Mutual labels:  webpack, rails
Hyperstack
Hyperstack ALPHA https://hyperstack.org
Stars: ✭ 463 (+3758.33%)
Mutual labels:  webpack, rails
Webpacker
Use Webpack to manage app-like JavaScript modules in Rails
Stars: ✭ 5,282 (+43916.67%)
Mutual labels:  webpack, rails
Online Bling
Stars: ✭ 9 (-25%)
Mutual labels:  webpack
Flow Bin Loader
webpack loader for Flow
Stars: ✭ 11 (-8.33%)
Mutual labels:  webpack
Express
Express + Sequelize + Winston + Jasmine + TypeScript + Webpack MVC Boilerplate
Stars: ✭ 9 (-25%)
Mutual labels:  webpack
Albinotonnina.com
source-code
Stars: ✭ 837 (+6875%)
Mutual labels:  webpack
Active record doctor
Identify database issues before they hit production.
Stars: ✭ 865 (+7108.33%)
Mutual labels:  rails
Adfs managers
This is site (web-app) to manage teams and statistic for ADFS
Stars: ✭ 10 (-16.67%)
Mutual labels:  webpack

vue-rails-form-builder-demo

This is a Rails demo application using these libraries:

This application illustrates how we can combine the traditional form builder with Vue.js components.

Look at carefully these files:

  • Gemfile
  • package.json
  • app/views/customers/edit.html.erb
  • app/views/customers/new.html.erb
  • app/views/customers/_fields.html.erb
  • app/javascript/packs/customers/fields.js

Especially, note that we use vue_form_for helper in stead of form_for:

<%= vue_form_for @customer, html: { id: "customer-form" } do |f| %>
  <%= render "fields", f: f %>
  <div>
    <%= f.submit "Update" %>
  </div>
<% end %>

Also observe how we use the vue-data-scooper plugin:

import Vue from 'vue/dist/vue.esm'
import VueDataScooper from "vue-data-scooper"

Vue.use(VueDataScooper)

document.addEventListener("DOMContentLoaded", () => {
  new Vue({
    el: "#customer-form"
  })
})

Installation

git clone https://github.com/kuroda/vue-rails-form-builder-demo.git
cd vue-rails-form-builder-demo
bundle
yarn
bin/rake db:setup

Running in development mode

In one terminal:

bin/webpack-dev-server

In another terminal:

rails s
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].