Coder Social home page Coder Social logo

backbone-forms-rails's Introduction

backbone-forms-rails

This gem wraps the backbone-forms library in the Rails asset pipeline's loving embrace. Rails 3.1 and up.

Step 1: Add it to your gemfile:

gem 'backbone-forms-rails'

Step 2: Include assets:

// In application.js
//= require backbone-forms-rails
/* In application.css */
/*
 *= require backbone-forms-rails
 */

Step 3: Rock and roll.

backbone-forms-rails's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

backbone-forms-rails's Issues

Error Handling

This would be a really nice place to integrate the error messages generated by Rails when a create or update fails with the fields generated by backbone-forms.

Cannot read property 'editors' of undefined

I'm trying to get backbone-forms running in my backbone-on-rails app, but I get this error when the javascript is loaded through sprockets:

Cannot read property 'editors' of undefined 

Here's the top of my application.js:

// Manifest file for chieftain
//= require jquery
//= require jquery_ujs
//= require underscore
//= require backbone
//= require backbone-forms-rails
//... my backbone stuff here

It looks like backbone-forms isn't being included properly or the jquery-ui editors are being loaded in the wrong order?

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.