Pepe,
To use the mailing list define your problem better. okz? When the
details
and scope of the question has quality the answer may me too.
To create a project to use oracle database engine, do it:
rails --database=oracle project_name
To add/delete users you’ll need to study something like:
UserController << ApplicationController
def create
@user = User.new(params[:user])
if request.post?
if @user.save
render :text => ‘tasks completed’
else
render :text => ‘try again’
end
end
end
At migration file:
class CreateUser < ActiveRecord::Migration
def self.up
t.column :name, :string
t.column :surname, :string
t.email, :string
t.timestamps
end
def self.down
drop_tables :users
end
end
At user.rb
class User << ActiveRecord::Base
validates_presence_of :name, :surname, :email
validates_uniqueness_of :email
validates_format_of :email, :with =>
/^([^@\s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})$/i
end
At app/view/user/index.html.erb
<% form_for :user do |form| %>
<%= form.text_field :email %>
<%= form.text_field :name %>
<%= form.text_field :surname %>
<%= submit_tag ‘send’ %>
<% end %>
Now you can see the form at: http://localhost:3000/user/create
This is the very basic flow to add new users. Google for something like
it
and learn
Regards,
On Sun, Aug 17, 2008 at 11:32 PM, Pepe S. <
[email protected]> wrote:
–
Regards,
Luiz Vitor Martinez C.
cel.: (11) 8187-8662
blog: rubz.org
engineer student at maua.br
“Posso nunca chegar a ser o melhor engenheiro do mundo, mas tenha
certeza de
que eu vou lutar com todas as minhas forças para ser o melhor engenheiro
que
eu puder ser”