1
0
Fork 0
forked from OpenNeo/impress

keep track of the closet page we are importing, even if it errored out

This commit is contained in:
Emi Matchu 2011-07-25 14:22:26 -04:00
parent 2983849b1f
commit c3279f0512
2 changed files with 2 additions and 1 deletions

View file

@ -7,8 +7,8 @@ class ClosetPagesController < ApplicationController
def create def create
if params[:closet_page] && params[:closet_page][:source] if params[:closet_page] && params[:closet_page][:source]
@closet_page.index = params[:closet_page][:index]
@closet_page.source = params[:closet_page][:source] @closet_page.source = params[:closet_page][:source]
@index = @closet_page.index
saved_counts = @closet_page.save_hangers! saved_counts = @closet_page.save_hangers!

View file

@ -3,6 +3,7 @@
= link_to 'Back to Your Items', user_closet_hangers_path(current_user), :id => 'back-to-items' = link_to 'Back to Your Items', user_closet_hangers_path(current_user), :id => 'back-to-items'
= form_for @closet_page, :html => {:id => 'closet-page-form'} do |f| = form_for @closet_page, :html => {:id => 'closet-page-form'} do |f|
= f.hidden_field :index
#closet-page-frame-wrapper #closet-page-frame-wrapper
%span %span
%strong Page #{@closet_page.index} %strong Page #{@closet_page.index}