ActiveAdmin show partial does not see model

In ActiveAdmin 0.4.3 and Rails 3.2.2, I am trying to customize the display screen of my article mode

ActiveAdmin.register Article do show do render "show" end end 

And in the application / views / admin / articles / _show.html.haml

 %div= article.description 

But whenever I try to show an article, I get:

 NoMethodError in Admin/articles#show Showing /Users/phishman/Sites/wisegrowth/app/views/admin/articles/_show.html.haml where line #1 raised: undefined method `description' for <article></article> :Arbre::HTML::Article Extracted source (around line #1): 1: %div= article.description Trace of template inclusion: /Users/phishman/.rvm/gems/ruby-1.9.2-p290/gems/activeadmin-0.4.3/app/views/active_admin/resource/show.html.arb Rails.root: /Users/phishman/Sites/wisegrowth Application Trace | Framework Trace | Full Trace app/views/admin/articles/_show.html.haml:1:in `_app_views_admin_articles__show_html_haml___3305533421865107600_2209712640' app/admin/articles.rb:20:in `block (2 levels) in <top (required)>' app/middleware/flash_session_cookie_middleware.rb:17:in `call' 

Could you help me with this? It drives me crazy!

Everything works fine in the console, and if so, then:

 a = Article.last a.description => "my article description" 
+4
source share
1 answer

Try this instead:

render :partial => "show", :locals => {:article => article }

+2
source

All Articles