Displaying 4 results from an estimated 4 matches for "createproject".
Did you mean:
create_project
2006 Jan 12
2
Web services and login?
...cationController
wsdl_service_name ''Projects''
web_service_api ProjectsApi
def Login
@session[:loggedIn] = true
end
def GetProjects
if @session[:loggedIn]
return Project.find(:all)
else
raise NotLoggedIn, "You are not logged in!"
end
end
def CreateProject(name)
Project.create(:name => name)
return name << "Wee"
end
end
Nothing fancy, but doing
ProjectService.Login();
ProjectService.GetProjects();
in c#, gets a NotLoggedIn exception. Any ideas?
--
Posted via http://www.ruby-forum.com/.
2009 Jul 21
1
synatx error while running migration
...ot
password: root123
host: localhost
i have also define the necessary code inside my all engine models and
migration files
like this
code of
project.rb
class Project < ActiveRevcord::Base
self.establish_connection :pms
end
/db/migrate/20090715172542_create_projects.rb
class CreateProjects < ActiveRecord::Migration
def self.connection
Project.connection
end
def self.up
create_table :projects do |t|
t.string :name
t.text :description
t.integer :manager_id
t.timestamps
end
end
def self...
2009 Nov 04
0
The error occurred while evaluating nil.prefetch_primary_key
...|t|
t.string :name # Name
t.string :alias # Alias-Name
t.string :descr # Description
t.timestamps
end
end
def self.down
drop_table :connections
end
end
class CreateProjects < ActiveRecord::Migration
def self.up
create_table :projects do |t|
t.string :name # Name
t.string :descr # Description
t.timestamps
end
end
def self.down
drop_table :projects
end
end
class CreateWay...
2005 Jan 13
10
Program logic behind Ruby On Rails
Hi, I''m a newbie in both Ruby and Ruby on Rails. I finished the Ruby on
Rail Tutorial on Todo list and it was great. But, now I''m trying to
understand the logic behind it, that is something that is not obvious on
how each one of them ties together.
Is there a flowchart that shows how the inner working of Ruby on Rails?
In another words, let''s suppose we consider the