L
L
lavezzi12015-03-17 11:14:06
Ruby on Rails
lavezzi1, 2015-03-17 11:14:06

Jekyll + blog on ruby ​​on rails how to do it?

Hello. The goal is to make a website (in the main directory) + a blog ( http://.../blog). The simplest blog has already been written. Now I choose what to use for the site. Use jekyll or do without it and write in ruby.
How will it be more convenient to manage and look prettier in terms of code and structure?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Evtukhovich, 2015-03-26
@evtuhovich

I would take middleman ( https://middlemanapp.com/ ). By comparison, Jekyll is extremely inflexible and complex for such a simple tool.

I
Ilya Bondarenko, 2015-03-27
@bondarenko

If the site rarely changes, you need simplicity and static pages are enough, then you can use middleman.
I would do this:

  1. The generated site would be placed in the public folder of the Rails application (the main page should be index.html)
  2. in routes.rb moved everything to blog scope
    Rails.application.routes.draw do
      scope :blog do
        root 'main#index'
        devise_for :users
        resources :post
       # ваш оставшийся код
      end
    end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question