Highlights
- Pro
Pinned Loading
-
Sluggable rails concern: use slugs i...
Sluggable rails concern: use slugs instead of ids in the url! 1module Sluggable
2extend ActiveSupport::Concern
3cattr_reader :slugging
45included do
-
BeforeRender Callback as concern for...
BeforeRender Callback as concern for rails controller(s). Use it with the same syntax used for other callbacks, just include in the controller. Fires after action but before rendering happens. 1module BeforeRender
2extend ActiveSupport::Concern
34included do
5alias_method :render_without_before_render_action, :render
-
Rails bad input restyle with bootstr...
Rails bad input restyle with bootstrap initializer file 1# Be sure to restart your server when you modify this file.
23# Restyle how errors are shown
4ActionView::Base.field_error_proc = proc do |html_tag, instance|
5html = %(<div class="field-with-errors">#{html_tag}</div>).html_safe
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.