[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How can i store the value in db(MySql) ??

Deepak kumar Shivhare

3/22/2007 12:05:00 PM

Hello,

I am new in Ruby.

Can you tell me how can I store the value in databse(MySql).

I have 2 Textbox one is User Name and another one is Password and 2
button i.e., Submit and Cancel. I want whenever I click on the submit
button the value should be stored in the database.

I have made a table i.e., user in the database(MySql) having fields id,
username and password. id is a primary key.


Thanks in Advance
Deepak

--
Posted via http://www.ruby-....

13 Answers

Phillip Gawlowski

3/22/2007 12:27:00 PM

0

Deepak Kumar Shivhare wrote:
> Hello,
>
> I am new in Ruby.
>
> Can you tell me how can I store the value in databse(MySql).
>
> I have 2 Textbox one is User Name and another one is Password and 2
> button i.e., Submit and Cancel. I want whenever I click on the submit
> button the value should be stored in the database.
>
> I have made a table i.e., user in the database(MySql) having fields id,
> username and password. id is a primary key.

How do you access the database?
Are you using ActiveRecord or the MySQL/Ruby gem?

And if you are using the Rails framework, you might want to ask this
question (in a smarter[0] way) on the Rails-ML.

[0] http://www.catb.org/~esr/faqs/smart-ques...

--
Phillip "CynicalRyan" Gawlowski

Rule of Open-Source Programming #20:

Open Code != Good Code

jane

3/18/2011 12:58:00 PM

0

On Mar 18, 7:02 am, Mike Smith <m...@wt.net> wrote:
> On Thu, 17 Mar 2011 23:51:57 -0700 (PDT), "Killing, Inc."
>
>
>
>
>
>
>
>
>
> <i.am.killing....@gmail.com> wrote:
> >On Mar 18, 1:09 am, Tracey12 <tracey12em...@gmail.com> wrote:
> >> Regarding Sarah Palin's recent drop in the polls..early on, Sarah
> >> seemed like a possibility, but we've realized as a nation that our
> >> world has become a very hard, harsh environment for any president to
> >> operate in, and a nice, pretty lady like Sarah just isn't hard enough
> >> to deal with it all. And, we don't want to force her into the roll.
>
> >Let the nation suffer badly until the sheep finally come to
> >realization that it's time to reject the Soros/Bilderberg New World
> >Order Fascism they are imposing.
>
> >The only candidate who will get us away from this slavery is Ron Paul,
> >if he runs. Herman Cain might be good too.
>
> >It doesn't matter if they can win. Don't throw your vote away again on
> >another NWO candidate like Bush 1, Dole, Clinton, Bush 2, Gore, Kerry,
> >McCain, and Obama all have been.
> >Both Democrats and Establishment Republicans must be rejected in
> >2012!!!
>
> Sarah Palin is still the go-to person for 2012.
>
> With as much fear of her as the journalists have spewed, and all the
> denigration the libtards have heaped on her, and all the whining the
> republican elite have cried about, she is "The Won".
>
> Mike Smith

Sara in either the Pres or VP slot will guarantee an Obama reelection.

Tracey12

3/18/2011 3:49:00 PM

0

On Mar 18, 6:02 am, Mike Smith <m...@wt.net> wrote:
> On Thu, 17 Mar 2011 23:51:57 -0700 (PDT), "Killing, Inc."
>
>
>
> <i.am.killing....@gmail.com> wrote:
> >On Mar 18, 1:09 am, Tracey12 <tracey12em...@gmail.com> wrote:
> >> Regarding Sarah Palin's recent drop in the polls..early on, Sarah
> >> seemed like a possibility, but we've realized as a nation that our
> >> world has become a very hard, harsh environment for any president to
> >> operate in, and a nice, pretty lady like Sarah just isn't hard enough
> >> to deal with it all. And, we don't want to force her into the roll.
>
> >Let the nation suffer badly until the sheep finally come to
> >realization that it's time to reject the Soros/Bilderberg New World
> >Order Fascism they are imposing.
>
> >The only candidate who will get us away from this slavery is Ron Paul,
> >if he runs. Herman Cain might be good too.
>
> >It doesn't matter if they can win. Don't throw your vote away again on
> >another NWO candidate like Bush 1, Dole, Clinton, Bush 2, Gore, Kerry,
> >McCain, and Obama all have been.
> >Both Democrats and Establishment Republicans must be rejected in
> >2012!!!
>
> Sarah Palin is still the go-to person for 2012.
>
> With as much fear of her as the journalists have spewed, and all the
> denigration the libtards have heaped on her, and all the whining the
> republican elite have cried about, she is "The Won".
>
> Mike Smith

I agree that Sarah Palin is liberal anti-matter. When a liberal gets
near her, he is instantly vaporized. Nothing on earth upsets the pro
big government crowd more than Sarah Palin.

Since Sarah says the same things as any solid Conservative, I suspect
that it is the combination of her Conservatism, femininity, and in
particular, her very nicely outspoken Christianity that wraps the
minds of democrat Marxists. They fear her mass appeal and the
influence she would have, and does have. They also fear that her
values would so incredibly trump anything the left has to offer, she
would be a trend setter that would undo their socialist / communist
Utopian agenda.

President Barry in 2012 while Trigs's followers whine louder

3/18/2011 4:28:00 PM

0

On Mar 18, 6:02 am, Mike Smith <m...@wt.net> wrote:
> On Thu, 17 Mar 2011 23:51:57 -0700 (PDT), "Killing, Inc."
>
> Sarah Palin is still the go-to person for 2012.
>
LOL .. She will be beaten like a 12 year old nigger whore she is.
America needs cunt
losers like her to keep Barry in office.

Yoorghis

3/18/2011 6:16:00 PM

0

On Fri, 18 Mar 2011 08:48:44 -0700 (PDT), Tracey12
<tracey12email@gmail.com> wrote:

>I agree that Sarah Palin is liberal anti-matter.

More like a pile of stinking reindeer shit.





>=============================================================

On Fri, 18 Sep 2009 16:32:34 -0700 (PDT), Kurtis T. Nicklas of
1293 Westbrook Ave, Elon, NC 27244-9372"

<nickl...@bellsouth.net> wrote in message


>I don't pay much attention to him these days, but I'd wager he's not
>happy.

You sure as shit paid attention when you got caught
making all those late-night hang-up phone calls, didn't
ya, Nickkkkers?

CLICK ! ! !

President Barry in 2012 while Trigs's followers whine louder

3/18/2011 8:43:00 PM

0

On Mar 18, 1:16 pm, Yoorg...@Jurgis.net wrote:
> On Fri, 18 Mar 2011 08:48:44 -0700 (PDT), Tracey12
>
> <tracey12em...@gmail.com> wrote:
> >I agree that Sarah Palin is liberal anti-matter.
>
> More like a pile of stinking reindeer shit.

What has a reindeer ever done to you to have it's shit compared to
Fail'n Palin ?

Yoorghis

3/18/2011 10:00:00 PM

0

On Fri, 18 Mar 2011 13:42:33 -0700 (PDT), Lost In Space
<smappersmapper@yahoo.com> wrote:

>On Mar 18, 1:16?pm, Yoorg...@Jurgis.net wrote:
>> On Fri, 18 Mar 2011 08:48:44 -0700 (PDT), Tracey12
>>
>> <tracey12em...@gmail.com> wrote:
>> >I agree that Sarah Palin is liberal anti-matter.
>>
>> More like a pile of stinking reindeer shit.
>
> What has a reindeer ever done to you to have it's shit compared to
>Fail'n Palin ?

Well, I really didn't think it was a reflection on the poor reindeer.

If any take offense, I'll apologize to them





>=============================================================

On Fri, 18 Sep 2009 16:32:34 -0700 (PDT), Kurtis T. Nicklas of
1293 Westbrook Ave, Elon, NC 27244-9372"

<nickl...@bellsouth.net> wrote in message


>I don't pay much attention to him these days, but I'd wager he's not
>happy.

You sure as shit paid attention when you got caught
making all those late-night hang-up phone calls, didn't
ya, Nickkkkers?

CLICK ! ! !

Kickin' Ass and Takin' Names

3/18/2011 11:57:00 PM

0

On Fri, 18 Mar 2011 06:02:59 -0500, Mike Smith <mws@wt.net> wrote:


>
>Sarah Palin is still the go-to person for 2012.
>


Stop it!!! You're killin' me!!!! I'm about to die laughing!!!!!

Kickin' Ass and Takin' Names

3/18/2011 11:58:00 PM

0

On Fri, 18 Mar 2011 08:48:44 -0700 (PDT), Tracey12
<tracey12email@gmail.com> wrote:


>
>I agree that Sarah Palin is liberal anti-matter. When a liberal gets
>near her, he is instantly vaporized. Nothing on earth upsets the pro
>big government crowd more than Sarah Palin.
>


Get back on your meds.

Banging Elizabeth Smart like a drum

3/19/2011 3:23:00 AM

0

On 3/18/2011 6:57 PM, Kickin' Ass and Takin' Names wrote:
> On Fri, 18 Mar 2011 06:02:59 -0500, Mike Smith<mws@wt.net> wrote:

>
> Stop it!!! You're killin' me!!!! I'm about to die laughing!!!!!

America need more stupid people ... oops ... I mean FUD Wingers,
to stay with that thought. Bring the crippled, cancer ridden,
mean old white guy too.