Displaying 3 results from an estimated 3 matches for "problem_control".
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
...test/functional/problem_api_test.rb:14:in `test_my_method''
1 tests, 0 assertions, 0 failures, 1 errors
The freshly scaffolded files are:
* app/apis/problem_api.rb
class ProblemApi < ActionWebService::API::Base
api_method :my_method
end
* app/controllers/problem_controller.rb
class ProblemController < ApplicationController
wsdl_service_name ''Problem''
def my_method
end
end
* test/functional/problem_api_test.rb
require File.dirname(__FILE__) + ''/../test_helper''
require ...
2006 Feb 03
1
Database Foreign Key - Basic question
...th columns:
id
description
submitter_id (foreign key to People table)
assigned_to_id (foreign key to People table)
etc
People table with columns:
id
name
models:
class Problem < ActiveRecord::Base
has_many :people
class Person < ActiveRecord::Base
has_many :problems
problem_Controller:
def list
@submitter = Person.find(params[:submitter_id] ???
views:problems:list.rhtml
<td><%= problem.submitter.name %></td> ???
2007 Jan 21
0
Safari doesn't pass the headers.
When I try to update content through ajax It doesn''t work on Safari.
I''ve opened a ticket http://dev.rubyonrails.org/ticket/7087 for full
reference. The test case is the next:
/app/controllers/problem_controller.rb
class ProblemController < ApplicationController
def index
render :action => ''index''
end
def myrequest
render(:update) {|page| page.updateContent(params[:content])}
end
end
/app/controllers/problem_helper.rb
module ProblemHelper
def updateContent(content)...