Multi Site in Rails

3
Rails
Have a Rails app which acts as a API client. Request may come from 6 different domains. Each site will have same layout. Difference between each site would be the theme color , logo and the text s...
Chris Oliver replied

Stimulus - flatpickr

0
Javascript
Hi all i've been trying to do one thing without sucess for few days... i want to select a date on the flatpickr and then based on that date create a table Date selected Date selected -1day Date s...
kriera posted

Hosting static images in subdirectories of Public on nginx

11
Servers
Hey Chris (and others), Switched to nginx from Apache and following the deploy guide for Ubuntu 14.04. My app (which is 3.2.X and Ruby 1.9.3) no longer serves the static images I store in public f...
shakycode replied

Use a gem I created, that needs to remain private?

2
General
Hey Chris, First, thanks for all the great videos and for taking the time to answer all these questions! I want to make a gem for a front-end, Bootstrap spin-off, framework. I've watched your [cr...
Nick McNeany replied

Classes & Objects in Ruby Discussion

20
General
Hey Collin, Thanks for this great video. Looking forward to the video on modules.
cjilbert504 replied

GoRails Design

4
CSS
Hi, I like very much the design of GoRails! Great job! Chris, did you use some template? What technologies did you use to get such a result? Thank you! Best regards, Anton

What type of association should I choose...I'm lost in the woods.

1
Rails
I cannot for the life of me figure out the best model association to choose and I've thought myself into a corner. I'm building a site for a client that offers party services for four(4) locations...
eminkel replied

Using tailwind css in my rails app, patterned after your blog tutorial. How do I get rid of all the whitespace on each side of the page, I want to use the whole screen?

1
CSS
So I have modified by tailwind.config.js file as such: const defaultTheme = require('tailwindcss/defaultTheme') module.exports = { content: [ './public/*.html', './app/helpers/**/*.rb', ...
Mike Cannon replied

Understand Scope Returns Discussion

4
General
Excellent episode Collin! Another tip is you could keep the `future_events` scope returning a Relation. And possibly break the sorting out in case itโ€™s used for other queries as your application g...
KRUPA replied

Environment setup: iTerm, dotfiles etc

8
General
Hi Chris Would you be willing to share your dotfiles? Your terminal seems so clean. Why iTerm? Do you have git information integrated into the prompt? What do you think of [YADR] (http://skwp.gith...
Chris Oliver replied

Incorporating an Admin Dashboard

1
CSS
Hi All Say you've found a sample Admin Dashboard web site. Its delivered as a 'skeleton' html.css app. In order to use it one needs to 'port' (for lack of a better term) - all the necessary reso...
JM 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

Error: uninitialized constant HTML::Pipeline::SyntaxHighlightFilter::Pygments when installing html-pipeline

5
General
I am getting an error: `uninitialized constant HTML::Pipeline::SyntaxHighlightFilter::Pygments`. my Gemfile shows: ``` ruby # markdown in comments gem 'html-pipeline', '~> 1.11.0' gem 'github-...
Lauro replied

How to install TailwindCSS 1.0 with Rails 6 Discussion

15
General
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: { cente...
Alex Ventura replied

Webpack and Purge CSS

0
Javascript
Hi All, I am trying to purge my css as I am using tailwind as outlined in the video Chris did. I'm getting an error. **postcss.config.js** let environment = { plugins: [ require('tailwindcs...
Stephen Sizer posted

A Look Into Routing Discussion

15
General
railscasts.com was first. you are like the google+ thing. which is cool for you :p. keep up with the good videos.
Andrew Schutt replied

Can someone help with some CSS please

2
General
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...
Hans Petter Lie-Nielsen replied

Rails repeats Webpacker packages if I go backwards (OwlCarousel, DataTables)

2
Rails
Hello there. I've got a Rails app that repeats packages if I go back to the page that's supposed to render them. For instance, my OwlCarousel with two images will multiply and have the carousel n...
cratag replied
Solved

How to protect API againest malicious attack?

5
Rails
Hello ๐Ÿ‘‹ I'm working on an API that is reciving requests from websites (Shopify stores), the request looks like: ``` shopCentralAPI.apiToken = "123" shopCentralAPI.metafieldCreateUpdate(shopCentral...
Karim Tarek replied

File Uploading with Carrierwave Discussion

24
General
very helpful!! Thanks!!
Someone replied

Want to stay up-to-date with Ruby on Rails?

Join 91,129+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.