Code Monkey home page Code Monkey logo

farbtastic-rails's Introduction

farbtastic-rails

Farbtastic v1.3u, colorfully bundled for Rails 3+.

Rails 3.1+

For Rails 3.1 and greater, the files will be added to the asset pipeline and available for you to use.

To enable:

  • Add the following line to the file app/assets/javascripts/application.js (or other sprockets manifest):
//= require farbtastic
  • Add the following line to the file app/assets/stylesheets/application.css (or other sprockets manifest):
*= require farbtastic

Installation

  • Add farbtastic-rails to your Gemfile
  • Run bundle

Enjoy!

Rails 3.0

This gem adds a single generator to Rails 3, farbtastic:install. Running the generator will install the JS, CSS and image files necessary to use Farbtastic.

Installation

  • Add farbtastic-rails to your Gemfile
  • Run bundle
  • Invoke the generator: rails generate farbtastic:install
  • Add the following to your layout or view files:
<%= stylesheet_link_tag "farbtastic" %>
<%= javascript_include_tag "farbtastic" %>

You're done!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

farbtastic-rails

Farbtastic

farbtastic-rails's People

Contributors

phlipper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

farbtastic-rails's Issues

problems installing with yarn/npm - manifest file reported to be missing

Hi
Drupal uses this with a line in package.json:
"devDependencies": {
"farbtastic": "https://github.com/mattfarina/farbtastic/archive/1.3u.tar.gz",
...
When yarn is run there is an error:

 YN0001: โ”‚ Error: farbtastic@https://github.com/mattfarina/farbtastic/archive/1.3u.tar.gz: Manifest not found
    at el.find (/home/jon/.cache/node/corepack/yarn/3.3.1/yarn.js:390:29961)
...

Any suggestions on how to resolve?
Could a manifest file be added, even if not used for your main target environment (Ruby)?

Text field value doesn't update when the initial value is nil.

If the initial value of the color is nil, the text field text value does not refresh when the color picker is used. The background of the text field will update, but the text value inside the text field does not.

Typing in some value to start with makes it work.

Thanks for a GREAT gem!

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.