jquery doesn't work in js.erb file
2
Rails
Hey I'm working on an rails 6 application and try to render an partial in an js.erb file but get this error in the chrome console:
> Uncaught TypeError: Cannot read property 'append' of null
...
Steven Torrence replied
Solved
How do I create an app with Urls like 'https://username.website.com/' instead of 'https://website.com/username/' ?
17
Rails
Hello everyone,
I searched but didn't find anything and was hoping like I said in the title of this subject, to find a way to get the url displaying a user's profile of a client's app to be like u...
Chris Oliver replied
Solved
CoffeeScript - How to work with coffeescript in ruby on rails?
1
Javascript
I am working with CoffeeScript in Ruby on rails. And I am using http://js2.coffee/ to convert my javascript and jquery into CoffeeScript.
We know, Ruby on Rails provides us by default .coffee file...
Chris Oliver replied
Thanks Chris, Just a small request.
0
Rails
Chris, I'm having a somewhat difficult time using and learning React on rails with webpacker and react-router and react-router-dom while using complex routing inside the react router and simultaneo...
ericscottmarquez posted
integrating stimulus with ruby on rails
1
Ruby
Where does the Stimulus team recommend as best practice to put the JS controller files? For example, if I wanted to integrate a version of this walkthrough into an existing rails app?
Chris Oliver replied
Changing currentTime of video in Rails webpacker-react component
0
Rails
So I was able to put a react component in a [sandbox][1] and get it working as I wanted. In isolation it just manages the currentTime of a video. In the main app clicking a button changes the state...
gjaros posted
rails generate devise:install hangs
2
Rails
I ran into this issue today whilst I was trying to deploy jumpstart template into **my Rails 5.2.1 App**
When I ran rails generate devise:install nothing happened. No errors, no output – nothing...
Felender Hlungwani replied
Solved
Vue + Webpacker: app works in development but doesn't mount template in production - blank screen with no errors in console!
1
Javascript
I'm using Rails 5.2.0 and Webpacker gem to deploy a Vue application.The show.html.erb file is very simple:<div data-behavior="vue-app"><MyComponent></MyComponent></div>And t...
John Meehan replied
Webpacker error from Vue.js Trello Clone Series
4
Rails
Hey all, I have an error that I just can't get to the bottom of. While going through the awesome Vue.js Trello Clone tutorial I started seeing this:(Webpacker can't find application.css in /trello-...
Matthias Orgler replied
Solved
Using Webpacker and Rails on AWS Elastic Beanstalk
10
General
Can anyone point me in the direction of documentation/tutorial for using Webpacker with Rails on Elastic Beanstalk? I have been playing with Tailwind CSS (which is great btw), and I'm getting a ver...
Simon Cooper replied
Solved
0 Using VueJS with Rails: Using VueJS for Nested Forms in Rails: Part 2
29
General
I particularly like avoiding the extra complexity of a full-blown router-based SPA, especially when enhancing an existing Rails app. Thanks for the clear and concise walkthrough! It'll help me avoi...
Aleksandr Shelestov replied
How to use Vue.js and Turbolinks together Discussion
6
General
Hi! Maybe I do not understand correctly, but can I add SoundCloud with a turbolink and VUE? Work. How to do it?Thank you, make an example if possible.
Travis Smith replied
Using webpacker in Rails Engines?
6
Rails
I'm making a pluggable CMS engine and want to keep the JS/CSS (preferably by writing Tailwind components) in the engine. It works great with models, controllers, routes and the asset pipeline, but ...
Angel Garcia replied
Modern Webpack template on Rails 5.1
1
Rails
I have downloaded this [Adminator template](https://github.com/puikinsh/Adminator-admin-dashboard), which is modern npm/yarn Webpack theme. As stated in the template's homepage, install instruction...
Chris Oliver replied
Webpacker requires Node.js >= 6.0.0 and you are using 0.10.30
3
General
I've got into bit of a mess. Posted this over on SO too, but no answers of use over there.
I've added Webpacked so I can install React.js. However, I think I've somehow buggered up my PATH and ba...
Simon Cooper replied
Solved
How do I deploy to staging or production environments the stack Vue+Rails
0
Javascript
When I deploy an application using webpacker + vue + rails, and the template of the main component is on the rails view I get a vue error regarding security.
Error:
```
[Vue warn]: It seems you ar...
Raimon Fernandez Sirera posted
Help configuring Vuetify/stylus on Webpacker
1
Gems / Libraries
Hi, does anyone know how to configure Vuetify with a rails app?
I have webpacker working for basic a vue.js/rails app but I would like to configure it so stylus files compile to css so I can use Vu...
davidlbean replied
Install a custom loader with webpacker gem
0
Javascript
I am trying to use a Vue.js based material design framework called [Vuetify](https://vuetifyjs.com/) with Rails 5 and the webpacker gem. The styles for this framework are created with the [Stylus](...
Abhinav Mathur posted
How do I install bootstrap-v4 via yarn?
4
CSS
Hey Guys,
I tried to install bootstrap4 via yarn. And I tried it like this:
1. yarn add bootstrap@4.0.0-alpha.6
2. rails webpacker:compile
3. add the line: import 'bootstrap/dist/css/bootstrap' ...
Kjell Morgenstern replied
Solved
Access Rails constants from Webpack-managed JS
1
Rails
I'm just starting to use Webpack with Rails, and have a question. Let say there is a constant defined in Rails application. What could be a proper way to access this constant from JavaScript? Assum...
Chris Oliver replied
Solved