Sha256: 4fa133e4a67e7476bdfd49828ce7eedd93ad891be624bdb96b51993c6ba21d36

Contents?: true

Size: 802 Bytes

Versions: 9

Compression:

Stored size: 802 Bytes

Contents

Description:

  Generate Resource Controller

Example:

    rails g resource_controller country

    This will create:
        create    app/controllers/countries_controller.rb
        create    app/views/countries
        create    app/views/countries/index.html.erb
        create    app/views/countries/edit.html.erb
        create    app/views/countries/show.html.erb
        create    app/views/countries/new.html.erb
        create    app/views/countries/_form.html.erb
        create    test/functional/countries_controller_test.rb
        create    app/helpers/countries_helper.rb
        create    test/unit/helpers/countries_helper_test.rb

    and inside of the controller it will call resource_for

    class CountriesController < ApplicationController
      resource_for :"Country"
    end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
resources-1.1.1 lib/generators/rails/USAGE
resources-1.1.0 lib/generators/rails/USAGE
resources-1.0.1 lib/generators/rails/USAGE
resources-1.0.0 lib/generators/rails/USAGE
resources-0.2.0 lib/generators/rails/USAGE
resources-0.1.3 lib/generators/rails/USAGE
resources-0.1.2 lib/generators/rails/USAGE
resources-0.1.1 lib/generators/rails/USAGE
resources-0.1.0 lib/generators/rails/USAGE