-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error getting semantic-ui dropdowns to work on Rails app #95
Comments
as far as i can understand the problem even though webpacker is installed public/packs/*.json files do not exist which is why i am getting the error when the page tries to load. i can "fudge" it by creating a manifest.json fine and filling it with boiler plate code but then it looks for the other two .js files in public/packs and doesnt find them so the app runs but returns the error in the console and dropdowns dont work |
Ah, let's also add the repo while we're at it (updated to point to Spudos) |
further testing carried out...... i following the following steps to generate my app rails 6.1.7.3 new appname set up my root path in routes.rb root 'home#index' create my home_controller.rb and add class HomeController < ApplicationController end then create a home folder in layouts and index.html.erb in there, adding some example text rails s to run the server go to localhost:3000 and i get the error
|
hi @Spudos, How was this resolved? Were you able to create a manifest.json that Rails accepts, or is this still a challenge? |
Hi @Spudos I was looking at your Gemfile and noticed that you don't have the sprockets-rails gem in the Gemfile. I'd try adding/installing that gem and see if that helps. |
ok i will try that. I think it is my environment that is messed up, probably from installing several versions of rails and not using gemsets to split it all up |
@Spudos Could you benefit from a screencast on using rvm to separate environments and setup to start? Since we're not due to meet until next week, I figured this may help when you have some downtime over the next few days: https://www.youtube.com/watch?v=cQVb7fHFjSM |
thanks i will watch that later |
A new programmer is currently trying to get semantic-ui working with a Rails 6 and Ruby 3.2.2 app:
Error with empty manifest.json
Error message with filled in manifest.json
I've opened up a Rails 6.1.7.3 instance and will try to replicate.
The text was updated successfully, but these errors were encountered: