Project

edgrid_rb

0.0
No commit activity in last 3 years
No release in over 3 years
Allows you to include https://github.com/escueladigital/ed-grid in your application alongside some view helper methods
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.8
~> 10.0
>= 0

Runtime

< 5, >= 3.2.6
 Project Readme

EdgridRb

EdgridRb is a wrapper for the awesome gryd system from @edigitalperu, original project can be found here: https://github.com/escueladigital/ed-grid.

How to use it

Screencast

This gem allows you to easily include EdGrid into your projects, it also provides your views with some helper methods to create grid dynamic gryd systems.

Installation

Add this line to your application's Gemfile:

gem 'edgrid_rb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install edgrid_rb

Usage

Add the css file to your application.css file

*= require ed-grid

It also allows you to use custom methods for the grid in your views. For example:

#erb
<%=movil_100 do %>
  <h1> hello word </h1>
<% end %>

#slim or haml
= movil_100 do
  <h1> hello word </h1>

Outputs:

<div class="caja movil-100">
 <h1> hello word </h1>
</div>

You can add css classes custom

#erb
<%=movil_100 class: 'you_custom_class' do %>
  <h1> hello word </h1>
<% end %>

##Available methods movil_n

tablet_n

web_n

hd_n

Where n is a number >=5% and <=100%

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/zephiro/edgrid_rb/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request