Displaying 5 results from an estimated 5 matches for "wyrosdick".
2006 May 26
3
validate a form NOT connected to a model
Is there any way to validate a form that isn''t connected to a model. I have
a form that connects to a controller action and I want to validate the
inputs on the form like I would with the validates_ATTRIBUTE_of property on
a model. Is there any way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 25
3
webservice timeout issue
...in `each_cgi''
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in
`process!''
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in
`process!''
/Users/bwyrosdick/rails/authenticate/public/dispatch.fcgi:24
Rendering /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
Processing AuthController#api (for 127.0.0.1 at 2006-05-24 22:25:02) [POST]
Session ID: 6615e9cda1cbf643ac21696882...
2007 Jan 17
1
include ClassMethods in plugins
Why is that in so many plugins I see people using (including
acts_as_taggable by DHH):
# init.rb
ActiveRecord::Base.send(:include, ActiveRecord::Acts::SomeModule)
# lib/some_module.rb
module ActiveRecord
module Acts
module SomeModule
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def acts_as_something
# code
2006 May 24
12
Analog to ruby script/generate for removing generated stuff?
All,
If I do ruby script/generate model blah,
is there an easy way for me to remove all of that stuff that got
generated?
Something like:
ruby script/remove model blah?
If it doesn''t exist, is it coming?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 May 24
0
rails not liking api folder
Has anyone had trouble with their controller for an AWS webservice not being
able to see the api class when it is in the api folder? I used the
''script/generate web_service'' to make a webservice and api and the only way
it works is to move my api file into the controller folder and not have it
in the api folder. Is this normal?
Ben
-------------- next part --------------
An