-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The directory of the flat UI #4
Comments
The gem doesn't detect correctly when you copy only the UI directory (see #2). You'll need to copy the whole Flat UI Pro directory and point to that. By the way, you don't have to copy Flat UI Pro into your rails app directory tree. |
hmm, sorry I dont get it...it don't need to copy the directory of flat-ui into railsapp?? It will auto load into rails app after the command? |
it that path name have to be exact?? @reflection |
Hi Nicholas, I'm sorry you're having issues. Here's an install from scratch with comments that will hopefully help you understand what I meant. # RVM is so cool
mwg@ubuntu:~$ rvm gemset create rails-4.0
gemset created rails-4.0 => /usr/local/rvm/gems/ruby-2.0.0-p0@rails-4.0
mwg@ubuntu:~$ rvm use 2.0.0@rails-4.0
Using /usr/local/rvm/gems/ruby-2.0.0-p0 with gemset rails-4.0
mwg@ubuntu:~$ gem install rails
…
Installing ri documentation for rails-4.0.0
Done installing documentation for i18n, multi_json, tzinfo, minitest, atomic, thread_safe, activesupport, builder, rack, rack-test, erubis, actionpack, activemodel, arel, activerecord-deprecated_finders, activerecord, mime-types, polyglot, treetop, mail, actionmailer, thor, railties, hike, tilt, sprockets, sprockets-rails, rails (462 sec).
28 gems installed
# Create new rails app 'superbad'
mwg@ubuntu:~$ rails new superbad
create
…
# Install jquery-ui-rails and twitter-bootstrap-rails with LESS support
mwg@ubuntu:~$ cd superbad
mwg@ubuntu:~/superbad$ echo -e "gem 'jquery-ui-rails'\ngem 'twitter-bootstrap-rails'\ngem 'therubyracer'\ngem 'less-rails'" >> Gemfile
mwg@ubuntu:~/superbad$ bundle install
mwg@ubuntu:~/superbad$ rails generate bootstrap:install less
# Install designmodo-flatuipro-rails
# My FlatUIPro directory is just where I extracted the licensed zip to
mwg@ubuntu:~/superbad$ echo -e "gem 'designmodo-flatuipro-rails'" >> Gemfile
mwg@ubuntu:~/superbad$ bundle install
mwg@ubuntu:~/superbad$ rails generate flatuipro:install ~/Dropbox/Developer/flatuipro
# All done! |
Hi @reflection, really thanks for your detail command, I want to ask is that "~/Dropbox/Developer/flatuipro" this path, must be necessary the same?? because when I download from the source given, the directory name was different. I extract it on my Desktop, therefore my path was ~/Desktop/Flat UI HTML - Personal License/HTML/UI ?? But I tried this ,it gave me invalid directory as well. |
Just the root directory of Flat UI Pro works for now (like I mentioned in #2). So for you it would probably be something like: rails generate flatuipro:install "~/Desktop/Flat UI HTML - Personal License" |
@reflection Hi, I have no idea why it don't work on me...is that necessay to install less? I got the gem installed but used the static 1 as mentioned in the github. |
Just for fun here's an even simpler from scratch install with static bootstrap assets (CSS instead of LESS). Try these commands, and if they don't work for you, show me the errors/output. # Create new rails app 'lifeofpi'
mwg@ubuntu:~$ rails new lifeofpi
# Install jquery-ui-rails and twitter-bootstrap-rails
mwg@ubuntu:~/lifeofpi$ echo -e "gem 'jquery-ui-rails'\ngem 'twitter-bootstrap-rails'" >> Gemfile
mwg@ubuntu:~/lifeofpi$ bundle install
mwg@ubuntu:~/lifeofpi$ rails generate bootstrap:install static
# Install designmodo-flatuipro-rails
mwg@ubuntu:~/lifeofpi$ echo -e "gem 'designmodo-flatuipro-rails'" >> Gemfile
mwg@ubuntu:~/lifeofpi$ bundle install
mwg@ubuntu:~/lifeofpi$ rails generate flatuipro:install ~/Dropbox/Developer/flatuipro
# All done! |
@reflection , I will figure out this later, thanks for your patient. If still got any problem, i will ping you again ...:D Thanks ! |
@reflection Hi, I tried to create a plain new project, it still giving me invliad flat ui pro directory copy_assets': Invalid Flat UI Pro directory (RuntimeError) |
Please include the command you ran to get that output. Are you sure you're pointing to the root ~/Desktop/Flat UI HTML - Personal License directory? |
yup...I even tried the full path @@ @reflection , my app was on the Desktop too. |
I am having the same issue. os@os ~/D/o/flatui1.3.2.0 [1]> rails generate flatuipro:install ~/Desktop/Flat-UI-Pro-1.3.2/ |
I rename UI folder into flat-UI and located them under app/assets, when I tried to run
rails g flatuipro:install ~/app/assets/flat-UI
and it is not working. What directory need to specify?
AppName
-App
-assets
this is my tree view of directory
The text was updated successfully, but these errors were encountered: