Skip to main content
Any way to reduce complexity passing JSON to Vue.js component?
Rails • Asked by Eduard Garcia
Hi, I'm trying to figure out a way to reduce the complexity of passing a JSON to a Vue.js component. Currently I've got something like this placed on a model scope, ``` scope :to_vue, ->...
1
post

JSON Web Token Authentication From Scratch Discussion
General • Asked by Chris Oliver
So does this mean that the authentication is now also a token based API? Is this testable on postman?I redid my whole authentication because I found that the Devise gem (the way it came out of the ...
9
posts

How to use Bootstrap with Webpack & Rails Discussion
General • Asked by Chris Oliver
Thanks for posting this and the previous video on using tailwindcss. It's helpful to see the main themes reinforced in each of the videos. One thing that I'm struggling with is what seems like a vi...
32
posts

Can someone help with some CSS please
General • Asked by DavidOwen
I am working on a website and i'm trying to change the vertical height of the header of one of my pages. I only want the header of this page to change and not all of the headers across the whole we...
3
posts

Can not use toast of bootstrap in rails
Javascript Solved • Asked by Junyao111
I did `yarn add bootstrap jquery popper.js` and import bootstrap into the app. Also, bootstrap's popover and tooltip style works well. But when I add a toast in page and run `$('div.toast').toast...
2
posts

Can a Rails app be converted into a Progressive Web App?
Rails • Asked by jun
I was looking for a way to create a mobile client for my Rails App / API. I came upon PWAs but I couldn't find any info on how to use it for Rails. Is it possible?
7
posts

Bizarre cache issue
General • Asked by Dan Tappin
How do I force the browser to always refresh parts or all of the content? I have a bizzare issue where the browser is caching parts of the site. For example I have a 'History' for a model row i...
1
post

how can i access boolean value to other controller in rails
Rails • Asked by anuj
i have ProjectSite model and ManagerRemark model related to many to one association. my MangerRemark model remark string field and decision boolean value true and false. i want to access that boole...
1
post

RailsCasts or GoRails?
General • Asked by leonardsores
To whom should I give my 9$? Consider that RailsCasts.com is inactive for almost two years.. Hey everyone, [showbox](https://showbox.tools/) I read the beginner FAQ, but i am so confused on m...
1
post

How to use Javascript via Webpacker in Rails 6 Discussion
General • Asked by Chris Oliver
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like: ``` /* *= require flatpicker/dist/flatpicker */ ``` In your rail...
15
posts

HTML font-size: 62.5% is way larger than it should be
General • Asked by meklwin
Hello, I'm running into a problem where I want to use rems as a unit, so I set the html font-size to 62.5%, which I've seen as a common practice, which should give me 1rem = 10px (because the defau...
1
post

Expanding beyond a basic Rails CRUD site.
General • Asked by Konhaivo12
Hello everyone,,, So I've got a fairly basic CRUD style rails app, which has a list of Gins, Distilleries and and blog Posts. I'd like to expand it quite significantly in the following ways: ...
1
post

Free SSL for Rails and Nginx using Let's Encrypt Discussion
General • Asked by Chris Oliver
Hey Chris! looks like these instructions are no longer working with the latest versions of letsencrypt that use certbot.. do you know how to get it runing with the latest version? I Tried using cer...
5
posts


How do you figure out what and how to load the css/scss assets with Webpacker
Rails • Asked by Greg S
For Bootstrap you added to `application.scss `(I may have named my folder differently: ``` import "bootstrap" import 'bootstrap/dist/js/bootstrap' ``` and ``` @import '../css/bootstrap_cust...
1
post

Amazon Cloudfront CDN for Rails Asset Pipeline & Webpacker Discussion
General • Asked by Chris Oliver
Warning: when using a load-balanced production configuration, this configuration can result in intermittently broken assets. The problem occurs when traffic arrives during a reload that includes fr...
8
posts

Render a Rails resource with a React Component
Javascript • Asked by Simon Cooper
I'm going round in circles trying to work out, what I think must be a fairly common scenario, of tyring to render a rails resource through a React front end component. I'm seem to have got as fa...
2
posts

How to create a progress bar with vertical lines between elements
General • Asked by kelein marwin
I'm having a little trouble creating a css effect and don't even know what to Google to find code snippets. I have been tasked with creating a progress bar. The bar has 3 steps. Each step is repre...
2
posts

Receiving Webhooks in Development with Ngrok and Docusign Discussion
General • Asked by Chris Oliver
Would really appreciate the embed signature stuff if possible.
10
posts

Is it just me does anyone else feel that javascript world has gone crazy??
General • Asked by MerchanLobo
To begin with, there are so many js frameworks out there that's enough to intimidate a newbie who wants to learn "just javascript". Things in js world change so fast that we can barely keep up. I'm...
1
post

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.