rails-base | Skeleton for new Rails based projects | Application Framework library
kandi X-RAY | rails-base Summary
kandi X-RAY | rails-base Summary
Rails Base is the base Rails application template used at Flatstack. It's based on Rails 6 and Ruby 2.7.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- returns params for the user
- Updates the resource
- Checks if the password is blank .
rails-base Key Features
rails-base Examples and Code Snippets
Community Discussions
Trending Discussions on rails-base
QUESTION
I have RAILS 6.0.3 running, so I use the webpacker.
When I try to compile the assets with rails assets:precompile in RAILS deveopment mode it runs very well, but when I try to run it in RAILS production mode I got the error message:
Compilation failed: CssSyntaxError: /data/rails-base-dir/jquery-ui.css:1:1: Unknown word
But the file /data/rails-base-dir/jquery-ui.css does not exist ! So there is something wrong with paths/locations...
I have no approach how to fix it.
For installation jquery-ui : I have followed this guide : gist.github.com/.../#jquery-jquery-ui
...ANSWER
Answered 2020-Aug-03 at 21:21After somes days to try and work - found a solution. There is one gap that I have in my knowledge. How the webpacker works and how to configure. With RAILS 6 there are a lot of configuration files now switched to javascript style. So Javascript moves to a more important position.
I want to share one really good page that brings more light in more dark webpacker knowledge: Page from Ross Kaffenberger
This page was useful: How to debug webpack on Rails
I found that ./bin/webpack --debug
was compiling the javascript code. And then doing rails assets:precompile
or a rails webpacker:compile
works without failure.
But I did not found out the reason of the initial failure :
Compilation failed: CssSyntaxError: /data/rails-base-dir/jquery-ui.css:1:1: Unknown word
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rails-base
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page