hobo (1.4.0.pre9.288a70e) with Rails 3.2.7 No form fields are rendered by DRYML

35 views
Skip to first unread message

umuro

unread,
Aug 23, 2012, 8:02:17 AM8/23/12
to hobo...@googlegroups.com
I tried both field-list-v1 and  feckless-fieldset merge . None of the form fields are rendered. Therefore in a new application the front page asking for admin user does not have any fields. Trial blows out...

Is there a workaround?

umuro

unread,
Aug 23, 2012, 9:48:23 AM8/23/12
to hobo...@googlegroups.com
Yes
In user.rb add this line to the class

  attr_accessible :name, :email_address

umuro

unread,
Aug 23, 2012, 10:24:36 AM8/23/12
to hobo...@googlegroups.com

Bryan Larsen

unread,
Aug 23, 2012, 2:14:42 PM8/23/12
to hobo...@googlegroups.com
The other alternative is to use

config.active_record.whitelist_attributes = false

in your config/application.rb

If you do this, make sure you have your Hobo permissions set up to
adequately protect you against malicious mass-assignation.

Bryan
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/3_Pxlu22QpoJ.
>
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
Reply all
Reply to author
Forward
0 new messages