Git Product home page Git Product logo

formalize-rails's Introduction

Formalize Rails

This gem vendors Formalize to the asset pipeline. Therefore, this gem requires Rails 3.1 and greater.

Usage

Add this gem to your gemfile:

gem 'formalize-rails'

And add app/assets/stylesheets/application.css:

//= require formalize

And add one of these lines to app/assets/javascripts/application.js, depending on which javascript framework you are using:

//= require dojo.formalize
//= require extjs.formalize
//= require jquery.formalize
//= require mootools.formalize
//= require prototype.formalize
//= require yui.formalize

See formalize.me for more information.

Gem development

Run rake update to get the latest and greatest styles from formalize.

formalize-rails's People

Contributors

iain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

formalize-rails's Issues

Rails 4 Compatability

Am using gem "formalize-rails", "~> 0.1.3" and getting this error while doing bundle install

Bundler could not find compatible versions for gem "railties":
In Gemfile:

formalize-rails (~> 0.1.3) ruby depends on
   railties (~> 3.1) ruby

rails (= 4.0.0.rc1) ruby depends on
  railties (4.0.0.rc1)

Typo

formalize.css.scss line 258 has typo:

background-image: image-url('formalize/select_arrow.gif?1298351050'');

it has to be:

background-image: image-url('formalize/select_arrow.gif?1298351050');

Images not available in production mode

The images are not available in production mode.

background: url('/assets/foo.png')

is not available, because Rails 3.1 adds a hash, making it something like:

background: url('/assets/foo-124234fsdfsfsdfd98dfk.png')

Maybe use ERB with the asset_path helper?

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.