Re: [Rails] //= require stylesheet with webpacker

2020-01-18 Thread Ariel Juodziukynas
"//= 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 () 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+unsubscr...@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+unsubscr...@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.


Re: [Rails] How do I let users design their own blog with trix

2020-01-18 Thread Walter Lee Davis



> On Jan 17, 2020, at 6:29 PM, fugee ohu  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+unsubscr...@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.


Re: [Rails] How do I let users design their own blog with trix

2020-01-18 Thread Niklas Bichinger
>
> 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+unsubscr...@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.


Re: [Rails] //= require stylesheet with webpacker

2020-01-18 Thread fugee ohu


On Saturday, January 18, 2020 at 11:11:11 AM UTC-5, Ariel Juodziukynas 
wrote:
>
> "//= 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 ( >) 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 rubyonra...@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
>>  
>> 
>> .
>>
>
Nothing in there about loaders I'm trying to get actiontext.scss to load I 
have listed in app/javascripts/packs/application.js
import "../stylesheets/actiontext.scss"
but the styling's  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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/55b87f6f-45e9-4f46-8c1b-b3bbfb4b6f41%40googlegroups.com.