Project

ecm_news2

0.0
No commit activity in last 3 years
No release in over 3 years
Provides News functionality for ruby on rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

ECM News 2¶ ↑

News module for active admin. This version supports rails 4.x and twitter bootstrap 3. For legacy support use ecm_news

Prerequisites¶ ↑

Please make sure, that you have set a root_path in your application, i.e.:

# config/routes
Rails.application.routes.draw do
  root to: 'home#index'
end

Installation¶ ↑

Add the gem to your bundle:

# Gemfile
gem 'ecm_news2'

Install your bundle:

> bundle install

Generate initializer:

> rails generate ecm:news:install

Generate the locales

> rails generate ecm:news:locales

Add migrations:

> rake ecm_news_engine:install:migrations

Migrate:

> rake db:migrate

Add the routes:

# config/routes.rb
mount Ecm::News::Engine, at: '/'

Usage¶ ↑

Helpers¶ ↑

<%= render_news(count) %>

Running specs¶ ↑

gem install bundler
bundle
cd spec/dummy && rake db:migrate RAILS_ENV=test && cd ../..
guard

License¶ ↑

This project rocks and uses MIT-LICENSE.