no production ready yet
This commit is contained in:
Vendored
+3
-1
@@ -3,6 +3,8 @@
|
||||
"rebornix.ruby",
|
||||
"bung87.rails",
|
||||
"aliariff.vscode-erb-beautify",
|
||||
"yzhang.markdown-all-in-one"
|
||||
"yzhang.markdown-all-in-one",
|
||||
"arturock.gitstash",
|
||||
"bradlc.vscode-tailwindcss"
|
||||
]
|
||||
}
|
||||
@@ -8,13 +8,14 @@
|
||||
* [x] Semantic Logging (efficient for dark theme)
|
||||
* [x] Max duration to complete in order to prevent long action
|
||||
* [x] tailwindcss-rails
|
||||
* [ ] PRODUCTION ready, not yet!!!
|
||||
|
||||
## Interesting Gems to try out
|
||||
|
||||
* [ ] ViewComponent ??
|
||||
* [ ] Devise Vs Authentication-Zero
|
||||
* [ ] Devise
|
||||
* [ ] **Noticed**
|
||||
* [ ] CANCANCAN
|
||||
* [ ] ViewComponent ??
|
||||
* [ ] AASM - State machines
|
||||
* [ ] SimpleForm
|
||||
|
||||
@@ -6,7 +6,6 @@ class ApplicationController < ActionController::Base
|
||||
begin
|
||||
action.call
|
||||
ensure
|
||||
ActionView::Base.logger.level = :info
|
||||
duration = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start
|
||||
if duration > MAX_DURATION_TO_COMPLETE_IN_SECONDS
|
||||
logger.warn("processing took too long to complete, please review your code as asynchronous job!", duration: duration * 1_000)
|
||||
|
||||
@@ -5,11 +5,14 @@ class MainController < ApplicationController
|
||||
|
||||
def about
|
||||
logger.debug "some debugging info"
|
||||
logger.info "line1\nline2\nline3"
|
||||
logger.warn "a warning"
|
||||
logger.error "an error"
|
||||
|
||||
raise "this is an error"
|
||||
sleep 3
|
||||
logger.info "relevant information"
|
||||
logger.info "multiline\nline2\nline3"
|
||||
|
||||
logger.warn "a warning"
|
||||
# logger.error "an error"
|
||||
|
||||
# raise "this is an error"
|
||||
# sleep 3
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<%= javascript_importmap_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<nav >
|
||||
<%= link_to 'home', :root %>
|
||||
<%= link_to 'about', main_about_path %>
|
||||
</nav>
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<h1>Main#home</h1>
|
||||
<p>Find me in app/views/main/home.html.erb</p>
|
||||
<h1 class="text-3xl font-bold underline text-red-400">
|
||||
Hello world!
|
||||
</h1>
|
||||
<div class="p-5">
|
||||
<h1>Main#home</h1>
|
||||
<p>Find me in app/views/main/home.html.erb</p>
|
||||
<h1 class="text-5xl font-bold underline text-yellow-400">
|
||||
Hello world!
|
||||
</h1>
|
||||
<div class="bg-orange-300">
|
||||
coucou
|
||||
<%= @value %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user