Sha256: e549a4a4b10fba4271d8e451f67a14f6dcf281d77fc8a732708fe217d0968889

Contents?: true

Size: 583 Bytes

Versions: 15

Compression:

Stored size: 583 Bytes

Contents

<%= form_for(@model, url: @model.new_record? ? images_path : image_path(@model), method: @model.new_record? ? :post : :put, as: :image)  do  |f| %>
  <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @model} %>
  <div class="form_fields">

  the parent id and class

  
 
  <%= f.hidden_field :parent_id, :value => @model.parent_id %>

  <%= f.hidden_field :parent_class, :value => @model.parent_class %>    
  </div>
  <div class="actions">
    <%= f.submit "Upload an image" %>
  </div>
  <!-- what else needs to be provided ? -->
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wordjelly-auth-1.1.7 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.6 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.5 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.4 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.3 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.2 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.1 app/views/auth/images/_form.html.erb
wordjelly-auth-1.1.0 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.9 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.8 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.5 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.4 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.3 app/views/auth/images/_form.html.erb
wordjelly-auth-1.0.2 app/views/auth/images/_form.html.erb
wordjelly-auth-0.0.8 app/views/auth/images/_form.html.erb