gregbell/active_admin — Issue #699: custom active_admin display styling issue 
Author: johnkock
Created: 2011-10-28 21:35:09+00:00
State: open

I have successfully integrated active_admin into my application along with paperclip multiple upload functionality. However, the active_admin styling for adding new records and editing existing records are gone. Everything works great and this is the only issue that exists. Can anyone point me in the right direction?

Here are some code snippets

# app/admin/events.rb

ActiveAdmin.register Event do

controller do
def new
@event = Event.new
12.times {@event.event_images.build}
render :partial => "form"
end

def edit
@event = Event.find(params[:id])
12.times {@event.event_images.build}
render :partial => "form"
end

end

end

# app/views/admin/events/_form.html.erb

<%= semantic_form_for @event, :html => { :multipart => true } do |f| %>
<%= f.inputs "Event Details" do %>
<%= f.input :event_name %>
<%= f.input :event_contact %>
<%= f.input :event_date, :start_year => 1960 %>
<%= f.input :telephone %>
<%= f.input :event_location %>
<%= f.input :event_description %>

<% end %>

<%= f.inputs "Event Images" do %>
<%= f.fields_for :event_images do |images| %>
<% if images.object.new_record? %>
<%= images.file_field :picture %>
<% end %>
<% end %>

<% end %>

<%= f.buttons %>
<% end %>

I would appreciate the assistance