Sha256: 65b42f5ce470fd262fe19f379ea8f0a7396edc60ec3125428eb71a9aaee22f9f

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

# this file should not be loaded from Ruby <2.0

class KwBooksController < ApplicationController
  # keyword arguments
  def index(author_name, page: '1', q: nil)
    render plain: {author_name: author_name, page: page, q: q}.inspect
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
action_args-2.5.0 test/kwargs_controllers.rb
action_args-2.4.0 test/kwargs_controllers.rb
action_args-2.3.2 test/kwargs_controllers.rb