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 :(
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With