Sha256: 50c15281af17b936b4a14f8ec03830c6a260d57ef1ef89fec426b783d78489dd
Contents?: true
Size: 1.32 KB
Versions: 6
Compression:
Stored size: 1.32 KB
Contents
# Neo::Rails [![Build Status](https://secure.travis-ci.org/neopoly/neo-rails.png?branch=master)](http://travis-ci.org/neopoly/neo-rails) `neo-rails` contains some tools helping us doing Rails. This gem includes: * Mocks * Presenters * Exposure * Scenarios ## Installation Add this line to your application's Gemfile: gem 'neo-rails' And then execute: $ bundle Or install it yourself as: $ gem install neo-rails ## Usage ### Presenter In app/presenters/presenter.rb ```ruby class Presenter include Neo::Rails::Presenter end class UserPresenter < Presenter def initialize(user) @user = user end def name @user.name end def profile_path view_context.link_to view_context.user_profile_path(@user), name end end ``` In test/test_helper.rb ```ruby require 'neo/rails/presenter/test_helper' Neo::Rails::Presenter::TestHelper.setup ``` ### Scenarios In app/assets/stylesheets/application.css: /*= require neo-rails */ In app/assets/javascript/application.js //= require neo-rails In app/layouts/application.html.erb <%= render_scenarios_list %> ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Added some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
neo-rails-0.0.8 | README.md |
neo-rails-0.0.7 | README.md |
neo-rails-0.0.6 | README.md |
neo-rails-0.0.5 | README.md |
neo-rails-0.0.4 | README.md |
neo-rails-0.0.3 | README.md |