How do I install a jQuery plugin on Rails? -


i'm trying install jquery plugin, https://github.com/motyar/firefly site. (instructions: http://www.backslash.gr/content/blog/webdevelopment/10-jquery-firefly-plugin)

i followed tutorial , didn't work. there special process getting jquery plugins onto rails? tried cloning repository didn't work. ran "rails plugin new 'git@github.com:motyar/firefly.git'" , gives me this:

usage:   rails plugin new app_path [options]  options:   -r, [--ruby=path]                                      # path ruby binary of choice                                                          # default: /users/ashleighalmeida/.rbenv/versions/2.1.5/bin/ruby   -m, [--template=template]                              # path plugin template (can filesystem path or url)       [--skip-gemfile], [--no-skip-gemfile]              # don't create gemfile   -b, [--skip-bundle], [--no-skip-bundle]                # don't run bundle install   -g, [--skip-git], [--no-skip-git]                      # skip .gitignore file       [--skip-keeps], [--no-skip-keeps]                  # skip source control .keep files   -o, [--skip-active-record], [--no-skip-active-record]  # skip active record files   -s, [--skip-sprockets], [--no-skip-sprockets]          # skip sprockets files       [--skip-spring], [--no-skip-spring]                # don't install spring application preloader   -d, [--database=database]                              # preconfigure selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)                                                          # default: sqlite3   -j, [--javascript=javascript]                          # preconfigure selected javascript library                                                          # default: jquery   -j, [--skip-javascript], [--no-skip-javascript]        # skip javascript files       [--dev], [--no-dev]                                # setup plugin gemfile pointing rails checkout       [--edge], [--no-edge]                              # setup plugin gemfile pointing rails repository       [--skip-turbolinks], [--no-skip-turbolinks]        # skip turbolinks gem   -t, [--skip-test-unit], [--no-skip-test-unit]          # skip test::unit files       [--rc=rc]                                          # path file containing configuration options rails command       [--no-rc], [--no-no-rc]                            # skip loading of configuration options .railsrc file       [--dummy-path=dummy_path]                          # create dummy application @ given path                                                          # default: test/dummy       [--full], [--no-full]                              # generate rails engine bundled rails application testing       [--mountable], [--no-mountable]                    # generate mountable isolated application       [--skip-gemspec], [--no-skip-gemspec]              # skip gemspec file       [--skip-gemfile-entry], [--no-skip-gemfile-entry]  # if creating plugin in application's directory skip adding entry gemfile  runtime options:   -f, [--force]                    # overwrite files exist   -p, [--pretend], [--no-pretend]  # run not make changes   -q, [--quiet], [--no-quiet]      # suppress status output   -s, [--skip], [--no-skip]        # skip files exist  rails options:   -h, [--help], [--no-help]  # show message , quit  description:     'rails plugin new' command creates skeleton developing     kind of rails extension ability run tests using dummy rails     application.  example:     rails plugin new ~/code/ruby/blog      generates skeletal rails plugin in ~/code/ruby/blog.     see readme in newly created plugin going. 

i tried running 'gem 'firefly' :git => 'https://github.com/motyar/firefly' , didn't work either.

what do? thanks!!

no.

the command rails plugin new used create new plugin rails' applications. , firefly isn't gem, cant install gem install command.

to add jquery plugin app, add this file vendor/assets/javascripts or app/assets/javascripts folder.

and remember require on application.js.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -