On Thursday, February 27, 2014 6:30:44 PM UTC, Andrew Huth wrote:
>
> I'm trying to come up with a way to use polymer with Rails, but there 
> isn't much out there on the subject.
>
> My thoughts are to handle web components like Javascript or CSS in rails. 
> There will be an 'app/assets/elements/application.html' which defines what 
> elements you want to be included. Then the asset pipeline needs to pull out 
> dependencies for those elements and import them first. I also imagine in 
> production all the web components will be concatenated into one html import.
>
> The only problem is, I have no idea where to start on developing this. Is 
> this something people want to see, and does anybody have any pointers on 
> how to get started?
>
> So far, I've asked a 
> question<http://stackoverflow.com/questions/22070159/creating-a-custom-rails-asset-include-tag>
>  on 
> StackOverflow that is really basic, but it received any answers.
>
> Anyway, your thoughts are appreciated.
>

Perhaps look at the jquery-ui-rails gem - It's similar in that you say 
which components you want and it includes the dependencies for you (you do 
have to repeat this for both css and js though).
You'll probably want to look into sprockets too, since that is what is 
behind the asset pipeline.

Fred

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8c3c821b-b66f-424f-ae3d-dff0b2f657f2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to