module ApplicationHelper
Public Instance Methods
simple_show_helper(m, options = { })
click to toggle source
Usage: use in view with bootstrap = simple_show_helper(User.first) Keep in mind: * it uses only locales in format like this 'en.user.email' Custom attributes: = simple_show_helper(User.first, attrs: ["email", "name"]) Add created_at, updated_at: = simple_show_helper(User.first, timestamps: true) Custom table class = simple_show_helper(User.first, table_class: "table") Example:
raw simple_show_helper
(resource, attrs: [“name”], timestamps: true, table_class: “table”)¶ ↑
# File lib/simple_show_helper.rb, line 147 def simple_show_helper(m, options = { }) return SimpleShowHelper.new(m, options).to_s end