Skip to content
Browse files

read more mes

  • Loading branch information...
1 parent a907b2d commit 4497bcac8265a31a2babf52e1efaa74c42742bc5 Chris Nelson committed
Showing with 38 additions and 1 deletion.
  1. +38 −1 README.md
View
39 README.md
@@ -3,7 +3,7 @@ Backtastic
Think formtastic meets backbone with some twitter bootstrap goodness.
-I've extracted this code after building something similar on several backbone projects. Most of the action right now happens in `Backtastic.Views.FormView`. This view is designed to be as a superclass within your application and give you several bits of goodness:
+At Gaslight we've built several rails apps with backbone and one of the more common complaints from new developers to this stuff is the lack of form helpery goodness that rails gives you. This is our attempt to start filling this gap. Most of the action right now happens in `Backtastic.Views.FormView`. This view is designed to be as a superclass within your application and give you several bits of goodness:
* helpers to generate a form fields with twitter bootstrap compatible markup. So far textField, selectField, dateField
* save implementation which does the following
@@ -32,4 +32,41 @@ Backtastic provides a render method that will invoke your template with the view
%form
= @textField(label: "Name", field: "Name")
+
+Example App
+-----------
+
+The best way to learn how to use backtastic is to spend some time checking out the example app. Clone this repo and look in the example subdirectory. To get it at running should be as simple as:
+
+ bundle install
+ rake db:migrate
+ bundle exec rails s
+
+Point your browser at localhost:3000. But then you probably knew that already
+
+Running specs
+-------------
+
+The specs for backtastic are in the example as well so I can take advantage of the asset pipeline in my specs. To run them, do:
+
+ rake jasminerice:run
+
+Future plans
+------------
+
+I'd like to have some metadata generated form rails and available to backbone so you could do something more formtasticy like:
+
+ @form fields["first_name", "last_name"]
+
+Also, it seems like making client side validation happen when appropriate would be nice. And I'd like to refactor the way FormView deals with rails validation errors, sooner rather than later probably.
+
+Shameless self-promotion
+------------------------
+
+If in-person training in all this is something that could help you or someone you know, we've [got you covered](http://training.gaslightsoftware.com). Should you need help building a backbone rails app, we can [do that too](http://gaslightsoftware.com).
+
+
+
+
+

0 comments on commit 4497bca

Please sign in to comment.
Something went wrong with that request. Please try again.