Giter Site home page Giter Site logo

Comments (13)

reflection avatar reflection commented on June 30, 2024

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.

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

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?
My path..
Desktop/Flat UI HTML - Personal License/HTML/UI

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

it that path name have to be exact?? @reflection

from designmodo-flatuipro-rails.

reflection avatar reflection commented on June 30, 2024

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/[email protected]

mwg@ubuntu:~$ rvm use [email protected]
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!

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

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.

from designmodo-flatuipro-rails.

reflection avatar reflection commented on June 30, 2024

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"

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

@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.

from designmodo-flatuipro-rails.

reflection avatar reflection commented on June 30, 2024

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!

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

@reflection , I will figure out this later, thanks for your patient. If still got any problem, i will ping you again ...:D Thanks !

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

@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)
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/invocation.rb:120:ininvoke_command'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/invocation.rb:127:in block in invoke_all' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/invocation.rb:127:ineach'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/invocation.rb:127:in map' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/invocation.rb:127:ininvoke_all'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/group.rb:233:in dispatch' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/thor-0.18.1/lib/thor/base.rb:439:instart'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/railties-4.0.0/lib/rails/generators.rb:156:in invoke' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/railties-4.0.0/lib/rails/commands/generate.rb:11:in<top (required)>'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in require' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:inblock in require'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in load_dependency' from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:inrequire'
from /home/nicholas/.rvm/gems/ruby-2.0.0-rc2@rails4/gems/railties-4.0.0/lib/rails/commands.rb:49:in <top (required)>' from bin/rails:4:inrequire'
from bin/rails:4:in `

'

from designmodo-flatuipro-rails.

reflection avatar reflection commented on June 30, 2024

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?

from designmodo-flatuipro-rails.

nichthinkof30 avatar nichthinkof30 commented on June 30, 2024

yup...I even tried the full path @@ @reflection , my app was on the Desktop too.
App path:
/Desktop/myapp
Flat UI path:
/Desktop/Flat UI HTML - Personal License directory

from designmodo-flatuipro-rails.

oschvr avatar oschvr commented on June 30, 2024

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/
/usr/local/lib/ruby/gems/2.2.0/gems/designmodo-flatuipro-rails-1.3.0.0.branch/lib/generators/flatuipro/install/install_generator.rb:22:in copy_assets': Invalid Flat UI Pro directory (RuntimeError) from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:inblock in invoke_all'
from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in each' from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:inmap'
from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in invoke_all' from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:indispatch'
from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/generators.rb:157:ininvoke'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands/generate.rb:13:in <top (required)>' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:inrequire'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in block in require' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:inload_dependency'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in require' from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:123:inrequire_command!'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:130:in generate_or_destroy' from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:50:ingenerate'
from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /usr/local/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/commands.rb:17:in<top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in require' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:inblock in require'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:inrequire'
from /Users/os/Desktop/oscarchavez/flatui1.3.2.0/bin/rails:8:in <top (required)>' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:inload'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in block in load' from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:inload_dependency'
from /usr/local/lib/ruby/gems/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in load' from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from /usr/local/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from -e:1:in

'

from designmodo-flatuipro-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.