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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:39:26+00:00 2026-06-15T22:39:26+00:00

As in java, if we use request.GetParameterById, we can get the ID from the

  • 0

As in java, if we use request.GetParameterById, we can get the ID from the html page and we use the ID to the required query and we use prepare statement to form the full query..

In rails I found we have to use find_by_id.. By i havent get the full details how to use of it. Any one please explain me clearly how to use of it.

Thanks in advance

  • 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-15T22:39:27+00:00Added an answer on June 15, 2026 at 10:39 pm

    if you have a form like this

    <form action="/users/create" class="new_user" id="new_user" method="post">
      <label for="user_email">Email<br />
      <input id="user_email" name="user[email]" size="30" type="email" value="" /></div>
      <input name="commit" type="submit" value="Sign in" />
    </form>
    

    In your controller ‘create’ action

    def create
       email = params[:user][:email]
       #your code
    end
    

    a more simple example would be

    <input id="search" name="search" size="30" value="" />
    

    you could get this from the corresponding controller action as

    search = params[:search]
    

    If you see the log, you could see how these parameters are passing (Ex: log/development.log)

    here is a sample

    Processing by Devise::SessionsController#new as HTML
      Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOTgZaxt3oGsn0UQrK8Bz9dQgDjACGOIoJoxGsfCM7Q=", "user"=>{"email"=>"", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
    

    HTH

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

Sidebar

Related Questions

I use JAVA to generate a POST Request to a PHP page( For ex:
I am trying get response from servlet use request.setAttribute(error, error); request.getRequestDispatcher(http://localhost:8080/redicted_test/Home.jsp).forward(request, response); String redictedURL=http://localhost:8080/redicted_test/Home.jsp;
Java Message Service book by O'Reilly Media says: use request/reply model in point-to-point messaging.
I'm trying to use a java.net.HttpURLConnection to make an HTTP request to a server.
So I use apache HttpComponents to handle http request in java. Now I want
i use java reflections to get methods used in a class.I also want to
Can I use java.util.Properties with encoding different then default?
I am trying to use Java based webservice and have soap request: <?xml version=1.0?>
I am trying to get the JSON data from a Twitter search request such
I writing downloader app. I want to only use java Socket to request a

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.