Ruby on Rails Tuesday, August 6, 2013

Hello Walter,

Thank you so much for your response. Actually, a lot of people are migrating their front-end (HTML+CSS, JS, JQuery, Backbone...)to the rails style structure and using the asset pipeline, while their back end is implemented in Scala, Java...

After discovering backbone-rails, we even managed to maintain our existing file structure for models, views, templates.  We almost have everything structured the way we like except for a few things that we need some extra clarity on:

1) Can we have a meaningful file structure for HTML pages within `app`and have them transferred over to `public` during compile, and have the pages served to us by redbrick. For deployment everything will be moved to apache...
2) How to properly link to css and and js within our html pages to stay up-to-date with the newly compiled md5 fingerprinting scheme of the files i.e.:

application-e3d92b1fc1ca1b0b4945dc0fd6ee932e.css
application-1dcf4ccd0085287987410b49ebd8722c.js

We tried adding the following to our html code:

<%= javascript_include_tag "application" %>
<%= stylesheet_link_tag "application" %>


Thinking it would generate

<script src="/assets/application-908e25f4bf641868d8683022a5b62f54.js"></script>
<link href="/assets/application-4dd5b109ee3439da54f5bdfd78a80473.css" media="screen" rel="stylesheet" />

but it did not.

Rails asset pipleine is one of the most mature out there and worth the little bit of "extra work"....

Kind Regards,

Nick.

--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/80aff6ce-8eca-48b0-850d-3d2b3295b97e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment