Displaying 2 results from an estimated 2 matches for "psyguideorg".
2007 Nov 20
3
Plugin: can't call before_filter in ApplicationController
...b/application_controller.rb I have the following code:
class ApplicationController
before_filter :prepare_user
...
end
This worked without a prolem so far.
But when I try to start Webrick now, I get the following error:
josh$ script/server
=> Booting WEBrick...
/Users/josh/Sites/projects/psyguideorg/vendor/plugins/incense_authorization/lib/application_controller.rb:4:
undefined method `before_filter'' for ApplicationController:Class
(NoMethodError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
from
/usr/local/lib...
2006 Jul 28
3
Forms: handle foreign keys (AssociationTypeMismatch)
...k => true) %>
<%= end_form_tag %>
So far, so good, the countries are well displayed in a select box. But
when I submit the form, I get the following error:
ActiveRecord::AssociationTypeMismatch in BookingsController#new
Country expected, got String
RAILS_ROOT: /Users/Josh/Webwork/psyguideorg/public/../config/..
Application Trace | Framework Trace | Full Trace
/Applications/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/associations/association_proxy.rb:134:in
`raise_on_type_mismatch''
/Applications/Locomotive2/Bund...