Skip to content

Ermak-13/info-of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

INFO OF

It is simple rails helper. It help displaying information of some object. Instead of ...

`

first name:
some
last name:
some
`

you can write ...

<%= info_of @user do |f| %> <%= f.info_field :first_name %> <%= f.info_field :last_name, :label => 'lol', :field_html => {}, :label_html => { :tag_name => :span, :class => 'some' }, :value_html => {} %> <% end %>

You can customize some moments. You can pass any html attributes to field (wrapper), label or value using :field_html, :label_html, :value_html. Option :tag_name set tag (wrapper, label or value). If you want other label than default you should pass value using options :label.

FUTURE

Yes, I know that I can make gem. And I should write test. bla-bla-bla :)

About

rails helper for displaying some information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages