github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mmangino / elevated_form_builder

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A form builder that uses erb templates — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of 
git://github.com/darrenterhune/elevated_form_builder into 
darrenterhune/master 
mmangino (author)
Tue Oct 14 06:56:18 -0700 2008
commit  fff3631eed527d9c3624a3300b19ce100d15079c
tree    ff4eeedede88067427b5426c21cbcf560e0d3aa4
parent  b9667fa616d93fb4724d5e802770ce0bf7ce31ed parent  f26ddc1fd3dc182a5f4de322b5fa2f8889b69576
elevated_form_builder /
name age
history
message
file .gitignore Mon Sep 22 14:08:18 -0700 2008 deleted delete from field_id method [darrenterhune]
file MIT-LICENSE Loading commit data...
file README Sun Oct 12 17:24:33 -0700 2008 changed elevated into plugin [darrenterhune]
file Rakefile
directory app/ Fri Sep 05 05:18:09 -0700 2008 Updated elevated_form_builder.rb to print valid... [darrenterhune]
file init.rb
file install.rb Sun Oct 12 17:53:51 -0700 2008 modified install [darrenterhune]
directory lib/
directory tasks/
directory test/
file uninstall.rb Sun Oct 12 17:24:33 -0700 2008 changed elevated into plugin [darrenterhune]
README
ElevatedFormBuilder
===================

Form builder for Rails projects.

===================

You can edit  app/views/forms/_field and app/views/forms/_field_with_errors partials to use the TemplateFormBuilder

If you want to use multiple form builders with different templates, you can subclass TemplateFormBuilder and override 
template_without_error and template_with_error

Remember to put this in your application helper:

def error_handling_form_for(record_or_name_or_array, *args, &proc)
  options = args.detect { |argument| argument.is_a?(Hash) }
  if options.nil?
    options = { :builder => TemplateFormBuilder }
    args << options
  end
  options[:builder] = TemplateFormBuilder unless options.nil?
  form_for(record_or_name_or_array, *args, &proc)
end

===================

Copyright (c) 2007 Elevated Rails, released under the MIT license
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server