Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `html_default_value' while working with rails_admin 0.6.5 #174

Open
jacek213 opened this issue Dec 19, 2014 · 4 comments
Open

Comments

@jacek213
Copy link

I configured rich just as shown on wiki page to work with rails_admin, however when I try to edit a resource which should use rich I get:

ActionView::Template::Error (undefined method `html_default_value' for #<RailsAdmin::Config::Fields::Types::RichEditor:0x00000005583b08>):
    1: = form.send 'text_area', field.method_name, field.html_attributes.reverse_merge((hdv = field.html_default_value).nil? ? {} : { :value => hdv })
    2: 
    3: = javascript_include_tag "rich/base.js"
    4: :javascript
rich (1.4.6) app/views/rails_admin/main/_form_rich_text.html.haml:1

Is rich compatible with rails_admin 0.6.5?

@zackexplosion
Copy link

I solve this with following step

replace

gem 'rich'

to

gem 'rich', github: 'bastiaanterhorst/rich'

and if you are using heroku do this too

https://github.com/bastiaanterhorst/rich/wiki/Troubleshooting

@adrianmatteo
Copy link

I had the same problem with rails_admin 0.7.0. Sourcing the directly from github solved it.

Can this be done without specifying the repo?

@sebastian-palma
Copy link

The same problem fixed using the answer of @zackexplosion, thanks.

@Prastary
Copy link

Prastary commented Apr 2, 2017

@zackexplosion how did you fix this problem? I still fight with it ;(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants