0.03
No commit activity in last 3 years
No release in over 3 years
InheritedViews brings the DRY principle to the controller and view layers within Rails applications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

Runtime

 Project Readme

Inherited Views¶ ↑

NOTE: THIS IS UNDER HEAVY DEV AND IS NOT READY TO BE USED YET

Inherited Views is a thin addition to the Inherited Resources project adding default html views which can be later customized on a per controller basis or globally for your rails app.

Dependencies¶ ↑

  • InheritedResources

  • Formtastic

  • WillPaginate

The Views¶ ↑

Inherited Views gives you a default set of templates which you can override in your implementation, or modify to create application specific defaults.

The following templates exist:

index.html.erb      Renders a paginate listing of the collection
  _table.html.erb   Does the actual work of generating the table
show.html.erb       Shows the resource
new.html.erb        Renders the _form template for a new resource
edit.html.erb       Renders the _form template for a resource to edit
_form.html.erb      HTML for the actual form

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Greg Bell (www.gregbell.ca)

See LICENSE for details.