Problem:
I completed the Ruby on Rails "Hello World" tutorial here which walks you through how to build a blog. Now, I want to see if I can embed the work that I've done into an html file.
What I've looked into:
However, I am not exactly sure how to go about that. I looked into embedded ruby and found a good tutorial/explanation on Tutorials Point and some other sites on Google. Those examples show how to write ruby code within the file though. That seems great if I'm only writing a few lines, but I want to incorporate an entire project.
I also found a link on writing templates, but that didn't seem like what I was looking for either.
Question:
Is there a way I can add my blog to a static html/css site that I've already created?
Something like <% link railsblog %>? Or is there any other way to incorporate the project on an html page?
Thanks for any advice!
rendermay be you looking for guides.rubyonrails.org/layouts_and_rendering.htmlrender file '/file_path/'in erb you need to o it<%= render file: "/path/of/the/file">