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 753971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:57:32+00:00 2026-05-14T14:57:32+00:00

EDIT: Got too confusing with so many different edits, so this is where I’m

  • 0

EDIT:

Got too confusing with so many different edits, so this is where I’m currently at.

I have a HTTPService in my Flex 4 app defined as follows:

<s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/>

I call this service like this (note: I’ve checked the network monitor in Flash Builder 4 and the userNameLookup variable is sent correctly):

var userNameLookup:String;
userNameLookup = calleeInput.text;
getUserDetails.send(userNameLookup);

And finally, this is the Ruby on Rails method:

def getDetails
  @user = User.find_by_username(:userNameLookup)
  render :xml => @user
end

This is the error message in the log:

Processing UsersController#getDetails
(for 127.0.0.1 at 2010-04-27 19:24:23)
[GET] User Load (0.2ms) SELECT *
FROM “users” WHERE (“users”.”username”
= ‘— :userNameLookup ‘) LIMIT 1

ActionView::MissingTemplate (Missing
template users/getDetails.erb in view
path app/views):
app/controllers/users_controller.rb:33:in
getDetails'
app/controllers/users_controller.rb:32:in
getDetails’
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in
service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in
run’
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in
start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in
start’
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in
start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in
start’
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in
each'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in
start’
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in
start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in
start’

So it appears that the userNameLookup parameter isn’t being referred to correctly?
Just a thought, but does it matter that I’ve set the HTTPService to GET even though it is posting something?

  • 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-05-14T14:57:32+00:00Added an answer on May 14, 2026 at 2:57 pm

    The controller action methods should be implemented without parameters. The parameters can be inferred from the request parameters.

    Try this:

    def getDetails
      @user = User.first(:conditions => {:username => params[:lookupUsername]})
      respond_to do |format|
        format.xml { render :xml => @user }
      end
    end
    

    In the code above I have used lookupUsername as the query parameter. Change that to the actual name sent by your flex client.

    Edit 1

    You need explicit xml format handler to return the result as XML. Apart from this, it looks like lookupUsername parameter is empty in your invocations. Is it possible that the query parameter is named something else? You can get the name of the query parameter by looking at the log file. Your log file should show an entry like this:

    Processing xxxxController#getDetails (for 127.xxx at 2010-04-15 10:27:21) [GET]
      Parameters: {"action"=>"getDetails", "controller"=>"xxxx", 
                  "lookupUsername" => "bob"}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit! Turns out I had just got too many apostrophes going on when calling
So I got this situation and I may have 2 different routes to take.
EDIT: This got way too complicated, I will migrate this question to another question
Edit: I've got the solution and have described it a bit more at the
I posted this in the mailing list, but the reply I got wasn't too
I may be wrong as I have not got too much experience with Java,
I've got a treeview control, and have caught its after-label-edit event. I want to
I'm following this railscast and got stuck immediately: http://asciicasts.com/episodes/244-gravatar Whenever I try to edit
I got this textfield in Rails, I entered this in edit: Lifts 09:00-00:45 mid-Jun-Aug
Edit : I've got an aspx file (default.aspx) that loads a flash file (index.swf),

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.