# GET system_accounts/:id
def show
# If a system account already exists in session, it was found from a search with the account id
# Otherwise, this is a new search for a system account by the given id
if params[:id]
Rails.logger.debug { "Querying for the account with id: #{params[:id]}" }
response = query_account(CGI.escape(params[:id]))
if response.is_a?(Net::HTTPSuccess)
@account = JSON.parse(response.body)
unless @account.empty?
redirect_to system_accounts_path(params[:id])
end
end
上記は私のショーアクションです。つまり、id = 2で検索すると、結果のリンクはsystem_accounts / 2になるはずですが、取得するのはsystem_accounts.2です。なぜ。/の代わりに。私が見逃しているものはありますか?