Sha256: f8c98849f5cf4ec55acca4d194558ec03230ab689777a5161978cebb9b57fcd2

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

def create
  <%= variable_name %> = <%= new_call %>

  if <%= variable_name %>.save
    redirect_to <%= redirection_path %>
  else
    render :new, status: :unprocessable_entity
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webamm_to_rails-7.0.1 lib/webamm_to_rails/sources/controllers/actions/create_definition/template.erb
webamm_to_rails-7.0.0 lib/webamm_to_rails/sources/controllers/actions/create_definition/template.erb