Sha256: f261159085789a5cecc5b63d654cf04be76a7878616a7e06d3fe6678ffcbd567
Contents?: true
Size: 832 Bytes
Versions: 5
Compression:
Stored size: 832 Bytes
Contents
script/rails g saucy:install script/rails g saucy:features script/rails g saucy:views To change the layout for a controller inside of saucy, add a line like this to your config/application.rb: config.saucy.layouts.accounts.index = "custom" Your layout should yield(:header) in order to get the headers from saucy views. To extend the ProjectsController: class ProjectsController < ApplicationController include Saucy::ProjectsController def edit super @deleters = @project.deleters end end Plans need to exist for users to sign up for. In db/seeds.rb: %w(free expensive mega-expensive).each do |plan_name| Plan.find_or_create_by_name(plan_name) end Then run: rake db:seed To use the seed data in your Cucumber: features/support/seed.rb: require Rails.root.join('db','seeds')
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.1.18 | README |
saucy-0.1.17 | README |
saucy-0.1.16 | README |
saucy-0.1.15 | README |
saucy-0.1.14 | README |