Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
573 views
in Technique[技术] by (71.8m points)

ruby on rails - Implementing bootstrap theme from wrapbootstrap

I've downloaded a theme through wrapbootstrap but cannot figure out how to implement it. I assumed it was going to be just copying over the CSS and JS files but there seems to be much more to it.

The theme I have downloaded is https://wrapbootstrap.com/theme/awesome-admin-WB0663265

I have temporarily uploaded it onto Github here github.com/raycchan/temp (i'll remove this ASAP once I resolve it)

There are example templates here that have the generated .html file as well as the .html.erb files, and once I plug the erb files into my rails app it throws out errors like the ones below:

But it doesn't recognize these:

<%= data.page.title || "Bootstrap Admin" %>         # data undefined
<%=partial 'dashboard-navigation'%>                 # partial undefined

Could someone instruct me step by step how to implement this bootstrap theme? Thank you

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It is really interesting to give a Rails soul to the nice template . A few simple steps:

  • copy .css to app/assets/stylesheets and .js to app/assets/javasripts
  • include the new files in the manifest files application.css and application.js
  • for font-awesome use this description

Then share the result with us .


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...