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

  • Home
  • SEARCH
  • 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 7712813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:43:21+00:00 2026-06-01T01:43:21+00:00

I am very much a beginner to rails and I have a specific need

  • 0

I am very much a beginner to rails and I have a specific need for it. I wish to connect it to a flex app, and also use it to call a database.

For example when the following web page is visited:
?User=bob&id=4&lic=234
Take ‘bob’ and 4 and add them to an existing database table if the license number is valid and not already used. I don’t want to use the standard database stuff, I will need to write my own SQL queries as well as have logic for checking other stuff to do with registering users etc.
It is already done with Coldfusion but I am having issues with it, and would like to have it work with Ruby instead.

But to start with, I just want the ability to call a web page (on localhost:3000) get the string after the URL “?User=bob&id=4&lic=234” in this case and output “User:bob id:4” to the screen. I want to learn what the code is doing rather than have the least lines of code solution. I would rather use as little of the rails framework to do this as this will help me learn the language. I won’t be making the standard website so learning the rails framework won’t be so useful to me.

Thanks for the comments, sinatra seems to be what I’m looking for, however I am having problems connecting with databases, mysql in this case:

I’m following this:
http://community.active.com/blogs/productdev/2011/02/28/using-activerecord-3-without-rails

Trying to use a Mysql database in this instance.
However I get this error:
LoadError: Please install the mysql adapter: gem install activerecord-mysql-adapter (193: %1 is not a valid Win32 application. – F:/Software/RubyStack/ruby/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so)

So I tried:
gem install activerecord-mysql-adapter
However:
gem could not be found
So I did:
install instead activerecord-jdbcmysql-adapter-1.2.2
However it still didn’t work.

When this is working, how do you make arbitrary SQL calls?

  • 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-01T01:43:22+00:00Added an answer on June 1, 2026 at 1:43 am

    Have a look at Thin or Sinatra and combine it with Active record. Using Active Record to handle your database and models is far superior to doing it all by yourself.

    If you insist on doing it by yourself. You can use the mysql2 gem or postgresql gem directly

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

Sidebar

Related Questions

I'm very much a vb person, but have had to use this id number
I am very much a beginner when it comes to VBA programming. I have
I'm very much still a beginner at programming but I have come across the
I'm very much new to programming and have been doing fairly well so far.
Apologies in advance if this is a silly question, am very much a beginner.
I'm very much a beginner in android environment. I am trying to create a
I'll start by saying I am very much a beginner programmer, this is essentially
Let me just start off by saying I am very much a beginner and
I am very much an Android newbie and I have built a simple RSS
I'm very much a beginner when it comes to Javascript and would appreciate any

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.