Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Please, write some tutor in README.rb file, how to show html. #52

Open
KanybekMomukeyev opened this issue May 2, 2014 · 1 comment
Open

Comments

@KanybekMomukeyev
Copy link

Here is how we will input html code:

    ActiveAdmin.register Page do
     form do |f|
       f.inputs do
       f.input :title
       f.input :content, as: :html_editor
    end

    f.buttons
   end|

How to write show ?

@KanybekMomukeyev
Copy link
Author

Answer:

show do |hotel|
    attributes_table do     
      row 'Hotel description' do
        raw(hotel.description)
      end
  end

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

No branches or pull requests

1 participant