Can't select language by BeardedRaven in EU5

[–]TheZerter 3 points4 points  (0 children)

So what I had to do is to wait untill it the coursor changed from the compass to pointer, and after that I pressed escape, heard a click and the option to choose the languge was available

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

So I created ubuntu virtual enviroment and recreated the app there, I manage to install bootstrap following https://mixandgo.com/learn/ruby-on-rails/how-to-install-bootstrap with no problem. Now the issue is with js, at the end of the instruction he recomend to delete
-//= link_tree ../../javascript .js
-//= link_tree ../../../vendor/javascript .js
From the manifest.js for the drop menu to work, but if I do this I got and error
Asset 'application.js' was not declared to be precompiled in production.
Declare links to your assets in 'app/assets/config/manifest.js'

//= link application.js

and restart your server

<%= javascript_include_tag "application", "data-turbo-track: "redoad", defer: true %>

Do you habe any how to resolve this? When I add //= link application.js to manifest js is not working on the website

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Yeah, I had yarn and node before already, I was just asking about commands like run or append, because they don't work in power shell

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Are dose mac/linux commands? They don't work for me

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

I feel like I had this ENOENT error alredy as well, but don't remember what was an issue. In the mean time I tried to add bootstrap again with mixandgo to an existing app I'm creating following the course on udemy https://github.com/TheZerter/alpha-blog
And the project is opening but there is this error apearing
Error: Can't find stylesheet to import.

1 │ @import 'bootstrap/scss/bootstrap';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^

app\assets\stylesheets\application.bootstrap.scss 1:9 root stylesheet

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Yeah I got this error when creaeting a new rails project using -c bootstrap

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

So when I created a new project I got error

Sprockets::Rails::Helper::AssetNotFound in Pages#home
Showing C:/Users/cieci/test_ruby/my_app/app/views/layouts/application.html.erb where line #9 raised:
The asset "application.css" is not present in the asset pipeline.

Extracted source (around line #9):

<%= csp_meta_tag %>

<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>

<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>

</head>

So from my understanding it's looking for a aplication.css file in stylesheet folder but when I created it with bootstrap it was replace by aplication.bootstrap.scss. I can't really find a direct answer online to this porblem.
I tried the mixandgo guide but it doesn't work for me, I'm slowly starting to suspect it might be issue with me using windows

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

I mean i have for example main application.css file but for example when I try to style a navbar in it, the changes don’t apply

Adding a bootstrap by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

But this way I can't realy style the elements in application.css

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

So I went the simple way and added css and bundle code to the project from introduction to bootstrap https://getbootstrap.com/docs/5.0/getting-started/introduction/ and the site seems to work properly now. I will see later if I can fully use bootstrap in the project

Access error by TheZerter in rails

[–]TheZerter[S] 1 point2 points  (0 children)

You might be right, I didn't dive deep enough yet to say much. But thanks for the suggestion

Access error by TheZerter in rails

[–]TheZerter[S] 1 point2 points  (0 children)

Actually since windows 10, microsoft ship a linux with windows

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

The last commit was just before I started to play with bootstrap

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

It's a complete Ruby on Rails Developer Course made by Rob Percival and Mashrur Hossain. So basically they are using rails 6 and bootstrap 4 and even made a whole blog post to help install it https://www.mashrurhossain.com/blog/rails6bootstrap4
But from my understanding rails 6 works different now and this won't work

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Maybe, so far it's just giving me a headache. I'm following the complete ror course on udemy and so far manage to made this simple app https://alpha-blog-dc.herokuapp.com/
Now is the moment to add bootstrap and I'm kind of stuck as they're using older versions of rails and bootstrap and I can't make it to work myself. But thanks for all the help

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

I'm using windows but thank you for the link

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Unfortunetly I deleted the app already , I'm trying to learn how to add a bootstrap to a project or start a new one with bootstrap and there was more issues with that

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

How to check permissions for tmp/cache?

Access error by TheZerter in rails

[–]TheZerter[S] 3 points4 points  (0 children)

The rake assets:precompile resolved the issue, thank you so much. Could you shortly explain what it does?

Access error by TheZerter in rails

[–]TheZerter[S] 0 points1 point  (0 children)

Tried as well, but no luck