Questions tagged [ruby-on-rails]

Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Gem therubyracer does not install in alpine docker container

I am trying to build a docker container with ruby using a base alpine docker image (alpine:3.11). and I have installed the most common repositories: build-deps build-base make python git bash gmp-dev ...
0
votes
0answers
8 views

Ruby on Rails - Combining #or and #joins

I'm working on a RoR application and I'm running into the following problem: I have a model A that belongs_to up to two separate instances of another model B, and I want to define a scope that returns ...
-1
votes
0answers
6 views

How can I add a video chat invitation link to a javascript channel driven html.erb view in Ruby on Rails

My rails/react chat view is relaying data from controller to a javascript channel to a view where the view file name is the same as the name of the controller action Now I wanna put an invite to video ...
0
votes
2answers
14 views

Rendering partial for nested object not processing object nor locals

An enumeration of objects, has nested objects. The goal is to render a partial for futher nested objects <% groups.each do |group| %> <% group.children.each do |child| %> <% if ...
0
votes
0answers
15 views

How to create timer on Rails

I'm creating workout timer app using rails 6.1.3 I have random post video which will show videos randomly Controller def index @videos = Video.all @random_videos = Video.where.not(id: @video)...
0
votes
1answer
16 views

The path `/app/include/engine` does not exist. (Bundler::PathError)

I am dockerizing my rails app with the mountable engine. But I am constantly getting one error while running the image The path `/app/include/engine` does not exist. The image is successfully built ...
0
votes
0answers
18 views

ERROR : while trying to install mysql2 -v '0.3.21' on ubuntu 20.4

When i am trying to do bundle install getting following error An error occurred while installing mysql2 (0.3.21), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.21' --source '...
0
votes
0answers
14 views

Remove S3 URL headers from ActiveStorage uploads [Rails]

I have an S3 bucket that users can upload images and audio to via a web app on Rails/ActiveStorage. At times I need to expose to users the link to S3, and not contain any url headers, so that it looks ...
0
votes
1answer
14 views

Create Ruby Gem from Rails classes to use in Sinatra

I'm trying to extract several classes from a Rails app into its own Gem so that I can reuse the code from a Sinatra app. In the Rails app I have the following structure: app > classes > api > ...
0
votes
0answers
10 views

Incorrect formatting with coderay and redcarpet (rails)?

I am using this code for the custom markdown: require 'coderay' module ApplicationHelper class CodeRayify < Redcarpet::Render::HTML def block_code(code, language) CodeRay.scan(code, ...
0
votes
0answers
13 views

Images not showing up with, ckeditor and rails 6

I am trying to add ckeditor to the form on my blog posts page. I'm using rails 6 and ckeditor 5 and it seems to be working but when I try to add an image, after I select the image nothing happens. ...
1
vote
1answer
17 views

Rails routes - add more scope with same routes

I have a Rails app with a routes.rb file defined in it. In the routes file, the content is like this: Rails.application.routes.draw do scope '/v1' do ... post 'sign-up', ...
0
votes
1answer
18 views

When retrieving time stamp in rails, it is being converted or rounded down. How do I prevent this?

I have a completed_at column on my database with the values 2021-03-05 00:17:31.059123, and 2021-03-05 00:08:00.257058 but when I retrieve this it's showing/displaying Thu, 04 Mar 2021 16:17:31 PST -...
0
votes
0answers
15 views

datepicker in ajax call not working at second time

I recently have one issues: When I first click the selection location select.(eg. location_1)It will return the date are available for select.(eg. 17/03/2021 ) But when I change the location.(eg. ...
0
votes
0answers
10 views

How to run shell command in terminal within iframe using rspec

I have a terminal window within iframe , I want to run shell command within that terminal using rspec how can I achieve that?

15 30 50 per page
1
2 3 4 5
21647
久草视频新免费_日韩视频一中文字暮_欧美三级片