Ruby on Rails Saturday, January 18, 2020

I know how to use trix in a field but how do I let users design their entire page?

Trix is just a relatively small content editor - you might want to have a look at a CMS solution like this one https://github.com/comfy/comfortable-mexican-sofa, where you can prepare layouts and pages for the users to fill (with such an editor). It's not as advanced as a modern CMS though and might not suit your users needs enough.

Niklas

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACi9Ps_aB8LLDUPSMjr1BPAWqd1-Pa4W8%2BoKE%3DUWN1P0_gEwBw%40mail.gmail.com.

Ruby on Rails

> On Jan 17, 2020, at 6:29 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> I know how to use trix in a field but how do I let users design their entire page?
>

Trix is designed to be low- or no-design. The kinds of elements you can create with it (H1, P, FIGURE, UL, OL) are not, on their own, enough to create more than a word-processing-style page "layout". You could let the user have access to a stylesheet, and they could write some clever CSS, like, say, targeting the third paragraph and making it a pull-quote, with borders and margins and float, but that's not really the same thing as giving someone a full set of WYSIWYG controls where they can make the page look like anything they want.

Walter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/86469CAE-76D9-4426-995D-89605F5C78D0%40wdstudio.com.

Ruby on Rails

"//= require ..." is Sprocket's syntax (most known as rails' assets pipeline), not webpacker's. If you really want to handle CSS assets with webpacker you should start by reading this https://github.com/rails/webpacker/blob/master/docs/css.md

El sáb., 18 ene. 2020 a las 4:00, fugee ohu (<fugee279@gmail.com>) escribió:
I have my stylesheet in app/javascript/stylesheets and need to include actiontext.scss in application.scss where both files are located in app/javascript/stylesheets but using
//= require actiontext has no effect, styling is still not being applied

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/58c1a214-6a7c-4b16-8e02-60a17cbb15d9%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcB%2BnhTt-gFNAVHCJYZpGTeDFFATDZr820%2Bf5xqaU-wzsQ%40mail.gmail.com.