ArgumentError in Rails::MailersController#preview

What's the error ?

I guessed that simply Mailers controller has not argument

 

As follow sentence is appeared

 

wrong number of arguments (given 0, expected 1)

 

From <https://start-cloned-cloned-taigawatanabe.c9users.io/rails/mailers/user_mailer/account_activation>

 

I thought that given0 means in other words argument had not contain in the controllers

So I should have done a value into the database and might be function I don't know

Let's try it since now

 

 

1.check my environment of log and also console

 

 

-c 
.0.1, 
ENG 
18:55 
taiqawatanabe 
start-cloned-cloned 
x 
https:// 
ide.c9.io/taigawatanabe/start-cloned-cloned 
Cloud9 File Edit Find 
config 
environments 
initializers 
locales 
plication. rb 
boot.rb 
cable.yml 
credentials.yml.enc 
database.yml 
environment.rb 
master.key 
puma.rb 
routes.rb 
spring. rb 
storage.yml 
Mew 
Goto 
Run 
Tools 
WI ndow 
Support 
puma - "taigawat 
Preview 
O Run 
Share 
8 
z 
o 
routes_rb 
[B] https://start-cl x 
user.rb 
user mailer.rb 
MEMORY 
development log 
xo 103 
16764 
16765 
16766 
16767 
16768 
16769 
16770 
16771 
16772 
16773 
16774 
16775 
16776 
16777 
16778 
16779 
16780 
16781 
16782 
16783 
16784 
16785 
16786 
16787 
16788 
16789 
16790 
16791 
Rendered /usr/10ca1/rvm/gems/ruby-2.4.0/gems/rai1ties-5.2.3/1ib/rai1s/temp1ates/rai1s/mai1ers/mai1er.htm1 .erb v 
Completed 200 OK in 5ms (Views: 4.3ms I ActiveRecord: e.øms) 
Started GET " /rails/mailers/user mailer/account activation" for 114. 
Cannot render console from 114.178.131.130! Allowed networks: 127 
processing by Rails: as HTML 
Parameters: mailer/account activation"} 
UserMai1er#account activation: processed outbound mail in 0.4ms 
Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms) 
ArgumentError (wrong number of arguments (given 0, expected 1)) : 
app/mailers/user mailer.rb:5:in -account activation 
started GET "/" for 114.178.131.130 at 2019-04-27 09:53: 20 +oeee 
Cannot render console from 114.178.131.130! Allowed networks: 127.0 
178.131.130 at 2019-04-27 +eeøø 
. .0.1, 
processing by Staticpagescontroller#home as HTML 
Rendering static pages/home.html.erb within layouts/application 
Rendered static pages/home . html .erb within layouts/ application (2. Ims) 
Rendered layouts/ rails default. html. erb (95.6ms) 
Rendered layouts/ header. html. erb (1.2ms) 
Rendered layouts/ footer. html. erb (0.5ms) 
Completed 200 OK in 106ms (Views: 104.7ms I ActiveRecord: 0. Oms) 
127.e.e.0/127.255.255.255 
127.e.e.0/127.255.255.255 
db 
migrate 
20190421090813 
20190422151022 
20190422151205 
20190424050137 
20190426052414 
schema.rb 
seeds.rb 
development.log 
test. log 
public 
storage 
controllers 
create users.rb 
add index to users email.rb 
_add_password_digest_to_users.rb 
_add_remember_digest_to_users.rb 
add activation to users.rb 
account activations controller test.rb 
(682 Bytes) 
16788:s5 
Text 
Spaces: 2 
2019/04/27

 

How to solve the problem ?

 

 

What is the meaning ?

 

https://docs.ruby-lang.org/ja/latest/class/ArgumentError.html

 

Result

 

https://qiita.com/tmiyachi_teen-spirit/items/82417ab6126d816af4e4