Markdown Cheat Sheet

# Headline 1
## Headline 2
### Headline 3

~~strike through~~

[link text](

> Quote text
***Johnny Author***

![image alt text](image url)
***Image caption, description***

Horizontal rule

Inline Code
`var name = "John Doe";`

Code block with syntax highlighting
``` codelanguage
function foo() {
  return bar;

Bulleted list
- item 1
- item 2
- item 3

Numbered list
1. item 1
2. item 2
3. item 3

rails 7 javascript- and css- files part 1

loose webpacker and node-modules directory

by rolf

After reading his post, I just got very exited to loose the huge amount of node-module dependencies, as well as the time consuming way to implement the javascript files created in engines I use.

The key in this new javascript approach is importmaps. The idea is tot pin your required .js -files and -modules in this file, and then import them to your application. These files can be pinned from an external cdn-server, or downloaded to your vendor folder. You can also refer to local files or directories as well with "pin_all_from".

I watched several videos to get familiar with this approach. DHH's video on youtube and Drifting ruby Episode #312 - Importmaps in Rails 7. I also watched Chris Olivers episode on G0 Rails How to use Bootstrap with CSSBundling Rails, the last one made me decide that this is not the right path for me.

Why not?
I was hoping to find a way to lose the huge amount of node modules in my applications, and the hard way to get things to work when importing from engines and gems. Starting a new project "Rails new --css bootstrap" will still create a node_modules directory, and cluther it with numerous subdirectories. In my opinion, for now, not my way to go, and perhaps not the way

just read my old post again. I decided to publish it anyway, my latest opinions about rails7, importmaps and bootstrap will be published shortly in a new post.

versioning applications

easy and concise versioning by the app_verion gem

by rolf

Kaminari ordered scope

Kaminari pagination not (always) showing

by rolf