# 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 。为什么 。代替 / 。我错过了什么?