Displaying 5 results from an estimated 5 matches for "hellocontroller".
2006 May 05
2
newbie ruby string match question
All,
I want to know in the Application.rb controller if I''m on the login screen.
When I''m on the page I care about the controller variable is
"#<ActiveRbac::UserController:0x408b3d6c>"
So I want something like:
if controller contains ActiveRbac::UserController
What is the right syntax for the above?
Thanks
Greg
--
Greg Freemyer
The Norcross Group
Forensics
2008 May 07
1
uninitialized constant HelloadminController::HelloApi
...web service interaction. But the
following error message occured:
uninitialized constant HelloadminController::HelloApi
service api
class HelloApi < ActionWebService::API::Base
api_method :getMsg, :expects => [:name=>:string], :returns =>
[:string]
end
service controller
class HelloController < ApplicationController
wsdl_service_name ''Hello''
web_service_api HelloApi
web_service_scaffold :invoke
def getMsg(name)
"Hello " + name
end
end
client controller
class HelloadminController < ApplicationController
def getMsg
hello_client =
Acti...
2009 Jul 24
5
Need help viewing my first App
Hi All,
I am new to ROR and I am experiencing a few problems viewing my first
app. Can anyone pls help me to get my first app up and running?
I created a rails application called my_app. I created a controller
called hello.
It looks something like this.
class HelloController < ApplicationController
def display
end
end
When I type http://localhost:3000/hello/display it says "we are sorry
but something went wrong" message. I know it is looking for a view and
when I created a view called display.rhtml with text "welcome on board"
without any h...
2007 Sep 17
2
Ruby/Rails newb here. I need help getting started.
I''m trying to follow the videos over on http://www.loudthinking.com/arc/000328.html.
The first bit of it was fine, but then it says to type "ruby script
\new_controller Hello index". My scripts folder doesn''t contain
anything even similar to "new_controller". According to the generated
"index.html" page, it says "Use script/generate to create
2008 May 07
1
Actionwebservice
...--------------------------------------------
My codes:
helloservice:
helloservice\app\apis:
class HelloApi < ActionWebService::API::Base
api_method :getMsg,
:expects => [{:name => :string}],
:returns => [[:string]]
end
helloservice\app\controllers
class HelloController < ApplicationController
wsdl_service_name ''Hello''
web_service_api HelloApi
web_service_scaffold :invoke
def getMsg(name)
"Hello "+ name
end
end
helloadmin:
helloadmin\app\controllers
class HelloadminController < ApplicationController
def getMsg...