https://github.com/iboard/layout_helper
A gem for all the layout-stuff I use in all my applications
https://github.com/iboard/layout_helper
Last synced: 11 months ago
JSON representation
A gem for all the layout-stuff I use in all my applications
- Host: GitHub
- URL: https://github.com/iboard/layout_helper
- Owner: iboard
- License: other
- Created: 2010-08-29T11:18:47.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-09-18T11:30:33.000Z (almost 16 years ago)
- Last Synced: 2025-04-04T08:08:48.504Z (about 1 year ago)
- Language: Ruby
- Homepage: http://iboard.cc/layout_helper
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Layout Helper Functions
Author
June 2010, use with GPL without any warranty
=====================================================================
Extends class String with
random_string(len)
Defines some layout-helper function.
title(t,display=true)
display_errors_for(obj,field)
input_field(f,obj,field,&block)
page_menu(items)
For details and a complete function-list see file lib/layout_helper.rb
Usage Example
=============
file: app/helper/application_helper.rb
require 'layout_helper'
file: app/views/any.rb
<%= title 'Print this and use it in html-title -%>
title(t,display=true)
display_errors_for(obj,field)
input_field(f,obj,field,&block)
page_menu(items)