Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Middleman for Rails 4

I tried googling for a rails 4 version of Middleman but came up empty-handed. Is there a way to get middleman to work with Rails 4? Whenever I try to start my server now it says:

C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/middleman-0.13.1/lib/middle
man/vendor/gems/environment.rb:3: Use RbConfig instead of obsolete and deprecate
d Config.

Is there a way to fix this, or is there a middleman-equivalent that does work with rails 4?

edit: P.S Slimgems didn't work :(

like image 475
CaptainCarl Avatar asked Jan 28 '26 03:01

CaptainCarl


1 Answers

Middleman is a tool for building static websites, but with your own tools like Ruby, Coffeescript and Slim. This will be compiled to html/css/js. It's a great tool but it is not in anyway depended on Rails (4).

Middleman process

It's a gem, to install just type

    gem install middleman

Now you can create a new project

    middleman init awesomeproject

Now you're ready to build a static website, you can view the changes with the middleman server

    middleman server

When you've finished your static website

    middleman build

and your website will be compiled to HTML/CSS/JS, which can be placed on any server that you have.

I think you've combined those two things (Middleman with Rails) and this is giving you this wierd error.

like image 180
Loed Avatar answered Jan 29 '26 17:01

Loed