Skip to main content
Javascript not executing
Javascript Solved • Asked by Paul Stutler
I viewed the easyAutocomplete video, which was great. I have the DB query and JSON assembly working. And the Javascript loads into the browser (Chrome DevTools let's me inspect it). But it never tr...
2
posts

Devise on Heroku
Rails Solved • Asked by Moses Gathuku
Hello, I have been implementing device JWT with rails 6.0 API . I have used this callback to protect from fogery requests, On the applicationController ``` protect_from_forgery unless: -> { re...
1
post

Thoughts on adding non-standard REST actions to a resource?
Rails Solved • Asked by Dan LeGrand
I have a `milestone` resouce that can be activated/deactivated as well as completed/reopened. Rails pushes the standard 7 actions in your controllers: index, new, create, show, edit, update, des...
5
posts

How do I use easyautocomplete in rails 6?
Rails Solved • Asked by Christopher
I tried adding it with yarn and through rails assets but nothings seems to work.
7
posts

Beginner Tutorial in Rails6.0
General Solved • Asked by Christopher Slade
I am a CS Professor who teaches a web application class in Rails. I created a series of videos for my class. I want to make them publically avaliable for free. (I do not receive money on YouTube fo...
1
post

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?
3
posts

jquery doesn't work in js.erb file
Rails Solved • Asked by Christopher
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 ...
3
posts

Rails 6 Form remote: true Error
General Solved • Asked by Steven Torrence
Hi, all! I am following along with the video on how to make a chat application using action cable. In the video, I believe Rails 5 is being used, however, I wanted to try it out with Rails 6. ...
1
post

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

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

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.