Skip to main content

All Questions

1 vote
1 answer
51 views

Hamburger Menu Goes Down, But Not Up

I am using Ruby on Rails 7. Bootstrap 5. My hamburger menu will open, but will not close. All other dropdowns work fine. Here is my code: <nav class="navbar navbar-expand-lg bg-dark border-...
Monroe Mann's user avatar
0 votes
1 answer
109 views

how can i start a new rails 7 project with bootstrap5 and jquery support

I need to create a rails7.3.1 project with bootstrap latest.But, heard that Jquery will not support with latest bootstrap. Also, I am planing to download the latest bootstrap files as part of my rails ...
jissy's user avatar
  • 463
2 votes
1 answer
1k views

Rails 7 and Bootstrap error in stimulus - failed to resolve module specifier bootstrap

I am following this tutorial: https://www.hotrails.dev/articles/rails-modals-with-hotwireEverything goes well until I create this stimulus controller file: import { Controller } from "@hotwired/...
Volkan's user avatar
  • 526
0 votes
1 answer
478 views

Modals not working in Bootstrap for Rails 7

I'm using the Bootstrap gem in Rails 7. I'm just trying to get a simple Bootstrap modal working. The dropdowns in the app work fine, so I assume JS is setup correctly, but just in case: importmap.rb: ...
nope2023's user avatar
  • 1,738
1 vote
1 answer
2k views

Creating a bootstrap dark theme without duplicating CSS

I'm trying to figure out the best way to set up my SCSS dark theme to be as maintainable as possible. In Bootstrap 5 you can set the data-bs-theme='dark' property on your HTML body tag, to either ...
s89_'s user avatar
  • 1,703
0 votes
2 answers
788 views

Enable Bootstrap Tooltips in Rails 7

I am switching my Rails 7 application (which currently uses Sprockets) to using the new jsbundling+esbuild approach. I cannot get Bootstrap's tooltip functionality to work, even though I think I am ...
Jaco Pretorius's user avatar
0 votes
1 answer
61 views

Why does the page refresh on the same localhost:3000 instead of going to localhost:3000/zipcode etc

When I press Enter or hit the "Search" button, it stays on the localhost:3000 page and doesn't change to the /zipcode. Whenever I hit Enter my terminal says: Started POST "/zipcode"...
andx's user avatar
  • 1
0 votes
0 answers
63 views

How to implement a favorite icon on separate pictures of a carousel using Ruby on Rails (v.7)?

I have a photo sharing app built on rails that allows users to like, comment and favorite each other's pictures. If a user uploads multiple pictures/videos at once, these are shown in a carousel (...
Philippe Paoli's user avatar
0 votes
0 answers
134 views

Rails Simple form: Unable to render validation messages

I have an application with 3 models; for all those models, I have used the simple_form gem to render the form. Initially, my goal was to render inline validation messages under their respective fields,...
Juzer Shakir's user avatar
0 votes
1 answer
70 views

Bootstrap dropdown button does not unwrap on click

While I was working on my Ruby on Rails project I faced this problem. I tried to implement dropdown button, exactly as it was done on their site. However the button doesn't seem to work as intended. ...
Michael Ovakimian's user avatar
1 vote
0 answers
605 views

Sass not compiling properly to application.css rails 7

I have setup a new rails 7 project with Bootstrap 5.2 and Sass, however when it comes to adding in custom styling (with Sass) Rails appears to not be compiling the Sass styling into app/assets/...
Jacqui's user avatar
  • 21
1 vote
2 answers
1k views

How to add star rating input field review form, Rails 7, Bootstrap (no jquery)?

I am building a Rails 7 app using bootstrap (without jquery), in which users can leave a review for various parks. One of the review fields is a 5-star rating. Currently I have the form input as a ...
Rebecca's user avatar
  • 128
0 votes
1 answer
83 views

Rails app with Bootstrap 5 vertical tabs not populating tab panel beyond the first element on click

Hi I am very new to ruby on rails and I trying to populate my tab panel with information from the database, although the tabs themselves are correctly shown, on clicking the tabs the tab panel is only ...
moonstruck's user avatar
0 votes
1 answer
871 views

Best approach to override Bootstrap modal's close function in Rails 7.0.2.3 application with Bootstrap 5.1

I'm looking for the best approach to override the Bootstrap modal javascript close function. I have modal that pops up with a form that changes items on the page. The form doesn't close the modal when ...
user3612719's user avatar
1 vote
0 answers
905 views

Rails 7 Bootstrap Dropdown is adding # to url

I have the most frustrating issue on my rails 7 app. None of my bootstrap drop downs(dropdown buttons or dropdown nav) will work, they add a hash to my url. I am using the jumpstart template https://...
Joe Bloggos's user avatar

15 30 50 per page