Middleman still creating standard assets folders

I just installed middleman to mainly speed up my static site creation workflow. Every is working the way I want (My *.html.erb files get compiled to *.html correctly) but Middleman is still creating the javascripts, stylesheets and images folders with e.g. the middleman.png inside the images folder. But I changed the folder for the files in my config.rb:

activate :automatic_image_sizes
set :css_dir, 'data.main/css'
set :js_dir, 'data.main/js'
set :images_dir, 'data.main/img'
configure :build do
end

what am I doing wrong? Sorry for this probably stupid question, but I am new to Middleman.

You mean they show up in the build folder after build? Just remove the default files from source folder, they will be automatically removed from the build folder after next build.

I fixed it using this config:

activate :automatic_image_sizes
set :css_dir, 'data.main/css'
set :js_dir, 'data.main/js'
set :images_dir, 'data.main/img'
configure :build do
end

But I got a 2nd problem on another laptop now:

root@ThinkPad-T410:~#  sudo gem install -V middleman
root@ThinkPad-T410:~#  ERROR:  Error installing middleman:
root@ThinkPad-T410:~#  activesupport requires Ruby version >= 1.9.3.

My RVM version:

root@ThinkPad-T410:~#  rvm -v
root@ThinkPad-T410:~#  rvm 1.26.3 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

My Ruby version:

root@ThinkPad-T410:~#  ruby -v
root@ThinkPad-T410:~#  ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]

My Gem version:

root@ThinkPad-T410:~#  gem -v
root@ThinkPad-T410:~#  2.4.5

I am using ElementaryOS version 0.2.1 “Luna” ( 64-bit )

I dont see the problem? I got Ruby 2.1.5 installed!

Anyone can help?

Maybe latest/greatest Ruby 2.1.5 is not supported by current version of ActiveSupport yet? I’m mostly using 2.0.0p598 in my MM projects now.

Hello @ApfelUser

Maybe you have a problem with your terminal configuration. To fix it try to

  1. integrate your terminal with gnome https://rvm.io/integration/gnome-terminal
  2. after that simply gem update --system in your project folder