Skip to main content
How to display checkbox and string fields like this image in a form?
Rails Solved • Asked by Daniel Weaver
I have a `spectrum` boolean column and a `spectrum_color` string column and I'd like to display the options to user as shown in this image. I'm using Tailwind CSS and the Jumpstart Pro Rails templa...
6
posts

Parsing a Ruby hash sent to a Javascript API
Javascript Solved • Asked by Daniel Weaver
Sending data from Rails via HTTParty to a Node endpoint: `params = { str: "word", bool: true, hash: { number: 123 } }` `result = HTTParty.get("http://localhost/test.js", query: params)` It w...
2
posts

Is this a good fit for storing JSON in database?
General Solved • Asked by Daniel Weaver
I've got a Video model that represents a video created by the user. During creation of a video a couple of filters with different options can be applied to the video. Currently only 2 but I'll be a...
3
posts

I joined GitHub Education
Tips Solved • Asked by Nicolás Bobb
I joined GitHub Education. How can I validate the account in Gorails to take advantage of the benefit?
2
posts

Rails loading time
Rails Solved • Asked by Hagi lerman
1. I just installed the a new rails version 6 and using ruby -version ruby 2.6.3-p62. I create a new 2. project 'rails new my_new_app' 3. bundle install 4. rails server ![rails respose time...
1
post

How do I update a page (a row on a table) dynamically?
Rails Solved • Asked by Arjun Rajkumar
I have a page which displays all the products in a shop. Each time a new product is added - two things happen. 1) The user is taken to the products/index page which shows a list of all the pro...
2
posts

How do I add minified JS files to the Rails Webpacker
Rails Solved • Asked by Arjun Rajkumar
I am trying to add min.js files - and getting an error. This works while adding a normal .js file: *- app/javascript/packs/calendar.js* alert('Calendar loaded') *-# app/views/calendars/i...
3
posts

Managed Postgres with DigitalOcean or thru own server with Hatchbox
Rails Solved • Asked by Alex Deering
I've been going thru the various ways to publish a rails app and trying to decide which method is going to be the best in the long run. After some searching I think Hatchbox and DigitalOcean is go...
5
posts

Rails6 autorization method
Rails Solved • Asked by Hijas Ajmal
I am going to start my new project on rails6. But when i am usign declarative_authorization gem i am facing issues. can you suggest any method for authorization?
2
posts

How do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?
Rails Solved • Asked by gks
I'm trying to run rails app using command foreman s the ProcFile contains these 2 lines : web: bundle exec passenger start -p 8000 --max-pool-size 1 sneaker_data_publisher: WORKERS=DataPub...
2
posts

How do I embed a Rails app into another website?
General Solved • Asked by Arjun Rajkumar
Hey! I'm stuck with this - and would love some help. Going to use an example to explain this. Storemapper (https://www.storemapper.com/) was build on Rails. It basically lets you add a store...
2
posts

Where is "embeddable javascript widget Part 4"?
General Solved • Asked by jonas
It seems like all parts of "embeddable javascript widget" tutorials are available EXCEPT part 4. https://gorails.com/episodes/embeddable-javascript-widget-part-4 Any idea where to find it?
3
posts

Question on ActionCable Group Chat part 4, development.rb fix for redis
General Solved • Asked by Rob Sturcke
Saw in the comments the fix for ```(REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)``` however I added the following to my ```development.rb```: ``` config.action_cabl...
6
posts

Install Bootstrap with Webpack with Rails 6 Beta
Javascript Solved • Asked by Shawn Wilson
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack **Step 1:** `yarn add [email protected] jquery popper.js` ...
9
posts

Page blinking when using tailwindcss
CSS Solved • Asked by edouard
Hello guys, I am trying to use tailwindcss on a 5.2 ruby on rails application with webpack. Everything is set up and works well according to the video [How to use Tailwind CSS with Rails](https:...
2
posts

Do you measure your app's uptime?
General Solved • Asked by Peter Marcano
If so, than how do you measure it? Any libraries, tools, services, etc worth investigating?
3
posts

How to test attachments in ActionMailbox?
Rails Solved • Asked by Lidia Wisniewska
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this? receive_inbound_email_from_mail(...
5
posts

Adding external .js files to a new Rails 6 web app
Rails Solved • Asked by Safwan SM
I have created a new rails 6 app. in rails 6, javascript folder is outside assets. I have copied all the css and js files from an existing application to this new one and application.css,applicatio...
2
posts

Working with Lists from a Database
Rails Solved • Asked by Brad Morrical
Greetings, I am learing Ruby on Rails as I'm migrating a legacy app from PHP. I'm just a beginner in ROR, and having trouble setting up the simplest of relationships. In simplest terms, I have ...
2
posts

How to create many subcategories in rails?
Rails Solved • Asked by Nicolás Bobb
Without using any gems how do I do this in rails? I see the gem Ancestry (https://github.com/stefankroes/ancestry) ``` Main Category Sub Category Sub Category Sub-sub Category Main Cate...
3
posts

Subscribe to the newsletter

Join 24,647+ 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.