Hi All!
Created an app with: hobo new logintest --setup
Accessed it using both Firefox and Chrome and got the site administrator
page with only two fields: Name and Email Address. (no sign of the
password and confirmation fields).
I looked at front/index.dryml and it shows the missing fields:
<% if User.count == 0 -%>
<h3 style="margin-top: 20px;">There are no user accounts -
please provide the details of the site administrator</h3>
<form with="&this || User.new" without-cancel>
<field-list: fields="name, email_address, password,
password_confirmation"/>
<submit: label="Register Administrator"/>
</form>
<% end -%>
I'm using:
rvm 1.25.27 (master)
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
Rails 4.0.5
Hobo Command Line Interface 2.1.0
I tried to signup using the Signup link and got an error page (shown below)
Help?
Don Ziesig
The index and signup pages render as:
Logintest <http://localhost:3000/>
* Home <http://localhost:3000/>
*
*
* Login <http://localhost:3000/login>
* Signup <http://localhost:3000/users/signup>
Welcome to Logintest
Congratulations! Your Hobo Rails App is up and running
* To customise this page: edit app/views/front/index.dryml
There are no user accounts - please provide the details of the
site administrator
Name
Email address
ActiveRecord::UnknownAttributeError in UsersController#do_signup
unknown attribute: password
|Rails.root: /home/donz/Desktop/ZMatrix/logintest|
Application Trace <http://localhost:3000/users/signup#>|Framework Trace
<http://localhost:3000/users/signup#>|Full Trace
<http://localhost:3000/users/signup#>
||
Request
*Parameters*:
{"page_path"=>"/users/signup",
"authenticity_token"=>"1Pyn1Gy8rOOhx6qSmOAYcV2VtKQQ6TxTHVssxdtW7/8=",
"user"=>{"name"=>"Don Ziesig",
"email_address"=>"[email protected]",
"password"=>"[FILTERED]",
"password_confirmation"=>"[FILTERED]"}}
Toggle session dump <http://localhost:3000/users/signup#>
Toggle env dump <http://localhost:3000/users/signup#>
Response
*Headers*:
None
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.