Markdown Cheat Sheet

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

Styling
*italic*
**bold**
~~strike through~~

Links
http://url.com
[link text](http://www.url.com)

Quotes
> Quote text
***Johnny Author***

Images
![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

Kaminari ordered scope

Kaminari pagination not (always) showing

by rolf
return @total_count = (current_page - 1) * limit_value + 
 @records.length if @records.any? && (@records.length < limit_value)

(from "kaminari/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb")

Since I could not find the time to solve this, I found a workaround by adding total_pages: @total_pages in the call for te pagination-helper. This @total_pages-variable is set the controller. It takes an extra , simple sql-query to find the total amount of records, divided by :per_page. I think it diasables kaminari's solution to speed things up, but, at least it will show all my records and links...

happy days ;-)


versioning applications

easy and concise versioning by the app_verion gem

by rolf

coffeescript and webpacker

enable the use of coffeescript files in a rails 6 application

by rolf