Re: ActionMailer and Authlogic error

uncle mantis
2011-06-18T15:30:55Z

Now I have something new.

NoMethodError in UsersController#create

undefined method `activation_instructions'' for Notifier:Class

Rails.root: /home/unclemantis/rails_projects/raffle2
Application Trace <http://69.164.197.155:3000/users#> | Framework
Trace<http://69.164.197.155:3000/users#>
 | Full Trace <http://69.164.197.155:3000/users#>

actionmailer (3.0.9) lib/action_mailer/deprecated_api.rb:74:in
`method_missing''
actionmailer (3.0.9) lib/action_mailer/base.rb:452:in `method_missing''
app/models/user.rb:16:in `deliver_activation_instructions!''
app/controllers/users_controller.rb:78:in `create''
actionpack (3.0.9) lib/action_controller/metal/implicit_render.rb:4:in
`send_action''
actionpack (3.0.9) lib/abstract_controller/base.rb:150:in
`process_action''
actionpack (3.0.9) lib/action_controller/metal/rendering.rb:11:in
`process_action''
actionpack (3.0.9) lib/abstract_controller/callbacks.rb:18:in `block
in process_action''
activesupport (3.0.9) lib/active_support/callbacks.rb:441:in
`_run__187506094__process_action__14849991__callbacks''
activesupport (3.0.9) lib/active_support/callbacks.rb:410:in
`_run_process_action_callbacks''
activesupport (3.0.9) lib/active_support/callbacks.rb:94:in
`run_callbacks''
actionpack (3.0.9) lib/abstract_controller/callbacks.rb:17:in
`process_action''
actionpack (3.0.9)
lib/action_controller/metal/instrumentation.rb:30:in `block in
process_action''
activesupport (3.0.9) lib/active_support/notifications.rb:52:in `block
in instrument''
activesupport (3.0.9)
lib/active_support/notifications/instrumenter.rb:21:in `instrument''
activesupport (3.0.9) lib/active_support/notifications.rb:52:in
`instrument''
actionpack (3.0.9)
lib/action_controller/metal/instrumentation.rb:29:in `process_action''
actionpack (3.0.9) lib/action_controller/metal/rescue.rb:17:in
`process_action''
actionpack (3.0.9) lib/abstract_controller/base.rb:119:in `process''
actionpack (3.0.9) lib/abstract_controller/rendering.rb:41:in `process''
actionpack (3.0.9) lib/action_controller/metal.rb:138:in `dispatch''
actionpack (3.0.9)
lib/action_controller/metal/rack_delegation.rb:14:in `dispatch''
actionpack (3.0.9) lib/action_controller/metal.rb:178:in `block in
action''
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in
`call''
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:62:in
`dispatch''
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:27:in
`call''
rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `block in call''
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `block in
recognize''
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:68:in
`optimized_each''
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize''
rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call''
actionpack (3.0.9) lib/action_dispatch/routing/route_set.rb:493:in
`call''
actionpack (3.0.9)
lib/action_dispatch/middleware/best_standards_support.rb:17:in `call''
actionpack (3.0.9) lib/action_dispatch/middleware/head.rb:14:in `call''
rack (1.2.3) lib/rack/methodoverride.rb:24:in `call''
actionpack (3.0.9) lib/action_dispatch/middleware/params_parser.rb:21:in
`call''
actionpack (3.0.9) lib/action_dispatch/middleware/flash.rb:182:in
`call''
actionpack (3.0.9)
lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call''
actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:302:in
`call''
activerecord (3.0.9) lib/active_record/query_cache.rb:32:in `block in
call''
activerecord (3.0.9)
lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
`cache''
activerecord (3.0.9) lib/active_record/query_cache.rb:12:in `cache''
activerecord (3.0.9) lib/active_record/query_cache.rb:31:in `call''
activerecord (3.0.9)
lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in
`call''
actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:46:in
`block in call''
activesupport (3.0.9) lib/active_support/callbacks.rb:416:in
`_run_call_callbacks''
actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:44:in
`call''
rack (1.2.3) lib/rack/sendfile.rb:107:in `call''
actionpack (3.0.9) lib/action_dispatch/middleware/remote_ip.rb:48:in
`call''
actionpack (3.0.9)
lib/action_dispatch/middleware/show_exceptions.rb:47:in `call''
railties (3.0.9) lib/rails/rack/logger.rb:13:in `call''
rack (1.2.3) lib/rack/runtime.rb:17:in `call''
activesupport (3.0.9)
lib/active_support/cache/strategy/local_cache.rb:72:in `call''
rack (1.2.3) lib/rack/lock.rb:11:in `block in call''
<internal:prelude>:10:in `synchronize''
rack (1.2.3) lib/rack/lock.rb:11:in `call''
actionpack (3.0.9) lib/action_dispatch/middleware/static.rb:30:in
`call''
railties (3.0.9) lib/rails/application.rb:168:in `call''
railties (3.0.9) lib/rails/application.rb:77:in `method_missing''
railties (3.0.9) lib/rails/rack/log_tailer.rb:14:in `call''
rack (1.2.3) lib/rack/content_length.rb:13:in `call''
rack (1.2.3) lib/rack/handler/webrick.rb:52:in `service''
/home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in
`service''
/home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in
`run''
/home/unclemantis/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in
`block in start_thread''

Request

*Parameters*:

{"utf8"=>"âœ“",
 "authenticity_token"=>"cH4BxobYWSd9bB6Kq4kT8aR4HNVAIP2E4ov8ro1Wn9g=",
 "user"=>{"username"=>"ddddddddd",
 "email"=>"ddddddddddd-pGZEGxUiZPA@public.gmane.org",
 "password"=>"[FILTERED]",
 "password_confirmation"=>"[FILTERED]"},
 "commit"=>"Create User"}

Show session dump <http://69.164.197.155:3000/users#>

Show env dump <http://69.164.197.155:3000/users#>
Response

*Headers*:

None


Regards,

Michael



On Sat, Jun 18, 2011 at 9:54 AM, Colin Law
<clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:

> On 17 June 2011 22:50, unclemantis
<unclemantis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > This is my first post to the mailing list.
> >
> > https://gist.github.com/46dc099c344c19002a79
> >
> > I am getting the runtime error
> >
> > You can no longer call ActionMailer::Base.default_url_options
> > directly. You need to set config.action_mailer.default_url_options. If
> > you are using ActionMailer standalone, you need to include the routing
> > url_helpers directly.
> > Rails.root: /home/unclemantis/rails_projects/raffle
> >
> > I have this line in my development.rb file
> >
> > config.action_mailer.default_url_options = { :host =>
> > ''69.164.197.155'' }
> >
> > What''s going on? I don''t see where I am calling
base_url_options
> > directly anymore. I commented out where I was.
>
> Do you get a stack trace?  If so post it here along with the full error
> message.
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.