somewhat better action_text integration, still wip
This commit is contained in:
parent
fe96889200
commit
3c3882e6b3
@ -10,5 +10,10 @@
|
||||
* files in this directory. Styles in this file should be added after the last require_* statement.
|
||||
* It is generally better to create a new file per style scope.
|
||||
*
|
||||
*= require actiontext
|
||||
*= require_self
|
||||
*/
|
||||
.trix-content h1 {
|
||||
font-size: 1.8em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
@ -10,5 +10,5 @@
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
@import 'actiontext.css';
|
||||
*/
|
||||
|
@ -48,6 +48,6 @@ class MembersController < ApplicationController
|
||||
|
||||
# Only allow a list of trusted parameters through.
|
||||
def member_params
|
||||
params.require(:member).permit(:name, :public)
|
||||
params.require(:member).permit(:name, :public, :bio)
|
||||
end
|
||||
end
|
||||
|
@ -4,6 +4,7 @@ class Member < ApplicationRecord
|
||||
devise :database_authenticatable, :registerable,:confirmable,
|
||||
:recoverable, :rememberable, :validatable
|
||||
|
||||
has_rich_text :bio
|
||||
|
||||
def admin?
|
||||
true
|
||||
|
@ -6,8 +6,8 @@
|
||||
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
|
||||
= csrf_meta_tags
|
||||
= csp_meta_tag
|
||||
= stylesheet_link_tag "tailwind" , "data-turbo-track": "reload"
|
||||
= stylesheet_link_tag "application"
|
||||
= stylesheet_link_tag "tailwind" #, "inter-font", "data-turbo-track": "reload"
|
||||
|
||||
= javascript_importmap_tags
|
||||
%body
|
||||
|
@ -13,5 +13,8 @@
|
||||
.field
|
||||
= f.label :public
|
||||
= f.check_box :public
|
||||
.field
|
||||
= f.label :Bio
|
||||
= f.rich_text_area :bio
|
||||
.actions
|
||||
= f.submit 'Save'
|
||||
|
@ -3,6 +3,9 @@
|
||||
%p
|
||||
%b Name:
|
||||
= @member.name
|
||||
%p
|
||||
%b Bio:
|
||||
= @member.bio
|
||||
%p
|
||||
%b Public:
|
||||
= @member.public
|
||||
|
@ -41,6 +41,9 @@ Rails.application.configure do
|
||||
config.action_mailer.perform_caching = false
|
||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
||||
|
||||
routes.default_url_options = { host: 'localhost', port: 3000 }
|
||||
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user