reflection / designmodo-flatuipro-rails

Designmodo's Flat UI Pro Design for Twitter Bootstrap integration into the Rails 3 and 4 Asset Pipeline
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Flat UI Pro 1.3.0 known issues #29

Open reflection opened 10 years ago

reflection commented 10 years ago

Hi all,

The 1.3.0 release has some issues I'd like to highlight:

Also, in case you want a quick way to get started with Flat UI Pro 1.3.0 in Rails with Bootstrap 3:

$ rails new frodo
$ cd frodo/
$ echo -e "gem 'therubyracer'\ngem 'jquery-ui-rails'\ngem 'less-rails-bootstrap'" >> Gemfile
$ bundle install

# Add these lines to setup less-rails-bootstrap (via sed or favorite text editor)
#
# In app/assets/javascripts/application.js (AFTER "require jquery")
# Add //= require twitter/bootstrap
#
# In app/assets/stylesheets/application.css (BEFORE "require tree")
# Add *= require twitter/bootstrap

$ echo -e "gem 'designmodo-flatuipro-rails', '~> 1.3.0.0.branch'\n" >> Gemfile
$ bundle install

# Change the following path to wherever your Flat UI Pro 1.3.0 directory is located
$ cd ~/Developer/flatuipro-1.3.0
$ cd HTML/UI/Flat-UI-Pro-1.3.0/
$ bower install

# Change back to the frodo directory
$ cd ~/Developer/frodo
$ rails g flatuipro:install ~/Developer/flatuipro-1.3.0/
$ rails g flatuipro:demo
a14m commented 10 years ago

Trying to deploy to heroku... I always get the following

-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       I, [2014-09-11T04:43:38.436644 #647]  INFO -- : Loading Rails (4.1.5) integration
       rake aborted!
       Sprockets::FileNotFound: couldn't find file 'fileinput'
       (in /tmp/build_6171bf2d-98ce-4e8c-bb58-64ebb745f8a4/app/assets/javascripts/flatuipro.js:1)
       /tmp/build_6171bf2d-98ce-4e8c-bb58-64ebb745f8a4/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:106:in `resolve'
       /tmp/build_6171bf2d-98ce-4e8c-bb58-64ebb745f8a4/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:146:in `require_asset'
      ..... many many lines :D 
jhchabran commented 10 years ago

@artmees Once you installed the flatuipro assets, you can deploy it to heroku by unpacking the gem in your vendor/gems directory. Be sure it is versioned or you won't get it on heroku. Then add the following line to your gemfile :

gem 'designmodo-flatuipro-rails', '1.3.0.0.branch', path: 'vendor/gems/designmodo-flatuipro-rails-1.3.0.0.branch'

I had a small issue while unpacking the gem, apparently google.svg was a symlink and I had a weird google\ .svg file in the assets. I removed the symlink and put the real google.svg file in its place and it's now perfectly working on heroku.

Downside is you'll have to manually update the vendored gem.