Sha256: c86a1b607632fc6f27e8c81b75c50912c802217553a029c01366e831c94acfea

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

class <%= plural_class_name %>Controller < ApplicationController
  before_filter :load_parent
  
  <%= controller_methods :actions %>
  
  protected
  
  def load_parent
    @<%= parent_singular_name %> = <%= parent_class_name %>.find(params[:<%= parent_singular_name %>_id])  
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twilson63-nifty-generators-0.3.2 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.3 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.4 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.5 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.6 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.7 rails_generators/nifty_nested_scaffold/templates/controller.rb
twilson63-nifty-generators-0.3.8 rails_generators/nifty_nested_scaffold/templates/controller.rb