{"comment":{"created_at":"2011-10-08T16:09:22Z","body":"Maybe that's becouse once you use `@Resouce`, and second one `@resouce`? I think that it should start with downcase letter.\r\n\r\nAnd I don't know why it works fine in rescue, maybe then mailer give up and does not send emails any more :)","updated_at":"2011-10-08T16:09:22Z","url":"https://api.github.com/repos/plataformatec/devise/issues/comments/2332661","id":2332661,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6eded0937cdaaf986756ececa8718e76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/apocalyptiq","id":489586,"login":"apocalyptiq"}},"action":"created","issue":{"number":1369,"created_at":"2011-10-08T15:16:40Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"User model has a function\r\n\r\n    def self.createadmin(\r\n    User.create(:email => \"abc@gmail.com\", :password => \"123456e\", :password_confirmation => \"123456e\", :terms_of_service => '1')\r\n    end\r\n\r\nIn rake db:seed, I have to call User.createadmin\r\n\r\nHowever, this fails \r\n\r\n    ActionView::Template::Error: ActionView::Template::Error\r\n    \tfrom /Users/bever/Projects/tr/app/views/devise/mailer/confirmation_instructions.html.erb:3:in `_app_views_devise_mailer_confirmation_instructions_html_erb___1974818942364630283_2154906860'\r\n\r\nThen I changed the code in createadmin\r\n\r\n    begin\r\n    User.create(:email => \"abc@gmail.com\", :password => \"123456e\", :password_confirmation => \"123456e\", :terms_of_service => '1')\r\n    rescue => e\r\n    User.create(:email => \"abc@gmail.com\", :password => \"123456e\", :password_confirmation => \"123456e\", :terms_of_service => '1')\r\n    end    \r\n\r\nIt works! Any clue why this is happening?","comments":6,"title":"Devise:: Cannot create user through rake db:seed (failure confirmation_instructions)","updated_at":"2011-10-08T16:09:22Z","url":"https://api.github.com/repos/plataformatec/devise/issues/1369","id":1852665,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c5d343d2619b5c79e7e1ced6101ffff7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/RitvvijParrikh","id":83666,"login":"RitvvijParrikh"},"html_url":"https://github.com/plataformatec/devise/issues/1369","labels":[],"state":"open"},"legacy":{"issue_id":1852665,"comment_id":2332661}}