On 24 April 2013 19:09, imre tiitsu <[email protected]> wrote:
> Hi,
>
> I have simple html form and i need to pass those values to xxx.rb
> Lets say user inputs some values:
> textbox1 -> Paul
> textbox2 -> Smith
> textbox3 -> M
>
> in xxx.rb i have this line of code:
> db.execute "INSERT INTO Kirjed VALUES (date('now'),'Paul','Smith','M')"
>
> Works fine, puts data into sqlite database.
> How can i put html form vales into sqlite database when user submits
> those values by pressing a button.

I think you are missing the fundamentals of how to use Rails.  I
suggest working right through a good tutorial such as
railstutorial.org (which is free to use online) in order to understand
the basics.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to