Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
33 views

Why Tailwind CSS doesn't works with public/*.html files in my Ruby on Rails project

I'm using Tailwind CSS for my Ruby on Rails project, the CSS works fine with all the layouts in views but it doesn't works with public/*.html files in my project. I have a 404.html page and a 500.html ...
Ansari Junaid's user avatar
0 votes
0 answers
57 views

Simple ruby request using httparty with input parameters

I am learning ruby and attempting a simple ruby request on command line to scrape a website. There are 2 input elements with ids = "tb_radius_miles" and "locationSearchTextBox" I ...
forgiveness's user avatar
0 votes
1 answer
78 views

POST data then navigate to a new page and persist said data in Rails, without using the database?

I'm aware POST requests aren't meant for navigation but I just want to check if what I've been tasked with is possible. I have a page in my Rails app - let's call it cars#index. I'm required to make ...
s89_'s user avatar
  • 1,703
0 votes
2 answers
56 views

Sticking a button on the bottom right

Picture of app I'm making this project for my bootcamp, and I'm struggling with moving this + button to the bottom right of this container. My project has this container to simulate a phone screen. I ...
SirGoti's user avatar
0 votes
0 answers
160 views

Chirpy theme with jekyll picture is not uploading

use the chirpy theme, and i have this problem i opened a new folder named ‘images’, and on my markdown editor I see the picture perfectly, but on my site, i see it like this enter image description ...
HydroCoder's user avatar
1 vote
1 answer
255 views

Rails 7 + Turbo: Do not show loading state when navigating

I have a turbo frame set up in my Rails application that the user can navigate. The problem is that when a user navigates within the frame, the turbo frame takes a few moments to update during which ...
User12234327832's user avatar
0 votes
2 answers
57 views

Dynamically display formatted value in f.text_field without JavaScript

In the database, prices are stored in cents, and it's easy to display them in the proper format, but when I try to use the text_field helper, there doesn't appear to be a way to format the money in ...
Marius Kressin's user avatar
1 vote
1 answer
131 views

why I don't get a field with errors? Michael Hartl Tutorial ch. 7.3.3

I filled in all the files as indicated in the listings, but I don't get an error field when I enter invalid data. I have restarted rails server several times, but nothing has changed. Tests with ...
soevergreeen's user avatar
0 votes
0 answers
103 views

I need to join html elements with js

I am working with ruby on rails code, I have a .erc file where it returns a fragment of html code, it performs a foreach to an array, this fragment of code is executed 12 times since there are three ...
Jose Manuel Mendez benitez's user avatar
0 votes
2 answers
48 views

Images do not load | Ruby on rails [closed]

I'm in the process of learning Ruby on Rails and have begun working on my first project. My aim is to create a navbar that consists of two images: a full-screen background image spanning the navbar's ...
Ravdar's user avatar
  • 55
1 vote
1 answer
45 views

How is an a tag with href="./etc" resolved? Chrome not adhering to RFC 3986?

If I'm on a site example.com/foo/index.html, and there is an a tag with href ./bar/test.html, I expect the URL of the linked document to be example.com/foo/bar/test.html. However, in web browsers such ...
dani-sc's user avatar
  • 308
0 votes
0 answers
128 views

Rails 7 image_tag Nil location provided. Can't build URI. , but render if I user <img> HTML tag (Excersice Case)

This is an excercise case where images are stored as url using an Image polymorphic model, and passed to movies through Image Models # app/models/movie.rb class Movie < ApplicationRecord has_one ...
Mauricio's user avatar
1 vote
1 answer
43 views

Image won't Render in Site

I am building a site in Bridgetown using Bootstrap 5 and I am trying to add an image but it won't render in the site. This is what it looks like Code <nav class="navbar navbar-expand-lg navbar-...
PFL's user avatar
  • 204
0 votes
1 answer
86 views

Ruby Nokogiri::XML::SyntaxError Tag figure invalid, but tag appears to be free of errors

Ruby's Nokogiri keeps complaining about HTML that looks perfectly fine to me. Below's an example of the affected HTML and the full error message. <div class="media"> <figure id=&...
johnsmith's user avatar
0 votes
1 answer
58 views

Rails: Truncating HTML-tagged text while preserving link text during truncation in a database column

I have a database column named comment that stores comments containing HTML tags. To shorten large texts and display them fully in a pop-up, I'm using the truncate(comment, length: 50, escape: false) ...
Viktor's user avatar
  • 353

15 30 50 per page
1
2 3 4 5
183