The simple dropdown menu doesn’t work

<p>I’m a beginner on ruby on rails. I read a Michael Hart’s tutorial, and i copied the exercise about the login user that shows a dropdown menu whith 2 options. But when the exercise is executed it didn’t show those options.</p>

The files are:

Gemfile:

source 'https://rubygems.org'

git_source(:github) { |repo| "https://github.com/#{repo}.git" }

gem 'rails', '6.0.2.2'

gem 'jquery-rails'

gem 'bcrypt', '3.1.13'

gem 'puma', '3.12.2'

gem 'sass-rails', '5.1.0'

gem 'webpacker', '4.0.7'

gem 'turbolinks', '5.2.0'

gem 'jbuilder', '2.9.1'

gem 'bootstrap-sass'

gem 'bootsnap', '1.4.5', require: false

...

```

app/views/layouts/application.html.erb:

<%= full_title(yield(:title)) %>

<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>

<%= javascript_include_tag "application" "data-turbolinks-track" => true %>

….

app/assets/javascripts/application.js:

///= require jquery

//= require jquery_ujs

//= require bootstrap

//= require turbolinks

app/assets/stylesheets/custom.css.scss:

@import "bootstrap-sprockets";

@import "bootstrap";

….

![header|200x150](upload://f50WOHPjbuTvackgfjnVG9bAIBv.png)

The app doesn’t show any error, but it doesn’t show the dropdown menu.

Do you have any idea to resolve this issue? Thank you very much.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs