<% content_for :javascripts do %> <%= javascript_include_tag 'ckeditor/ckeditor' %> <%= javascript_include_tag 'ckeditor/adapters/jquery' %> <% end %> <% custom = { :rows => @resource.typus_options_for(:form_rows), :class => "rich_text" } options = options.merge!(custom) %>
  • <%= form.label attribute, label_text %> <%= form.text_area attribute, options %>