Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8971273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:54:52+00:00 2026-06-15T17:54:52+00:00

I am trying to do an ItemSearch using the Amazon aws-sdk Gem for Ruby

  • 0

I am trying to do an ItemSearch using the Amazon aws-sdk Gem for Ruby on Rails, but can’t get it to work and am struggling to find any documentation (it all seems to be old)

I have the following page: /app/views/home/index.html.erb:

<%= form_tag('/search') do %>
  <%= label_tag(:keywords, 'Search for:') %>
  <%= text_field_tag(:keywords) %>
  <%= submit_tag('Search') %><br/>
  <%= text_area_tag(:result, @result) %>
<% end %>

the following controller: /app/controllers/home_controller.rb:

class HomeController < ApplicationController
  require 'aws-sdk'

  def index
    @result = ''
  end

  def search
    AWS.config( :access_key_id => 'xx', :secret_access_key => 'xx')
    sea = ItemSearch.new('Books', {'Title' => 'ruby programming'} )
    @result = params[:keywords]
    render :action => :index
  end
end

but am getting the error:

uninitialized constant HomeController::ItemSearch

I am simply trying to get a result and display the result in the text area on the page.

But as I said, the only documentation I can find seems to be older.

Can anyone help me out with this? Or point me towards a more recent tutorial that I can use?

Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:54:53+00:00Added an answer on June 15, 2026 at 5:54 pm

    The AWS SDK for Ruby (aws-sdk gem) does not support the Amazon Product Advertising API. It appears the code you are trying to use it from some other gem (perhaps ruby-aaws). The aws-sdk cover AWS APIs, but not Amazon APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to find some information on this but am unable to get any results
I am trying to get ajax to work, but I keep getting a 403
Trying to execute a Powershell cmdlet from a MVC 3 Controller using impersonation but
Hi i am trying to use soap to get results from amazon, and i
Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
Trying to parse time from string, but get this error. Tried few formatting string.
trying to get my first HTML/CSS uni assignment sorted but have become a bit
Trying to write dynamic queries using the LINQ provider for NHibernate, but I am
I am using ruby-aaws to return Amazon Products and I want to enter them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.